|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.identity.DisplayIdentificationStandardDelegate
This is a standard delegate implementation for providing display identification
information for objects. It utilizes only basic windchill util mechanisms
and is unaware of any Windchill plug'n play. It's goal is a very light-weight
delegate. The class provides a basic pattern for delegate initialization
which classes that implement this one can utilize.
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Object |
identifier
|
private String |
messageKey
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Object |
originalType
|
private static String |
RESOURCE
|
private String |
resourceBundle
|
(package private) static long |
serialVersionUID
|
private Object |
type
|
protected static boolean |
VERBOSE
|
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
DisplayIdentificationStandardDelegate()
|
Method Summary | |
LocalizableMessage |
getDisplayIdentifier()
Returns a localizable message describing the identifier for the object. |
DisplayIdentity |
getDisplayIdentity()
Supported API: false |
LocalizableMessage |
getDisplayType()
Returns a localizable message describing the object's type. |
protected Object |
getIdentifier()
Gets the value of the attribute: identifier. |
String |
getMessageKey()
Gets the value of the attribute: messageKey. |
protected Object |
getOriginalType()
Gets the value of the attribute: originalType. |
String |
getResourceBundle()
Gets the value of the attribute: resourceBundle. |
protected Object |
getType()
Gets the value of the attribute: type. |
void |
initialize(Object object)
Initialize the object so it holds all the required information about the supplied object. |
protected abstract void |
initializeIdentifier(Object object)
Initialize the identifier attribute of this property object. |
protected abstract void |
initializeType(Object object)
Initialize the type attribute of this property object. |
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(DisplayIdentificationStandardDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setIdentifier(Object a_Identifier)
Sets the value of the attribute: identifier. |
protected void |
setOriginalType(Object a_OriginalType)
Sets the value of the attribute: originalType. |
protected void |
setType(Object a_Type)
Sets the value of the attribute: type. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String resourceBundle
private String messageKey
private Object identifier
private Object type
private Object originalType
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final boolean VERBOSE
Constructor Detail |
public DisplayIdentificationStandardDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DisplayIdentificationStandardDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getResourceBundle()
public String getMessageKey()
protected Object getIdentifier()
protected void setIdentifier(Object a_Identifier)
a_Identifier
- protected Object getType()
protected void setType(Object a_Type)
a_Type
- protected Object getOriginalType()
protected void setOriginalType(Object a_OriginalType)
a_OriginalType
- public void initialize(Object object)
initializeType
method
followed by the initializeIdentifier
method.
If this method is over-ridden by implementors of this classthe children
should invoke super.initialize(object)
, then do whatever
processing they require.
initialize
in interface DisplayIdentificationDelegate
object
- protected abstract void initializeIdentifier(Object object)
object
- protected abstract void initializeType(Object object)
object
- public LocalizableMessage getDisplayType()
getDisplayType
in interface DisplayIdentification
public LocalizableMessage getDisplayIdentifier()
getDisplayIdentifier
in interface DisplayIdentification
public DisplayIdentity getDisplayIdentity()
getDisplayIdentity
in interface DisplayIdentification
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |