|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The content model of a declared element.
See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
Field Summary | |
static short |
AS_ALL
All of the above. |
static short |
AS_CHOICE
This constant value signifies a choice operator. |
static short |
AS_NONE
None of the above, i.e., neither a choice nor sequence operator. |
static short |
AS_SEQUENCE
This constant value signifies a sequence operator. |
static int |
AS_UNBOUNDED
Signifies unbounded upper limit. |
Fields inherited from interface org.apache.xerces.dom3.as.ASObject |
AS_ATTRIBUTE_DECLARATION, AS_CONTENTMODEL, AS_ELEMENT_DECLARATION, AS_ENTITY_DECLARATION, AS_MODEL, AS_NOTATION_DECLARATION |
Method Summary | |
int |
appendsubModel(ASObject newNode)
Appends a new node to the end of the list representing the subModels . |
short |
getListOperator()
One of AS_CHOICE , AS_SEQUENCE ,
AS_ALL or AS_NONE . |
int |
getMaxOccurs()
maximum occurrence for this content particle. |
int |
getMinOccurs()
min occurrence for this content particle. |
ASObjectList |
getSubModels()
Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s. |
void |
insertsubModel(ASObject newNode)
Inserts a new node in the submodel. |
void |
removesubModel(ASObject oldNode)
Removes the ASObject in the submodel. |
void |
setListOperator(short listOperator)
One of AS_CHOICE , AS_SEQUENCE ,
AS_ALL or AS_NONE . |
void |
setMaxOccurs(int maxOccurs)
maximum occurrence for this content particle. |
void |
setMinOccurs(int minOccurs)
min occurrence for this content particle. |
void |
setSubModels(ASObjectList subModels)
Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s. |
Methods inherited from interface org.apache.xerces.dom3.as.ASObject |
cloneASObject, getAsNodeType, getLocalName, getNamespaceURI, getNodeName, getOwnerASModel, getPrefix, setLocalName, setNamespaceURI, setNodeName, setOwnerASModel, setPrefix |
Field Detail |
public static final int AS_UNBOUNDED
0xFFFFFFFF FFFFFFFF
. This needs to be better defined in
the generated bindings.public static final short AS_SEQUENCE
,
' operator.public static final short AS_CHOICE
|
' operator.public static final short AS_ALL
public static final short AS_NONE
Method Detail |
public short getListOperator()
AS_CHOICE
, AS_SEQUENCE
,
AS_ALL
or AS_NONE
. The operator is applied
to all the components(ASObjects) in the subModels
. For
example, if the list operator is AS_CHOICE
and the
components in subModels are a, b and c then the abstract schema for
the element being declared is (a|b|c)
.public void setListOperator(short listOperator)
AS_CHOICE
, AS_SEQUENCE
,
AS_ALL
or AS_NONE
. The operator is applied
to all the components(ASObjects) in the subModels
. For
example, if the list operator is AS_CHOICE
and the
components in subModels are a, b and c then the abstract schema for
the element being declared is (a|b|c)
.public int getMinOccurs()
public void setMinOccurs(int minOccurs)
public int getMaxOccurs()
0
, a positive integer, or AS_UNBOUNDED
to
indicate that no upper limit has been set.public void setMaxOccurs(int maxOccurs)
0
, a positive integer, or AS_UNBOUNDED
to
indicate that no upper limit has been set.public ASObjectList getSubModels()
ASObject
s such as
ASElementDeclaration
s and further
ASContentModel
s.public void setSubModels(ASObjectList subModels)
ASObject
s such as
ASElementDeclaration
s and further
ASContentModel
s.public void removesubModel(ASObject oldNode)
ASObject
in the submodel. Nodes that already
exist in the list are moved as needed.oldNode
- The node to be removed.public void insertsubModel(ASObject newNode) throws DOMASException
newNode
- The new node to be inserted.DOMASException
- DUPLICATE_NAME_ERR
: Raised if a element declaration
already exists with the same name within an AS_CHOICE
operator.public int appendsubModel(ASObject newNode) throws DOMASException
subModels
.newNode
- The new node to be appended.subModels
.DOMASException
- DUPLICATE_NAME_ERR
: Raised if a element declaration
already exists with the same name within an AS_CHOICE
operator.
TYPE_ERR
: Raised if type is neither an
ASContentModel
nor an ASElementDeclaration
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |