|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ivoa.dm.model.MetadataElement
org.ivoa.dm.model.MetadataDataType
org.ivoa.model.Identity
public class Identity
UML DataType Identity : This data type contains all flavor for objectType identifiers : - primary key value :
numeric
- string xmlId : string for XML ID (xsd:id type) for xml instances - ivoId : URI format for external references
TODO : This entity should not be converted to a java class (already exists)
Field Summary | |
---|---|
private java.lang.Integer |
id
Attribute id : the primary key generated by JPA after persist execution : this value is updated by PostPersist & PostLoad JPA events. |
private java.lang.String |
ivoId
Attribute ivoId : A local xsd:ID for this object, can be used when registering a DM/Resource that has internal references. ( Multiplicity : 0..1 ) |
private static long |
serialVersionUID
serial uid = last modification date of the UML model |
private java.lang.String |
xmlId
Attribute xmlId : A local xsd:ID for this object, can be used when registering a DM/Resource that has internal references. ( Multiplicity : 0..1 ) |
Fields inherited from class org.ivoa.dm.model.MetadataElement |
---|
log, PRESENT, STRING_BUFFER_CAPACITY |
Constructor Summary | |
---|---|
Identity()
Creates a new Identity |
Method Summary | |
---|---|
protected java.lang.StringBuilder |
deepToString(java.lang.StringBuilder sb,
boolean isDeep,
java.util.Map<MetadataElement,java.lang.Object> ids)
Puts the string representation in the given string buffer : "Type =[class name @ hashcode] : { field name = field value , ...}" |
boolean |
equals(java.lang.Object object,
boolean isDeep)
Returns equals from id attribute here. |
java.lang.Integer |
getId()
Returns id Attribute |
java.lang.String |
getIvoId()
Returns ivoId Attribute |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the property value given the property name. |
java.lang.String |
getXmlId()
Returns xmlId Attribute |
void |
setId(java.lang.Integer pId)
Defines id Attribute |
void |
setIvoId(java.lang.String pIvoId)
Defines ivoId Attribute |
boolean |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the property value to the given property name. |
void |
setXmlId(java.lang.String pXmlId)
Defines xmlId Attribute |
Methods inherited from class org.ivoa.dm.model.MetadataDataType |
---|
getObjectMetaData, toString |
Methods inherited from class org.ivoa.dm.model.MetadataElement |
---|
areEquals, baseToString, clone, deepToString, deepToString, equals, exists, getClassName, getMetaModelFactory, hashCode, toString, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.Integer id
private java.lang.String xmlId
private java.lang.String ivoId
Constructor Detail |
---|
public Identity()
Method Detail |
---|
public java.lang.Integer getId()
public void setId(java.lang.Integer pId)
pId
- value to setpublic java.lang.String getXmlId()
public void setXmlId(java.lang.String pXmlId)
pXmlId
- value to setpublic java.lang.String getIvoId()
public void setIvoId(java.lang.String pIvoId)
pIvoId
- value to setpublic boolean equals(java.lang.Object object, boolean isDeep)
equals
in class MetadataElement
object
- the reference object with which to compare.isDeep
- true means to call hashCode(sb, true) for all attributes / references / collections which are
MetadataElement implementations
true
if this object is the same as the obj argument; false
otherwise.method
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class MetadataElement
propertyName
- name of the property (like in UML model)
public boolean setProperty(java.lang.String propertyName, java.lang.Object value)
setProperty
in class MetadataElement
propertyName
- name of the property (like in UML model)value
- to be set
protected java.lang.StringBuilder deepToString(java.lang.StringBuilder sb, boolean isDeep, java.util.Map<MetadataElement,java.lang.Object> ids)
deepToString
in class MetadataElement
sb
- given string buffer to fillisDeep
- true means to call deepToString(sb, true, ids) for all attributes / references / collections which
are MetadataElement implementationsids
- identity map to avoid cyclic loops
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |