|
||||||||||
| 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 | |
|---|---|
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(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. |
| 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
| Constructor Detail |
|---|
protected NestingElementBase(int type)
type - element type code| Method Detail |
|---|
public 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)
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 | |||||||||