public interface

ASContentModel

implements ASObject
org.apache.xerces.dom3.as.ASContentModel

This interface is deprecated.
The content model of a declared element.

See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.

Summary

Constants
short AS_ALL All of the above.
short AS_CHOICE This constant value signifies a choice operator.
short AS_NONE None of the above, i.e., neither a choice nor sequence operator.
short AS_SEQUENCE This constant value signifies a sequence operator.
int AS_UNBOUNDED Signifies unbounded upper limit.
[Expand]
Inherited Constants
From interface org.apache.xerces.dom3.as.ASObject
Public Methods
abstract int appendsubModel(ASObject newNode)
Appends a new node to the end of the list representing the subModels.
abstract short getListOperator()
One of AS_CHOICE, AS_SEQUENCE, AS_ALL or AS_NONE.
abstract int getMaxOccurs()
maximum occurrence for this content particle.
abstract int getMinOccurs()
min occurrence for this content particle.
abstract ASObjectList getSubModels()
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.
abstract void insertsubModel(ASObject newNode)
Inserts a new node in the submodel.
abstract void removesubModel(ASObject oldNode)
Removes the ASObject in the submodel.
abstract void setListOperator(short listOperator)
One of AS_CHOICE, AS_SEQUENCE, AS_ALL or AS_NONE.
abstract void setMaxOccurs(int maxOccurs)
maximum occurrence for this content particle.
abstract void setMinOccurs(int minOccurs)
min occurrence for this content particle.
abstract void setSubModels(ASObjectList subModels)
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.
[Expand]
Inherited Methods
From interface org.apache.xerces.dom3.as.ASObject

Constants

public static final short AS_ALL

All of the above.

Constant Value: 2 (0x00000002)

public static final short AS_CHOICE

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

Constant Value: 1 (0x00000001)

public static final short AS_NONE

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

Constant Value: 3 (0x00000003)

public static final short AS_SEQUENCE

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

Constant Value: 0 (0x00000000)

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.

Constant Value: 2147483647 (0x7fffffff)

Public Methods

public abstract int appendsubModel (ASObject newNode)

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

Parameters
newNode The new node to be appended.
Returns
  • the length of the subModels.
Throws
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 .

public abstract 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).

public abstract 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.

public abstract int getMinOccurs ()

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

public abstract ASObjectList getSubModels ()

Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.

public abstract void insertsubModel (ASObject newNode)

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

Parameters
newNode The new node to be inserted.
Throws
DOMASException DUPLICATE_NAME_ERR: Raised if a element declaration already exists with the same name within an AS_CHOICE operator.

public abstract void removesubModel (ASObject oldNode)

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

Parameters
oldNode The node to be removed.

public abstract 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).

public abstract 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.

public abstract void setMinOccurs (int minOccurs)

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

public abstract void setSubModels (ASObjectList subModels)

Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.