Class Origin

java.lang.Object
org.hibernate.boot.jaxb.Origin
All Implemented Interfaces:
Serializable

public class Origin extends Object implements Serializable
Describes the origin of an XML document.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object