Class InfraItemName

All Implemented Interfaces:
ItemPath, ShortDumpable, Serializable

public class InfraItemName extends ItemName
Item Name of Infra Model Items. Infra Model Items are not part of data model, but rather meta-model or infra model which is behind data model. They have namespace and local name, but they may be serialized differently according to language (using native features of data serialization format and/or other models already available natively for particular language), or they may be computed during runtime. FIXME: Maybe this should not extend ItemName
See Also:
  • Field Details

  • Constructor Details

    • InfraItemName

      public InfraItemName(String namespaceURI, String localPart)
  • Method Details

    • of

      public static InfraItemName of(String namespace, String localPart)
    • fromQName

      public static InfraItemName fromQName(QName name)
    • isSerializedForm

      public static boolean isSerializedForm(QName qname)
    • fromSerialized

      public static InfraItemName fromSerialized(QName qname)
    • intern

      public InfraItemName intern()
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: ItemPath
      Returns true if the path is empty i.e. has no components.
      Specified by:
      isEmpty in interface ItemPath
      Overrides:
      isEmpty in class ItemName
    • getSegments

      @NotNull public @NotNull List<?> getSegments()
      Description copied from interface: ItemPath
      Returns the path segments. Avoid using this method and access segments directly. Instead try to find suitable method in ItemPath interface. NEVER change path content using this method. TODO consider returning unmodifiable collection here (beware of performance implications)
      Specified by:
      getSegments in interface ItemPath
      Overrides:
      getSegments in class ItemName
    • getSegment

      public Object getSegment(int i)
      Description copied from interface: ItemPath
      Returns the given path segment.
      Specified by:
      getSegment in interface ItemPath
      Overrides:
      getSegment in class ItemName
    • size

      public int size()
      Description copied from interface: ItemPath
      Returns path size i.e. the number of components.
      Specified by:
      size in interface ItemPath
      Overrides:
      size in class ItemName
    • first

      public Object first()
      Description copied from interface: ItemPath
      Returns the first segment or null if the path is empty.
      Specified by:
      first in interface ItemPath
      Overrides:
      first in class ItemName
    • rest

      @NotNull public @NotNull ItemPath rest()
      Description copied from interface: ItemPath
      Returns the rest of the path (the tail).
      Specified by:
      rest in interface ItemPath
      Overrides:
      rest in class ItemName
    • rest

      @NotNull public @NotNull ItemPath rest(int n)
      Description copied from interface: ItemPath
      Returns the rest of the path (the tail), starting at position "n".
      Specified by:
      rest in interface ItemPath
      Overrides:
      rest in class ItemName
    • toString

      public String toString()
      Overrides:
      toString in class ItemName
    • matches

      public boolean matches(QName other)
      Overrides:
      matches in class ItemName
    • asSerializationForm

      public QName asSerializationForm()