|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adfnmc.util.GenericType
public class GenericType
GenericType provides a generic implementation for any "bean" like object. It is ideal for holding hierarchal data that is read in dynamically or described via metadata.
Field Summary | |
---|---|
protected Vector |
attribute
|
protected Vector |
attributeInfo
|
protected boolean |
complex
|
static int |
GENERIC_TYPE_DEBUG
|
protected java.lang.String |
name
|
protected java.lang.String |
namespace
|
protected GenericType |
parent
|
Constructor Summary | |
---|---|
GenericType()
Default constructor |
|
GenericType(java.lang.String namespace,
java.lang.String name)
Create a new generic type for the namespace/name type. |
Method Summary | |
---|---|
void |
copy(GenericType gt,
boolean shallow)
|
void |
defineAttribute(GenericType value)
Define the namespace/name attribute (of type klass) with a specified value. |
void |
defineAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Class klass)
Define the given namespace/name attribute of type klass. |
void |
defineAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Class klass,
java.lang.Object value)
Define the namespace/name attribute (of type klass) with a specified value. |
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(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 |
protected List |
getAttributeCollection(java.lang.String name)
|
int |
getAttributeCount()
|
int |
getAttributeCount(java.lang.String name)
|
int |
getAttributeCount(java.lang.String namespace,
java.lang.String name)
|
AttributeInfo |
getAttributeInfo(int i)
return the attribute information for the i'th attribute |
AttributeInfo |
getAttributeInfo(java.lang.String name)
return the attribute information for the name attribute |
AttributeInfo |
getAttributeInfo(java.lang.String name,
int index)
return the attribute information for the namespace/name attribute |
AttributeInfo |
getAttributeInfo(java.lang.String namespace,
java.lang.String name)
return the attribute information for the name attribute |
protected List |
getAttributeInfoCollection(java.lang.String name)
|
java.lang.Class |
getAttributeType(java.lang.String name)
return the attribute type for the name attribute |
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
GenericType |
getParent()
|
boolean |
isComplexType()
|
protected void |
log(Level level,
ResourceBundle bundle,
java.lang.String key,
java.lang.Object[] params)
|
protected void |
log(Level level,
java.lang.String msg)
|
void |
setAttribute(int i,
java.lang.Object value)
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. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the value of the given attribute |
void |
setAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Object value)
Set the value of the given attribute |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GENERIC_TYPE_DEBUG
protected boolean complex
protected java.lang.String namespace
protected java.lang.String name
protected Vector attribute
protected Vector attributeInfo
protected GenericType parent
Constructor Detail |
---|
public GenericType()
public GenericType(java.lang.String namespace, java.lang.String name)
namespace
- name
- Method Detail |
---|
public void defineAttribute(java.lang.String namespace, java.lang.String name, java.lang.Class klass)
namespace
- attribute namespacename
- attribute nameklass
- attribute typepublic void defineAttribute(java.lang.String namespace, java.lang.String name, java.lang.Class klass, java.lang.Object value)
namespace
- attribute namespacename
- attribute nameklass
- attribute typevalue
- attribute valuepublic void defineAttribute(GenericType value)
value
- attribute valuepublic int getAttributeCount()
public java.lang.Object getAttribute(int i)
i
- the attribute index in question
public java.lang.Object getAttribute(java.lang.String name)
name
- of the attribute
public java.lang.Object getAttribute(java.lang.String namespace, java.lang.String name)
namespace
- of the attributename
- of the attribute
public java.lang.Object getAttribute(java.lang.String name, int index)
name
- of the attribute
public int getAttributeCount(java.lang.String namespace, java.lang.String name)
public int getAttributeCount(java.lang.String name)
public AttributeInfo getAttributeInfo(java.lang.String name)
name
- of the attribute
public AttributeInfo getAttributeInfo(java.lang.String namespace, java.lang.String name)
namespace
- of the attributename
- of the attribute
public AttributeInfo getAttributeInfo(int i)
i
- for the i'th attribute
public AttributeInfo getAttributeInfo(java.lang.String name, int index)
name
- of the attribute
public java.lang.Class getAttributeType(java.lang.String name)
name
- of the attribute
public java.lang.String getNamespace()
public java.lang.String getName()
public GenericType getParent()
public boolean isComplexType()
public void copy(GenericType gt, boolean shallow)
public void setAttribute(java.lang.String name, java.lang.Object value)
name
- of the attributevalue
- of the attributepublic void setAttribute(java.lang.String namespace, java.lang.String name, java.lang.Object value)
namespace
- of the attributename
- of the attributevalue
- of the attributepublic void setAttribute(int i, java.lang.Object value)
i
- attribute indexvalue
- of the attributepublic java.lang.String toString()
toString
in class java.lang.Object
protected List getAttributeCollection(java.lang.String name)
protected List getAttributeInfoCollection(java.lang.String name)
protected void log(Level level, java.lang.String msg)
protected void log(Level level, ResourceBundle bundle, java.lang.String key, java.lang.Object[] params)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |