public class ElementElement extends AnnotatedBase implements IArity, INamed, IReference
| Modifier and Type | Field and Description |
|---|---|
static int |
EXTENSION_BLOCK |
static int |
EXTENSION_FINAL |
static int |
RESTRICTION_BLOCK |
static int |
RESTRICTION_FINAL |
static StringArray |
s_allowedAttributes
List of allowed attribute names.
|
static EnumSet |
s_blockValues |
static EnumSet |
s_derivationValues |
static int |
SUBSTITUTION_BLOCK |
ALL_TYPE, ANNOTATION_TYPE, ANY_TYPE, ANYATTRIBUTE_TYPE, APPINFO_TYPE, ATTRIBUTE_TYPE, ATTRIBUTEGROUP_TYPE, CHOICE_TYPE, COMPLEXCONTENT_TYPE, COMPLEXTYPE_TYPE, DOCUMENTATION_TYPE, ELEMENT_MASKS, ELEMENT_NAMES, ELEMENT_TYPE, ENUMERATION_TYPE, EXTENSION_TYPE, FIELD_TYPE, FRACTIONDIGITS_TYPE, GROUP_TYPE, IMPORT_TYPE, INCLUDE_TYPE, KEY_TYPE, KEYREF_TYPE, LENGTH_TYPE, LIST_TYPE, MAXEXCLUSIVE_TYPE, MAXINCLUSIVE_TYPE, MAXLENGTH_TYPE, MINEXCLUSIVE_TYPE, MININCLUSIVE_TYPE, MINLENGTH_TYPE, NOTATION_TYPE, PATTERN_TYPE, REDEFINE_TYPE, RESTRICTION_TYPE, SCHEMA_TYPE, SELECTOR_TYPE, SEQUENCE_TYPE, SIMPLECONTENT_TYPE, SIMPLETYPE_TYPE, TOTALDIGITS_TYPE, UNION_TYPE, UNIQUE_TYPE, WHITESPACE_TYPESCHEMA_NAMESPACE| Constructor and Description |
|---|
ElementElement()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AllEnumSet |
getBlock()
Get 'block' attribute.
|
String |
getDefault()
Get 'default' attribute value.
|
QName |
getEffectiveQName()
Get effective qualified name for element (whether defined directly, or by
reference).
|
AllEnumSet |
getFinal()
Get 'final' attribute.
|
String |
getFixed()
Get 'fixed' attribute value.
|
int |
getForm()
Get 'form' attribute type code.
|
String |
getFormText()
Get 'form' attribute name value.
|
FilteredSegmentList |
getIdentityConstraintList()
Get list of identity constraint child elements.
|
Count |
getMaxOccurs()
Get 'maxOccurs' attribute value.
|
Count |
getMinOccurs()
Get 'minOccurs' attribute value.
|
String |
getName()
Get 'name' attribute value.
|
QName |
getQName()
Get qualified name set directly on element.
|
QName |
getRef()
Get 'ref' attribute value.
|
ElementElement |
getReference()
Get the referenced element declaration.
|
QName |
getSubstitutionGroup()
Get 'substitutionGroup' attribute value.
|
QName |
getType()
Get 'type' attribute value.
|
CommonTypeDefinition |
getTypeDefinition()
Get type definition.
|
boolean |
isAbstract()
Check 'abstract' attribute value.
|
boolean |
isInlineType()
Check if the element uses an inline type definition.
|
boolean |
isNillable()
Check 'nillable' attribute value.
|
protected void |
preset(IUnmarshallingContext ictx)
Pre-set method to be called by data binding while parsing element start tag.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate component information.
|
void |
setAbstract(boolean abs)
Set 'abstract' attribute value.
|
void |
setDefault(String dflt)
Set the 'default' attribute value.
|
void |
setFixed(String fixed)
Set 'fixed' attribute value.
|
void |
setForm(int type)
Set 'form' attribute type code.
|
void |
setMaxOccurs(Count count)
Set 'maxOccurs' attribute value.
|
void |
setMinOccurs(Count count)
Get 'maxOccurs' attribute value.
|
void |
setName(String name)
Set 'name' attribute value.
|
void |
setNillable(boolean nil)
Set 'nillable' attribute value.
|
void |
setRef(QName ref)
Set 'ref' attribute value.
|
void |
setSubstitutionGroup(QName qname)
Set 'substitutionGroup' attribute value.
|
void |
setType(QName type)
Set 'type' attribute value.
|
void |
setTypeDefinition(CommonTypeDefinition def)
Set type definition (either inline, or as reference).
|
void |
validate(ValidationContext vctx)
Validate component information.
|
getAnnotation, getId, setAnnotation, setIdaddExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributesaddNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, readNamespaces, setExtension, setParent, type, validateAttributes, writeNamespacespublic static final StringArray s_allowedAttributes
public static final int EXTENSION_BLOCK
public static final int RESTRICTION_BLOCK
public static final int SUBSTITUTION_BLOCK
public static final EnumSet s_blockValues
public static final int EXTENSION_FINAL
public static final int RESTRICTION_FINAL
public static final EnumSet s_derivationValues
protected void preset(IUnmarshallingContext ictx) throws JiBXException
SchemaBasepreset in class SchemaBaseictx - unmarshalling contextJiBXException - on errorpublic QName getType()
null if not set)public void setType(QName type)
type - (null if not set)public String getDefault()
null if not set)public void setDefault(String dflt)
dflt - (null if not set)public String getFixed()
null if not set)public void setFixed(String fixed)
fixed - (null if not set)public boolean isAbstract()
public void setAbstract(boolean abs)
abs - abstract attribute valuepublic boolean isNillable()
null if not set)public void setNillable(boolean nil)
nil - nillable attribute value (null if not set)public AllEnumSet getFinal()
public AllEnumSet getBlock()
public QName getSubstitutionGroup()
null if not set)public void setSubstitutionGroup(QName qname)
qname - (null if not set)public ElementElement getReference()
null if not a referencepublic QName getQName()
public QName getEffectiveQName()
public boolean isInlineType()
true if inline, false if notpublic CommonTypeDefinition getTypeDefinition()
null if empty type definition)public void setTypeDefinition(CommonTypeDefinition def)
def - inline type definitionpublic FilteredSegmentList getIdentityConstraintList()
public String getName()
getName in interface INamedDefRefAttributeGroup.getName()public QName getRef()
getRef in interface IReferenceDefRefAttributeGroup.getRef()public void setName(String name)
name - DefRefAttributeGroup.setName(java.lang.String)public void setRef(QName ref)
ref - DefRefAttributeGroup.setRef(org.jibx.runtime.QName)public int getForm()
FormChoiceAttribute.getForm()public String getFormText()
FormChoiceAttribute.getFormText()public void setForm(int type)
type - FormChoiceAttribute.setForm(int)public Count getMaxOccurs()
getMaxOccurs in interface IArityOccursAttributeGroup.getMaxOccurs()public Count getMinOccurs()
getMinOccurs in interface IArityOccursAttributeGroup.getMinOccurs()public void setMaxOccurs(Count count)
setMaxOccurs in interface IAritycount - OccursAttributeGroup.setMaxOccurs(org.jibx.schema.types.Count)public void setMinOccurs(Count count)
setMinOccurs in interface IAritycount - OccursAttributeGroup.setMinOccurs(org.jibx.schema.types.Count)public void prevalidate(ValidationContext vctx)
SchemaBaseprevalidate in interface IComponentprevalidate in class AnnotatedBasevctx - validation contextpublic void validate(ValidationContext vctx)
SchemaBaseSchemaBase.prevalidate(org.jibx.schema.validation.ValidationContext) method will always be called for every
component in the schema definition before this method is called for any component. This empty base class
implementation should be overridden by each subclass that requires validation handling.validate in interface IComponentvalidate in class SchemaBasevctx - validation contextCopyright © 2005-2013 jibx.org. All Rights Reserved.