|
||||||||||
| 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.StructureElement
public class StructureElement
Model component for structure 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 | |
|---|---|
StructureElement()
Default constructor. |
|
| Method Summary | |
|---|---|
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. |
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(QName name)
Set qualified name of mapping type. |
void |
validate(ValidationContext vctx)
Validate element information. |
| Methods inherited from class org.jibx.binding.model.StructureElementBase |
|---|
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, 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 StructureElement()
| Method Detail |
|---|
public String getMapAsName()
null if none)public void setMapAsName(String name)
name - mapping type name (or null if none)public QName getMapAsQName()
null if none)public void setMapAsQName(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()
IComponent
hasName in interface IComponenthasName in class StructureElementBasetrue if component has a name, false if
notpublic String getName()
StructureElementBase
getName in interface IComponentgetName in class StructureElementBasepublic String getUri()
StructureElementBase
getUri in interface IComponentgetUri in class StructureElementBasenull if not set)public boolean hasAttribute()
IComponent
hasAttribute in interface IComponenthasAttribute in class StructureElementBasetrue if one or more attribute values defined for
containing element, false if notpublic boolean hasContent()
IComponent
hasContent in interface IComponenthasContent in class StructureElementBasetrue if one or more content values defined
for containing element, false if notpublic IClass getType()
IComponent
getType 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 context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||