|
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.MobyDataString
public class MobyDataString
A class representing a MOBY String 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 | |
---|---|
MobyDataString(CharSequence stringValue)
|
|
MobyDataString(CharSequence stringValue,
Registry registry)
|
|
MobyDataString(Element element)
Construct the object using a DOM fragment. |
|
MobyDataString(Element element,
Registry registry)
|
|
MobyDataString(String articleName,
CharSequence stringValue)
Constructor to build a MOBY base String object from a CharSequence (i.e. |
|
MobyDataString(String articleName,
CharSequence stringValue,
Registry registry)
|
Method Summary | |
---|---|
MobyDataString |
clone()
Simply calls new constructor with object's existing data type, name and value. |
Object |
getObject()
Gives access to the Java object instance underlying the MobyData instance. |
String |
getValue()
A lexical (prefereably human readable) representation of the underlying object value (not including the namespace and ID). |
void |
setValue(CharSequence str)
|
String |
toString()
Convenience method to get the basic XML representation |
String |
toXML()
This method sanitizes strings of XML escape characters such as the ampersand (&) and the less-than sign (<). |
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 MobyDataString(Element element) throws IllegalArgumentException
IllegalArgumentException
- if the element is not a String tagpublic MobyDataString(Element element, Registry registry) throws IllegalArgumentException
IllegalArgumentException
public MobyDataString(String articleName, CharSequence stringValue)
public MobyDataString(String articleName, CharSequence stringValue, Registry registry)
public MobyDataString(CharSequence stringValue)
public MobyDataString(CharSequence stringValue, Registry registry)
Method Detail |
---|
public String toString()
MobyDataObject
toString
in class MobyDataObject
public MobyDataString clone()
MobyDataObject
clone
in class MobyDataObject
public Object getObject()
MobyDataObject
getObject
in interface MobyDataInstance
getObject
in class MobyDataObject
public String getValue()
MobyDataObject
getValue
in class MobyDataObject
public void setValue(CharSequence str)
public String toXML()
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 |