Top Fields Methods
org.apache.xerces.dom3.as

public Interface ASContentModel

extends ASObject

Deprecated

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

Modifier and TypeField and Description
public static final short
AS_ALL

All of the above.

public static final short
AS_CHOICE

This constant value signifies a choice operator.

public static final short
AS_NONE

None of the above, i.e., neither a choice nor sequence operator.

public static final short
AS_SEQUENCE

This constant value signifies a sequence operator.

public static final int
AS_UNBOUNDED

Signifies unbounded upper limit.

Inherited from org.apache.xerces.dom3.as.ASObject:
AS_ATTRIBUTE_DECLARATIONAS_CONTENTMODELAS_ELEMENT_DECLARATIONAS_ENTITY_DECLARATIONAS_MODELAS_NOTATION_DECLARATION

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the length of the subModels.
appendsubModel
(ASObject
The new node to be appended.
newNode
)

Deprecated as a consequence of ASObject being deprecated.
Appends a new node to the end of the list representing the subModels.
public short
getListOperator()

One of AS_CHOICE, AS_SEQUENCE, AS_ALL or AS_NONE.

public int
getMaxOccurs()

maximum occurrence for this content particle.

public int
getMinOccurs()

min occurrence for this content particle.

public ASObjectList
getSubModels()

Deprecated as a consequence of ASObjectList being deprecated.
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.
public void
insertsubModel(ASObject
The new node to be inserted.
newNode
)

Deprecated as a consequence of ASObject being deprecated.
Inserts a new node in the submodel.
public void
removesubModel(ASObject
The node to be removed.
oldNode
)

Deprecated as a consequence of ASObject being deprecated.
Removes the ASObject in the submodel.
public void
setListOperator(short listOperator)

One of AS_CHOICE, AS_SEQUENCE, AS_ALL or AS_NONE.

public void
setMaxOccurs(int maxOccurs)

maximum occurrence for this content particle.

public void
setMinOccurs(int minOccurs)

min occurrence for this content particle.

public void
setSubModels(ASObjectList subModels)

Deprecated as a consequence of ASObjectList being deprecated.
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.
Inherited from org.apache.xerces.dom3.as.ASObject:
cloneASObjectgetAsNodeTypegetLocalNamegetNamespaceURIgetNodeNamegetOwnerASModelgetPrefixsetLocalNamesetNamespaceURIsetNodeNamesetOwnerASModelsetPrefix

Field Detail

AS_ALLback to summary
public static final short AS_ALL

All of the above.

AS_CHOICEback to summary
public static final short AS_CHOICE

This constant value signifies a choice operator. For example, in a DTD, this would be the '|' operator.

AS_NONEback to summary
public static final short AS_NONE

None of the above, i.e., neither a choice nor sequence operator.

AS_SEQUENCEback to summary
public static final short AS_SEQUENCE

This constant value signifies a sequence operator. For example, in a DTD, this would be the ',' operator.

AS_UNBOUNDEDback to summary
public static final int AS_UNBOUNDED

Signifies unbounded upper limit. The MAX_VALUE value is 0xFFFFFFFF FFFFFFFF. This needs to be better defined in the generated bindings.

Method Detail

appendsubModelback to summary
public int appendsubModel(ASObject newNode) throws DOMASException

Deprecated

as a consequence of ASObject being deprecated. See corresponding docs for further information.

Appends a new node to the end of the list representing the subModels.

Parameters
newNode:ASObject

The new node to be appended.

Returns:int

the length of the subModels.

Exceptions
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 .
getListOperatorback to summary
public short getListOperator()

One of 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).

getMaxOccursback to summary
public int getMaxOccurs()

maximum occurrence for this content particle. Its value may be 0, a positive integer, or AS_UNBOUNDED to indicate that no upper limit has been set.

getMinOccursback to summary
public int getMinOccurs()

min occurrence for this content particle. Its value may be 0 or a positive integer.

getSubModelsback to summary
public ASObjectList getSubModels()

Deprecated

as a consequence of ASObjectList being deprecated. See corresponding docs for further information.

Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.

insertsubModelback to summary
public void insertsubModel(ASObject newNode) throws DOMASException

Deprecated

as a consequence of ASObject being deprecated. See corresponding docs for further information.

Inserts a new node in the submodel. Nodes that already exist in the list are moved as needed.

Parameters
newNode:ASObject

The new node to be inserted.

Exceptions
DOMASException:
DUPLICATE_NAME_ERR: Raised if a element declaration already exists with the same name within an AS_CHOICE operator.
removesubModelback to summary
public void removesubModel(ASObject oldNode)

Deprecated

as a consequence of ASObject being deprecated. See corresponding docs for further information.

Removes the ASObject in the submodel. Nodes that already exist in the list are moved as needed.

Parameters
oldNode:ASObject

The node to be removed.

setListOperatorback to summary
public void setListOperator(short listOperator)

One of 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).

setMaxOccursback to summary
public void setMaxOccurs(int maxOccurs)

maximum occurrence for this content particle. Its value may be 0, a positive integer, or AS_UNBOUNDED to indicate that no upper limit has been set.

setMinOccursback to summary
public void setMinOccurs(int minOccurs)

min occurrence for this content particle. Its value may be 0 or a positive integer.

setSubModelsback to summary
public void setSubModels(ASObjectList subModels)

Deprecated

as a consequence of ASObjectList being deprecated. See corresponding docs for further information.

Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.