wt.conflict
Class ConflictElement

java.lang.Object
  extended bywt.conflict.MessageElement
      extended bywt.conflict.ConflictElement
All Implemented Interfaces:
Externalizable, Serializable

public class ConflictElement
extends MessageElement
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  ResolutionType defaultResolution
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private  ResolutionType[] resolverSet
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.conflict.MessageElement
 
Constructor Summary
ConflictElement()
          Create conflict object for given object, conflict type, resolutions, default resolution & object specific message.
ConflictElement(ConflictType conflictType, ResolutionType[] allResolutions, ResolutionType defaultResolution, LocalizableMessage message, Object targetObj)
          Create conflict object for given object, conflict type, resolutions, default resolution & object specific message.
ConflictElement(ConflictType conflictType, ResolutionType[] allResolutions, ResolutionType defaultResolution, WTCollection targetObjCollection, LocalizableMessage message)
          Create conflict object for objectcollection, conflict type, resolutions, default resolution & object specific message.
 
Method Summary
 ResolutionType getDefaultResolution()
          Gets the value of the attribute: defaultResolution.
 ResolutionType[] getResolverSet()
          Gets the value of the attribute: resolverSet.
private  void initialize(ConflictType conflictType, ResolutionType[] allResolutions, ResolutionType defaultResolution, LocalizableMessage message)
           
 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(ConflictElement thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setDefaultResolution(ResolutionType a_DefaultResolution)
          Sets the value of the attribute: defaultResolution.
 void setResolverSet(ResolutionType[] a_ResolverSet)
          Sets the value of the attribute: resolverSet.
 String toString()
          Creates String representation involving conflict code, possible resolutions, the objects involved and the time at which it is reported.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.conflict.MessageElement
getCode, getConflictTime, getMessage, getObjectCollection, readVersion, setCode, setConflictTime, setMessage, setObjectCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

resolverSet

private ResolutionType[] resolverSet

defaultResolution

private ResolutionType defaultResolution

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
Constructor Detail

ConflictElement

public ConflictElement(ConflictType conflictType,
                       ResolutionType[] allResolutions,
                       ResolutionType defaultResolution,
                       LocalizableMessage message,
                       Object targetObj)
Create conflict object for given object, conflict type, resolutions, default resolution & object specific message.

Supported API: false

Parameters:
conflictType -
allResolutions -
defaultResolution -
message -
targetObj -

ConflictElement

public ConflictElement(ConflictType conflictType,
                       ResolutionType[] allResolutions,
                       ResolutionType defaultResolution,
                       WTCollection targetObjCollection,
                       LocalizableMessage message)
Create conflict object for objectcollection, conflict type, resolutions, default resolution & object specific message.

Supported API: false

Parameters:
conflictType -
allResolutions -
defaultResolution -
targetObjCollection -
message -

ConflictElement

public ConflictElement()
Create conflict object for given object, conflict type, resolutions, default resolution & object specific message.

Supported API: false

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
Overrides:
writeExternal in class MessageElement
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
Overrides:
readExternal in class MessageElement
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(ConflictElement 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

getResolverSet

public ResolutionType[] getResolverSet()
Gets the value of the attribute: resolverSet.

Supported API: false

Returns:
ResolutionType[]

setResolverSet

public void setResolverSet(ResolutionType[] a_ResolverSet)
                    throws WTPropertyVetoException
Sets the value of the attribute: resolverSet.

Supported API: false

Parameters:
a_ResolverSet -
Throws:
WTPropertyVetoException

getDefaultResolution

public ResolutionType getDefaultResolution()
Gets the value of the attribute: defaultResolution.

Supported API: false

Returns:
ResolutionType

setDefaultResolution

public void setDefaultResolution(ResolutionType a_DefaultResolution)
                          throws WTPropertyVetoException
Sets the value of the attribute: defaultResolution.

Supported API: false

Parameters:
a_DefaultResolution -
Throws:
WTPropertyVetoException

toString

public String toString()
Creates String representation involving conflict code, possible resolutions, the objects involved and the time at which it is reported. Provided for logging.

Supported API: false

Overrides:
toString in class MessageElement
Returns:
String

initialize

private void initialize(ConflictType conflictType,
                        ResolutionType[] allResolutions,
                        ResolutionType defaultResolution,
                        LocalizableMessage message)