com.itextpdf.xmp.impl.xpath
Class XMPPath

java.lang.Object
  extended by com.itextpdf.xmp.impl.xpath.XMPPath

public class XMPPath
extends Object

Representates an XMP XMPPath with segment accessor methods.

Since:
28.02.2006

Field Summary
static int ARRAY_INDEX_STEP
          Marks an array index step
static 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
           
static 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
XMPPath()
           
 
Method Summary
 void add(XMPPathSegment segment)
          Append a path segment
 XMPPathSegment getSegment(int index)
           
 int size()
           
 String toString()
          Serializes the normalized XMP-path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

XMPPath

public 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 String toString()
Serializes the normalized XMP-path.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2013. All Rights Reserved.