de.msponer.android.yac.xml
Class WorkItemElementEntry

java.lang.Object
  extended by de.msponer.android.yac.xml.WorkItemElementEntry
All Implemented Interfaces:
Cloneable

public class WorkItemElementEntry
extends Object
implements Cloneable

Class representing a work item XSD data element. A WorkItemElementEntry contains several XSD attributes. Can have a father entry and list of sub-entries. Corresponding YAWL class is: org.yawlfoundation.yawl.resourcing.jsf.dynform.DynFormField

Author:
msponer

Constructor Summary
WorkItemElementEntry(String name, List<WorkItemElementEntry> subElementEntryList)
          Constructor setting name and child entries.
WorkItemElementEntry(String name, String datatype, String value)
          Constructor setting name, datatype and value.
 
Method Summary
 void addSubField(WorkItemElementEntry field)
          Adds the sub field.
 void addSubFieldList(List<WorkItemElementEntry> fieldList)
          Adds the sub field list.
 WorkItemElementEntry clone()
           
 String getDatatype()
          Gets the datatype.
 List<String> getEnumeratedValues()
          Gets the enumerated values.
 String getGroupID()
          Gets the group id.
 int getId()
          Gets the id.
 int getLevel()
          Gets the level.
 long getMaxoccurs()
          Gets the maxoccurs.
 long getMinoccurs()
          Gets the minoccurs.
 String getName()
          Gets the name.
 long getOccursCount()
          Gets the occurs count.
 int getOrder()
          Gets the order.
 WorkItemElementEntry getParent()
          Gets the parent.
 WorkItemElementRestriction getRestriction()
          Gets the restriction.
 List<WorkItemElementEntry> getSubElementEntryList()
          Gets the sub element entry list.
 String getValue()
          Gets the value.
 int getViewId()
          Gets the view id.
 boolean hasEnumeratedValues()
          Checks for enumerated values.
 boolean hasRestriction()
          Checks for restriction.
 void setDatatype(String datatype)
          Sets the datatype.
 void setEnumeratedValues(List<String> enumValues)
          Sets the enumerated values.
 void setGroupID(String groupID)
          Sets the group id.
 void setId(int id)
          Sets the id.
 void setLevel(int level)
          Sets the level.
 void setMaxoccurs(String maxoccurs)
          Sets the maxoccurs.
 void setMinoccurs(String minoccurs)
          Sets the minoccurs.
 void setName(String name)
          Sets the name.
 void setOccursCount(long occursCount)
          Sets the occurs count.
 void setOrder(int order)
          Sets the order.
 void setParent(WorkItemElementEntry parent)
          Sets the parent.
 void setRestriction(WorkItemElementRestriction restriction)
          Sets the restriction.
 void setSubElementEntryList(List<WorkItemElementEntry> subElementEntryList)
          Sets the sub element entry list.
 void setValue(String value)
          Sets the value.
 void setViewId(int viewId)
          Sets the view id.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemElementEntry

public WorkItemElementEntry(String name,
                            List<WorkItemElementEntry> subElementEntryList)
Constructor setting name and child entries.

Parameters:
name - The entry's name.
subElementEntryList - The entry's child elements.

WorkItemElementEntry

public WorkItemElementEntry(String name,
                            String datatype,
                            String value)
Constructor setting name, datatype and value.

Parameters:
name - The entry's name.
datatype - The entry's datatype.
value - The entry's value.
Method Detail

setName

public void setName(String name)
Sets the name.

Parameters:
name - the new name

getName

public String getName()
Gets the name.

Returns:
the name

getDatatype

public String getDatatype()
Gets the datatype.

Returns:
the datatype

setDatatype

public void setDatatype(String datatype)
Sets the datatype.

Parameters:
datatype - the new datatype

getValue

public String getValue()
Gets the value.

Returns:
the value

setValue

public void setValue(String value)
Sets the value.

Parameters:
value - the new value

getMinoccurs

public long getMinoccurs()
Gets the minoccurs.

Returns:
the minoccurs

setMinoccurs

public void setMinoccurs(String minoccurs)
Sets the minoccurs.

Parameters:
minoccurs - the new minoccurs

getMaxoccurs

public long getMaxoccurs()
Gets the maxoccurs.

Returns:
the maxoccurs

setMaxoccurs

public void setMaxoccurs(String maxoccurs)
Sets the maxoccurs.

Parameters:
maxoccurs - the new maxoccurs

setSubElementEntryList

public void setSubElementEntryList(List<WorkItemElementEntry> subElementEntryList)
Sets the sub element entry list.

Parameters:
subElementEntryList - the new sub element entry list

getSubElementEntryList

public List<WorkItemElementEntry> getSubElementEntryList()
Gets the sub element entry list.

Returns:
the sub element entry list

setParent

public void setParent(WorkItemElementEntry parent)
Sets the parent.

Parameters:
parent - the new parent

getParent

public WorkItemElementEntry getParent()
Gets the parent.

Returns:
the parent

setLevel

public void setLevel(int level)
Sets the level.

Parameters:
level - the new level

getLevel

public int getLevel()
Gets the level.

Returns:
the level

getGroupID

public String getGroupID()
Gets the group id.

Returns:
the group id

setGroupID

public void setGroupID(String groupID)
Sets the group id.

Parameters:
groupID - the new group id

setOccursCount

public void setOccursCount(long occursCount)
Sets the occurs count.

Parameters:
occursCount - the new occurs count

getOccursCount

public long getOccursCount()
Gets the occurs count.

Returns:
the occurs count

addSubField

public void addSubField(WorkItemElementEntry field)
Adds the sub field.

Parameters:
field - the field

addSubFieldList

public void addSubFieldList(List<WorkItemElementEntry> fieldList)
Adds the sub field list.

Parameters:
fieldList - the field list

setOrder

public void setOrder(int order)
Sets the order.

Parameters:
order - the new order

getOrder

public int getOrder()
Gets the order.

Returns:
the order

setId

public void setId(int id)
Sets the id.

Parameters:
id - the new id

getId

public int getId()
Gets the id.

Returns:
the id

setViewId

public void setViewId(int viewId)
Sets the view id.

Parameters:
viewId - the new view id

getViewId

public int getViewId()
Gets the view id.

Returns:
the view id

clone

public WorkItemElementEntry clone()
Overrides:
clone in class Object

getEnumeratedValues

public List<String> getEnumeratedValues()
Gets the enumerated values.

Returns:
the enumerated values

setEnumeratedValues

public void setEnumeratedValues(List<String> enumValues)
Sets the enumerated values.

Parameters:
enumValues - the new enumerated values

getRestriction

public WorkItemElementRestriction getRestriction()
Gets the restriction.

Returns:
the restriction

setRestriction

public void setRestriction(WorkItemElementRestriction restriction)
Sets the restriction.

Parameters:
restriction - the new restriction

hasEnumeratedValues

public boolean hasEnumeratedValues()
Checks for enumerated values.

Returns:
true, if successful

hasRestriction

public boolean hasRestriction()
Checks for restriction.

Returns:
true, if successful