com.ptc.netmarkets.model
Class NmOid

java.lang.Object
  extended bycom.ptc.netmarkets.model.NmOid
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
NmSimpleOid

public class NmOid
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  HashMap additionalInfo
           
private static String CLASSNAME
           
private  WTContainerRef containerRef
           
private  Object content
           
static long EXTERNALIZATION_VERSION_UID
           
private  FolderHierarchy.FolderEntryInfo fei
           
private  FolderHierarchy fh
           
private  String nmOidStr
           
private  ObjectIdentifier oid
           
protected static long OLD_FORMAT_VERSION_UID
           
private  Object process
           
private  Object ref
           
private static String RESOURCE
           
private  SharedContainerMap scm
           
static String SEP
           
(package private) static long serialVersionUID
           
private  NmOid sharedContainer
           
private  boolean sharedFrom
           
private  boolean sharedTo
           
private  String type
           
private static boolean VERBOSE
           
 
Constructor Summary
NmOid()
          

Supported API: false
NmOid(String nmOidStr)
          

Supported API: false
NmOid(String type, ObjectIdentifier oid)
          

Supported API: false
 
Method Summary
 void clearCache()
           
 boolean equals(Object object)
          

Supported API: false
 HashMap getAdditionalInfo()
          Gets the value of the attribute: additionalInfo.
 WTContainer getContainer()
           
 WTContainerRef getContainerRef()
           
 Object getContent()
           
 FolderHierarchy.FolderEntryInfo getFEI()
           
 FolderHierarchy getFH()
           
 ObjectIdentifier getOid()
          Gets the value of the attribute: oid.
 Object getProcess()
          Gets the value of the attribute: process.
 NmProject getProject()
          Get NmProject object associated to the referenced object.
 Object getRef()
          Gets the value of the attribute: ref.
private  Object getRefCommon(boolean latestIteration)
           
 Object getReferencedIteration()
          Get object associated with the NmOid ObjectIdentifier.
 SharedContainerMap getSCM()
           
 NmOid getSharedContainer()
          Gets the value of the attribute: sharedContainer.
 String getType()
          Gets the value of the attribute: type.
 int hashCode()
          

Supported API: false
 boolean isRefNull()
           
 boolean isShared()
          

Supported API: false
 boolean isSharedFrom()
          Gets the value of the attribute: sharedFrom.
 boolean isSharedTo()
          Gets the value of the attribute: sharedTo.
static NmOid newNmOid(ObjectIdentifier oi)
           
static NmOid newNmOid(String oidStr)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmOid thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setAdditionalInfo(HashMap a_AdditionalInfo)
          Sets the value of the attribute: additionalInfo.
 void setContainerRef(WTContainerRef aref)
           
 void setContent(Object someContent)
           
 void setFEI(FolderHierarchy.FolderEntryInfo afh)
           
 void setFH(FolderHierarchy afh)
           
 void setOid(ObjectIdentifier a_Oid)
          Sets the value of the attribute: oid.
 void setProcess(Object a_Process)
          Sets the value of the attribute: process.
 void setRef(Object a_Ref)
          Sets the value of the attribute: ref.
 void setSCM(SharedContainerMap ascm)
           
 void setSharedContainer(NmOid a_SharedContainer)
          Sets the value of the attribute: sharedContainer.
 void setSharedFrom(boolean a_SharedFrom)
          Sets the value of the attribute: sharedFrom.
 void setSharedTo(boolean a_SharedTo)
          Sets the value of the attribute: sharedTo.
 void setType(String a_Type)
          Sets the value of the attribute: type.
 String toString()
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

type

private String type

oid

private ObjectIdentifier oid

ref

private transient Object ref

process

private transient Object process

additionalInfo

private HashMap additionalInfo

sharedFrom

private boolean sharedFrom

sharedTo

private boolean sharedTo

sharedContainer

private NmOid sharedContainer

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

SEP

public static final String SEP
See Also:
Constant Field Values

nmOidStr

private transient String nmOidStr

content

private transient Object content

scm

private transient SharedContainerMap scm

containerRef

private transient WTContainerRef containerRef

fei

private transient FolderHierarchy.FolderEntryInfo fei

fh

private transient FolderHierarchy fh
Constructor Detail

NmOid

public NmOid()


Supported API: false


NmOid

public NmOid(String type,
             ObjectIdentifier oid)


Supported API: false

Parameters:
type -
oid -

NmOid

public NmOid(String nmOidStr)
      throws WTException


Supported API: false

Parameters:
nmOidStr -
Throws:
WTException
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmOid thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getType

public String getType()
Gets the value of the attribute: type.

Supported API: false

Returns:
String

setType

public void setType(String a_Type)
Sets the value of the attribute: type.

Supported API: false

Parameters:
a_Type -

getOid

public ObjectIdentifier getOid()
Gets the value of the attribute: oid.

Supported API: false

Returns:
ObjectIdentifier

setOid

public void setOid(ObjectIdentifier a_Oid)
Sets the value of the attribute: oid.

Supported API: false

Parameters:
a_Oid -

getRef

public Object getRef()
              throws WTException
Gets the value of the attribute: ref.

Supported API: false

Returns:
Object
Throws:
WTException

setRef

public void setRef(Object a_Ref)
Sets the value of the attribute: ref.

Supported API: false

Parameters:
a_Ref -

getProcess

public Object getProcess()
                  throws WTException
Gets the value of the attribute: process.

Supported API: false

Returns:
Object
Throws:
WTException

setProcess

public void setProcess(Object a_Process)
Sets the value of the attribute: process.

Supported API: false

Parameters:
a_Process -

getAdditionalInfo

public HashMap getAdditionalInfo()
Gets the value of the attribute: additionalInfo.

Supported API: false

Returns:
HashMap

setAdditionalInfo

public void setAdditionalInfo(HashMap a_AdditionalInfo)
Sets the value of the attribute: additionalInfo.

Supported API: false

Parameters:
a_AdditionalInfo -

isSharedFrom

public boolean isSharedFrom()
Gets the value of the attribute: sharedFrom.

Supported API: false

Returns:
boolean

setSharedFrom

public void setSharedFrom(boolean a_SharedFrom)
Sets the value of the attribute: sharedFrom.

Supported API: false

Parameters:
a_SharedFrom -

isSharedTo

public boolean isSharedTo()
Gets the value of the attribute: sharedTo.

Supported API: false

Returns:
boolean

setSharedTo

public void setSharedTo(boolean a_SharedTo)
Sets the value of the attribute: sharedTo.

Supported API: false

Parameters:
a_SharedTo -

getSharedContainer

public NmOid getSharedContainer()
Gets the value of the attribute: sharedContainer.

Supported API: false

Returns:
NmOid

setSharedContainer

public void setSharedContainer(NmOid a_SharedContainer)
Sets the value of the attribute: sharedContainer.

Supported API: false

Parameters:
a_SharedContainer -

toString

public String toString()


Supported API: false

Returns:
String

equals

public boolean equals(Object object)


Supported API: false

Parameters:
object -
Returns:
boolean

hashCode

public int hashCode()


Supported API: false

Returns:
int

isShared

public boolean isShared()


Supported API: false

Returns:
boolean

getProject

public NmProject getProject()
                     throws WTException
Get NmProject object associated to the referenced object. Only name and oid are guaranteed to be initialized in the returned object. Returns null if object is not associated to a project.

Throws:
WTException

clearCache

public void clearCache()

isRefNull

public boolean isRefNull()

setContent

public void setContent(Object someContent)

getContent

public Object getContent()

newNmOid

public static NmOid newNmOid(String oidStr)
                      throws WTException
Throws:
WTException

newNmOid

public static NmOid newNmOid(ObjectIdentifier oi)
                      throws WTException
Throws:
WTException

getContainer

public WTContainer getContainer()
                         throws WTException
Throws:
WTException

getContainerRef

public WTContainerRef getContainerRef()
                               throws WTException
Throws:
WTException

setContainerRef

public void setContainerRef(WTContainerRef aref)

setFEI

public void setFEI(FolderHierarchy.FolderEntryInfo afh)

getFEI

public FolderHierarchy.FolderEntryInfo getFEI()

setFH

public void setFH(FolderHierarchy afh)

getFH

public FolderHierarchy getFH()

setSCM

public void setSCM(SharedContainerMap ascm)

getSCM

public SharedContainerMap getSCM()

getReferencedIteration

public Object getReferencedIteration()
                              throws WTException
Get object associated with the NmOid ObjectIdentifier. Differs from getRef it that it dones not return the latest iteration

Throws:
WTException

getRefCommon

private Object getRefCommon(boolean latestIteration)
                     throws WTException
Throws:
WTException