public abstract class StructureElementBase extends ContainerElementBase implements IComponent
| Type | Property and Description |
|---|---|
boolean |
has
Check if property is defined.
|
| 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| Modifier | Constructor and Description |
|---|---|
protected |
StructureElementBase(int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDeclaredType()
Get declared type name.
|
IClassItem |
getField()
Get field information.
|
String |
getFieldName()
Get field name.
|
IClassItem |
getFlag()
Get flag method information.
|
IClassItem |
getGet()
Get get method information.
|
String |
getGetName()
Get get method name.
|
IClass |
getGetType()
Get type for value loaded to stack.
|
String |
getName()
Get name.
|
NamespaceElement |
getNamespace()
Get effective namespace information.
|
IClass |
getObjectType()
Get class linked to binding element.
|
String |
getPrefix()
Get specified namespace prefix.
|
IClassItem |
getSet()
Get set method information.
|
String |
getSetName()
Get set method name.
|
IClass |
getSetType()
Get type for value stored from stack.
|
IClassItem |
getTest()
Get test method information.
|
String |
getTestName()
Get test method name.
|
IClass |
getType()
Get value type information.
|
String |
getUri()
Get specified namespace URI.
|
int |
getUsage()
Get usage value.
|
String |
getUsageName()
Get usage name.
|
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 |
hasName()
Check if component has a name.
|
boolean |
hasObject()
Check if this container defines a context object.
|
boolean |
hasProperty()
Check if property is defined.
|
boolean |
isFlagOnly()
Check if property is flag only.
|
boolean |
isImplicit()
Check if this value implicitly uses the containing object.
|
boolean |
isOptional()
Check if component is an optional item.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate element information.
|
void |
setDeclaredType(String type)
Set declared type name.
|
void |
setFieldName(String field)
Set field name.
|
void |
setFlagName(String flag)
Set flag method name.
|
void |
setGetName(String get)
Set get method name.
|
void |
setName(String name)
Set name.
|
void |
setPrefix(String prefix)
Set namespace prefix.
|
void |
setSetName(String set)
Set set method name.
|
void |
setTestName(String test)
Set test method name.
|
void |
setUri(String uri)
Set namespace URI.
|
void |
setUsage(int use)
Set usage value.
|
void |
setUsageName(String name)
Set usage name.
|
void |
validate(ValidationContext vctx)
Validate element information.
|
checkCompatibleChildren, classifyComponents, 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 boolean hasProperty
prevalidate(ValidationContext).public static final StringArray s_allowedAttributes
protected StructureElementBase(int type)
type - element type codepublic String getName()
getName in interface IComponentpublic void setName(String name)
name - text for namepublic String getUri()
getUri in interface IComponentnull if not set)public void setUri(String uri)
uri - namespace URI (null if not set)public String getPrefix()
null if not set)public void setPrefix(String prefix)
prefix - namespace prefix (null if not set)public NamespaceElement getNamespace()
public String getUsageName()
public int getUsage()
prevalidate(ValidationContext).public void setUsageName(String name)
name - usage namepublic void setUsage(int use)
use - valuepublic boolean hasProperty()
prevalidate(ValidationContext).public boolean isFlagOnly()
prevalidate(ValidationContext).true if flag property, false if notpublic String getDeclaredType()
null if none)public void setDeclaredType(String type)
type - name (or null if none)public String getFieldName()
null if none)public IClassItem getField()
prevalidate(ValidationContext).null if none)public void setFieldName(String field)
field - field name (or null if none)public String getTestName()
null if none)public IClassItem getTest()
prevalidate(ValidationContext).null if none)public void setTestName(String test)
test - test method name (or null if none)public IClassItem getFlag()
prevalidate(ValidationContext).null if none)public void setFlagName(String flag)
flag - flag method name (or null if none)public String getGetName()
null if none)public IClassItem getGet()
prevalidate(ValidationContext).null if none)public IClass getGetType()
prevalidate(ValidationContext).null if none)public void setGetName(String get)
get - get method name (or null if none)public String getSetName()
null if none)public IClassItem getSet()
prevalidate(ValidationContext).null if none)public IClass getSetType()
prevalidate(ValidationContext).null if none)public void setSetName(String set)
set - set method name (or null if none)public boolean isImplicit()
prevalidate(ValidationContext).isImplicit in interface IComponenttrue if using the containing object,
false if own valuepublic boolean isOptional()
IComponentisOptional in interface IComponenttrue if optional, false if requiredpublic boolean hasObject()
ContainerElementBasehasObject in class ContainerElementBasetrue if defines context object,
false if notpublic boolean hasAttribute()
IComponenthasAttribute in interface IComponenttrue if one or more attribute values defined for
containing element, false if notpublic boolean hasContent()
IComponenthasContent in interface IComponenttrue if one or more content values defined
for containing element, false if notpublic boolean hasName()
IComponenthasName in interface IComponenttrue if component has a name, false if
notpublic IClass getType()
IComponentgetType in interface IComponentpublic IClass getObjectType()
ContainerElementBasegetObjectType in class ContainerElementBasepublic void prevalidate(ValidationContext vctx)
ElementBaseprevalidate in class ContainerElementBasevctx - 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 ContainerElementBasevctx - validation contextCopyright © 2005–2016 jibx.org. All rights reserved.