de.msponer.android.yac.xml
Class WorkItemElementRestriction

java.lang.Object
  extended by de.msponer.android.yac.xml.WorkItemElementRestriction

public class WorkItemElementRestriction
extends Object

Class represents a XSD restriction element. YAC uses it to support enumeration. Other attributes are not yet supported. The corresponding YAWL class is org.yawlfoundation.yawl.resourcing.jsf.dynform.DynFormFieldRestriction

Author:
msponer

Constructor Summary
WorkItemElementRestriction(org.jdom.Element restriction, org.jdom.Namespace ns)
          Instantiates a new work item element restriction.
 
Method Summary
 String getBaseType()
          Returns the base type.
 List<String> getEnumeration()
          Returns the enumeration.
 WorkItemElementEntry getOwner()
          Returns the owner.
 boolean hasEnumeration()
          Checks for enumeration.
 void setBaseType(String baseType)
          Sets the base type.
 void setEnumeration(List<String> enumeration)
          Sets the enumeration.
 void setOwner(WorkItemElementEntry owner)
          Sets the owner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemElementRestriction

public WorkItemElementRestriction(org.jdom.Element restriction,
                                  org.jdom.Namespace ns)
Instantiates a new work item element restriction.

Parameters:
restriction - the restriction
ns - the ns
Method Detail

getBaseType

public String getBaseType()
Returns the base type.

Returns:
the base type

setBaseType

public void setBaseType(String baseType)
Sets the base type.

Parameters:
baseType - the new base type

getOwner

public WorkItemElementEntry getOwner()
Returns the owner.

Returns:
the owner

setOwner

public void setOwner(WorkItemElementEntry owner)
Sets the owner.

Parameters:
owner - the new owner

getEnumeration

public List<String> getEnumeration()
Returns the enumeration.

Returns:
the enumeration

setEnumeration

public void setEnumeration(List<String> enumeration)
Sets the enumeration.

Parameters:
enumeration - the new enumeration

hasEnumeration

public boolean hasEnumeration()
Checks for enumeration.

Returns:
true, if successful