|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.adapter.dataformat.StructureDef
public class StructureDef
Defines the structure definition of a data control.
Field Summary | |
---|---|
static int |
TYPE_ACCESSOR
|
Fields inherited from interface oracle.binding.meta.Definition |
---|
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 | |
---|---|
StructureDef(java.lang.String fullName)
Creates a structure definition with a name. |
|
StructureDef(java.lang.String name,
Definition parent)
Creates a structure definition with a name and a parent |
Method Summary | |
---|---|
void |
addAccessor(AccessorDefinition accr)
Adds an accessor to the structure definition. |
void |
addAttribute(AttributeDefinition attr)
Adds an attribute to the structure definition. |
void |
addConstructorMethod(OperationDefinition method)
Adds a method to the structure definition. |
void |
addMethod(OperationDefinition method)
Adds a method to the structure definition. |
void |
addProperties(java.util.Map props)
Adds custom properties to this object. |
void |
addProperty(java.lang.String propName,
java.lang.Object value)
Adds a custom property to this object. |
void |
clearMetadata()
In some cases we need to re-use the same struturedef but refresh it form another source. |
DefinitionContainer |
getAccessorDefinitions()
Returns the metadata about the accessors in this structure. |
DefinitionContainer |
getAttributeDefinitions()
Returns the metadata about the attributes in this structure. |
DefinitionContainer |
getConstructorOperationDefinitions()
Returns the metadata about the constructor operations in this structure. |
DefinitionContainer |
getCriteriaDefinitions()
Returns the metadata about the criteria in this structure. |
DataControlDefinition |
getDataControlDefinition()
Retrieves the DataControlDefinition that this Structure belongs to. |
Definition |
getDefinitionParent()
Returns the parent of this metadata definition, which is the Definition that contains this Definition. |
int |
getDefinitionType()
Retrieves the type of this definition. |
java.lang.String |
getFullName()
Returns the full name of the definition. |
java.lang.String |
getName()
Returns the name of this Definition. |
DefinitionContainer |
getOperationDefinitions()
Returns the metadata about the operations in this structure. |
java.util.Hashtable |
getProperties()
Returns a Hashtable containing all the custom properties set
against this object. |
java.lang.Object |
getProperty(java.lang.String propName)
Returns a custom property value given its name. |
void |
setFullName(java.lang.String fullName)
Sets the full name. |
void |
setPackageName(java.lang.String pkg)
Sets the pacakge name for this definition. |
void |
setParent(Definition parent)
Sets a parent to this definition. |
void |
setParentType(int type)
Sets the parent type of this structure definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_ACCESSOR
Constructor Detail |
---|
public StructureDef(java.lang.String fullName)
public StructureDef(java.lang.String name, Definition parent)
Method Detail |
---|
public DefinitionContainer getAttributeDefinitions()
StructureDefinition
getAttributeDefinitions
in interface StructureDefinition
EmptyDefinitionContainer
,
AttributeDefinition
public DefinitionContainer getOperationDefinitions()
StructureDefinition
getOperationDefinitions
in interface StructureDefinition
EmptyDefinitionContainer
,
OperationDefinition
public DefinitionContainer getAccessorDefinitions()
StructureDefinition
getAccessorDefinitions
in interface StructureDefinition
EmptyDefinitionContainer
,
AccessorDefinition
public DefinitionContainer getConstructorOperationDefinitions()
StructureDefinition
getConstructorOperationDefinitions
in interface StructureDefinition
EmptyDefinitionContainer
,
OperationDefinition
public DefinitionContainer getCriteriaDefinitions()
StructureDefinition
getCriteriaDefinitions
in interface StructureDefinition
EmptyDefinitionContainer
,
OperationDefinition
public DataControlDefinition getDataControlDefinition()
StructureDefinition
getDataControlDefinition
in interface StructureDefinition
public java.lang.String getFullName()
getFullName
in interface NamedDefinition
public java.lang.String getName()
NamedDefinition
getName
in interface NamedDefinition
public Definition getDefinitionParent()
NamedDefinition
getDefinitionParent
in interface NamedDefinition
public int getDefinitionType()
Definition
getDefinitionType
in interface Definition
public void setParentType(int type)
public void setFullName(java.lang.String fullName)
fullName
- the full name of the structure.public void setPackageName(java.lang.String pkg)
public void addAttribute(AttributeDefinition attr)
attr
- The attribute as a part of the structure.public void addAccessor(AccessorDefinition accr)
accr
- The attribute as a part of the structure.public void addMethod(OperationDefinition method)
method
- The method as a part of the structure.public void addConstructorMethod(OperationDefinition method)
method
- The method as a part of the structure.public void setParent(Definition parent)
public void addProperty(java.lang.String propName, java.lang.Object value)
propName
- Name of the custom propertyvalue
- Value of the custom propertypublic java.lang.Object getProperty(java.lang.String propName)
getProperty
in interface NamedDefinition
propName
- Name of the custom property whose value is to be
retrieved.
public void addProperties(java.util.Map props)
props
- properties have to be added.public java.util.Hashtable getProperties()
Hashtable
containing all the custom properties set
against this object.
getProperties
in interface NamedDefinition
Hashtable
consisting of all the custom properties.public void clearMetadata()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |