|
UIX 2.2.8 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.xml.parse.BaseUINodeType
Base implementation of UINodeType.
Fields inherited from interface oracle.cabo.ui.xml.parse.UINodeType |
CHILD_TYPE_ATTRIBUTE_MAP, CHILD_TYPE_BOUND_VALUE, CHILD_TYPE_DATA_PROVIDER, CHILD_TYPE_ENVELOPE_ATTRIBUTE, CHILD_TYPE_INDEXED_CHILD_IN_PLACE, CHILD_TYPE_INDEXED_CHILDREN, CHILD_TYPE_INLINE_ATTRIBUTE, CHILD_TYPE_NAMED_CHILD, CHILD_TYPE_NODE_LIST, CHILD_TYPE_NODE_MAP, CHILD_TYPE_UNKNOWN |
Constructor Summary | |
BaseUINodeType(java.lang.String namespaceURI,
java.lang.String[] namedChildren,
java.lang.Object[] attributeTypes)
Creates a root BaseUINodeType. |
|
BaseUINodeType(java.lang.String namespaceURI,
java.lang.String[] namedChildren,
java.lang.Object[] attributeTypes,
java.lang.Class model,
UINodeType superType)
Creates a subclass BaseUINodeType. |
|
BaseUINodeType(java.lang.String namespaceURI,
java.lang.String[] namedChildren,
java.lang.Object[] attributeTypes,
java.lang.Class model,
UINodeType superType,
boolean stripWhitespace)
Creates a subclass BaseUINodeType. |
|
BaseUINodeType(java.lang.String namespaceURI,
java.lang.String[] namedChildren,
java.lang.Object[] attributeTypes,
UINodeType superType)
Creates a subclass BaseUINodeType. |
|
BaseUINodeType(java.lang.String namespaceURI,
java.lang.String[] namedChildren,
java.lang.Object[] attributeTypes,
UINodeType superType,
boolean stripWhitespace)
Creates a subclass BaseUINodeType. |
Method Summary | |
java.lang.Object |
convertAttributeValue(ParseContext context,
AttributeKey key,
java.lang.String stringValue)
Given an attribute key and its string value, returns the Java object for that attribute. |
BoundValue |
convertBoundValue(ParseContext context,
AttributeKey key,
BoundValue value)
Given an attribute key and a BoundValue implementation used to retrieve that attribute, returns a BoundValue that will return Java objects of the correct type. |
static BaseUINodeType |
createDefaultUINodeType(java.lang.String namespace)
Returns a UINodeType containing type information for attributes supported by all UINodes. |
BaseMutableUINode |
createUINode(java.lang.String namespaceURI,
java.lang.String localName)
Creates a BaseMutableUINode. |
java.lang.Class |
getAttributeClass(ParseContext context,
AttributeKey key)
Returns the Java class expected for a given AttributeKey. |
int |
getChildType(java.lang.String namespaceURI,
java.lang.String localName)
Returns the CHILD_TYPE constant for an XML element. |
NodeParser |
getCustomNodeParser(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Returns the custom NodeParser implementation that should be used for this node type. |
static UINodeType |
getDefaultUINodeType()
Returns a UINodeType containing type information for attributes supported by all UINodes. |
java.lang.Class |
getModel()
gets the model class |
java.lang.String |
getNamespaceURI()
Returns the namespace of the UINodeType. |
protected boolean |
isIndexedChildElement(java.lang.String name)
Returns the string element name used for indexed children. |
void |
setUINodeClass(java.lang.Class nodeClass)
Set the Class that will be used to instantiate nodes of this type. |
boolean |
stripWhitespace()
Returns whether this type of node wants whitespace; if true, whitespace will be dropped. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseUINodeType(java.lang.String namespaceURI, java.lang.String[] namedChildren, java.lang.Object[] attributeTypes)
namespaceURI
- the namespace of the nodenamedChildren
- an array of strings that should be considered
named childrenattributeTypes
- an array of attribute types, alternating
between AttributeKey objects and Java class objectspublic BaseUINodeType(java.lang.String namespaceURI, java.lang.String[] namedChildren, java.lang.Object[] attributeTypes, UINodeType superType)
namespaceURI
- the namespace of the nodenamedChildren
- an array of strings that should be considered
named childrenattributeTypes
- an array of attribute types, alternating
between AttributeKey objects and Java class objectssuperType
- the supertype of this typepublic BaseUINodeType(java.lang.String namespaceURI, java.lang.String[] namedChildren, java.lang.Object[] attributeTypes, java.lang.Class model, UINodeType superType)
namespaceURI
- the namespace of the nodenamedChildren
- an array of strings that should be considered
named childrenattributeTypes
- an array of attribute types, alternating
between AttributeKey objects and Java class objectsmodel
- the model class for this UINodesuperType
- the supertype of this typepublic BaseUINodeType(java.lang.String namespaceURI, java.lang.String[] namedChildren, java.lang.Object[] attributeTypes, UINodeType superType, boolean stripWhitespace)
namespaceURI
- the namespace of the nodenamedChildren
- an array of strings that should be considered
named childrenattributeTypes
- an array of attribute types, alternating
with string names and Java class objectssuperType
- the supertype of this typestripWhitespace
- the supertype of this typepublic BaseUINodeType(java.lang.String namespaceURI, java.lang.String[] namedChildren, java.lang.Object[] attributeTypes, java.lang.Class model, UINodeType superType, boolean stripWhitespace)
namespaceURI
- the namespace of the nodenamedChildren
- an array of strings that should be considered
named childrenattributeTypes
- an array of attribute types, alternating
with string names and Java class objectsmodel
- the model class for this UINodesuperType
- the supertype of this typestripWhitespace
- the supertype of this typeMethod Detail |
public static UINodeType getDefaultUINodeType()
public static BaseUINodeType createDefaultUINodeType(java.lang.String namespace)
public void setUINodeClass(java.lang.Class nodeClass)
public BaseMutableUINode createUINode(java.lang.String namespaceURI, java.lang.String localName) throws java.lang.InstantiationException, java.lang.IllegalAccessException
createUINode
in interface UINodeType
public java.lang.String getNamespaceURI()
public NodeParser getCustomNodeParser(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
getCustomNodeParser
in interface UINodeType
public java.lang.Class getAttributeClass(ParseContext context, AttributeKey key)
getAttributeClass
in interface UINodeType
context
- a ParseContextkey
- the attribute keypublic java.lang.Class getModel()
getModel
in interface UINodeType
oracle.cabo.ui.xml.parse.UINodeType
public java.lang.Object convertAttributeValue(ParseContext context, AttributeKey key, java.lang.String stringValue)
convertAttributeValue
in interface UINodeType
context
- a ParseContextkey
- the attribute keyname
- the string value of the attributepublic BoundValue convertBoundValue(ParseContext context, AttributeKey key, BoundValue value)
convertBoundValue
in interface UINodeType
context
- a ParseContextkey
- the attribute keyname
- the BoundValue to be used for the attributepublic int getChildType(java.lang.String namespaceURI, java.lang.String localName)
getChildType
in interface UINodeType
namespaceURI
- the namespace of the elementnamespaceURI
- the local name of the elementpublic boolean stripWhitespace()
stripWhitespace
in interface UINodeType
protected boolean isIndexedChildElement(java.lang.String name)
|
UIX 2.2.8 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |