wt.iba.constraint
Class ConstraintGroup

java.lang.Object
  extended bywt.iba.constraint.ConstraintGroup
All Implemented Interfaces:
CheckContainer, ContainerValidator, Externalizable, LocalizedStringDisplayable, Serializable

public class ConstraintGroup
extends Object
implements ContainerValidator, LocalizedStringDisplayable, CheckContainer, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  String constraintGroupLabel
           
private  Vector constraints
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Constructor Summary
ConstraintGroup()
           
 
Method Summary
 void addConstraint(AttributeConstraint constraint)
          

Supported API: false
private  void constraintGroupLabelValidate(String a_ConstraintGroupLabel)
           
 ConstraintDescriptor[] getConstraintDescriptors(AttributeDefDefaultView attributeDefDefaultView, Locale locale)
          

Supported API: false
 String getConstraintGroupLabel()
          Gets the value of the attribute: constraintGroupLabel.
 Enumeration getConstraints()
          

Supported API: false
 AttributeConstraint[] getConstraintsByAttrDef(AttributeDefDefaultView attributeDefDefaultView)
          

Supported API: false
 String getLocalizedDisplayString()
          

Supported API: false
 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 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(ConstraintGroup thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void removeConstraint(AttributeConstraint constraint)
          Removes the first occurrence of the specified AttriburteConstraint.
 void setConstraintGroupLabel(String a_ConstraintGroupLabel)
          Sets the value of the attribute: constraintGroupLabel.
 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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

constraintGroupLabel

private String constraintGroupLabel

constraints

private Vector constraints

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

ConstraintGroup

public ConstraintGroup()
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
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
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

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

getConstraintGroupLabel

public String getConstraintGroupLabel()
Gets the value of the attribute: constraintGroupLabel.

Supported API: false

Returns:
String

setConstraintGroupLabel

public void setConstraintGroupLabel(String a_ConstraintGroupLabel)
                             throws WTPropertyVetoException
Sets the value of the attribute: constraintGroupLabel.

Supported API: false

Parameters:
a_ConstraintGroupLabel -
Throws:
WTPropertyVetoException

constraintGroupLabelValidate

private void constraintGroupLabelValidate(String a_ConstraintGroupLabel)
                                   throws WTPropertyVetoException
Parameters:
a_ConstraintGroupLabel -
Throws:
WTPropertyVetoException

addConstraint

public void addConstraint(AttributeConstraint constraint)


Supported API: false

Parameters:
constraint -

getConstraints

public Enumeration getConstraints()


Supported API: false

Returns:
Enumeration

getConstraintsByAttrDef

public AttributeConstraint[] getConstraintsByAttrDef(AttributeDefDefaultView attributeDefDefaultView)


Supported API: false

Parameters:
attributeDefDefaultView -
Returns:
AttributeConstraint[]

getConstraintDescriptors

public ConstraintDescriptor[] getConstraintDescriptors(AttributeDefDefaultView attributeDefDefaultView,
                                                       Locale locale)


Supported API: false

Parameters:
attributeDefDefaultView -
locale -
Returns:
ConstraintDescriptor []

getLocalizedDisplayString

public String getLocalizedDisplayString()


Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Returns:
String

removeConstraint

public void removeConstraint(AttributeConstraint constraint)
Removes the first occurrence of the specified AttriburteConstraint. If the ConstraintGroup doesn't contain the constraint, it remains unchanged.

Supported API: false

Parameters:
constraint -

isAddValueValid

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


Supported API: false

Specified by:
isAddValueValid in interface ContainerValidator
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 ContainerValidator
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 ContainerValidator
Parameters:
attrContainer -
abstValueView -
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