|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.binding.metaimpl.BaseValueObjectDefinition
oracle.binding.metaimpl.BaseAttributeDefinition
oracle.adf.model.adapter.dataformat.AttributeDef
oracle.adf.model.adapter.dataformat.AccessorDef
Defines an accessor.
| Field Summary |
| Fields inherited from class oracle.adf.model.adapter.dataformat.AttributeDef |
LEAFELEMENT_HINT, LEAFELEMENT_NO_ATTRIBUTE, LEAFELEMENT_WITH_ATTRIBUTE |
| Fields inherited from interface oracle.binding.meta.Definition |
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_METHODRETURN, TYPE_NAMED, TYPE_OPERATION, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE |
| Constructor Summary | |
AccessorDef(java.lang.String id, StructureDefinition parent, boolean isCollection)Creates a new accessor definition as a complex type. |
|
AccessorDef(java.lang.String id, StructureDefinition parent, java.lang.String type)Creates a new accessor definition as a java type collection. |
|
AccessorDef(java.lang.String id, StructureDefinition parent, java.lang.String type, java.lang.String elementType)Creates a new accessor definition as a collection of a scalar type. |
|
AccessorDef(java.lang.String id, StructureDefinition parent, StructureDefinition struct, boolean isCollection)Creates a new accessor definition as a complex type. |
|
AccessorDef(java.lang.String id, StructureDefinition parent, StructureDefinition struct, boolean isCollection, boolean isScalarCollection)Creates a new accessor definition as a complex type. |
|
| Method Summary | |
AccessorDef |
clone(StructureDef parentStruct, java.lang.String id)Clones the accessor with a new id and a new parent. |
StructureDefinition |
getCollectionStructure()Retrieves the metadata of the collection itself. |
int |
getDefinitionType()Retrieves the type of this definition. |
java.lang.String |
getFullName()Returns the bind path for this accessor. |
NamedDefinition |
getParentAccessor()Retrieves the AccessorDefinition of the parent accessor. |
StructureDefinition |
getStructure()Retrieves the metadata of the elements that the accessor collection contains. |
boolean |
isCollection()Since an accessor can return a structured object (or a collection). |
boolean |
isScalarCollection()Returns true if the accessor returns a collection of scalars. |
void |
setCollectionStructure(StructureDefinition def)Set the structure definition for the collection if the return is a collection. |
void |
setParentAccessor(AccessorDefinition parentAccessor) |
void |
setParentAccessor(MethodReturnDefinition parentAccessor) |
void |
setStructure(StructureDefinition struct) |
| Methods inherited from class oracle.adf.model.adapter.dataformat.AttributeDef |
addProperties, addProperty, getBindPath, getName, getProperties, getProperty, setBindPath, setName |
| Methods inherited from class oracle.binding.metaimpl.BaseAttributeDefinition |
getSourceTypeString, isKey, isReadOnly, setReadOnly, setSourceTypeString |
| Methods inherited from class oracle.binding.metaimpl.BaseValueObjectDefinition |
getDataControlDefinition, getDefinitionParent, getJavaTypeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.binding.meta.AttributeDefinition |
getSourceTypeString, isKey, isReadOnly |
| Methods inherited from interface oracle.binding.meta.VariableDefinition |
getDataControlDefinition, getJavaTypeString |
| Methods inherited from interface oracle.binding.meta.NamedDefinition |
getDefinitionParent, getName, getProperties, getProperty |
| Constructor Detail |
public AccessorDef(java.lang.String id,
StructureDefinition parent,
java.lang.String type)
id - unique id for the definition.parent - parent structure definition that this accessor is a part of.type - the data type defined as a java type available for the system.
public AccessorDef(java.lang.String id,
StructureDefinition parent,
java.lang.String type,
java.lang.String elementType)
id - unique id for the definitionparent - parent structure definition that this accessor is a part of.type - the data type defined as a java type available for the system.elementType - the java type of each element in the collection.
public AccessorDef(java.lang.String id,
StructureDefinition parent,
StructureDefinition struct,
boolean isCollection)
Accessors can be used to define the complex structure for which a java type may not be defined. For accessors that are collection of scalar types, use the constructor with the additional isScalarCollection parameter.
id - unique id for the definition.parent - parent structure definition that this accessor is a part of.struct - the complex structer that describes this accessor.isCollection - indicates if the accessor is a collection.
public AccessorDef(java.lang.String id,
StructureDefinition parent,
StructureDefinition struct,
boolean isCollection,
boolean isScalarCollection)
Accessors can be used to define the complex structure for which a java type may not be defined.
id - unique id for the definition.parent - parent structure definition that this accessor is a part of.struct - the complex structer that describes this accessor.isCollection - indicates if the accessor is a collection.isScalarCollection - indicates if the accessor is a collection of scalars.
public AccessorDef(java.lang.String id,
StructureDefinition parent,
boolean isCollection)
Accessors can be used to define the complex structure for which a java type may not be defined.
id - unique id for the definition.parent - parent structure definition that this accessor is a part of.isCollection - indicates if the accessor is a collection.| Method Detail |
public java.lang.String getFullName()
getFullName in interface NamedDefinitiongetFullName in class AttributeDefString value. If the bind path is set, it returns <bind_path>.<this_name>. Otherwise it returns <parent_path>.<this_name>.public boolean isCollection()
AccessorDefinitionisCollection in interface AccessorDefinitionpublic boolean isScalarCollection()
AccessorDefinitionisScalarCollection in interface AccessorDefinitionpublic StructureDefinition getStructure()
AccessorDefinitiongetStructure in interface AccessorDefinitionpublic StructureDefinition getCollectionStructure()
AccessorDefinitiongetCollectionStructure in interface AccessorDefinitionpublic NamedDefinition getParentAccessor()
AccessorDefinitiongetParentAccessor in interface AccessorDefinitionpublic int getDefinitionType()
DefinitiongetDefinitionType in interface DefinitiongetDefinitionType in class AttributeDefpublic void setCollectionStructure(StructureDefinition def)
public void setStructure(StructureDefinition struct)
public void setParentAccessor(AccessorDefinition parentAccessor)
public void setParentAccessor(MethodReturnDefinition parentAccessor)
public AccessorDef clone(StructureDef parentStruct,
java.lang.String id)
parentStruct - the parent structure definition of the cloned accessor.id - id of the new accessor.AccessorDef value.
|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||