|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.objects.P2Object
public abstract class P2Object
TODO Description
Constructor Summary | |
---|---|
protected |
P2Object()
Empty constructor used for input serialisation |
Method Summary | |
---|---|
P2Object[] |
asArray()
Returns itself as an array of Ponder2 objects |
P2Block |
asBlock()
Returns itself as a Ponder2 block |
boolean |
asBoolean()
Returns itself as a boolean |
java.lang.Class<?> |
asClass()
Returns itself as a Ponder2 class object |
double |
asDouble()
Returns itself as a Double |
float |
asFloat()
Returns itself as a Float |
P2Hash |
asHash()
Returns itself as a Ponder2 hash |
int |
asInteger()
Returns itself as an Integer |
long |
asLong()
Returns itself as a Long integer |
java.math.BigDecimal |
asNumber()
Returns itself as a BigDecimal number |
P2Array |
asP2Array()
Returns itself as a Ponder2 Array |
java.lang.String |
asString()
Returns itself as a String |
static P2Null |
create()
|
static P2Number |
create(java.math.BigDecimal number)
|
static P2Boolean |
create(boolean value)
|
static P2Class |
create(java.lang.Class<?> name)
|
static P2Number |
create(double number)
|
static P2Number |
create(float number)
|
static P2Array |
create(int... values)
|
static P2Number |
create(int number)
|
static P2Number |
create(long number)
|
static P2Hash |
create(java.util.Map<java.lang.String,P2Object> hash)
|
static P2Block |
create(java.util.Map<java.lang.String,P2Object> variables,
com.twicom.qdparser.TaggedElement block)
|
static P2Object |
create(P2ManagedObject mo)
|
static P2Array |
create(P2Object... values)
|
P2Object |
create(P2Object source,
java.lang.String operation,
P2Object... args)
|
static P2Error |
create(Ponder2Exception exception)
|
static P2Array |
create(java.lang.String... values)
|
static P2String |
create(java.lang.String string)
|
static P2Object |
fromXml(com.twicom.qdparser.TaggedElement xml,
java.util.Map<java.lang.Integer,P2Serializable> read)
|
P2ManagedObject |
getManagedObject()
|
OID |
getOID()
Returns the Ponder2 Object Identifier of this object |
static SelfManagedCell |
getSMC()
|
P2Object |
operation(P2Object source,
java.lang.String operation,
P2Object... args)
Performs operations on behalf of basic managed objects. |
P2Object |
operation(P2Object source,
java.lang.String operation,
java.lang.String arg1,
java.lang.String... args)
|
abstract P2Object |
readXml(com.twicom.qdparser.TaggedElement xml,
java.util.Map<java.lang.Integer,P2Serializable> read)
|
static void |
setSMC(SelfManagedCell smc)
|
com.twicom.qdparser.TaggedElement |
writeXml(java.util.Set<P2Object> written)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected P2Object()
Method Detail |
---|
public static void setSMC(SelfManagedCell smc)
public static SelfManagedCell getSMC()
public static P2Null create()
public static P2Number create(java.math.BigDecimal number)
public static P2Number create(long number)
public static P2Number create(int number)
public static P2Number create(double number)
public static P2Number create(float number)
public static P2String create(java.lang.String string)
public static P2Hash create(java.util.Map<java.lang.String,P2Object> hash)
public static P2Object create(P2ManagedObject mo)
public static P2Array create(P2Object... values)
public static P2Array create(java.lang.String... values)
public static P2Array create(int... values)
public static P2Class create(java.lang.Class<?> name)
public static P2Error create(Ponder2Exception exception)
public static P2Boolean create(boolean value)
public static P2Block create(java.util.Map<java.lang.String,P2Object> variables, com.twicom.qdparser.TaggedElement block)
public static P2Object fromXml(com.twicom.qdparser.TaggedElement xml, java.util.Map<java.lang.Integer,P2Serializable> read) throws Ponder2OperationException, Ponder2ArgumentException
Ponder2OperationException
Ponder2ArgumentException
public P2ManagedObject getManagedObject()
public OID getOID()
public int asInteger() throws Ponder2ArgumentException
Ponder2ArgumentException
public long asLong() throws Ponder2ArgumentException
Ponder2ArgumentException
public float asFloat() throws Ponder2ArgumentException
Ponder2ArgumentException
public double asDouble() throws Ponder2ArgumentException
Ponder2ArgumentException
public java.math.BigDecimal asNumber() throws Ponder2ArgumentException
Ponder2ArgumentException
public java.lang.String asString() throws Ponder2ArgumentException, Ponder2OperationException
Ponder2ArgumentException
Ponder2OperationException
public P2Object[] asArray() throws Ponder2ArgumentException
Ponder2ArgumentException
public P2Array asP2Array() throws Ponder2ArgumentException
Ponder2ArgumentException
public P2Block asBlock() throws Ponder2ArgumentException
Ponder2ArgumentException
public P2Hash asHash() throws Ponder2ArgumentException, Ponder2OperationException
Ponder2ArgumentException
Ponder2OperationException
public boolean asBoolean() throws Ponder2ArgumentException
Ponder2ArgumentException
public java.lang.Class<?> asClass() throws Ponder2ArgumentException
Ponder2ArgumentException
public com.twicom.qdparser.TaggedElement writeXml(java.util.Set<P2Object> written) throws Ponder2OperationException
writeXml
in interface P2Serializable
Ponder2OperationException
public abstract P2Object readXml(com.twicom.qdparser.TaggedElement xml, java.util.Map<java.lang.Integer,P2Serializable> read) throws Ponder2OperationException, Ponder2ArgumentException
readXml
in interface P2Serializable
Ponder2OperationException
Ponder2ArgumentException
public P2Object create(P2Object source, java.lang.String operation, P2Object... args) throws Ponder2Exception
create
in interface Ponder2Message
Ponder2Exception
public P2Object operation(P2Object source, java.lang.String operation, P2Object... args) throws Ponder2Exception
operation
in interface Ponder2Message
Ponder2Exception
Ponder2Message.operation(net.ponder2.objects.P2Object,
java.lang.String, net.ponder2.objects.P2Object[])
public P2Object operation(P2Object source, java.lang.String operation, java.lang.String arg1, java.lang.String... args) throws Ponder2Exception
operation
in interface Ponder2Message
Ponder2Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |