Class XMPPath


  • public class XMPPath
    extends java.lang.Object
    Representates an XMP XMPPath with segment accessor methods.
    Since:
    28.02.2006
    • 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
      • segments

        private java.util.List segments
        stores the segments of an XMPPath
    • 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 java.lang.String toString()
        Serializes the normalized XMP-path.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()