public class CollectionElement extends StructureElementBase
hasProperty| 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| Constructor and Description |
|---|
CollectionElement()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setUsageNamecheckCompatibleChildren, classifyComponents, getAttributeComponents, getContentComponents, getCreateClass, getCreateType, getFactory, getFactoryName, getId, getLabel, getMarshaller, getMarshallerName, getPostset, getPostsetName, getPreget, getPregetName, getPreset, getPresetName, getUnmarshaller, getUnmarshallerName, getUsing, isAllowRepeats, isChoice, isClassified, isFlexible, isNillable, isOrdered, setAllowRepeats, setChoice, setComponents, setCreateType, setFactoryName, setFlexible, setIdChild, setLabel, setMarshallerName, setNillable, setOrdered, setPostsetName, setPregetName, setPresetName, setUnmarshallerName, setUsing, verifyConstructionaddChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setStyleNamegetComment, name, setComment, toString, type, validateAttributespublic static final StringArray s_allowedAttributes
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 propertytrue 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()
ContainerElementBasegetChildObjectType in class ContainerElementBasepublic void prevalidate(ValidationContext vctx)
ElementBaseprevalidate 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 contextCopyright © 2005–2016 jibx.org. All rights reserved.