|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
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
public class 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_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, 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,
java.lang.String type,
java.lang.String elementName,
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 the variable. |
java.lang.String |
getFullName()
Returns the bind path for this accessor. |
AccessorDefinition |
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 |
setAsCollection()
Sets this accessor as a collection type. |
void |
setCollectionStructure(StructureDefinition def)
Set the structure definition for the collection if the return is a collection. |
void |
setParentAccessor(AccessorDefinition parentAccessor)
|
void |
setStructure(StructureDefinition struct)
|
Methods inherited from class oracle.adf.model.adapter.dataformat.AttributeDef |
---|
addProperties, addProperty, getBindPath, getDefinitionParent, 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, getJavaTypeString, setProperty |
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, java.lang.String type, java.lang.String elementName, 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.elementName
- the name of element in the collection.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 NamedDefinition
getFullName
in class AttributeDef
String
value. If the bind path
is set, it returns public boolean isCollection()
AccessorDefinition
isCollection
in interface AccessorDefinition
public boolean isScalarCollection()
AccessorDefinition
isScalarCollection
in interface AccessorDefinition
public StructureDefinition getStructure()
AccessorDefinition
getStructure
in interface AccessorDefinition
public StructureDefinition getCollectionStructure()
AccessorDefinition
getCollectionStructure
in interface AccessorDefinition
public AccessorDefinition getParentAccessor()
AccessorDefinition
getParentAccessor
in interface AccessorDefinition
public int getDefinitionType()
BaseValueObjectDefinition
getDefinitionType
in interface Definition
getDefinitionType
in class AttributeDef
public void setAsCollection()
public void setCollectionStructure(StructureDefinition def)
public void setStructure(StructureDefinition struct)
public void setParentAccessor(AccessorDefinition 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 Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |