|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.binding.model.ElementBase
org.jibx.binding.model.NestingElementBase
public abstract class NestingElementBase
Model component for elements that can contain other component elements. TODO: The list of child elements here conflicts with that in BindingElement; should change the type hierarchy to better reflect usage
| Field Summary | |
|---|---|
private java.util.ArrayList |
m_children
List of child elements. |
private DefinitionContext |
m_defContext
Definition context for this nesting (created by validation). |
private NestingAttributes |
m_nestingAttrs
Value style attribute information. |
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
| Fields inherited from class org.jibx.binding.model.ElementBase |
|---|
BINDING_ELEMENT, COLLECTION_ELEMENT, ELEMENT_NAMES, FORMAT_ELEMENT, INCLUDE_ELEMENT, INPUT_ELEMENT, MAPPING_ELEMENT, NAMESPACE_ELEMENT, OUTPUT_ELEMENT, SPLIT_ELEMENT, STRUCTURE_ELEMENT, TEMPLATE_ELEMENT, VALUE_ELEMENT |
| Constructor Summary | |
|---|---|
protected |
NestingElementBase(int type)
Constructor. |
| Method Summary | |
|---|---|
void |
addChild(java.lang.Object child)
Add child element. |
java.util.Iterator |
childIterator()
Get iterator for child elements. |
java.util.ArrayList |
children()
Get list of child elements. |
int |
getDefaultStyle()
Get default style value for child components. |
DefinitionContext |
getDefinitions()
Get definition context. |
int |
getStyle()
Get style value set on this nesting element. |
java.lang.String |
getStyleName()
Get style name set on this nesting element. |
void |
prevalidate(ValidationContext vctx)
Prevalidate element information. |
(package private) void |
setDefinitions(DefinitionContext ctx)
Set definition context. |
void |
setStyleName(java.lang.String name)
Set style name on this nesting element. |
void |
validate(ValidationContext vctx)
Validate element information. |
| Methods inherited from class org.jibx.binding.model.ElementBase |
|---|
getComment, name, setComment, toString, type, validateAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StringArray s_allowedAttributes
private NestingAttributes m_nestingAttrs
private DefinitionContext m_defContext
private java.util.ArrayList m_children
| Constructor Detail |
|---|
protected NestingElementBase(int type)
type - element type code| Method Detail |
|---|
public final void addChild(java.lang.Object child)
child - element to be added as child of this elementpublic final java.util.ArrayList children()
null)public final java.util.Iterator childIterator()
public final DefinitionContext getDefinitions()
null if no definition context
for this elementvoid setDefinitions(DefinitionContext ctx)
ctx - definition context to be setpublic java.lang.String getStyleName()
null if undefined at this level)public int getStyle()
-1 if undefined at this level)public void setStyleName(java.lang.String name)
name - style name (null to undefine style at this
level)public int getDefaultStyle()
-1 if not
defined at this level)public void prevalidate(ValidationContext vctx)
ElementBase
prevalidate in class ElementBasevctx - validation contextpublic void validate(ValidationContext vctx)
ElementBaseElementBase.prevalidate(org.jibx.binding.model.ValidationContext) method will always be called for every
element in the binding definition before this method is called for any
element. This empty base class implementation should be overridden by
each subclass that requires validation handling.
validate in class ElementBasevctx - validation context
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||