|
||||||||||
| 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
org.jibx.binding.model.ContainerElementBase
org.jibx.binding.model.StructureElementBase
org.jibx.binding.model.CollectionElement
public class CollectionElement
Model component for collection element of binding definition.
| 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 | |
|---|---|
CollectionElement()
Default constructor. |
|
| Method Summary | |
|---|---|
IClassItem |
getAddMethodItem()
Get add method information. |
String |
getAddMethodName()
Get add method name. |
IClass |
getChildObjectType()
Get class passed to child components. |
IClass |
getItemTypeClass()
Get item type information. |
String |
getItemTypeName()
Get item type name. |
IClassItem |
getIterMethodItem()
Get iterator method information. |
String |
getIterMethodName()
Get iterator method name. |
IClassItem |
getLoadMethodItem()
Get load method information. |
String |
getLoadMethodName()
Get load method name. |
IClassItem |
getSizeMethodItem()
Get size method information. |
String |
getSizeMethodName()
Get size method name. |
IClassItem |
getStoreMethodItem()
Get store method information. |
String |
getStoreMethodName()
Get store method name. |
boolean |
hasAttribute()
Check for attribute definition. |
boolean |
hasContent()
Check for content definition. |
boolean |
hasObject()
Check for object present. |
void |
prevalidate(ValidationContext vctx)
Prevalidate element information. |
void |
setAddMethodName(String name)
Set add method name. |
boolean |
setIdChild(IComponent child)
Set ID property. |
void |
setItemTypeName(String type)
Set item type name. |
void |
setIterMethodName(String name)
Set iterator method name. |
void |
setLoadMethodName(String name)
Set load method name. |
void |
setSizeMethodName(String name)
Set size method name. |
void |
setStoreMethodName(String name)
Set store method name. |
void |
validate(ValidationContext vctx)
Validate element information. |
| Methods inherited from class org.jibx.binding.model.StructureElementBase |
|---|
getDeclaredType, getField, getFieldName, getFlag, getGet, getGetName, getGetType, getName, getNamespace, getObjectType, getPrefix, getSet, getSetName, getSetType, getTest, getTestName, getType, getUri, getUsage, getUsageName, hasName, hasProperty, isFlagOnly, isImplicit, isOptional, setDeclaredType, setFieldName, setFlagName, setGetName, setName, setPrefix, setSetName, setTestName, setUri, setUsage, setUsageName |
| Methods inherited from class org.jibx.binding.model.NestingElementBase |
|---|
addChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setStyleName |
| 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 |
|---|
public CollectionElement()
| Method Detail |
|---|
public String getItemTypeName()
null if none)public void setItemTypeName(String type)
type - item type name (or null if none)public IClass getItemTypeClass()
public String getAddMethodName()
null if none)public void setAddMethodName(String name)
name - add method name (or null if none)public IClassItem getAddMethodItem()
null if none)public String getIterMethodName()
null if none)public void setIterMethodName(String name)
name - iterator method name (or null if none)public IClassItem getIterMethodItem()
null if none)public String getLoadMethodName()
null if none)public void setLoadMethodName(String name)
name - load method name (or null if none)public IClassItem getLoadMethodItem()
null if none)public String getSizeMethodName()
null if none)public void setSizeMethodName(String name)
name - size method name (or null if none)public IClassItem getSizeMethodItem()
null if none)public String getStoreMethodName()
null if none)public void setStoreMethodName(String name)
name - store method name (or null if none)public IClassItem getStoreMethodItem()
null if none)public boolean setIdChild(IComponent child)
child - child defining the ID property
true if successful, false if ID
already definedpublic boolean hasObject()
true for collection.
hasObject in class StructureElementBasetruepublic boolean hasAttribute()
false for collection.
hasAttribute in interface IComponenthasAttribute in class StructureElementBasefalsepublic boolean hasContent()
true for collection.
hasContent in interface IComponenthasContent in class StructureElementBasetruepublic IClass getChildObjectType()
ContainerElementBase
getChildObjectType in class ContainerElementBasepublic void prevalidate(ValidationContext vctx)
ElementBase
prevalidate in class StructureElementBasevctx - 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 StructureElementBasevctx - validation context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||