org.hibernate.util.xml
Class OriginImpl

java.lang.Object
  extended by org.hibernate.util.xml.OriginImpl
All Implemented Interfaces:
java.io.Serializable, Origin

public class OriginImpl
extends java.lang.Object
implements Origin, java.io.Serializable

Basic implementation of Origin

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
OriginImpl(java.lang.String type, java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
          The name of the document origin.
 java.lang.String getType()
          Retrieve the type of origin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginImpl

public OriginImpl(java.lang.String type,
                  java.lang.String name)
Method Detail

getType

public java.lang.String getType()
Retrieve the type of origin. This is not a discrete set, but might be somethign like file for file protocol URLs, or resource for classpath resource lookups.

Specified by:
getType in interface 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.

Specified by:
getName in interface Origin
Returns:
The name.


Copyright © 2012. All Rights Reserved.