public abstract class NestingElementBase extends ElementBase
| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
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| Modifier | Constructor and Description |
|---|---|
protected |
NestingElementBase(int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Object child)
Add child element.
|
Iterator |
childIterator()
Get iterator for child elements.
|
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.
|
String |
getStyleName()
Get style name set on this nesting element.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate element information.
|
void |
setStyleName(String name)
Set style name on this nesting element.
|
void |
validate(ValidationContext vctx)
Validate element information.
|
getComment, name, setComment, toString, type, validateAttributespublic static final StringArray s_allowedAttributes
protected NestingElementBase(int type)
type - element type codepublic final void addChild(Object child)
child - element to be added as child of this elementpublic final ArrayList children()
null)public final Iterator childIterator()
public final DefinitionContext getDefinitions()
null if no definition context
for this elementpublic String getStyleName()
null if undefined at this level)public int getStyle()
-1 if undefined at this level)public void setStyleName(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)
ElementBaseprevalidate 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 contextCopyright © 2005–2016 jibx.org. All rights reserved.