|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Type
A representation of the type of a property
of a data object
.
Method Summary | |
---|---|
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 |
isInstance(java.lang.Object object)
Returns whether the specified object is an instance of this type. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getURI()
java.lang.Class getInstanceClass()
boolean isInstance(java.lang.Object object)
object
- the object in question.
true
if the object is an instance.Class.isInstance(java.lang.Object)
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()
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()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |