|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XoContentModel
represents the unique node to describe a content-model tree. It permits
to an XoContainer
to build its content-model description. This interface is also used
by core system to build static content-model from description in DMDL documents.
XoContentModel
can fall in three categories :
XoContentModel
object is created by XoUtilities
XoContainer
,
XoUtilities
Method Summary | |
void |
addSubContentModel(XoContentModel cm)
Append a Content-Model node to the list of children nodes |
byte |
getCmType()
cmType is the type of Content-Model node. |
java.lang.String |
getElementRef()
elementRef is the local name of an XML element. |
java.lang.String |
getElementType()
elementType is an identifier to distinguish a particular XML element implementation. |
int |
getMaxOccurs()
maxOccurs represents the maximum occurrence. |
int |
getMinOccurs()
minOccurs represents the minimum occurrence. |
java.lang.String |
getNsRef()
nsRef is the namespace of an XML element. |
XoContentModel[] |
getSubContentModel()
Returns the list of Content-Model children nodes. |
XoContentModel |
getSubContentModel(int index)
Returns the Content-Model child node at index param |
void |
setCmType(byte cmType)
cmType is the type of Content-Model node. |
void |
setElementRef(java.lang.String elementRef)
elementRef is the local name of an XML element. |
void |
setElementType(java.lang.String elementType)
elementType is an identifier to distinguish a particular XML element implementation. |
void |
setMaxOccurs(int maxOccurs)
maxOccurs represents the maximum occurrence. |
void |
setMinOccurs(int minOccurs)
minOccurs represents the minimum occurrence. |
void |
setNsRef(java.lang.String nsRef)
nsRef is the namespace of an XML element. |
Method Detail |
public int getMinOccurs()
public void setMinOccurs(int minOccurs) throws java.beans.PropertyVetoException
minOccurs
- new value of property minOccurs.
java.beans.PropertyVetoException
public int getMaxOccurs()
public void setMaxOccurs(int maxOccurs) throws java.beans.PropertyVetoException
maxOccurs
- new value of property maxOccurs.
java.beans.PropertyVetoException
public byte getCmType()
XoConstants.ALL_CM
XoConstants.ANY_CM
XoConstants.CHILDREN_CM
XoConstants.CHOICE_CM
XoConstants.ELEMENT_REF_CM
XoConstants.EMPTY_CM
XoConstants.MIXED_CM
XoConstants.SEQUENCE_CM
public void setCmType(byte cmType) throws java.beans.PropertyVetoException
XoConstants.ALL_CM
XoConstants.ANY_CM
XoConstants.CHILDREN_CM
XoConstants.CHOICE_CM
XoConstants.ELEMENT_REF_CM
XoConstants.EMPTY_CM
XoConstants.MIXED_CM
XoConstants.SEQUENCE_CM
cmType
- new cmType value.
java.beans.PropertyVetoException
public java.lang.String getElementType()
public void setElementType(java.lang.String elementType) throws java.beans.PropertyVetoException
elementType
- new value of property elementType.
java.beans.PropertyVetoException
public java.lang.String getElementRef()
public void setElementRef(java.lang.String elementRef) throws java.beans.PropertyVetoException
elementRef
- new value of property elementRef.
java.beans.PropertyVetoException
public java.lang.String getNsRef()
public void setNsRef(java.lang.String nsRef) throws java.beans.PropertyVetoException
nsRef
- new value of property nsRef.
java.beans.PropertyVetoException
public XoContentModel getSubContentModel(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
param
index
- index of the child node.
java.lang.ArrayIndexOutOfBoundsException
- if index is invalidpublic XoContentModel[] getSubContentModel()
public void addSubContentModel(XoContentModel cm)
cm
- sub Content-Model to append
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |