| org.apache.xerces.dom3.as.ASContentModel
Field Summary | |
final public static short | AS_ALL All of the above. | final public static short | AS_CHOICE This constant value signifies a choice operator. | final public static short | AS_NONE None of the above, i.e., neither a choice nor sequence operator. | final public static short | AS_SEQUENCE This constant value signifies a sequence operator. | final public static int | AS_UNBOUNDED Signifies unbounded upper limit. |
Method Summary | |
public 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. | 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() Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s. | public void | insertsubModel(ASObject newNode) Inserts a new node in the submodel. | public void | removesubModel(ASObject oldNode) 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) Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s. |
AS_ALL | final public static short AS_ALL(Code) | | All of the above.
|
AS_CHOICE | final public static short AS_CHOICE(Code) | | This constant value signifies a choice operator. For example, in a DTD,
this would be the '| ' operator.
|
AS_NONE | final public static short AS_NONE(Code) | | None of the above, i.e., neither a choice nor sequence operator.
|
AS_SEQUENCE | final public static short AS_SEQUENCE(Code) | | This constant value signifies a sequence operator. For example, in a
DTD, this would be the ', ' operator.
|
AS_UNBOUNDED | final public static int AS_UNBOUNDED(Code) | | Signifies unbounded upper limit. The MAX_VALUE value is
0xFFFFFFFF FFFFFFFF . This needs to be better defined in
the generated bindings.
|
appendsubModel | public int appendsubModel(ASObject newNode) throws DOMASException(Code) | | Appends a new node to the end of the list representing the
subModels .
Parameters: newNode - The new node to be appended. 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 . |
getListOperator | public short getListOperator()(Code) | | 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) .
|
getMaxOccurs | public int getMaxOccurs()(Code) | | 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.
|
getMinOccurs | public int getMinOccurs()(Code) | | min occurrence for this content particle. Its value may be 0 or a
positive integer.
|
getSubModels | public ASObjectList getSubModels()(Code) | | Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s.
|
insertsubModel | public void insertsubModel(ASObject newNode) throws DOMASException(Code) | | 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. exception: DOMASException - DUPLICATE_NAME_ERR : Raised if a element declaration already exists with the same name within an AS_CHOICE operator. |
removesubModel | public void removesubModel(ASObject oldNode)(Code) | | Removes the ASObject in the submodel. Nodes that already
exist in the list are moved as needed.
Parameters: oldNode - The node to be removed. |
setListOperator | public void setListOperator(short listOperator)(Code) | | 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) .
|
setMaxOccurs | public void setMaxOccurs(int maxOccurs)(Code) | | 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.
|
setMinOccurs | public void setMinOccurs(int minOccurs)(Code) | | min occurrence for this content particle. Its value may be 0 or a
positive integer.
|
setSubModels | public void setSubModels(ASObjectList subModels)(Code) | | Pointers to ASObject s such as
ASElementDeclaration s and further
ASContentModel s.
|
|
|