|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.elements.SchemaBase
org.jibx.schema.elements.OpenAttrBase
org.jibx.schema.elements.AnnotatedBase
org.jibx.schema.elements.CommonTypeDefinition
org.jibx.schema.elements.SimpleTypeElement
public class SimpleTypeElement
Representation for a simpleType element.
Field Summary | |
---|---|
private long |
CONTENT_DERIVATION_MASK
Mask bits for content derivation child elements. |
static int |
LIST_FINAL
|
private FilteredSegmentList |
m_contentDerivationList
Filtered list of content derivation elements (must be exactly one). |
private AllEnumSet |
m_final
'final' attribute value. |
static int |
RESTRICTION_FINAL
|
static StringArray |
s_allowedAttributes
List of allowed attribute names. |
static EnumSet |
s_simpleDerivationValues
|
static int |
UNION_FINAL
|
Fields inherited from class org.jibx.schema.elements.CommonTypeDefinition |
---|
m_qname |
Fields inherited from interface org.jibx.schema.IComponent |
---|
SCHEMA_NAMESPACE |
Constructor Summary | |
---|---|
SimpleTypeElement()
Constructor. |
Method Summary | |
---|---|
SchemaBase |
getDerivation()
Get derivation child element. |
AllEnumSet |
getFinal()
Get 'final' attribute value. |
boolean |
isComplexType()
Check if a complex type definition. |
boolean |
isPredefinedType()
Check if a predefined type definition. |
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 |
setDerivation(SchemaBase element)
Set derivation child element. |
Methods inherited from class org.jibx.schema.elements.CommonTypeDefinition |
---|
getName, getQName, setName |
Methods inherited from class org.jibx.schema.elements.AnnotatedBase |
---|
getAnnotation, getId, setAnnotation, setId |
Methods inherited from class org.jibx.schema.elements.OpenAttrBase |
---|
addExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributes |
Methods inherited from class org.jibx.schema.elements.SchemaBase |
---|
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringArray s_allowedAttributes
private long CONTENT_DERIVATION_MASK
public static final int LIST_FINAL
public static final int RESTRICTION_FINAL
public static final int UNION_FINAL
public static final EnumSet s_simpleDerivationValues
private final FilteredSegmentList m_contentDerivationList
private AllEnumSet m_final
Constructor Detail |
---|
public SimpleTypeElement()
Method Detail |
---|
protected void preset(IUnmarshallingContext ictx) throws JiBXException
SchemaBase
preset
in class SchemaBase
ictx
- unmarshalling context
JiBXException
- on errorpublic boolean isComplexType()
CommonTypeDefinition
isComplexType
in class CommonTypeDefinition
true
if complex type, false
if simple
typepublic boolean isPredefinedType()
CommonTypeDefinition
isPredefinedType
in class CommonTypeDefinition
true
if predefined, false
if user typepublic AllEnumSet getFinal()
public SchemaBase getDerivation()
null
if not yet setpublic void setDerivation(SchemaBase element)
element
- derivation element, or null
if unsettingpublic void prevalidate(ValidationContext vctx)
SchemaBase
prevalidate
in interface IComponent
prevalidate
in class CommonTypeDefinition
vctx
- validation context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |