Represents the content specification for an element:
In a DTD:
<!ELEMENT name (first, last)>
In a schema this is the contents of an
xsd:element
element.
Java binding:
package org.w3c.dom.as;
public interface ASContentModel extends ASObject {
public static final int AS_UNBOUNDED = MAX_VALUE;
// ASContentModelType
public static final short AS_SEQUENCE = 0;
public static final short AS_CHOICE = 1;
public static final short AS_ALL = 2;
public static final short AS_NONE = 3;
public static final short AS_UNDEFINED = 4;
public short getListOperator();
public void setListOperator(short listOperator);
public int getMinOccurs();
public void setMinOccurs(int minOccurs);
public int getMaxOccurs();
public void setMaxOccurs(int maxOccurs);
public ASObjectList getSubModels();
public void setSubModels(ASObjectList subModels);
public void removesubModel(ASObject oldObject);
public ASObject insertBeforeSubModel(ASObject newObject, ASObject refObject)
throws ASException;
public int appendsubModel(ASObject newObject) throws ASException;
}
IDL:
interface ASContentModel : ASObject {
const unsigned long AS_UNBOUNDED = MAX_VALUE;
// ASContentModelType
const unsigned short AS_SEQUENCE = 0;
const unsigned short AS_CHOICE = 1;
const unsigned short AS_ALL = 2;
const unsigned short AS_NONE = 3;
const unsigned short AS_UNDEFINED = 4;
attribute unsigned short listOperator;
attribute unsigned long minOccurs;
attribute unsigned long maxOccurs;
attribute ASObjectList subModels;
void removesubModel(in ASObject oldObject);
ASObject insertBeforeSubModel(in ASObject newObject, in ASObject refObject)
raises(ASException);
unsigned long appendsubModel(in ASObject newObject) raises(ASException);
};