public class JdapiMetaObject
extends java.lang.Object
Block
). It describes the object in terms of its properties.
The metaproperty types that the object can contain can be categorized as boolean,
child object, integer,
object, and string. This class contains methods that let you retrieve the metaproperties of each type.
The methods typically occur in pairs:
JdapiMetaProperty
so you can work with it generically. For example,
getBooleanMetaProperty
.JdapiIterator
over
the object's metaproperties of type metaproperty_type. For example,
getBooleanMetaProperties
Modifier and Type | Field and Description |
---|---|
(package private) JdapiMetaProperty[] |
m_booleanProperties
Array of boolean properties for this Forms object.
|
(package private) JdapiMetaProperty[] |
m_childObjectProperties
Array of child objects for this Forms object.
|
(package private) java.lang.String |
m_className
Class name for this Forms object.
|
(package private) JdapiMetaProperty[] |
m_integerProperties
Array of Integer properties for this Forms object.
|
(package private) JdapiMetaProperty[] |
m_objectProperties
Array of obj properties for this Forms object.
|
(package private) java.lang.Class[] |
m_parentClasses
Array of classes of objects that can be parents of this kind
of Forms object.
|
(package private) JdapiMetaProperty[] |
m_stringProperties
Array of text (String) properties for this Forms object.
|
Constructor and Description |
---|
JdapiMetaObject(java.lang.String className,
JdapiMetaProperty[] stringProperties,
JdapiMetaProperty[] booleanProperties,
JdapiMetaProperty[] IntegerProperties,
JdapiMetaProperty[] objectProperties,
JdapiMetaProperty[] childObjectProperties,
java.lang.Class[] parentClasses)
Package constructor.
|
Modifier and Type | Method and Description |
---|---|
JdapiIterator |
getBooleanMetaProperties()
Returns an iterator over the boolean properties belonging to this Forms object.
|
JdapiMetaProperty |
getBooleanMetaProperty(int propertyTypeId)
Returns a boolean property belonging to this object.
|
JdapiIterator |
getChildObjectMetaProperties()
Retrieves an iterator over the child object properties belonging to this Forms object.
|
JdapiMetaProperty |
getChildObjectMetaProperty(int propertyTypeId)
Returns a child object property belonging to this object.
|
java.lang.String |
getClassName()
Returns the class name for this Forms object.
|
JdapiIterator |
getIntegerMetaProperties()
Returns an iterator over the integer properties belonging to this Forms object.
|
JdapiMetaProperty |
getIntegerMetaProperty(int propertyTypeId)
Returns an integer property belonging to this object.
|
JdapiIterator |
getMetaProperties()
Returns an iterator over the entire set of properties belonging to this Forms object.
|
JdapiMetaProperty |
getMetaProperty(int propertyTypeId)
Returns a meta property belonging to this object, irresprctive of its type.
|
JdapiIterator |
getObjectMetaProperties()
Returns an iterator over the object properties belonging to this Forms object.
|
JdapiMetaProperty |
getObjectMetaProperty(int propertyTypeId)
Returns an object property belonging to this object.
|
java.lang.Class[] |
getParentClasses()
Returns an the array of classes that can potentially be parent objects of the
referred object.
|
JdapiIterator |
getStringMetaProperties()
Returns an iterator over the String properties belonging to this Forms object.
|
JdapiMetaProperty |
getStringMetaProperty(int propertyTypeId)
Returns a string property belonging to this object.
|
final java.lang.String m_className
final JdapiMetaProperty[] m_stringProperties
final JdapiMetaProperty[] m_booleanProperties
final JdapiMetaProperty[] m_integerProperties
final JdapiMetaProperty[] m_objectProperties
final JdapiMetaProperty[] m_childObjectProperties
final java.lang.Class[] m_parentClasses
JdapiMetaObject(java.lang.String className, JdapiMetaProperty[] stringProperties, JdapiMetaProperty[] booleanProperties, JdapiMetaProperty[] IntegerProperties, JdapiMetaProperty[] objectProperties, JdapiMetaProperty[] childObjectProperties, java.lang.Class[] parentClasses)
className
- Name of Java class for this Forms objectstringProperties
- Array of this objects text propertiesbooleanProperties
- Array of this objects boolean propertiesIntegerProperties
- Array of this objects Integer propertiesobjectProperties
- Array of this objects object propertieschildObjectProperties
- Array of this objects child objectsparentClasses
- Classes that can be parents of this kind of
Forms objectpublic java.lang.String getClassName()
public JdapiIterator getMetaProperties()
public JdapiIterator getStringMetaProperties()
... JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass()); JdapiIterator props = meta.getStringMetaProperties(); ...
public JdapiIterator getBooleanMetaProperties()
... JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass()); JdapiIterator props = meta.getBooleanMetaProperties(); ...
public JdapiIterator getIntegerMetaProperties()
... JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass()); JdapiIterator props = meta.getIntegerMetaProperties(); ...
public JdapiIterator getObjectMetaProperties()
... JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass()); JdapiIterator props = meta.getObjectMetaProperties(); ...
public JdapiIterator getChildObjectMetaProperties()
... JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass()); JdapiIterator props = meta.getChildObjectMetaProperties(); ...
public JdapiMetaProperty getStringMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public JdapiMetaProperty getIntegerMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public JdapiMetaProperty getBooleanMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public JdapiMetaProperty getObjectMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public JdapiMetaProperty getChildObjectMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public JdapiMetaProperty getMetaProperty(int propertyTypeId)
propertyTypeId
- the property type number ID.public java.lang.Class[] getParentClasses()