UIX 2.2.16

oracle.cabo.ui.xml.parse
Interface UINodeType

All Known Implementing Classes:
BaseUINodeType

public interface UINodeType

Interface that exposes common metadata for a UINode type.


Field Summary
static int CHILD_TYPE_ATTRIBUTE_MAP
          Child type constant for AttributeMap attributes.
static int CHILD_TYPE_BOUND_VALUE
          Child type constant for bound value attributes.
static int CHILD_TYPE_DATA_PROVIDER
          Child type constant for UIX Components DataProvider attributes.
static int CHILD_TYPE_ENVELOPE_ATTRIBUTE
          Child type constant for complex attributes that use an envelope element.
static int CHILD_TYPE_INDEXED_CHILD_IN_PLACE
          Child type constant for use for an indexed child (without an envelope).
static int CHILD_TYPE_INDEXED_CHILDREN
          Child type constant for the parent envelope of indexed children.
static int CHILD_TYPE_INLINE_ATTRIBUTE
          Child type constant for complex attributes that don't use an envelope element.
static int CHILD_TYPE_NAMED_CHILD
          Child type constant for the parent envelope of a named child.
static int CHILD_TYPE_NODE_LIST
          Child type constant for UIX Components UINodeList attributes.
static int CHILD_TYPE_NODE_MAP
          Child type constant for named children ContextMap attributes.
static int CHILD_TYPE_UNKNOWN
          Child type constant for an unknown child.
 
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.
 BaseMutableUINode createUINode(java.lang.String namespaceURI, java.lang.String localName)
          Creates the BaseMutableUINode to use for this class.
 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.
 java.lang.Class getModel()
          Gets the model
 boolean stripWhitespace()
          Returns whether this type of node wants whitespace; if true, whitespace will be dropped.
 

Field Detail

CHILD_TYPE_UNKNOWN

public static final int CHILD_TYPE_UNKNOWN
Child type constant for an unknown child.

CHILD_TYPE_INDEXED_CHILDREN

public static final int CHILD_TYPE_INDEXED_CHILDREN
Child type constant for the parent envelope of indexed children.

CHILD_TYPE_INDEXED_CHILD_IN_PLACE

public static final int CHILD_TYPE_INDEXED_CHILD_IN_PLACE
Child type constant for use for an indexed child (without an envelope).

CHILD_TYPE_NAMED_CHILD

public static final int CHILD_TYPE_NAMED_CHILD
Child type constant for the parent envelope of a named child.

CHILD_TYPE_INLINE_ATTRIBUTE

public static final int CHILD_TYPE_INLINE_ATTRIBUTE
Child type constant for complex attributes that don't use an envelope element.

CHILD_TYPE_ENVELOPE_ATTRIBUTE

public static final int CHILD_TYPE_ENVELOPE_ATTRIBUTE
Child type constant for complex attributes that use an envelope element.

CHILD_TYPE_BOUND_VALUE

public static final int CHILD_TYPE_BOUND_VALUE
Child type constant for bound value attributes.

CHILD_TYPE_DATA_PROVIDER

public static final int CHILD_TYPE_DATA_PROVIDER
Child type constant for UIX Components DataProvider attributes.

CHILD_TYPE_NODE_LIST

public static final int CHILD_TYPE_NODE_LIST
Child type constant for UIX Components UINodeList attributes.

CHILD_TYPE_NODE_MAP

public static final int CHILD_TYPE_NODE_MAP
Child type constant for named children ContextMap attributes.

CHILD_TYPE_ATTRIBUTE_MAP

public static final int CHILD_TYPE_ATTRIBUTE_MAP
Child type constant for AttributeMap attributes.
Method Detail

createUINode

public BaseMutableUINode createUINode(java.lang.String namespaceURI,
                                      java.lang.String localName)
                               throws java.lang.InstantiationException,
                                      java.lang.IllegalAccessException
Creates the BaseMutableUINode to use for this class.

getCustomNodeParser

public 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. If null, UINodeParser will be used.

getAttributeClass

public java.lang.Class getAttributeClass(ParseContext context,
                                         AttributeKey key)
Returns the Java class expected for a given AttributeKey.
Parameters:
context - a ParseContext
key - the attribute key

getModel

public java.lang.Class getModel()
Gets the model
Returns:
null, if no model

convertAttributeValue

public 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.
Parameters:
context - a ParseContext
key - the attribute key
name - the string value of the attribute

convertBoundValue

public 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.
Parameters:
context - a ParseContext
key - the attribute key
name - the BoundValue to be used for the attribute

stripWhitespace

public boolean stripWhitespace()
Returns whether this type of node wants whitespace; if true, whitespace will be dropped.

getChildType

public int getChildType(java.lang.String namespaceURI,
                        java.lang.String localName)
Returns the CHILD_TYPE constant for an XML element.
Parameters:
namespaceURI - the namespace of the element
namespaceURI - the local name of the element

UIX 2.2.16