Package com.itextpdf.xmp.impl.xpath
Class XMPPath
- java.lang.Object
-
- com.itextpdf.xmp.impl.xpath.XMPPath
-
public class XMPPath extends java.lang.Object
Representates an XMP XMPPath with segment accessor methods.- Since:
- 28.02.2006
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARRAY_INDEX_STEP
Marks an array index stepstatic int
ARRAY_LAST_STEP
static int
FIELD_SELECTOR_STEP
static int
QUAL_SELECTOR_STEP
static int
QUALIFIER_STEP
Marks a qualifier step.static int
SCHEMA_NODE
private java.util.List
segments
stores the segments of an XMPPathstatic int
STEP_ROOT_PROP
static int
STEP_SCHEMA
static int
STRUCT_FIELD_STEP
Marks a struct field step , also for top level nodes (schema "fields").
-
Constructor Summary
Constructors Constructor Description XMPPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(XMPPathSegment segment)
Append a path segmentXMPPathSegment
getSegment(int index)
int
size()
java.lang.String
toString()
Serializes the normalized XMP-path.
-
-
-
Field Detail
-
STRUCT_FIELD_STEP
public static final int STRUCT_FIELD_STEP
Marks a struct field step , also for top level nodes (schema "fields").- See Also:
- Constant Field Values
-
QUALIFIER_STEP
public static final int QUALIFIER_STEP
Marks a qualifier step. Note: Order is significant to separate struct/qual from array kinds!- See Also:
- Constant Field Values
-
ARRAY_INDEX_STEP
public static final int ARRAY_INDEX_STEP
Marks an array index step- See Also:
- Constant Field Values
-
ARRAY_LAST_STEP
public static final int ARRAY_LAST_STEP
- See Also:
- Constant Field Values
-
QUAL_SELECTOR_STEP
public static final int QUAL_SELECTOR_STEP
- See Also:
- Constant Field Values
-
FIELD_SELECTOR_STEP
public static final int FIELD_SELECTOR_STEP
- See Also:
- Constant Field Values
-
SCHEMA_NODE
public static final int SCHEMA_NODE
- See Also:
- Constant Field Values
-
STEP_SCHEMA
public static final int STEP_SCHEMA
- See Also:
- Constant Field Values
-
STEP_ROOT_PROP
public static final int STEP_ROOT_PROP
- See Also:
- Constant Field Values
-
segments
private java.util.List segments
stores the segments of an XMPPath
-
-
Method Detail
-
add
public void add(XMPPathSegment segment)
Append a path segment- Parameters:
segment
- the segment to add
-
getSegment
public XMPPathSegment getSegment(int index)
- Parameters:
index
- the index of the segment to return- Returns:
- Returns a path segment.
-
size
public int size()
- Returns:
- Returns the size of the xmp path.
-
toString
public java.lang.String toString()
Serializes the normalized XMP-path.- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-