wt.iba.definition.litedefinition
Class AbstractAttributeDefinizerNodeView

java.lang.Object
  extended bywt.lite.AbstractLiteObject
      extended bywt.iba.definition.litedefinition.AbstractAttributeDefinizerView
          extended bywt.iba.definition.litedefinition.AbstractAttributeDefinizerNodeView
All Implemented Interfaces:
Cloneable, Externalizable, Liteable, LocalizedStringDisplayable, Serializable
Direct Known Subclasses:
AttributeDefNodeView, AttributeOrgNodeView

public abstract class AbstractAttributeDefinizerNodeView
extends AbstractAttributeDefinizerView
implements Externalizable

Abstract class for Attribute Definition and Organizer Nodes. The term in the middle, "Definizer" is a juxtaposition of part of the words "Definition" and "Organizer". This class represents the node abstraction of the attribute organizer and definition hierarchy. The children and parent attributes are made transient to avoid transporting the entire tree hierachy back and forth between client and server. For this reason, client programmers must explicitly set back the parent and children attributes to the returned object when calling update, refresh, copy operations. See examples on these methods in IBAService.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  Vector children
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  Object lock
           
protected static long OLD_FORMAT_VERSION_UID
           
private  AbstractAttributeDefinizerNodeView parent
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.iba.definition.litedefinition.AbstractAttributeDefinizerView
 
Fields inherited from class wt.lite.AbstractLiteObject
ILLEGAL_ACCESS, SERVER
 
Fields inherited from interface wt.lite.Liteable
UPDATE_COUNT
 
Constructor Summary
AbstractAttributeDefinizerNodeView()
          

Supported API: false
AbstractAttributeDefinizerNodeView(int updateCount, String name, ObjectIdentifier objectID, ObjectIdentifier parentObjectID)
          

Supported API: false
AbstractAttributeDefinizerNodeView(int updateCount, String name, String hierarchyDisplayName, ObjectIdentifier objectID, ObjectIdentifier parentObjectID)
          

Supported API: false
 
Method Summary
 void addChild(AbstractAttributeDefinizerNodeView child)
          Adds an node as a child of the current node.
 Object clone()
          

Supported API: false
 Vector getChildren()
          Gets the value of the attribute: children; Internal storage of children

Supported API: false
 AbstractAttributeDefinizerNodeView getParent()
          Gets the value of the attribute: parent; Th setParent method does the followings: 1.
 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(AbstractAttributeDefinizerNodeView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void removeChild(AbstractAttributeDefinizerNodeView child)
          Removes the given child node from the current node.
 void setChildren(Vector a_Children)
          Sets the value of the attribute: children; Internal storage of children

Supported API: false
 void setParent(AbstractAttributeDefinizerNodeView a_Parent)
          Sets the value of the attribute: parent; Th setParent method does the followings: 1.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.iba.definition.litedefinition.AbstractAttributeDefinizerView
getDescription, getHierarchyDisplayName, getLocalizedDisplayString, getName, getParentObjectID, isParentOf, isRoot, readVersion, setDescription, setHierarchyDisplayName, setName, setParentObjectID
 
Methods inherited from class wt.lite.AbstractLiteObject
compareUpdateCount, getHeavyObjectClassname, getObjectID, getUpdateCount, isPersistedObjectEqual, readVersion, setLocalizedDisplayString, setObjectID, setUpdateCount
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

children

private transient Vector children

parent

private transient AbstractAttributeDefinizerNodeView parent

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

lock

private Object lock
Constructor Detail

AbstractAttributeDefinizerNodeView

public AbstractAttributeDefinizerNodeView()


Supported API: false


AbstractAttributeDefinizerNodeView

public AbstractAttributeDefinizerNodeView(int updateCount,
                                          String name,
                                          ObjectIdentifier objectID,
                                          ObjectIdentifier parentObjectID)
                                   throws WTException


Supported API: false

Parameters:
updateCount -
name -
objectID -
parentObjectID -
Throws:
WTException

AbstractAttributeDefinizerNodeView

public AbstractAttributeDefinizerNodeView(int updateCount,
                                          String name,
                                          String hierarchyDisplayName,
                                          ObjectIdentifier objectID,
                                          ObjectIdentifier parentObjectID)
                                   throws WTException


Supported API: false

Parameters:
updateCount -
name -
hierarchyDisplayName -
objectID -
parentObjectID -
Throws:
WTException
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 AbstractAttributeDefinizerView
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 AbstractAttributeDefinizerView
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

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

getChildren

public Vector getChildren()
Gets the value of the attribute: children; Internal storage of children

Supported API: false

Returns:
Vector

setChildren

public void setChildren(Vector a_Children)
                 throws WTPropertyVetoException
Sets the value of the attribute: children; Internal storage of children

Supported API: false

Parameters:
a_Children -
Throws:
WTPropertyVetoException

getParent

public AbstractAttributeDefinizerNodeView getParent()
Gets the value of the attribute: parent; Th setParent method does the followings: 1. Removes the current node from its parent if it has one. 2. Sets the given node as the parent of the current node. 3 Adds the current node as the child of the given node by calling addChild on the given node.

Supported API: false

Returns:
AbstractAttributeDefinizerNodeView

setParent

public void setParent(AbstractAttributeDefinizerNodeView a_Parent)
               throws WTPropertyVetoException
Sets the value of the attribute: parent; Th setParent method does the followings: 1. Removes the current node from its parent if it has one. 2. Sets the given node as the parent of the current node. 3 Adds the current node as the child of the given node by calling addChild on the given node.

Supported API: false

Parameters:
a_Parent -
Throws:
WTPropertyVetoException

addChild

public void addChild(AbstractAttributeDefinizerNodeView child)
Adds an node as a child of the current node.

Supported API: false

Parameters:
child -

removeChild

public void removeChild(AbstractAttributeDefinizerNodeView child)
Removes the given child node from the current node.

Supported API: false

Parameters:
child -

clone

public Object clone()


Supported API: false

Overrides:
clone in class AbstractAttributeDefinizerView
Returns:
Object