public class

OriginImpl

extends Object
implements Serializable Origin
java.lang.Object
   ↳ org.hibernate.util.xml.OriginImpl

Class Overview

Basic implementation of Origin

Summary

Public Constructors
OriginImpl(String type, String name)
Public Methods
String getName()
The name of the document origin.
String getType()
Retrieve the type of origin.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.util.xml.Origin

Public Constructors

public OriginImpl (String type, String name)

Public Methods

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.

public 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.

Returns
  • The origin type.