public abstract class OpenAttrBase extends SchemaBase
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(String name,
String uri,
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.
|
Iterator |
getChildIterator()
Get read-only iterator for child elements.
|
protected LazyList |
getChildrenWritable()
Get modifiable list of child elements.
|
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, writeNamespacesprotected OpenAttrBase(int type)
type - element typepublic final int getChildCount()
getChildCount in class SchemaBasepublic 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 List getExtraAttributes()
public final void clearExtraAttributes()
public final void addExtraAttribute(String name, String uri, 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 errorCopyright © 2005-2013 jibx.org. All Rights Reserved.