Class Origin

  • All Implemented Interfaces:
    java.io.Serializable

    public class Origin
    extends java.lang.Object
    implements java.io.Serializable
    Describes the origin of an xml document
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String UNKNOWN_FILE_PATH  
    • Constructor Summary

      Constructors 
      Constructor Description
      Origin​(SourceType type, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      The name of the document origin.
      SourceType getType()
      Retrieve the type of origin.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • UNKNOWN_FILE_PATH

        public static final java.lang.String UNKNOWN_FILE_PATH
        See Also:
        Constant Field Values
    • Constructor Detail

      • Origin

        public Origin​(SourceType type,
                      java.lang.String name)
    • Method Detail

      • getType

        public SourceType getType()
        Retrieve the type of origin.
        Returns:
        The origin type.
      • getName

        public java.lang.String getName()
        The name of the document origin. Interpretation is relative to the type, but might be the resource name or file URL.
        Returns:
        The name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object