wt.clients.beans.graph
Class DefaultGraphLink

java.lang.Object
  extended bywt.clients.beans.graph.DefaultGraphLink
All Implemented Interfaces:
Externalizable, GraphLink, Serializable
Direct Known Subclasses:
DefinerGraphLink, ExportGraphLink, MonitorLink

public class DefaultGraphLink
extends Object
implements GraphLink, Externalizable

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  String description
           
static String DESCRIPTION
          Label for the attribute.
static String LISTENER_LIST
          Label for the attribute.
private  EventListenerList listenerList
           
private  Boolean loop
           
static String LOOP
           
private  GraphNode predecessor
           
static String PREDECESSOR
          Label for the attribute.
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  GraphNode successor
           
static String SUCCESSOR
          Label for the attribute.
private static String versionID
           
 
Constructor Summary
DefaultGraphLink()
           
DefaultGraphLink(GraphNode pPredecessor, GraphNode pSuccessor)
           
DefaultGraphLink(GraphNode pPredecessor, GraphNode pSuccessor, String pDescription)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
private  void descriptionValidate(String a_Description)
           
private  void fireGraphLinkChanged(String propertyName, Object oldValue, Object newValue)
           
 String getDescription()
          Gets the value of the attribute: DESCRIPTION.
 GraphNode getPredecessor()
          Gets the object for the association that plays role: PREDECESSOR.
 GraphNode getSuccessor()
          Gets the object for the association that plays role: SUCCESSOR.
 Boolean isLoop()
          Gets the value of the attribute: LOOP.
private  void predecessorValidate(GraphNode a_Predecessor)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  void readOldVersion(ObjectInput input, long readSerialVersionUID)
          Reads the non-transient fields of this class from an external source, which is not the current version.
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setDescription(String a_Description)
          Sets the value of the attribute: DESCRIPTION.
 void setLoop(Boolean loop)
          Sets the value of the attribute: LOOP.
 void setPredecessor(GraphNode a_Predecessor)
          Sets the object for the association that plays role: PREDECESSOR.
 void setSuccessor(GraphNode a_Successor)
          Sets the object for the association that plays role: SUCCESSOR.
private  void successorValidate(GraphNode a_Successor)
           
 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

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
Label for the attribute.

See Also:
Constant Field Values

description

private String description

PREDECESSOR

public static final String PREDECESSOR
Label for the attribute.

See Also:
Constant Field Values

predecessor

private GraphNode predecessor

SUCCESSOR

public static final String SUCCESSOR
Label for the attribute.

See Also:
Constant Field Values

successor

private GraphNode successor

LISTENER_LIST

public static final String LISTENER_LIST
Label for the attribute.

See Also:
Constant Field Values

listenerList

private EventListenerList listenerList

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

LOOP

public static final String LOOP
See Also:
Constant Field Values

loop

private Boolean loop
Constructor Detail

DefaultGraphLink

public DefaultGraphLink(GraphNode pPredecessor,
                        GraphNode pSuccessor)
                 throws WTPropertyVetoException
Parameters:
pPredecessor -
pSuccessor -
Throws:
WTPropertyVetoException

DefaultGraphLink

public DefaultGraphLink(GraphNode pPredecessor,
                        GraphNode pSuccessor,
                        String pDescription)
                 throws WTPropertyVetoException
Parameters:
pPredecessor -
pSuccessor -
pDescription -
Throws:
WTPropertyVetoException

DefaultGraphLink

public DefaultGraphLink()
Method Detail

writeExternal

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

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.

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

readOldVersion

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

Parameters:
input -
readSerialVersionUID -
Throws:
IOException
ClassNotFoundException

getDescription

public String getDescription()
Gets the value of the attribute: DESCRIPTION.

Specified by:
getDescription in interface GraphLink
Returns:
String

setDescription

public void setDescription(String a_Description)
                    throws WTPropertyVetoException
Sets the value of the attribute: DESCRIPTION.

Parameters:
a_Description -
Throws:
WTPropertyVetoException

descriptionValidate

private void descriptionValidate(String a_Description)
                          throws WTPropertyVetoException
Parameters:
a_Description -
Throws:
WTPropertyVetoException

getPredecessor

public GraphNode getPredecessor()
Gets the object for the association that plays role: PREDECESSOR.

Specified by:
getPredecessor in interface GraphLink
Returns:
GraphNode

setPredecessor

public void setPredecessor(GraphNode a_Predecessor)
                    throws WTPropertyVetoException
Sets the object for the association that plays role: PREDECESSOR.

Parameters:
a_Predecessor -
Throws:
WTPropertyVetoException

predecessorValidate

private void predecessorValidate(GraphNode a_Predecessor)
                          throws WTPropertyVetoException
Parameters:
a_Predecessor -
Throws:
WTPropertyVetoException

getSuccessor

public GraphNode getSuccessor()
Gets the object for the association that plays role: SUCCESSOR.

Specified by:
getSuccessor in interface GraphLink
Returns:
GraphNode

setSuccessor

public void setSuccessor(GraphNode a_Successor)
                  throws WTPropertyVetoException
Sets the object for the association that plays role: SUCCESSOR.

Parameters:
a_Successor -
Throws:
WTPropertyVetoException

successorValidate

private void successorValidate(GraphNode a_Successor)
                        throws WTPropertyVetoException
Parameters:
a_Successor -
Throws:
WTPropertyVetoException

fireGraphLinkChanged

private void fireGraphLinkChanged(String propertyName,
                                  Object oldValue,
                                  Object newValue)
Parameters:
propertyName -
oldValue -
newValue -

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface GraphLink
Parameters:
listener -

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface GraphLink
Parameters:
listener -

isLoop

public Boolean isLoop()
Gets the value of the attribute: LOOP.

Specified by:
isLoop in interface GraphLink

setLoop

public void setLoop(Boolean loop)
Sets the value of the attribute: LOOP.