public class T2ReferenceImpl extends Object implements T2Reference, Serializable, HibernateComponentClass
Constructor and Description |
---|
T2ReferenceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsErrors()
Return whether the identified entity either is or contains errors
|
boolean |
equals(Object obj) |
static T2ReferenceImpl |
getAsImpl(T2Reference source) |
String |
getCompactForm() |
boolean |
getContainsErrors()
Property accessor for Hibernate, complies with java bean spec
|
int |
getDepth()
Get the depth of the entity referred to by this reference
|
String |
getLocalPart()
Get the local part of the URI for this reference
|
String |
getNamespacePart()
Get the namespace part of the URI for this reference
|
T2ReferenceType |
getReferenceType()
Get the type of the entity to which this reference refers
|
int |
hashCode() |
void |
setContainsErrors(boolean containsErrors)
This method is only ever called from within Hibernate when
re-constructing the identifier component to set the error property of the
identifier.
|
void |
setDepth(int depth)
This method is only ever called from within Hibernate when
re-constructing the identifier component to set the depth of the
identifier.
|
void |
setLocalPart(String localPart)
This method is only ever called from within Hibernate when
re-constructing the identifier component to set the local part of the
identifier.
|
void |
setNamespacePart(String namespacePart)
This method is only ever called from within Hibernate when
re-constructing the identifier component to set the namespace part of the
identifier.
|
void |
setReferenceType(T2ReferenceType type)
This method is only ever called from within Hibernate when
re-constructing the identifier component to set the reference type
property of the identifier.
|
String |
toString()
By default when printing an identifier we use
toUri() . |
URI |
toUri()
Returns the identifier expressed as a
URI ,
constructed based on the reference type. |
public static T2ReferenceImpl getAsImpl(T2Reference source)
public boolean containsErrors()
containsErrors
in interface T2Reference
public boolean getContainsErrors()
public int getDepth()
getDepth
in interface T2Reference
public String getLocalPart()
getLocalPart
in interface T2Reference
public String getNamespacePart()
getNamespacePart
in interface T2Reference
public T2ReferenceType getReferenceType()
getReferenceType
in interface T2Reference
public void setNamespacePart(String namespacePart)
public void setLocalPart(String localPart)
public void setDepth(int depth)
public void setContainsErrors(boolean containsErrors)
public void setReferenceType(T2ReferenceType type)
public String toString()
toUri()
.
toASCIIString()
public URI toUri()
URI
,
constructed based on the reference type. For references to ReferenceSet
this is
new URI("t2:ref//" + namespacePart + "?" + localPart)
leading to URIs of the form t2:ref//namespace?local
toUri
in interface T2Reference
public String getCompactForm()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.