|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.intake.model.Group
Holds a group of Fields
| Nested Class Summary | |
static class |
Group.GroupFactory
|
| Field Summary | |
static java.lang.String |
EMPTY
|
protected java.util.Map |
fields
A map of the fields in this group mapped by field name. |
protected Field[] |
fieldsArray
An array of fields in this group. |
protected java.lang.String |
gid
The key used to represent this group in a parameter. |
protected boolean |
isDeclared
A flag to help prevent duplicate hidden fields declaring this group. |
protected java.util.Map |
mapToObjectFields
Map of the fields by mapToObject |
protected java.lang.String |
name
The name used in templates and java code to refer to this group. |
static java.lang.String |
NEW
|
protected java.lang.String |
oid
The object id used to associate this group to a bean for one request cycle |
protected ValueParser |
pp
The object containing the request data |
| Constructor Summary | |
Group(XmlGroup group)
Constructs a new Group based on the xml specification. |
|
| Method Summary | |
void |
appendHtmlFormInput(java.lang.StringBuffer sb)
A xhtml valid hidden input field that notifies intake of the group's presence. |
Field |
get(java.lang.String fieldName)
Get the Field . |
java.lang.String[] |
getFieldNames()
Gets a list of the names of the fields stored in this object. |
java.lang.String |
getGID()
Get the part of the key used to specify the group. |
java.lang.String |
getHtmlFormInput()
A xhtml valid hidden input field that notifies intake of the group's presence. |
java.lang.String |
getIntakeGroupName()
Return the name given to this group. |
java.lang.String |
getObjectKey()
Concatenation of gid and oid. |
java.util.ArrayList |
getObjects(ValueParser pp)
Describe getObjects method here. |
java.lang.String |
getOID()
Get the part of the key that distinguishes a group from others of the same name. |
int |
getPoolCapacity()
Get the number of Group objects that will be pooled. |
void |
getProperties(java.lang.Object obj)
Calls getter methods on objects that are known to Intake so that field values in forms can be initialized from the values contained in the intake tool. |
Group |
init(Retrievable obj)
Initializes the group with properties from an object. |
Group |
init(java.lang.String key,
ValueParser pp)
Initializes the Group with parameters from RunData corresponding to key. |
Group |
init(ValueParser pp)
Initializes the default Group using parameters. |
boolean |
isAllValid()
Performs an AND between all the fields in this group. |
void |
removeFromRequest()
Removes references to this group and its fields from the query parameters |
void |
resetDeclared()
To be used in the event this group is used within multiple forms within the same template. |
void |
setProperties(java.lang.Object obj)
Calls a setter methods on obj, for fields which have been set. |
void |
setValidProperties(java.lang.Object obj)
Calls a setter methods on obj, for fields which pass validity tests. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EMPTY
public static final java.lang.String NEW
protected final java.lang.String gid
protected final java.lang.String name
protected java.util.Map fields
protected java.util.Map mapToObjectFields
protected Field[] fieldsArray
protected java.lang.String oid
protected ValueParser pp
protected boolean isDeclared
| Constructor Detail |
public Group(XmlGroup group)
throws IntakeException
group - a XmlGroup value
IntakeException - if an error occurs in other classes| Method Detail |
public Group init(ValueParser pp)
throws TurbineException
pp - a ValueParser value
TurbineException
public Group init(java.lang.String key,
ValueParser pp)
throws IntakeException
pp - a ValueParser value
IntakeExceptionpublic Group init(Retrievable obj)
obj - a Persistent value
Group valuepublic java.lang.String[] getFieldNames()
public java.lang.String getIntakeGroupName()
String valuepublic int getPoolCapacity()
int valuepublic java.lang.String getGID()
String valuepublic java.lang.String getOID()
String valuepublic java.lang.String getObjectKey()
String value
public java.util.ArrayList getObjects(ValueParser pp)
throws IntakeException
getObjects method here.
pp - a ValueParser value
ArrayList value
IntakeException - if an error occurs
public Field get(java.lang.String fieldName)
throws IntakeException
IntakeException - indicates the field could not be found.public boolean isAllValid()
boolean value
public void setProperties(java.lang.Object obj)
throws IntakeException
obj - Object to be set with the values from the group.
IntakeException - indicates that a failure occurred while
executing the setter methods of the mapped object.public void setValidProperties(java.lang.Object obj)
public void getProperties(java.lang.Object obj)
throws IntakeException
obj - Object that will be used to as a source of data for
setting the values of the fields within the group.
IntakeException - indicates that a failure occurred while
executing the setter methods of the mapped object.public void removeFromRequest()
public void resetDeclared()
public java.lang.String getHtmlFormInput()
String valuepublic void appendHtmlFormInput(java.lang.StringBuffer sb)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||