com.waveset.object
Class ResourceIdentity

java.lang.Object
  extended bycom.waveset.object.ResourceIdentity

public class ResourceIdentity
extends java.lang.Object

A class used to maintain information about resource account IDs that were encoutered during extraction that may differ from the accountIds generated by the resource adapter.


Field Summary
static java.lang.String ATT_ACCOUNT_ID
           
static java.lang.String code_id
           
static java.lang.String ELEMENT
           
 
Constructor Summary
ResourceIdentity()
          Create an empty resource identity object.
ResourceIdentity(org.w3c.dom.Element e)
          Create a resource identity object and initialize it by parsing its DOM representation.
 
Method Summary
 void dumpSummary(java.lang.String file)
           
 java.lang.String getAccountId()
          Get the account ID.
 ObjectRef getResourceRef()
          Get the resource reference.
 void parseXml(org.w3c.dom.Element e)
          Parse the DOM representation of an identity object, and set the corresponding fields.
static ResourceIdentity[] parseXmlArray(org.w3c.dom.Element e)
          Parse the DOM representation for a list of ResourceIdentity objects, and return them in an array.
 void setAccountId(java.lang.String id)
          Set the account id.
 void setResource(Resource r)
          Set the resource reference.
 void setResourceRef(ObjectRef ref)
          Set the resource reference.
 void setResourceRef(java.lang.String name)
          Set the resource reference.
 java.lang.String toIdentityString()
           
 java.lang.String toVerboseString()
           
 java.lang.String toVerboseString(java.lang.String indent)
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize the resource identity object to an XML string buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

ATT_ACCOUNT_ID

public static final java.lang.String ATT_ACCOUNT_ID
See Also:
Constant Field Values
Constructor Detail

ResourceIdentity

public ResourceIdentity()
Create an empty resource identity object.


ResourceIdentity

public ResourceIdentity(org.w3c.dom.Element e)
                 throws WavesetException
Create a resource identity object and initialize it by parsing its DOM representation.

Method Detail

getResourceRef

public ObjectRef getResourceRef()
Get the resource reference.


setResourceRef

public void setResourceRef(ObjectRef ref)
Set the resource reference.


setResourceRef

public void setResourceRef(java.lang.String name)
Set the resource reference.


setResource

public void setResource(Resource r)
Set the resource reference.


getAccountId

public java.lang.String getAccountId()
Get the account ID.


setAccountId

public void setAccountId(java.lang.String id)
Set the account id.


toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Serialize the resource identity object to an XML string buffer.


parseXml

public void parseXml(org.w3c.dom.Element e)
              throws WavesetException
Parse the DOM representation of an identity object, and set the corresponding fields.

Throws:
WavesetException

parseXmlArray

public static ResourceIdentity[] parseXmlArray(org.w3c.dom.Element e)
                                        throws WavesetException
Parse the DOM representation for a list of ResourceIdentity objects, and return them in an array. The given element is assumed to be a wrapper element around the list.

Throws:
WavesetException

dumpSummary

public void dumpSummary(java.lang.String file)

toIdentityString

public java.lang.String toIdentityString()

toVerboseString

public java.lang.String toVerboseString()

toVerboseString

public java.lang.String toVerboseString(java.lang.String indent)