com.ptc.windchill.uwgm.common.util
Class PrintHelper

java.lang.Object
  extended bycom.ptc.windchill.uwgm.common.util.PrintHelper

public class PrintHelper
extends Object

helper class to produce String reprosentation for different objects and their collections


Field Summary
static String ERROR
           
private static Log log
          logging
static String NULL
          NULL String representation
 
Constructor Summary
PrintHelper()
           
 
Method Summary
static StringBuffer addOID(StringBuffer buffer, ObjectIdentifier oid)
          adds OID String representation to StringBuffer
static StringBuffer addRVI(StringBuffer buffer, Iterated iterated)
          adds RevisionIterationInfo String representation to StringBuffer
static String printContainer(WTContainer container)
          returns short String representation for WTContainer: ContainerName[OID](ContainerType)
static String printFolder(Folder folder)
          returns short String representation for Folder: FolderName[OID](containerName|location)
static String printIterated(Iterated iterated)
          returns short String presentation for IteratedObject: Name[OID](RVI)
static String printPersistable(Persistable persistable)
          returns String representation of Persistable objects
static String printWorkspace(EPMWorkspace epmWorkspace)
          returns short String representation for EPMWorkspace: WorkspaceName[OID](Container:ContainerType)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final String NULL
NULL String representation

See Also:
Constant Field Values

ERROR

public static final String ERROR
See Also:
Constant Field Values

log

private static Log log
logging

Constructor Detail

PrintHelper

public PrintHelper()
Method Detail

printPersistable

public static String printPersistable(Persistable persistable)
returns String representation of Persistable objects

Supports: EPMDocument, WTPArt, Folder, Container (see coresponding printXXX for details). For other persistables just prints OID

Parameters:
persistable - Persistable
Returns:
String

printIterated

public static String printIterated(Iterated iterated)
returns short String presentation for IteratedObject: Name[OID](RVI)

for EPMDocument uses CADName as Name, for WTParts uses Number

Parameters:
iterated - Iterated
Returns:
String

printFolder

public static String printFolder(Folder folder)
returns short String representation for Folder: FolderName[OID](containerName|location)

Parameters:
folder - Folder
Returns:
String

printContainer

public static String printContainer(WTContainer container)
returns short String representation for WTContainer: ContainerName[OID](ContainerType)

Parameters:
container - WTContainer
Returns:
String

printWorkspace

public static String printWorkspace(EPMWorkspace epmWorkspace)
returns short String representation for EPMWorkspace: WorkspaceName[OID](Container:ContainerType)

Parameters:
epmWorkspace - EPMWorkspace
Returns:
String

addOID

public static StringBuffer addOID(StringBuffer buffer,
                                  ObjectIdentifier oid)
adds OID String representation to StringBuffer

Parameters:
buffer - StringBuffer
oid - ObjectIdentifier
Returns:
StringBuffer

addRVI

public static StringBuffer addRVI(StringBuffer buffer,
                                  Iterated iterated)
adds RevisionIterationInfo String representation to StringBuffer

Parameters:
buffer - StringBuffer
iterated - Iterated
Returns:
StringBuffer updated buffer