|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.cms.util.OperationDescriptorUtils
public class OperationDescriptorUtils
Utility class which implements methods usseful to extract information from the operation sourceBean descriptor. Every cms operation is represented with a SourceBean that contains necessary information and parameters for the execution The methods allow to extract the parameters in format String, Boolean and Object.
Constructor Summary | |
---|---|
OperationDescriptorUtils()
|
Method Summary | |
---|---|
static java.lang.Boolean |
getBooleanAttribute(SourceBean params,
java.lang.String attr)
The method searches the attibute, specified in input, inside the SourceBean of operation description and it returns the value as a Boolean. |
static java.lang.Object |
getObjectAttribute(SourceBean params,
java.lang.String attr)
The method searches the attibute, specified in input, inside the SourceBean of operation description and it returns the value as an Object. |
static java.util.Hashtable |
getProperties(SourceBean params)
The method searches the properties specified inside an operation descriptor and it returns an Hashtable containing a couple of name and CmsProperty object for each property defined. |
static java.lang.String |
getStringAttribute(SourceBean params,
java.lang.String attr)
Searches the attibute, specified in input, inside the SourceBean of operation description and it returns the value as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationDescriptorUtils()
Method Detail |
---|
public static java.lang.String getStringAttribute(SourceBean params, java.lang.String attr)
params
- SourceBean of operation descriptionattr
- name of the attribute to search inside the SourceBeanmandatory
- flag to indicate if the attribute is mandatory
EMFInternalError
- the exception will be thrown if:
public static java.lang.Boolean getBooleanAttribute(SourceBean params, java.lang.String attr)
params
- SourceBean of operation descriptionattr
- name of the attribute to search inside the SourceBeanmandatory
- flag to indicate if the attribute is mandatory
EMFInternalError
- the exception will be thrown if:
public static java.lang.Object getObjectAttribute(SourceBean params, java.lang.String attr)
params
- SourceBean of operation descriptionattr
- name of the attribute to search inside the SourceBeanmandatory
- flag to indicate if the attribute is mandatory
EMFInternalError
- the exception will be thrown if:
public static java.util.Hashtable getProperties(SourceBean params)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |