|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.OID
public class OID
This is the fundamental object identifier for all the managed objects in the system. Every managed object will have a single, unique OID associated with it on a one to one, reversible mapping. The OID also contains all the known ways of remotely contacting the SMC where the managed object resides.
Constructor Summary | |
---|---|
OID()
Dummy required for serialisation |
|
OID(P2ManagedObject managedObject)
creates a new OID, initialises its fields and adds it to the SMC's list of OIDs |
Method Summary | |
---|---|
static void |
addAddress(java.net.URI address)
adds a new address to the set of addresses for this SMC |
static OID |
fromXML(com.twicom.qdparser.TaggedElement xml)
generates an OID from an XML structure. |
static java.util.Set<java.net.URI> |
getAddresses()
|
protected java.util.Set<java.net.URI> |
getAddressSet()
|
P2ManagedObject |
getManagedObject()
returns the actual managed object associated with this OID |
P2Object |
getP2Object()
returns the actual managed object associated with this OID |
protected java.util.Set<java.net.URI> |
getRemoteAddresses()
|
java.lang.String |
getUid()
|
boolean |
isDomain()
checks whether this OID is associated with a domain managed object |
void |
readExternal(java.io.ObjectInput in)
|
protected java.lang.Object |
readResolve()
Called by the serialization routines after readExternal as been called. |
P2Object |
readXml(com.twicom.qdparser.TaggedElement xml,
java.util.Map<java.lang.Integer,P2Serializable> read)
|
protected void |
setDomain(boolean isDomain)
sets whether this OID is associated with a domain managed object |
protected void |
setUid(java.lang.String uid)
|
java.lang.String |
toString()
|
com.twicom.qdparser.TaggedElement |
toXML()
returns the OID as an XML structure. |
void |
writeExternal(java.io.ObjectOutput out)
|
com.twicom.qdparser.TaggedElement |
writeXml(java.util.Set<P2Object> written)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OID()
public OID(P2ManagedObject managedObject)
Method Detail |
---|
public static void addAddress(java.net.URI address)
address
- the address to be addedpublic static java.util.Set<java.net.URI> getAddresses()
public static OID fromXML(com.twicom.qdparser.TaggedElement xml) throws Ponder2OperationException, Ponder2ArgumentException
xml
- the XML structure containing the OID
Ponder2ArgumentException
Ponder2OperationException
public boolean isDomain()
protected void setDomain(boolean isDomain)
isDomain
- true if this OID is to be associated with a domain managed objectpublic P2ManagedObject getManagedObject()
public P2Object getP2Object()
protected java.util.Set<java.net.URI> getRemoteAddresses()
protected java.util.Set<java.net.URI> getAddressSet()
public com.twicom.qdparser.TaggedElement toXML()
public java.lang.String toString()
toString
in class java.lang.Object
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String getUid()
protected void setUid(java.lang.String uid)
uid
- the uid to setpublic com.twicom.qdparser.TaggedElement writeXml(java.util.Set<P2Object> written) throws Ponder2OperationException
writeXml
in interface P2Serializable
Ponder2OperationException
public P2Object readXml(com.twicom.qdparser.TaggedElement xml, java.util.Map<java.lang.Integer,P2Serializable> read) throws Ponder2OperationException, Ponder2ArgumentException
readXml
in interface P2Serializable
Ponder2OperationException
Ponder2ArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |