public class StructureElement 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 |
|---|
StructureElement()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
classifyComponents(ValidationContext vctx)
Classify child components as contributing attributes, content, or both.
|
TemplateElementBase |
getEffectiveMapping()
Get actual type mapping.
|
String |
getMapAsName()
Get name of mapping type.
|
org.jibx.runtime.QName |
getMapAsQName()
Get qualified name of mapping type.
|
String |
getName()
Get name.
|
IClass |
getType()
Get value type information.
|
String |
getUri()
Get specified namespace URI.
|
boolean |
hasAttribute()
Check if component defines one or more attribute values of the
containing element.
|
boolean |
hasContent()
Check if component defines one or more elements or text values as
children of the containing element.
|
boolean |
hasDirectName()
Check if this structure defines a name directly.
|
boolean |
hasName()
Check if component has a name.
|
void |
setMapAsName(String name)
Set name of mapping type.
|
void |
setMapAsQName(org.jibx.runtime.QName name)
Set qualified name of mapping type.
|
void |
validate(ValidationContext vctx)
Validate element information.
|
getDeclaredType, getField, getFieldName, getFlag, getGet, getGetName, getGetType, getNamespace, getObjectType, getPrefix, getSet, getSetName, getSetType, getTest, getTestName, getUsage, getUsageName, hasObject, hasProperty, isFlagOnly, isImplicit, isOptional, prevalidate, setDeclaredType, setFieldName, setFlagName, setGetName, setName, setPrefix, setSetName, setTestName, setUri, setUsage, setUsageNamecheckCompatibleChildren, getAttributeComponents, getChildObjectType, 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 getMapAsName()
null if none)public void setMapAsName(String name)
name - mapping type name (or null if none)public org.jibx.runtime.QName getMapAsQName()
null if none)public void setMapAsQName(org.jibx.runtime.QName name)
name - mapping qualified type name (or null if none)public TemplateElementBase getEffectiveMapping()
null if none)public boolean hasDirectName()
true if name defined, false if notpublic boolean hasName()
IComponenthasName in interface IComponenthasName in class StructureElementBasetrue if component has a name, false if
notpublic String getName()
StructureElementBasegetName in interface IComponentgetName in class StructureElementBasepublic String getUri()
StructureElementBasegetUri in interface IComponentgetUri in class StructureElementBasenull if not set)public boolean hasAttribute()
IComponenthasAttribute in interface IComponenthasAttribute in class StructureElementBasetrue if one or more attribute values defined for
containing element, false if notpublic boolean hasContent()
IComponenthasContent in interface IComponenthasContent in class StructureElementBasetrue if one or more content values defined
for containing element, false if notpublic IClass getType()
IComponentgetType in interface IComponentgetType in class StructureElementBaseprotected void classifyComponents(ValidationContext vctx)
classifyComponents in class ContainerElementBasevctx - public 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.