|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.common.util.ObjectIdentifierHelper
Convert OIDs to String form and back in consideration of OR/VR prefixes.
Field Summary | |
private static String |
FAKE_REFERENCE
Prefix for fake (non-persistable) object references |
private static Log |
log
|
private ReferenceFactory |
referenceFactory
reusable ReferenceFactory |
Constructor Summary | |
ObjectIdentifierHelper()
|
Method Summary | |
ObjectIdentifier |
getFakeOid(String oidAsString)
Create Fake ObjectIdentifier from its String representation |
static String |
getFakeOidAsString(ObjectIdentifier oid)
Convert Fake ObjectIdentifier to its String representation |
String |
getFakeOidString(ObjectIdentifier oid)
Convert Fake ObjectIdentifier to its String representation |
ObjectIdentifier |
getOid(String oidAsString)
Create ObjectIdentifier from its String representation |
String |
getOidString(ObjectIdentifier oid)
Convert ObjectIdentifier to its String representation |
String |
getOidString(Persistable persistable)
Convert ObjectIdentifier of a Persistable object to its String representation |
String |
getOidString(WTReference ref)
Convert ObjectIdentifier of a WTReference to its String representation |
static boolean |
isFakeOidString(String oidAsString)
returns true if the parameter is "fake" (non-WT) OID |
static String |
newNonPersistentOid()
Create unique OID for non-persistent objects to report them as part of an error message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Log log
private static final String FAKE_REFERENCE
private final ReferenceFactory referenceFactory
Constructor Detail |
public ObjectIdentifierHelper()
Method Detail |
public String getOidString(ObjectIdentifier oid) throws WTException
oid
- ObjectIdentifier
WTException
public String getOidString(WTReference ref) throws WTException
ref
- WTReference
WTException
public String getOidString(Persistable persistable) throws WTException
persistable
- Persistable
WTException
public ObjectIdentifier getOid(String oidAsString) throws WTException
oidAsString
- String
WTException
public static boolean isFakeOidString(String oidAsString)
oidAsString
- String
public ObjectIdentifier getFakeOid(String oidAsString) throws WTException
WTException
public String getFakeOidString(ObjectIdentifier oid) throws WTException
oid
- ObjectIdentifier
WTException
public static String getFakeOidAsString(ObjectIdentifier oid) throws WTException
oid
- ObjectIdentifier
WTException
public static String newNonPersistentOid()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |