|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.shared.MobyData
org.biomoby.shared.MobySecondaryData
org.biomoby.shared.data.MobyDataSecondaryInstance
public class MobyDataSecondaryInstance
A class that holds and displays secondary input data to a service.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
|
static String |
VALUE_NAME
|
| Fields inherited from class org.biomoby.shared.MobySecondaryData |
|---|
BOOLEAN_TYPE, DATETIME_TYPE, FLOAT_TYPE, INTEGER_TYPE, STRING_TYPE |
| Fields inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
CENTRAL_XML_MODE, SERVICE_XML_MODE |
| Constructor Summary | |
|---|---|
MobyDataSecondaryInstance(Element objectTag)
Create an instance from XML input. |
|
MobyDataSecondaryInstance(MobySecondaryData type)
Basically clones the input parameter, and sets the value to the default value. |
|
MobyDataSecondaryInstance(MobySecondaryData type,
String value)
|
|
| Method Summary | |
|---|---|
boolean |
asBoolean()
|
GregorianCalendar |
asDateTime()
|
BigDecimal |
asFloat()
|
BigInteger |
asInteger()
|
String |
asString()
|
int |
compareTo(Object o)
This method lexically compares in the order of value, ID, name if passed in object is a MobyDataObject. |
Object |
getObject()
For now, all secondary parameters are treated as strings. |
String |
getValue()
|
int |
getXmlMode()
Report whether toXML will produce Central template or service call instance XML. |
void |
setValue(String value)
|
void |
setXmlMode(int mode)
Determined whether toXML will return a Central template value or a service call instance value. |
String |
toXML()
This method sanitizes parameter data value strings of XML escape characters such as the ampersand (&) and the less-than sign (<). |
| Methods inherited from class org.biomoby.shared.MobySecondaryData |
|---|
addAllowedValue, clone, format, getAllowedValues, getDataType, getDefaultValue, getDescription, getLSID, getMaximumValue, getMaxValue, getMinimumValue, getMinValue, isPrimary, setAllowedValues, setDataType, setDefaultValue, setDescription, setMaximumValue, setMaxValue, setMinimumValue, setMinValue, toString |
| Methods inherited from class org.biomoby.shared.MobyData |
|---|
getId, getName, getUserData, setId, setName, setUserData |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
getName, getUserData, setName, setUserData |
| Field Detail |
|---|
public static final String ELEMENT_NAME
public static final String VALUE_NAME
| Constructor Detail |
|---|
public MobyDataSecondaryInstance(MobySecondaryData type,
String value)
public MobyDataSecondaryInstance(MobySecondaryData type)
public MobyDataSecondaryInstance(Element objectTag)
throws MobyException
MobyException| Method Detail |
|---|
public boolean asBoolean()
public BigDecimal asFloat()
public BigInteger asInteger()
public String asString()
public GregorianCalendar asDateTime()
public Object getObject()
getObject in interface MobyDataInstance
public void setValue(String value)
throws IllegalArgumentException
IllegalArgumentExceptionpublic String getValue()
public void setXmlMode(int mode)
throws IllegalArgumentException
MobyDataInstance
setXmlMode in interface MobyDataInstancemode - one of CENTRAL_XML_MODE or SERVICE_XML_MODE
IllegalArgumentException - if the mode is not one of the specified valuespublic int getXmlMode()
getXmlMode in interface MobyDataInstancepublic String toXML()
toXML in interface MobyDataInstancetoXML in class MobySecondaryDatapublic int compareTo(Object o)
compareTo in interface Comparable
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||