|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
An Attribute
uniquely identifies an attribute defined for a
graph entity class in the schema.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality with another object. |
DataSourceURL |
getDataSourceURL()
Returns the DataSourceURL of the schema this attribute belongs to. |
GraphEntityClass |
getGraphEntityClass()
Returns the schema entity the attribute belongs to. |
java.io.Serializable |
getInternalIdentifier()
Returns the internal internal identifier of the attribute. |
java.lang.String |
getName()
Returns the attribute's name. |
java.lang.Class |
getType()
Returns the attribute's value type. |
Attribute |
getWrappedAttribute()
Returns the wrapped attribute, null if none. |
int |
hashCode()
To comply with the general contract for Object.hashCode() ,
it is recommended to return the hash code of the internal identifier. |
Methods inherited from interface i3.dragos.gm.core.schema.MetaAttributable |
---|
getAllMetaAttributes, getMetaAttribute, isMetaAttributeKeyReserved, isMetaAttributeSet, setMetaAttribute, unsetMetaAttribute |
Methods inherited from interface i3.dragos.gm.core.schema.ExistenceCheckable |
---|
checkExistence, checkExistenceOptional |
Method Detail |
---|
GraphEntityClass getGraphEntityClass() throws DragosException
DragosException
- if something went wrong.java.io.Serializable getInternalIdentifier()
java.lang.String getName()
java.lang.Class getType()
DataSourceURL getDataSourceURL()
null
.
boolean equals(java.lang.Object o)
This object is considered equal if all of the following conditions are met:
o != null
o instanceof AbstractAttribute
getDataSourceURL().equals(((GraphEntity) o).getDataSourceURL())
getInternalIdentifier().equals(((GraphEntity) o).getInternalIdentifier())
Subclasses and implementations might want to extend it by adding
assertions comparing additional or internal data. However, equality must
only be determined by above rules, preferably by using
super.equals(o)
, and any differences in the additional
data for two equal attributes is to be considered an error.
equals
in class java.lang.Object
o
- The Object to compare to.
true
if o
is equal according to
above rules, false
otherwise.int hashCode()
Object.hashCode()
,
it is recommended to return the hash code of the internal identifier.
hashCode
in class java.lang.Object
Attribute getWrappedAttribute()
null
if none.
null
if none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |