wt.csm.constraint.liteconstraint
Class AbstractCSMAttributeConstraintView

java.lang.Object
  extended bywt.lite.AbstractLiteObject
      extended bywt.csm.constraint.liteconstraint.AbstractCSMAttributeConstraintView
All Implemented Interfaces:
AttributeConstraint, CheckContainer, Cloneable, CloneUpdateable, ContainerValidator, Externalizable, InnerObjectState, Liteable, LocalizedStringDisplayable, Serializable
Direct Known Subclasses:
CSMContainerConstraintDefaultView, CSMSingleDefConstraintDefaultView

public abstract class AbstractCSMAttributeConstraintView
extends AbstractLiteObject
implements InnerObjectState, CloneUpdateable, AttributeConstraint, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static boolean debug
           
static long EXTERNALIZATION_VERSION_UID
           
private  int key
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  int state
           
private  ValueConstraint theValueConstraint
           
 
Fields inherited from class wt.lite.AbstractLiteObject
ILLEGAL_ACCESS, SERVER
 
Fields inherited from interface wt.lite.InnerObjectState
CHANGED_STATE, DELETED_STATE, KEY, NEW_STATE, STATE, UNCHANGED_STATE, UNINITIALIZED_STATE
 
Fields inherited from interface wt.iba.constraint.AttributeConstraint
VALUE_CONSTRAINT
 
Fields inherited from interface wt.lite.Liteable
UPDATE_COUNT
 
Constructor Summary
AbstractCSMAttributeConstraintView()
          

Supported API: false
AbstractCSMAttributeConstraintView(int updateCount, ObjectIdentifier objectID, ValueConstraint valueConstraint)
          

Supported API: false
AbstractCSMAttributeConstraintView(ValueConstraint valueConstraint)
          

Supported API: false
 
Method Summary
protected  boolean appliesTo(AttributeContainer attrContainer, AbstractValueView absValueView)
          asdfads

Supported API: false
abstract  boolean appliesToAttrDef(AttributeDefDefaultView attributeDefDefaultview)
          

Supported API: false
 Object clone()
          

Supported API: false
 ConstraintDescriptor getConstraintDescriptor(AttributeDefDefaultView attributeDefDefaultView, Locale locale)
          

Supported API: false
 String getDisplayName(Locale locale)
          

Supported API: false
 int getKey()
          Gets the value of the attribute: key.
 String getLocalizedDisplayString()
          

Supported API: false
 String getLongDescription(Locale locale)
          

Supported API: false
 String getShortDescription(Locale locale)
          

Supported API: false
 int getState()
          Gets the value of the attribute: state.
 ValueConstraint getValueConstraint()
          Gets the object for the association that plays role: theValueConstraint.
 boolean isAddValueValid(AttributeContainer attrContainer, AbstractValueView abstValueView)
          

Supported API: false
 boolean isContainerValid(AttributeContainer attrContainer)
          

Supported API: false
 boolean isDeleteValueValid(AttributeContainer attrContainer, AbstractValueView abstValueView)
          

Supported API: false
 boolean isDirty()
          

Supported API: false
 boolean isUpdateValueValid(AttributeContainer attrContainer, AbstractValueView abstValueView)
          

Supported API: false
 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(AbstractCSMAttributeConstraintView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setKey(int a_Key)
          Sets the value of the attribute: key.
 void setState(int a_State)
          Sets the value of the attribute: state.
protected  void setStateDirty()
          

Supported API: false
 void setValueConstraint(ValueConstraint a_ValueConstraint)
          Sets the object for the association that plays role: theValueConstraint.
private  void theValueConstraintValidate(ValueConstraint a_ValueConstraint)
           
 void update(CloneUpdateable clone)
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

theValueConstraint

private ValueConstraint theValueConstraint

state

private int state

key

private int key

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

debug

public static boolean debug
Constructor Detail

AbstractCSMAttributeConstraintView

public AbstractCSMAttributeConstraintView(int updateCount,
                                          ObjectIdentifier objectID,
                                          ValueConstraint valueConstraint)
                                   throws CSMConstraintException,
                                          WTException


Supported API: false

Parameters:
updateCount -
objectID -
valueConstraint -
Throws:
CSMConstraintException
WTException

AbstractCSMAttributeConstraintView

public AbstractCSMAttributeConstraintView(ValueConstraint valueConstraint)
                                   throws CSMConstraintException


Supported API: false

Parameters:
valueConstraint -
Throws:
CSMConstraintException

AbstractCSMAttributeConstraintView

public AbstractCSMAttributeConstraintView()
                                   throws CSMConstraintException


Supported API: false

Throws:
CSMConstraintException
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 AbstractLiteObject
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 AbstractLiteObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

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

getValueConstraint

public ValueConstraint getValueConstraint()
Gets the object for the association that plays role: theValueConstraint.

Supported API: false

Specified by:
getValueConstraint in interface AttributeConstraint
Returns:
ValueConstraint

setValueConstraint

public void setValueConstraint(ValueConstraint a_ValueConstraint)
                        throws WTPropertyVetoException
Sets the object for the association that plays role: theValueConstraint.

Supported API: false

Specified by:
setValueConstraint in interface AttributeConstraint
Parameters:
a_ValueConstraint -
Throws:
WTPropertyVetoException

theValueConstraintValidate

private void theValueConstraintValidate(ValueConstraint a_ValueConstraint)
                                 throws WTPropertyVetoException
Parameters:
a_ValueConstraint -
Throws:
WTPropertyVetoException

clone

public Object clone()


Supported API: false

Overrides:
clone in class AbstractLiteObject
Returns:
Object

setStateDirty

protected void setStateDirty()


Supported API: false


isDirty

public boolean isDirty()


Supported API: false

Specified by:
isDirty in interface InnerObjectState
Returns:
boolean

update

public void update(CloneUpdateable clone)
            throws WTException


Supported API: false

Specified by:
update in interface CloneUpdateable
Parameters:
clone -
Throws:
WTException

getConstraintDescriptor

public ConstraintDescriptor getConstraintDescriptor(AttributeDefDefaultView attributeDefDefaultView,
                                                    Locale locale)


Supported API: false

Specified by:
getConstraintDescriptor in interface AttributeConstraint
Parameters:
attributeDefDefaultView -
locale -
Returns:
ConstraintDescriptor

getShortDescription

public String getShortDescription(Locale locale)


Supported API: false

Specified by:
getShortDescription in interface AttributeConstraint
Parameters:
locale -
Returns:
String

getLongDescription

public String getLongDescription(Locale locale)


Supported API: false

Specified by:
getLongDescription in interface AttributeConstraint
Parameters:
locale -
Returns:
String

getDisplayName

public String getDisplayName(Locale locale)


Supported API: false

Specified by:
getDisplayName in interface AttributeConstraint
Parameters:
locale -
Returns:
String

getLocalizedDisplayString

public String getLocalizedDisplayString()


Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Overrides:
getLocalizedDisplayString in class AbstractLiteObject
Returns:
String

appliesToAttrDef

public abstract boolean appliesToAttrDef(AttributeDefDefaultView attributeDefDefaultview)


Supported API: false

Specified by:
appliesToAttrDef in interface AttributeConstraint
Parameters:
attributeDefDefaultview -
Returns:
boolean

isAddValueValid

public boolean isAddValueValid(AttributeContainer attrContainer,
                               AbstractValueView abstValueView)
                        throws IBAConstraintException


Supported API: false

Specified by:
isAddValueValid in interface AttributeConstraint
Parameters:
attrContainer -
abstValueView -
Returns:
boolean
Throws:
IBAConstraintException

isUpdateValueValid

public boolean isUpdateValueValid(AttributeContainer attrContainer,
                                  AbstractValueView abstValueView)
                           throws IBAConstraintException


Supported API: false

Specified by:
isUpdateValueValid in interface AttributeConstraint
Parameters:
attrContainer -
abstValueView -
Returns:
boolean
Throws:
IBAConstraintException

isDeleteValueValid

public boolean isDeleteValueValid(AttributeContainer attrContainer,
                                  AbstractValueView abstValueView)
                           throws IBAConstraintException


Supported API: false

Specified by:
isDeleteValueValid in interface AttributeConstraint
Parameters:
attrContainer -
abstValueView -
Returns:
boolean
Throws:
IBAConstraintException

appliesTo

protected boolean appliesTo(AttributeContainer attrContainer,
                            AbstractValueView absValueView)
                     throws IBAConstraintException
asdfads

Supported API: false

Parameters:
attrContainer -
absValueView -
Returns:
boolean
Throws:
IBAConstraintException

isContainerValid

public boolean isContainerValid(AttributeContainer attrContainer)
                         throws IBAConstraintException


Supported API: false

Specified by:
isContainerValid in interface CheckContainer
Parameters:
attrContainer -
Returns:
boolean
Throws:
IBAConstraintException

getState

public int getState()
Gets the value of the attribute: state.

Supported API: false

Specified by:
getState in interface InnerObjectState
Returns:
int

setState

public void setState(int a_State)
              throws WTPropertyVetoException
Sets the value of the attribute: state.

Supported API: false

Specified by:
setState in interface InnerObjectState
Parameters:
a_State -
Throws:
WTPropertyVetoException

getKey

public int getKey()
Gets the value of the attribute: key.

Supported API: false

Specified by:
getKey in interface InnerObjectState
Returns:
int

setKey

public void setKey(int a_Key)
            throws WTPropertyVetoException
Sets the value of the attribute: key.

Supported API: false

Specified by:
setKey in interface InnerObjectState
Parameters:
a_Key -
Throws:
WTPropertyVetoException