|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the type of a property
of a data object
.
Method Summary | |
---|---|
java.util.List |
getAliasNames()
Return a list of alias names for this Type. |
java.util.List |
getBaseTypes()
Returns the List of base Types for this Type. |
java.util.List |
getDeclaredProperties()
Returns the Properties declared in this Type as opposed to those declared in base Types. |
java.lang.Class |
getInstanceClass()
Returns the Java class that this type represents. |
java.lang.String |
getName()
Returns the name of the type. |
java.util.List |
getProperties()
Returns the List of the Properties of this type. |
Property |
getProperty(java.lang.String propertyName)
Returns from all the Properties of this type, the one with the specified name. |
java.lang.String |
getURI()
Returns the namespace URI of the type. |
boolean |
isAbstract()
Indicates if this Type is abstract. |
boolean |
isDataType()
Indicates if this Type specifies DataTypes (true) or DataObjects (false). |
boolean |
isInstance(java.lang.Object object)
Returns whether the specified object is an instance of this type. |
boolean |
isOpen()
Indicates if this Type allows any form of open content. |
boolean |
isSequenced()
Indicates if this Type specifies Sequenced DataObjects. |
Method Detail |
public java.lang.String getName()
public java.lang.String getURI()
public java.lang.Class getInstanceClass()
public boolean isInstance(java.lang.Object object)
object
- the object in question.
true
if the object is an instance.Class.isInstance(java.lang.Object)
public java.util.List getProperties()
Properties
of this type.
The expression
type.getProperties().indexOf(property)yields the property's index relative to this type. As such, these expressions are equivalent:
dataObject.get
(i) dataObject.get
((Property)dataObject.getType().getProperties().get(i));
Property.getContainingType()
public Property getProperty(java.lang.String propertyName)
all the Properties
of this type, the one with the specified name.
As such, these expressions are equivalent:
dataObject.get
("name") dataObject.get
(dataObject.getType().getProperty("name"))
getProperties()
public boolean isDataType()
isInstance(object) && !isDataType() implies DataObject.class.isInstance(object) returns true.
public boolean isOpen()
public boolean isSequenced()
Sequence elements = dataObject.getSequence
();
public boolean isAbstract()
public java.util.List getBaseTypes()
public java.util.List getDeclaredProperties()
public java.util.List getAliasNames()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |