Package org.hibernate.boot.jaxb
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
UNKNOWN_FILE_PATH
-
Constructor Summary
Constructors Constructor Description Origin(SourceType type, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
The name of the document origin.SourceType
getType()
Retrieve the type of origin.int
hashCode()
String
toString()
-
-
-
Field Detail
-
UNKNOWN_FILE_PATH
public static final String UNKNOWN_FILE_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Origin
public Origin(SourceType type, String name)
-
-
Method Detail
-
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.
-
-