|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded.HCElementRestrictions
public class HCElementRestrictions
Constructor Summary | |
---|---|
HCElementRestrictions(java.lang.String name,
boolean complex,
java.util.List children,
java.util.List attrs)
Makes a new Hard coded element restriction. |
Method Summary | |
---|---|
java.util.List |
getAttributes()
Returns the list of attributes for this element. |
java.util.List |
getChildren()
Returns a list of children for this element. |
int |
getMaxOccurs()
Returns the max occurances for this element. |
int |
getMinOccurs()
Returns the min occurances for this element. |
java.lang.String |
getName()
Returns the name of this element |
boolean |
isComplex()
Is this element complex. |
boolean |
isSequence()
Returns if this element is a sequence or not. |
boolean |
isSimpleAndNoAttributes()
Is this element a simple type with no attributes. |
void |
setAttributes(java.util.List attributes)
Sets the list of elements for this element. |
void |
setChildren(java.util.List children)
Set the list of children for this element. |
void |
setComplex(boolean isComplex)
Sets if this element is complex or not. |
void |
setMaxOccurs(int min)
Sets the max occurances for this element. |
void |
setMinOccurs(int min)
Sets the min occurances for this element. |
void |
setName(java.lang.String name)
sets the name of this element. |
void |
setSequence(boolean isSequence)
Sets if this element is a sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HCElementRestrictions(java.lang.String name, boolean complex, java.util.List children, java.util.List attrs)
name
- the name of the element.complex
- is this element complex.children
- the children of this element.attrs
- the attributes of this element.Method Detail |
---|
public boolean isSimpleAndNoAttributes()
isSimpleAndNoAttributes
in interface ElementRestrictions
public java.util.List getChildren()
getChildren
in interface ElementRestrictions
public void setChildren(java.util.List children)
setChildren
in interface ElementRestrictions
children
- the list of children for this element.public boolean isComplex()
isComplex
in interface ElementRestrictions
public void setComplex(boolean isComplex)
setComplex
in interface ElementRestrictions
isComplex
- if this element is complex or not.public java.lang.String getName()
getName
in interface ElementRestrictions
public void setName(java.lang.String name)
setName
in interface ElementRestrictions
name
- the name of this element.public java.util.List getAttributes()
getAttributes
in interface ElementRestrictions
public void setAttributes(java.util.List attributes)
setAttributes
in interface ElementRestrictions
attributes
- the list of attributs to set for this element.public int getMinOccurs()
getMinOccurs
in interface ElementRestrictions
public void setMinOccurs(int min)
setMinOccurs
in interface ElementRestrictions
min
- the min occurances for this element.public int getMaxOccurs()
getMaxOccurs
in interface ElementRestrictions
public void setMaxOccurs(int min)
setMaxOccurs
in interface ElementRestrictions
min
- the max occurances for this element.public boolean isSequence()
isSequence
in interface ElementRestrictions
public void setSequence(boolean isSequence)
setSequence
in interface ElementRestrictions
isSequence
- the value to set if this element is a sequence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |