|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.LinkIdentifier
Used to uniquely identify an object (e.g. an account) on a single resource. This class stores a reference to the resource and an identifier for the object in the resource. This identifier is either a guid, an identity (e.g.accountId), or a temporary id if neither of these is available.
Field Summary | |
static java.lang.String |
ATT_GUID
|
static java.lang.String |
ATT_IDENTITY
|
static java.lang.String |
ATT_TEMPID
|
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
LinkIdentifier()
|
|
LinkIdentifier(org.w3c.dom.Element e)
|
Method Summary | |
protected void |
addXmlAttributes(java.lang.StringBuffer b)
|
protected void |
addXmlElements(java.lang.StringBuffer b,
int indent)
|
static LinkIdentifier |
fromResource(java.lang.String nameOrId)
|
java.lang.String |
getElementName()
Return the XmlObject name |
java.lang.String |
getGUID()
|
java.lang.String |
getIdentity()
|
PersistentObject |
getOwner()
|
Resource |
getResource()
Resolve the resource reference, and return the Resource object. |
Resource |
getResource(ObjectCache cache)
|
ObjectRef |
getResourceRef()
|
java.lang.String |
getTempId()
|
void |
parseXml(org.w3c.dom.Element e)
|
protected void |
parseXmlAttributes(org.w3c.dom.Element e)
|
protected void |
parseXmlChild(java.lang.String tag,
org.w3c.dom.Element child)
|
void |
setGUID(java.lang.String s)
|
void |
setIdentity(java.lang.String id)
|
void |
setOwner(PersistentObject owner)
Set the owning user object. |
void |
setResource(ObjectRef ref)
Sets the resource reference. |
void |
setResource(Resource r)
Sets the resource. |
void |
setTempId(java.lang.String tempId)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize into a buffer with optional indentation. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
public static final java.lang.String ATT_IDENTITY
public static final java.lang.String ATT_GUID
public static final java.lang.String ATT_TEMPID
Constructor Detail |
public LinkIdentifier()
public LinkIdentifier(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public static LinkIdentifier fromResource(java.lang.String nameOrId)
public java.lang.String getElementName()
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void setOwner(PersistentObject owner)
owner
- owner objectpublic PersistentObject getOwner()
public ObjectRef getResourceRef()
public void setResource(ObjectRef ref)
ref
- resource referencepublic void setResource(Resource r)
r
- resourcepublic Resource getResource() throws WavesetException
WavesetException
- if the ResourceInfo has no ownerpublic Resource getResource(ObjectCache cache) throws WavesetException
WavesetException
public java.lang.String getIdentity()
public void setIdentity(java.lang.String id)
public java.lang.String getGUID()
public void setGUID(java.lang.String s)
public java.lang.String getTempId()
public void setTempId(java.lang.String tempId)
protected void addXmlAttributes(java.lang.StringBuffer b)
protected void addXmlElements(java.lang.StringBuffer b, int indent)
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
protected void parseXmlAttributes(org.w3c.dom.Element e) throws WavesetException
WavesetException
protected void parseXmlChild(java.lang.String tag, org.w3c.dom.Element child) throws WavesetException
WavesetException
public void parseXml(org.w3c.dom.Element e) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |