public abstract class OpenAttrBase extends SchemaBase
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList |
m_attributes
Extra attributes associated with element (lazy create,
null if unused). |
private LazyList |
m_children
Child element list (lazy create,
null if not used) |
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| Modifier | Constructor and Description |
|---|---|
protected |
OpenAttrBase(int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraAttribute(java.lang.String name,
java.lang.String uri,
java.lang.String value)
Add extra attribute.
|
void |
clearExtraAttributes()
Clear extra attribute list.
|
void |
compactChildren()
Compact the list of child elements.
|
SchemaBase |
detachChild(int index)
Detach child by index.
|
SchemaBase |
getChild(int index)
Get child by index.
|
int |
getChildCount()
Get count of child elements.
|
java.util.Iterator |
getChildIterator()
Get read-only iterator for child elements.
|
protected LazyList |
getChildrenWritable()
Get modifiable list of child elements.
|
java.util.List |
getExtraAttributes()
Get read-only list of extra attributes.
|
protected void |
preget(IMarshallingContext ictx)
Pre-get method called during marshalling.
|
SchemaBase |
replaceChild(int index,
SchemaBase repl)
Replace child by index.
|
protected void |
validateAttributes(IUnmarshallingContext ictx,
StringArray attrs)
Validate attributes of element from schema namespace.
|
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, preset, prevalidate, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespacesprivate LazyList m_children
null if not used)private java.util.ArrayList m_attributes
null if unused).protected OpenAttrBase(int type)
type - element typepublic final int getChildCount()
getChildCount in class SchemaBasepublic java.util.Iterator getChildIterator()
getChildIterator in class SchemaBasepublic SchemaBase getChild(int index)
index - public SchemaBase replaceChild(int index, SchemaBase repl)
index - repl - replacement elementpublic SchemaBase detachChild(int index)
null in the child list, leaving
the list in an illegal state for most purposes. After using this method, compactChildren() must be
called to remove the null(s) from the list and restore it to a legal state. These methods are
provided to avoid the overhead otherwise associated with multiple removals from a list.index - public void compactChildren()
null values (which should only be present if
detachChild(int) was called) from the list.protected void preget(IMarshallingContext ictx) throws JiBXException
preget in class SchemaBaseictx - marshalling contextJiBXException - on marshalling errorprotected final LazyList getChildrenWritable()
public final java.util.List getExtraAttributes()
public final void clearExtraAttributes()
public final void addExtraAttribute(java.lang.String name,
java.lang.String uri,
java.lang.String value)
name - attribute nameuri - attribute namespace URIvalue - attribute valueprotected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs) throws JiBXException
ictx - unmarshalling contextattrs - attributes arrayJiBXException - on unmarshalling error