Top Description Fields Constructors Methods
org.hibernate.internal.util.xml

public Class OriginImpl

extends Object
implements Origin, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.internal.util.xml.Origin
Imports
java.io.Serializable

Basic implementation of Origin
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
OriginImpl(String type, String name)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.hibernate.internal.util.xml.Origin.getName.

The name of the document origin.
public String
getType()

Implements org.hibernate.internal.util.xml.Origin.getType.

Retrieve the type of origin.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
typeback to summary
private final String type

Constructor Detail

OriginImplback to summary
public OriginImpl(String type, String name)

Method Detail

getNameback to summary
public String getName()

Implements org.hibernate.internal.util.xml.Origin.getName.

Doc from org.hibernate.internal.util.xml.Origin.getName.

The name of the document origin. Interpretation is relative to the type, but might be the resource name or file URL.

Returns:String

The name.

Annotations
@Override
getTypeback to summary
public String getType()

Implements org.hibernate.internal.util.xml.Origin.getType.

Doc from org.hibernate.internal.util.xml.Origin.getType.

Retrieve the type of origin. This is not a discrete set, but might be something like file for file protocol URLs, or resource for classpath resource lookups.

Returns:String

The origin type.

Annotations
@Override