public abstract class MappingElementBase extends TemplateElementBase
| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
m_topChildrenBINDING_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 |
|---|
MappingElementBase(int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExtendsName()
Get name of mapped class extended by this one.
|
String |
getName()
Get name.
|
NameAttributes |
getNameAttributes()
Get name attributes.
|
NamespaceElement |
getNamespace()
Get effective namespace information.
|
String |
getPrefix()
Get specified namespace prefix.
|
String |
getTypeName()
Get type name.
|
org.jibx.runtime.QName |
getTypeQName()
Get type qualified name.
|
String |
getUri()
Get specified namespace URI.
|
boolean |
isAbstract()
Check for abstract mapping.
|
boolean |
isDefaultTemplate()
Check if this is a default template.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate element information.
|
void |
setAbstract(boolean abs)
Set abstract mapping.
|
void |
setExtendsName(String name)
Set name of mapped class extended by this one.
|
void |
setName(String name)
Set name.
|
void |
setPrefix(String prefix)
Set namespace prefix.
|
void |
setTypeName(String name)
Set type name.
|
void |
setTypeQName(org.jibx.runtime.QName qname)
Set type qualified name.
|
void |
setUri(String uri)
Set namespace URI.
|
void |
validate(ValidationContext vctx)
Validate element information.
|
addExtensionType, addTopChild, getClassName, getExtensionTypes, getHandledClass, getObjectType, getType, hasObject, isImplicit, isOptional, setClassName, topChildIterator, topChildrencheckCompatibleChildren, 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 static final StringArray s_allowedAttributes
public MappingElementBase(int type)
type - element type codepublic boolean isAbstract()
true if abstract, false if notpublic void setAbstract(boolean abs)
abs - true if abstract, false if notpublic String getTypeName()
public void setTypeName(String name)
name - type namepublic org.jibx.runtime.QName getTypeQName()
public void setTypeQName(org.jibx.runtime.QName qname)
qname - type qualified namepublic boolean isDefaultTemplate()
isDefaultTemplate in class TemplateElementBasetrue if default, false if notpublic NameAttributes getNameAttributes()
public String getName()
public void setName(String name)
name - text for namepublic String getUri()
null 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 void setExtendsName(String name)
name - Namepublic String getExtendsName()
public void prevalidate(ValidationContext vctx)
ElementBaseprevalidate in class TemplateElementBasevctx - 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 TemplateElementBasevctx - validation contextCopyright © 2005–2016 jibx.org. All rights reserved.