Package org.hibernate.boot.jaxb
Class Origin
- java.lang.Object
-
- org.hibernate.boot.jaxb.Origin
-
- All Implemented Interfaces:
java.io.Serializable
public class Origin extends java.lang.Object implements java.io.SerializableDescribes the origin of an xml document- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUNKNOWN_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 booleanequals(java.lang.Object o)java.lang.StringgetName()The name of the document origin.SourceTypegetType()Retrieve the type of origin.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-