org.objectweb.jonas.webapp.jonasadmin.xml.xs
Interface ElementRestrictions

All Known Implementing Classes:
HCElementRestrictions

public interface ElementRestrictions

An interface to represent the element restrictions of a schema.

Author:
Gregory Lapouchnian, Patrick Smith

Method Summary
 java.util.List getAttributes()
          Return the list of attributes for this element.
 java.util.List getChildren()
          Returns the list of children
 int getMaxOccurs()
          return the max occurrances for this element.
 int getMinOccurs()
          Get the min occurances of this element.
 java.lang.String getName()
          Gets the name of this element
 boolean isComplex()
          Returns if this element is complex.
 boolean isSequence()
          Is this element a sequence?
 boolean isSimpleAndNoAttributes()
          Return if this element is simple with no attributes
 void setAttributes(java.util.List attributes)
          Sets the list of attributes for this element.
 void setChildren(java.util.List children)
          Sets the list of children to the given list.
 void setComplex(boolean isComplex)
          sets if this element is complex.
 void setMaxOccurs(int min)
          Sets the max occurances for this element.
 void setMinOccurs(int min)
          Sets the min occurrances 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.
 

Method Detail

isSimpleAndNoAttributes

boolean isSimpleAndNoAttributes()
Return if this element is simple with no attributes

Returns:
true if this element is a simple element and has no attributes.

getChildren

java.util.List getChildren()
Returns the list of children

Returns:
the list of children.

setChildren

void setChildren(java.util.List children)
Sets the list of children to the given list.

Parameters:
children - the list of children.

isSequence

boolean isSequence()
Is this element a sequence?

Returns:
true if this element is a sequence.

setSequence

void setSequence(boolean isSequence)
Sets if this element is a sequence.

Parameters:
isSequence - the value to set.

isComplex

boolean isComplex()
Returns if this element is complex.

Returns:
true if this element is complex.

setComplex

void setComplex(boolean isComplex)
sets if this element is complex.

Parameters:
isComplex - the value to set.

getName

java.lang.String getName()
Gets the name of this element

Returns:
the name of this element.

setName

void setName(java.lang.String name)
sets the name of this element

Parameters:
name - the value to set.

getAttributes

java.util.List getAttributes()
Return the list of attributes for this element.

Returns:
the list of attributes for this element.

setAttributes

void setAttributes(java.util.List attributes)
Sets the list of attributes for this element.

Parameters:
attributes - the value to set.

getMinOccurs

int getMinOccurs()
Get the min occurances of this element.

Returns:
the min occurances of this element.

setMinOccurs

void setMinOccurs(int min)
Sets the min occurrances for this element.

Parameters:
min - the min occurrances for this element.

getMaxOccurs

int getMaxOccurs()
return the max occurrances for this element.

Returns:
the max occurances for this element.

setMaxOccurs

void setMaxOccurs(int min)
Sets the max occurances for this element.

Parameters:
min - the value to set.