See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
public interface ASContentModel extends ASObject
| Modifier and Type | Field and Description |
|---|---|
static short |
AS_ALL
Deprecated.
All of the above.
|
static short |
AS_CHOICE
Deprecated.
This constant value signifies a choice operator.
|
static short |
AS_NONE
Deprecated.
None of the above, i.e., neither a choice nor sequence operator.
|
static short |
AS_SEQUENCE
Deprecated.
This constant value signifies a sequence operator.
|
static int |
AS_UNBOUNDED
Deprecated.
Signifies unbounded upper limit.
|
AS_ATTRIBUTE_DECLARATION, AS_CONTENTMODEL, AS_ELEMENT_DECLARATION, AS_ENTITY_DECLARATION, AS_MODEL, AS_NOTATION_DECLARATION| Modifier and Type | Method and Description |
|---|---|
int |
appendsubModel(ASObject newNode)
Deprecated.
Appends a new node to the end of the list representing the
subModels. |
short |
getListOperator()
Deprecated.
One of
AS_CHOICE, AS_SEQUENCE,
AS_ALL or AS_NONE. |
int |
getMaxOccurs()
Deprecated.
maximum occurrence for this content particle.
|
int |
getMinOccurs()
Deprecated.
min occurrence for this content particle.
|
ASObjectList |
getSubModels()
Deprecated.
Pointers to
ASObjects such as
ASElementDeclarations and further
ASContentModels. |
void |
insertsubModel(ASObject newNode)
Deprecated.
Inserts a new node in the submodel.
|
void |
removesubModel(ASObject oldNode)
Deprecated.
Removes the
ASObject in the submodel. |
void |
setListOperator(short listOperator)
Deprecated.
One of
AS_CHOICE, AS_SEQUENCE,
AS_ALL or AS_NONE. |
void |
setMaxOccurs(int maxOccurs)
Deprecated.
maximum occurrence for this content particle.
|
void |
setMinOccurs(int minOccurs)
Deprecated.
min occurrence for this content particle.
|
void |
setSubModels(ASObjectList subModels)
Deprecated.
Pointers to
ASObjects such as
ASElementDeclarations and further
ASContentModels. |
cloneASObject, getAsNodeType, getLocalName, getNamespaceURI, getNodeName, getOwnerASModel, getPrefix, setLocalName, setNamespaceURI, setNodeName, setOwnerASModel, setPrefixstatic final int AS_UNBOUNDED
0xFFFFFFFF FFFFFFFF. This needs to be better defined in
the generated bindings.static final short AS_SEQUENCE
,' operator.static final short AS_CHOICE
|' operator.static final short AS_ALL
static final short AS_NONE
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).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).int getMinOccurs()
void setMinOccurs(int minOccurs)
int getMaxOccurs()
0, a positive integer, or AS_UNBOUNDED to
indicate that no upper limit has been set.void setMaxOccurs(int maxOccurs)
0, a positive integer, or AS_UNBOUNDED to
indicate that no upper limit has been set.ASObjectList getSubModels()
ASObjects such as
ASElementDeclarations and further
ASContentModels.void setSubModels(ASObjectList subModels)
ASObjects such as
ASElementDeclarations and further
ASContentModels.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.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.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
.Copyright © 2019 JBoss by Red Hat. All rights reserved.