org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded
Class HCElementRestrictions

java.lang.Object
  extended by org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded.HCElementRestrictions
All Implemented Interfaces:
ElementRestrictions

public class HCElementRestrictions
extends java.lang.Object
implements ElementRestrictions

Author:
pasmith TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

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

HCElementRestrictions

public HCElementRestrictions(java.lang.String name,
                             boolean complex,
                             java.util.List children,
                             java.util.List attrs)
Makes a new Hard coded element restriction.

Parameters:
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

isSimpleAndNoAttributes

public boolean isSimpleAndNoAttributes()
Is this element a simple type with no attributes.

Specified by:
isSimpleAndNoAttributes in interface ElementRestrictions
Returns:
true if this element is simple with no attributes, false otherwise.

getChildren

public java.util.List getChildren()
Returns a list of children for this element.

Specified by:
getChildren in interface ElementRestrictions
Returns:
a list of children for this element.

setChildren

public void setChildren(java.util.List children)
Set the list of children for this element.

Specified by:
setChildren in interface ElementRestrictions
Parameters:
children - the list of children for this element.

isComplex

public boolean isComplex()
Is this element complex.

Specified by:
isComplex in interface ElementRestrictions
Returns:
true if this element is complex.

setComplex

public void setComplex(boolean isComplex)
Sets if this element is complex or not.

Specified by:
setComplex in interface ElementRestrictions
Parameters:
isComplex - if this element is complex or not.

getName

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

Specified by:
getName in interface ElementRestrictions
Returns:
the name of this element.

setName

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

Specified by:
setName in interface ElementRestrictions
Parameters:
name - the name of this element.

getAttributes

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

Specified by:
getAttributes in interface ElementRestrictions
Returns:
the list of attributes for this element.

setAttributes

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

Specified by:
setAttributes in interface ElementRestrictions
Parameters:
attributes - the list of attributs to set for this element.

getMinOccurs

public int getMinOccurs()
Returns the min occurances for this element.

Specified by:
getMinOccurs in interface ElementRestrictions
Returns:
the min occurances for this element.

setMinOccurs

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

Specified by:
setMinOccurs in interface ElementRestrictions
Parameters:
min - the min occurances for this element.

getMaxOccurs

public int getMaxOccurs()
Returns the max occurances for this element.

Specified by:
getMaxOccurs in interface ElementRestrictions
Returns:
the max occurances for this element.

setMaxOccurs

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

Specified by:
setMaxOccurs in interface ElementRestrictions
Parameters:
min - the max occurances for this element.

isSequence

public boolean isSequence()
Returns if this element is a sequence or not.

Specified by:
isSequence in interface ElementRestrictions
Returns:
true if this element is a sequence.

setSequence

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

Specified by:
setSequence in interface ElementRestrictions
Parameters:
isSequence - the value to set if this element is a sequence.