public abstract class NestingElementBase extends ElementBase
Modifier and Type | Field and Description |
---|---|
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
|
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(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.
|
getComment, name, setComment, toString, type, validateAttributes
public static final StringArray s_allowedAttributes
private NestingAttributes m_nestingAttrs
private DefinitionContext m_defContext
private java.util.ArrayList m_children
protected NestingElementBase(int type)
type
- element type codepublic 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 ElementBase
vctx
- validation contextpublic void validate(ValidationContext vctx)
ElementBase
ElementBase.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 ElementBase
vctx
- validation context