wt.export
Class CSMConstraintExport

java.lang.Object
  extended bywt.export.CSMConstraintExport
All Implemented Interfaces:
Exportable, Externalizable, Serializable

public class CSMConstraintExport
extends Object
implements Exportable, Externalizable

See Also:
Serialized Form

Field Summary
static String BEGIN_CSM_CONSTRAINT_KEY
           
private static String CLASSNAME
           
static String CONTAINER_CONSTRAINT_KEY
           
static String END_CSM_CONSTRAINT_KEY
           
static long EXTERNALIZATION_VERSION_UID
           
static String FLOATCONTENTDISCRETESET
           
static String FLOATCONTENTRANGE
           
static String IMMUTABLE
           
static String INTEGERCONTENTDISCRETESET
           
static String INTEGERCONTENTRANGE
           
private static String MAXIMUM
           
private static String MINIMUM
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String SINGLE_DEF_CONSTRAINT_KEY
           
static String SINGLEVALUED
           
static String STRINGCONTENTDISCRETESET
           
private static String UNIT
           
static String UNITCONTENTDISCRETESET
           
static String UNITCONTENTRANGE
           
private static ExportUtility util
           
static String VALUEREQUIRED
           
private static boolean VERBOSE
           
private static String versionID
           
 
Constructor Summary
CSMConstraintExport()
           
 
Method Summary
static StringBuffer appendToConstraintBuffer(StringBuffer buf, String elem)
           
static Vector checkDuplicateConstraints(String constraintString, Vector constraintValues)
           
 void CSMConstraintExport()
           
static AttributeDefDefaultView dePersistDefinition(String hId, String defClass)
           
static String exportConstraints(AbstractCSMAttributeConstraintView constraint)
           
static String getDisplayUnit(UnitDefView definition)
           
 Vector getExportVector(Object object)
          

Supported API: false
static boolean isNumber(String number, boolean dot)
           
static ClassificationNodeDefaultView newClassificationNodeDefaultView(ClassificationNode classificationNode)
           
static Hashtable parseConstraintValues(FloatContentRange cr)
           
static Hashtable parseConstraintValues(IntegerContentRange cr)
           
static Hashtable parseConstraintValues(UnitContentRange cr)
           
 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(CSMConstraintExport thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void removeFromConstraintGroups(ClassificationNodeDefaultView cndv, AbstractCSMAttributeConstraintView obj)
           
 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

versionID

private static final String versionID
See Also:
Constant Field Values

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

VERBOSE

private static final boolean VERBOSE

util

private static ExportUtility util

SINGLE_DEF_CONSTRAINT_KEY

public static final String SINGLE_DEF_CONSTRAINT_KEY
See Also:
Constant Field Values

CONTAINER_CONSTRAINT_KEY

public static final String CONTAINER_CONSTRAINT_KEY
See Also:
Constant Field Values

BEGIN_CSM_CONSTRAINT_KEY

public static final String BEGIN_CSM_CONSTRAINT_KEY
See Also:
Constant Field Values

END_CSM_CONSTRAINT_KEY

public static final String END_CSM_CONSTRAINT_KEY
See Also:
Constant Field Values

MINIMUM

private static final String MINIMUM
See Also:
Constant Field Values

MAXIMUM

private static final String MAXIMUM
See Also:
Constant Field Values

UNIT

private static final String UNIT
See Also:
Constant Field Values

SINGLEVALUED

public static final String SINGLEVALUED
See Also:
Constant Field Values

VALUEREQUIRED

public static final String VALUEREQUIRED
See Also:
Constant Field Values

IMMUTABLE

public static final String IMMUTABLE
See Also:
Constant Field Values

FLOATCONTENTRANGE

public static final String FLOATCONTENTRANGE
See Also:
Constant Field Values

INTEGERCONTENTRANGE

public static final String INTEGERCONTENTRANGE
See Also:
Constant Field Values

UNITCONTENTRANGE

public static final String UNITCONTENTRANGE
See Also:
Constant Field Values

STRINGCONTENTDISCRETESET

public static final String STRINGCONTENTDISCRETESET
See Also:
Constant Field Values

INTEGERCONTENTDISCRETESET

public static final String INTEGERCONTENTDISCRETESET
See Also:
Constant Field Values

FLOATCONTENTDISCRETESET

public static final String FLOATCONTENTDISCRETESET
See Also:
Constant Field Values

UNITCONTENTDISCRETESET

public static final String UNITCONTENTDISCRETESET
See Also:
Constant Field Values
Constructor Detail

CSMConstraintExport

public CSMConstraintExport()
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(CSMConstraintExport 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

CSMConstraintExport

public void CSMConstraintExport()

getExportVector

public Vector getExportVector(Object object)
                       throws ExporterException
Description copied from interface: Exportable


Supported API: false

Specified by:
getExportVector in interface Exportable
Parameters:
object -
Returns:
Vector
Throws:
ExporterException

removeFromConstraintGroups

public static void removeFromConstraintGroups(ClassificationNodeDefaultView cndv,
                                              AbstractCSMAttributeConstraintView obj)

newClassificationNodeDefaultView

public static ClassificationNodeDefaultView newClassificationNodeDefaultView(ClassificationNode classificationNode)

exportConstraints

public static String exportConstraints(AbstractCSMAttributeConstraintView constraint)

checkDuplicateConstraints

public static Vector checkDuplicateConstraints(String constraintString,
                                               Vector constraintValues)

getDisplayUnit

public static String getDisplayUnit(UnitDefView definition)

isNumber

public static boolean isNumber(String number,
                               boolean dot)

parseConstraintValues

public static Hashtable parseConstraintValues(IntegerContentRange cr)

parseConstraintValues

public static Hashtable parseConstraintValues(FloatContentRange cr)

parseConstraintValues

public static Hashtable parseConstraintValues(UnitContentRange cr)

appendToConstraintBuffer

public static StringBuffer appendToConstraintBuffer(StringBuffer buf,
                                                    String elem)

dePersistDefinition

public static AttributeDefDefaultView dePersistDefinition(String hId,
                                                          String defClass)