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 StringUNKNOWN_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 booleanequals(Object o)StringgetName()The name of the document origin.SourceTypegetType()Retrieve the type of origin.inthashCode()StringtoString()
-
-
-
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.
-
-