FileDocCategorySizeDatePackage
ASContentModel.javaAPI DocApache Xerces 3.0.15610Fri Sep 14 20:33:52 BST 2007org.apache.xerces.dom3.as

ASContentModel

public interface ASContentModel implements 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.

Fields 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.
public static final short
AS_SEQUENCE
This constant value signifies a sequence operator. For example, in a DTD, this would be the ',' operator.
public static final short
AS_CHOICE
This constant value signifies a choice operator. For example, in a DTD, this would be the '|' operator.
public static final short
AS_ALL
All of the above.
public static final short
AS_NONE
None of the above, i.e., neither a choice nor sequence operator.
Constructors Summary
Methods Summary
public intappendsubModel(ASObject newNode)
Appends a new node to the end of the list representing the subModels.

param
newNode The new node to be appended.
return
the length of the subModels.
exception
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 shortgetListOperator()
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 intgetMaxOccurs()
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 intgetMinOccurs()
min occurrence for this content particle. Its value may be 0 or a positive integer.

public ASObjectListgetSubModels()
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.

public voidinsertsubModel(ASObject newNode)
Inserts a new node in the submodel. Nodes that already exist in the list are moved as needed.

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

public voidremovesubModel(ASObject oldNode)
Removes the ASObject in the submodel. Nodes that already exist in the list are moved as needed.

param
oldNode The node to be removed.

public voidsetListOperator(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 voidsetMaxOccurs(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 voidsetMinOccurs(int minOccurs)
min occurrence for this content particle. Its value may be 0 or a positive integer.

public voidsetSubModels(ASObjectList subModels)
Pointers to ASObjects such as ASElementDeclarations and further ASContentModels.