|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.shared.MobyData org.biomoby.shared.MobyPrimaryData org.biomoby.shared.MobyPrimaryDataSimple org.biomoby.shared.data.MobyDataObject org.biomoby.shared.data.MobyDataBoolean
public class MobyDataBoolean
A class representing a MOBY Boolean primitive. Internally, the value is stored in a StringBuffer. Because getObject() will return a mutable StringBuffer, you can use its methods to modify the underlying value of this MOBY object.
Field Summary |
---|
Fields inherited from interface org.biomoby.shared.data.MobyDataInstance |
---|
CENTRAL_XML_MODE, SERVICE_XML_MODE |
Constructor Summary | |
---|---|
MobyDataBoolean(boolean b)
|
|
MobyDataBoolean(Boolean b)
|
|
MobyDataBoolean(boolean b,
Registry r)
|
|
MobyDataBoolean(Boolean b,
Registry r)
|
|
MobyDataBoolean(Element element)
Construct the object using a DOM fragment. |
|
MobyDataBoolean(Element element,
Registry registry)
|
|
MobyDataBoolean(String booleanString)
|
|
MobyDataBoolean(String articleName,
boolean b)
|
|
MobyDataBoolean(String articleName,
Boolean b)
Constructor to build a MOBY base String object from a CharSequence (i.e. |
|
MobyDataBoolean(String articleName,
boolean b,
Registry registry)
|
|
MobyDataBoolean(String articleName,
Boolean b,
Registry registry)
Every c-tor eventually winds up here |
|
MobyDataBoolean(String booleanString,
Registry r)
|
|
MobyDataBoolean(String articleName,
String booleanString)
Uses Boolean.valueOf(String) to convert to a Boolean object. |
|
MobyDataBoolean(String articleName,
String booleanString,
Registry registry)
|
Method Summary | |
---|---|
boolean |
booleanValue()
A convenience method to get a Java primitive representing the underlying Boolean of this object |
MobyDataBoolean |
clone()
Simply calls new constructor with object's existing data type, name and value. |
Object |
getObject()
Since the Boolean object is immutable, use the setValue(boolean) method instead to change the underlying value for this MOBYObject. |
String |
getValue()
A lexical (prefereably human readable) representation of the underlying object value (not including the namespace and ID). |
void |
setValue(boolean b)
|
void |
setValue(Boolean b)
|
void |
setValue(String booleanValue)
Uses Boolean.valueOf(String) to convert to a Boolean object. |
String |
toString()
Convenience method to get the basic XML representation |
String |
toXML()
Produces a full-blown XML fragment that depending on the value of getXmlMode() is either a template for use in MOBY Central services, or a Simple element for use in calling a service instance. |
Methods inherited from class org.biomoby.shared.data.MobyDataObject |
---|
addCrossReference, addCrossReferences, addCrossReferences, addProvisionInfo, compareTo, createInstanceFromDOM, createInstanceFromDOM, createInstanceFromString, createInstanceFromString, createInstanceFromXML, equals, getCrossReferences, getId, getName, getPrimaryNamespace, getProvisionInfo, getTextContents, getXmlMode, hasCrossReferences, setId, setName, setPrimaryNamespace, setProvisionInfo, setXmlMode |
Methods inherited from class org.biomoby.shared.MobyPrimaryDataSimple |
---|
addNamespace, format, getDataType, getNamespaces, removeNamespace, removeNamespace, setDataType, setNamespaces |
Methods inherited from class org.biomoby.shared.MobyPrimaryData |
---|
isPrimary |
Methods inherited from class org.biomoby.shared.MobyData |
---|
getId, getName, getUserData, setUserData |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.biomoby.shared.data.MobyDataInstance |
---|
getName, getUserData, setUserData |
Constructor Detail |
---|
public MobyDataBoolean(Element element) throws IllegalArgumentException
IllegalArgumentException
- if the element is not a String tagpublic MobyDataBoolean(Element element, Registry registry) throws IllegalArgumentException
IllegalArgumentException
public MobyDataBoolean(String articleName, Boolean b)
public MobyDataBoolean(String articleName, Boolean b, Registry registry)
public MobyDataBoolean(String articleName, boolean b)
public MobyDataBoolean(String articleName, boolean b, Registry registry)
public MobyDataBoolean(String articleName, String booleanString)
public MobyDataBoolean(String articleName, String booleanString, Registry registry)
public MobyDataBoolean(Boolean b)
public MobyDataBoolean(Boolean b, Registry r)
public MobyDataBoolean(boolean b)
public MobyDataBoolean(boolean b, Registry r)
public MobyDataBoolean(String booleanString)
public MobyDataBoolean(String booleanString, Registry r)
Method Detail |
---|
public String toString()
MobyDataObject
toString
in class MobyDataObject
public MobyDataBoolean clone()
MobyDataObject
clone
in class MobyDataObject
public Object getObject()
getObject
in interface MobyDataInstance
getObject
in class MobyDataObject
public boolean booleanValue()
public void setValue(boolean b)
public void setValue(Boolean b)
public void setValue(String booleanValue)
public String getValue()
MobyDataObject
getValue
in class MobyDataObject
public String toXML()
MobyDataObject
toXML
in interface MobyDataInstance
toXML
in class MobyDataObject
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |