|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final int CHILD_TYPE_UNKNOWN
public static final int CHILD_TYPE_INDEXED_CHILDREN
public static final int CHILD_TYPE_INDEXED_CHILD_IN_PLACE
public static final int CHILD_TYPE_NAMED_CHILD
public static final int CHILD_TYPE_INLINE_ATTRIBUTE
public static final int CHILD_TYPE_ENVELOPE_ATTRIBUTE
public static final int CHILD_TYPE_BOUND_VALUE
public static final int CHILD_TYPE_DATA_PROVIDER
public static final int CHILD_TYPE_NODE_LIST
public static final int CHILD_TYPE_NODE_MAP
public static final int CHILD_TYPE_ATTRIBUTE_MAP
Method Detail |
public BaseMutableUINode createUINode(java.lang.String namespaceURI, java.lang.String localName) throws java.lang.InstantiationException, java.lang.IllegalAccessException
public NodeParser getCustomNodeParser(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
public java.lang.Class getAttributeClass(ParseContext context, AttributeKey key)
context
- a ParseContextkey
- the attribute keypublic java.lang.Class getModel()
public java.lang.Object convertAttributeValue(ParseContext context, AttributeKey key, java.lang.String stringValue)
context
- a ParseContextkey
- the attribute keyname
- the string value of the attributepublic BoundValue convertBoundValue(ParseContext context, AttributeKey key, BoundValue value)
context
- a ParseContextkey
- the attribute keyname
- the BoundValue to be used for the attributepublic boolean stripWhitespace()
public int getChildType(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- the namespace of the elementnamespaceURI
- the local name of the element
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |