public interface Type
property of a
data object.| Modifier and Type | Method and Description |
|---|---|
Object |
get(Property property)
Returns the value of the specified instance property of this Type.
|
List<String> |
getAliasNames()
Return a list of alias names for this Type.
|
List<Type> |
getBaseTypes()
Returns the List of base Types for this Type.
|
List<Property> |
getDeclaredProperties()
Returns the Properties declared in this Type as opposed to those declared
in base Types.
|
Class |
getInstanceClass()
Returns the Java class that this type represents.
|
List<Property> |
getInstanceProperties()
Returns a read-only List of instance Properties available on this Type.
|
String |
getName()
Returns the name of the type.
|
List<Property> |
getProperties()
Returns the List of the
Properties of this type. |
Property |
getProperty(String propertyName)
Returns from
all the Properties of this type, the
one with the specified name. |
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(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.
|
String getName()
String getURI()
Class getInstanceClass()
boolean isInstance(Object object)
object - the object in question.true if the object is an instance.Class.isInstance(java.lang.Object)List<Property> 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(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()
List<Type> getBaseTypes()
List<Property> getDeclaredProperties()
List<String> getAliasNames()
List<Property> 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.
Object get(Property property)
property - one of the properties returned by getInstanceProperties()
.DataObject.get(Property)Copyright © 2019. All rights reserved.