|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.objects.P2Object
net.ponder2.objects.P2String
public class P2String
TODO Description
Constructor Summary | |
---|---|
P2String()
constructor for Ponder2 serialisation |
|
P2String(java.lang.String value)
Creates a string with an initial value |
Method Summary | |
---|---|
java.lang.String |
add(java.lang.String aString)
Answers this string and aString concatenated together |
boolean |
asBoolean()
Returns itself as a boolean |
java.math.BigDecimal |
asNumber()
Returns itself as a BigDecimal number |
P2Object |
asObject()
Answers the managed object referred to by the pathname in the receiver |
java.lang.String |
asString()
Returns itself |
P2XML |
asXML()
Answers an XML representation of the receiver |
boolean |
equals(java.lang.Object obj)
|
boolean |
equals(java.lang.String aString)
Answers true if this string and aString are the same |
int |
hashCode()
|
boolean |
isEmpty()
Answers true if this string is the empty string |
boolean |
nequals(java.lang.String aString)
Answers true if this string and aString are different |
P2Object |
readXml(com.twicom.qdparser.TaggedElement xml,
java.util.Map<java.lang.Integer,P2Serializable> read)
|
java.lang.String |
times(int aNumber)
Answers aNumber copies of the original string concatenated together |
java.lang.String |
toString()
|
com.twicom.qdparser.TaggedElement |
writeXml(java.util.Set<P2Object> written)
|
Methods inherited from class net.ponder2.objects.P2Object |
---|
asArray, asBlock, asClass, asDouble, asFloat, asHash, asInteger, asLong, asP2Array, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, fromXml, getManagedObject, getOID, getSMC, operation, operation, setSMC |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public P2String()
public P2String(java.lang.String value)
value
- the initial value for this stringMethod Detail |
---|
public java.lang.String asString() throws Ponder2ArgumentException
asString
in class P2Object
Ponder2ArgumentException
public boolean asBoolean() throws Ponder2ArgumentException
P2Object
asBoolean
in class P2Object
Ponder2ArgumentException
public java.math.BigDecimal asNumber() throws Ponder2ArgumentException
P2Object
asNumber
in class P2Object
Ponder2ArgumentException
public boolean isEmpty()
public java.lang.String add(java.lang.String aString)
aString
- the string to be concatenated after this
public boolean equals(java.lang.String aString)
aString
- the string to be compared with
public boolean nequals(java.lang.String aString)
aString
- the string to be compared with
public java.lang.String times(int aNumber)
aNumber
- the number of copies required
public P2XML asXML() throws Ponder2ArgumentException
Ponder2ArgumentException
public P2Object asObject() throws Ponder2Exception
Ponder2Exception
public java.lang.String toString()
toString
in class java.lang.Object
public com.twicom.qdparser.TaggedElement writeXml(java.util.Set<P2Object> written) throws Ponder2OperationException
writeXml
in interface P2Serializable
writeXml
in class P2Object
Ponder2OperationException
public P2Object readXml(com.twicom.qdparser.TaggedElement xml, java.util.Map<java.lang.Integer,P2Serializable> read)
readXml
in interface P2Serializable
readXml
in class P2Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |