public interface Type
property
of a data object
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(Property property)
Returns the value of the specified instance property of this Type.
|
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.util.List |
getInstanceProperties()
Returns a read-only List of instance Properties available on this Type.
|
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 or
null if the type has no URI
(for example it was generated from a Schema with no target namespace). |
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.
|
java.lang.String getName()
java.lang.String getURI()
null
if the type has no URI
(for example it was generated from a Schema with no target namespace).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()
boolean isDataType()
isInstance(object) && !isDataType() implies DataObject.class.isInstance(object) returns true.
boolean isOpen()
boolean isSequenced()
Sequence elements = dataObject.getSequence
();
boolean isAbstract()
java.util.List getBaseTypes()
java.util.List getDeclaredProperties()
java.util.List getAliasNames()
java.util.List getInstanceProperties()
This list includes, at a minimum, any open content properties (extensions) added to
the object before defining
the Type's Type
. Implementations may, but are not required to in the 2.1 version
of SDO, provide additional instance properties.
java.lang.Object get(Property property)
property
- one of the properties returned by getInstanceProperties()
.DataObject.get(Property)