|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.4.0) E27204-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericType
Generic representation of a data control's data provider object. It exposes meta information about the providers attributes and accessors, as well as the ability to get and set their values.
This interface abstracts the raw data provider object from the nature of its type of data control; the raw provider can be a deserialized representation of an object returned by a SOAP or REST web service call, or it can be an actual java class instance.
This interface is used primarily by the internals of the embedded java data control framework, however it can also be used when invoking data control methods directly from application java bean code.
GenericTypeBeanSerializationHelper
Method Summary | |
---|---|
GenericType |
copy() Used to clone an object. |
void |
copy(GenericType gt, boolean shallow) Used to clone an object |
java.lang.Object |
getAttribute(int i) Return the i'th attribute NOTE: Order of defines does matter, this method will always return the i'th attribute that was defined. |
java.lang.Object |
getAttribute(int i, java.lang.String format) Return the i'th attribute NOTE: Order of defines does matter, this method will always return the i'th attribute that was defined. |
java.lang.Object |
getAttribute(java.lang.String name) Return the attribute value for the given name attribute. |
java.lang.Object |
getAttribute(java.lang.String name, int index) Return the attribute value for the namespace/name attribute |
java.lang.Object |
getAttribute(java.lang.String namespace, java.lang.String name) Return the attribute value for the namespace/name attribute |
int |
getAttributeCount() Return the number of attributes defined for this generic type |
int |
getAttributeCount(java.lang.String name) Return the number of attributes with the given name. |
oracle.adfmf.util.AttributeInfo |
getAttributeInfo(int i) Return the attribute information for the i'th attribute |
oracle.adfmf.util.AttributeInfo |
getAttributeInfo(java.lang.String name) Return the attribute information for the name attribute |
int |
getAttributeInfoCount() Return the number of attribute Infos defined for this generic type |
java.lang.Class |
getAttributeType(java.lang.String name) Return the attribute type for the name attribute |
java.lang.Object |
getDataProvider() Returns the raw data provider instance that this GenericType instance abstracts. |
java.lang.String |
getName() Returns the namespace of the type of this provider, as it is defined in data control metadata. |
java.lang.String |
getNamespace() Returns the name of this provider, as it is defined in data control metadata. |
GenericType |
getParent() Returns the GenericType object in the data provider hierarchy that is the owner of this instance |
java.lang.String |
getType() Returns the name of the type of this provider, as it is defined in data control metadata. |
java.lang.Object |
insertChild(java.lang.String accessorName, int index, java.lang.Object child) Insert a child into the current generic type. |
boolean |
isComplexType() Return true if the attribute is a complex type |
boolean |
isDeferred() Returns whether or not this instance is to be lazy initialized, that is, it is a placeholder in the provider hierarchy which may or may not be updated later. |
boolean |
isModified() Return whether or not the object has been modified. |
boolean |
isUpdateable(java.lang.String name) Returns whether or not the named attribute is updateable |
java.lang.Object |
removeChild(java.lang.String accessorName, int index) Remove a given child from the current generic type |
void |
restoreDefaults() Restore the default values for this type. |
void |
setAttribute(java.lang.String name, java.lang.Object value) Set the value of the given attribute |
void |
setAttributeModified(java.lang.String name) Set the modified flag for the specified attribute. |
void |
setParent(GenericType parent) Set the value of the given attribute NOTE: Order of defines does matter, so setting the i'th attribute will alway set the i'th attribute that was defined. |
Method Detail |
---|
int getAttributeCount()
int getAttributeInfoCount()
java.lang.Object getAttribute(int i)
i
- the attribute index in questionjava.lang.Object getAttribute(int i, java.lang.String format)
i
- the attribute index in questionformat
- Optional String to specify additional formatting on the attribute. Note that this is not intended to not recurse into children if the attribute is a GenericType.java.lang.Object getAttribute(java.lang.String name)
name
- of the attributegetAttributeType(java.lang.String)
java.lang.Object getAttribute(java.lang.String namespace, java.lang.String name)
namespace
- of the attributename
- of the attributegetAttribute(java.lang.String)
java.lang.Object getAttribute(java.lang.String name, int index)
name
- of the attributegetAttribute(java.lang.String)
int getAttributeCount(java.lang.String name)
oracle.adfmf.util.AttributeInfo getAttributeInfo(java.lang.String name)
name
- of the attributeoracle.adfmf.util.AttributeInfo getAttributeInfo(int i)
i
- for the i'th attributejava.lang.Class getAttributeType(java.lang.String name)
name
- of the attributeboolean isUpdateable(java.lang.String name)
name
- of the attributeboolean isDeferred()
boolean isModified()
void setAttributeModified(java.lang.String name)
name
-void restoreDefaults()
java.lang.String getNamespace()
java.lang.String getName()
java.lang.String getType()
GenericType getParent()
java.lang.Object getDataProvider()
boolean isComplexType()
void copy(GenericType gt, boolean shallow)
gt
- to copyshallow
- to denote if a shallow or deep copy should be doneGenericType copy()
void setAttribute(java.lang.String name, java.lang.Object value)
name
- of the attributevalue
- of the attributevoid setParent(GenericType parent)
i
- attribute indexvalue
- of the attributejava.lang.Object insertChild(java.lang.String accessorName, int index, java.lang.Object child)
accessorName
- for the childindex
- to specify the locationchild
- the child to be insertedjava.lang.Object removeChild(java.lang.String accessorName, int index)
accessorName
- of the childindex
- location
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.4.0) E27204-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |