|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.reps.Construct
public class Construct
Edited by mdle on 20/10/2005 to implement the PersistentObject interface
| Field Summary | |
|---|---|
static int |
CLASS_ALTERNATION
Class of construct which acts as a place holder for one of list of alternative constructs. |
static int |
CLASS_CONSTRAINT
Class of construct for constraints, i.e. |
static int |
CLASS_LINK
Class of construct for linking constructs, i.e. |
static int |
CLASS_LINK_NODAL
Class of construct for link-nodal constructs, i.e. |
static int |
CLASS_MAXIMUM
|
static int |
CLASS_MINIMUM
|
static int |
CLASS_NODAL
Class of construct for nodal constructs, i.e. |
static int |
CLASS_SEQUENCE
Class of construct which acts as a place holder for a list of constructs. |
static java.lang.String |
CONSTRAINT_EXCLUSION
|
static java.lang.String |
CONSTRAINT_INCLUSION
|
static java.lang.String |
CONSTRAINT_MANDATORY
|
static java.lang.String |
CONSTRAINT_REFLEXIVE
|
static java.lang.String |
CONSTRAINT_UNDEFINED
|
static java.lang.String |
CONSTRAINT_UNION
|
static java.lang.String |
CONSTRAINT_UNIQUE
|
static int |
CONSTRUCT_TYPE_ANY
|
static int |
CONSTRUCT_TYPE_ARRAY
|
static int |
CONSTRUCT_TYPE_REFERENCE
|
static Construct |
ConstructAny
|
static Construct |
ConstructArray
|
static Construct |
ConstructReference
|
| Constructor Summary | |
|---|---|
protected |
Construct(Model model,
int cid,
java.lang.String constructName,
int constructClass,
boolean constructIsRoot)
Instantiates a Construct, which is assumed to already
exist in the STR. |
| Method Summary | |
|---|---|
ConstructScheme |
addConstraintScheme()
Constraint schemes can only be added to constructs of type Nodal, Link-Nodal, Link or Constraint Defaults to isKey = true, 1..1 |
ConstructScheme |
addConstraintScheme(boolean isKey)
|
ConstructScheme |
addConstraintScheme(int lower,
int upper)
|
ConstructScheme |
addConstraintScheme(int lower,
int upper,
boolean isKey)
|
void |
addConstructConstraint(int cid,
java.lang.String cname,
java.lang.String def)
Add a new construct constraint to repository |
ConstructScheme |
addEdgeNameScheme()
EdgeName schemes can only be added to LINK and LINK-NODAL construct types. |
ConstructScheme |
addEdgeNameScheme(boolean isKey)
|
ConstructScheme |
addLabelScheme()
Label schemes are scheme arguments that have no corresponding HDM (except maybe through automatic HDM node and edge names if the label is defined as key for its construct) Defaults to isKey = true, 1..1 |
ConstructScheme |
addLabelScheme(boolean isKey)
|
ConstructScheme |
addLabelScheme(int lower,
int upper)
|
ConstructScheme |
addLabelScheme(int lower,
int upper,
boolean isKey)
|
ConstructScheme |
addNodeNameScheme()
NodeName schemes can only be added to NODAL and LINK-NODAL construct types. |
ConstructScheme |
addNodeNameScheme(boolean isKey)
|
ConstructScheme |
addNodeNameScheme(int lower,
int upper)
|
ConstructScheme |
addNodeNameScheme(int lower,
int upper,
boolean isKey)
|
ConstructScheme |
addReferenceScheme(Construct type)
|
ConstructScheme |
addReferenceScheme(Construct type,
boolean isKey)
|
ConstructScheme |
addReferenceScheme(Construct type,
int lower,
int upper)
|
ConstructScheme |
addReferenceScheme(Construct type,
int lower,
int upper,
boolean isKey)
|
ConstructScheme |
addTypeScheme()
Constraint schemes can only be added to constructs of type Nodal and Link-Nodal Defaults to isKey = true, 1..1 |
ConstructScheme |
addTypeScheme(boolean isKey)
|
ConstructScheme |
addTypeScheme(int lower,
int upper)
|
ConstructScheme |
addTypeScheme(int lower,
int upper,
boolean isKey)
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Ordering of Constructs is determined by their getCID()
value. |
ConstructScheme |
createConstructScheme(int schemeType,
Construct refCon,
boolean isKey,
int HDMType,
int lBound,
int uBound)
Semi-deprecated! See the various addXxxScheme() methods. |
boolean |
equals(java.lang.Object o)
|
void |
exportSchemes(java.io.OutputStream os)
|
void |
exportSchemes(java.io.PrintWriter pw)
|
java.awt.Point |
getAbsolutePosition()
Same behaviour as getPosition() since Construct
instances are not placed relative to other Positionables. |
java.lang.String |
getArcDrawable()
Returns the name of the class implementing drawable that should be used to draw arc elements of this construct. |
java.awt.Color |
getBackgroundColor()
Return the default background colour to be used from drawing SchemaObjects of this Construct. |
int |
getCID()
Returns the construct identifier (CID) of the construct. |
java.util.List |
getConstraint()
Returns a List of ConstructConstraint objects associated to this construct |
java.lang.String |
getConstraintDefinition(java.lang.String constraint_name)
Return the definition of a constraint used within this Construct. |
static Construct |
getConstruct(int cid)
Returns the Construct identified by the given construct
identifier (CID). |
int |
getConstructClass()
Returns the class of the construct. |
static java.lang.String |
getConstructClassString(int conClass)
|
java.lang.String |
getConstructDescription()
Returns a printable description of the construct including all of its schemes. |
java.awt.Color |
getForegroundColor()
Return the default foreground colour to be used from drawing SchemaObjects of this Construct. |
PersistentKey |
getKey()
Implements PersistentObject interface
Added by mdle on 20/10/2005 |
java.lang.String |
getLabel()
Get the text used to label this Construct. |
java.awt.Point |
getLabelPosition()
|
int |
getLabelXPos()
|
int |
getLabelYPos()
|
Model |
getModel()
Return the Model to which this Construct belongs |
java.lang.String |
getName()
Returns the name of the construct. |
java.util.Map |
getPersistentAttributes()
Implements PersistentObject interface
Added by mdle on 20/10/2005 |
java.awt.Point |
getPosition()
Return the Point that represents the position of this
Positionable in a Panel. |
Positionable |
getPositionedRelativeTo()
Return the Positionable this is relative to. |
java.lang.Object |
getRepObject()
|
SchemaObject[] |
getSchemaObjects()
Find all SchemaObjects that are instances of a
particular Construct. |
ConstructScheme[] |
getScheme()
Returns an array of ConstructScheme objects
representing the scheme of the construct. |
java.awt.Color |
getTextColor()
Return the default text colour to be used from drawing SchemaObjects of this Construct. |
protected int |
getValuePosInScheme()
Returns the position in the construct's scheme where the construct's name is, i.e. |
java.lang.String |
getVertexDrawable()
Returns the name of the class implementing drawable that should be used to draw nodal elements of this construct. |
int |
getXPos()
|
int |
getYPos()
|
void |
importSchemes(java.io.InputStream is)
|
boolean |
isRoot()
Returns whether or not the construct is a construct of its underlying model. |
void |
remove()
Removes the Construct from the repository if it is not being used, and removes all the construct's Scheme elements. |
protected static void |
removeConstructFromMap(Construct con)
Deprecated. Remove constructs using @link remove() which will also do the job of this method Removes from the HashMap that holds the CID and ref to all Construct objs. |
void |
retract()
Removes the Construct from the repository, and all other objects which depend upon it. |
void |
setAbsolutePosition(int x,
int y)
Same behaviour as #setPosition() since Construct
instances are not placed relative to other Positionables. |
void |
setArcDrawable(java.lang.String arcDrawable)
Sets the name of the class used to draw the arc of this Construct in any diagram containing it. |
void |
setBackgroundColor(java.awt.Color c)
Set the default background colour to be used from drawing SchemaObjects of this Construct. |
void |
setConstraintDefinition(java.lang.String constraint_name,
java.lang.String constraint_definition)
Set the definition of a constraint used within this Construct. |
void |
setConstructClass(int constructClass)
Sets the class of the construct. |
void |
setForegroundColor(java.awt.Color c)
Set the default foreground colour to be used from drawing SchemaObjects of this Construct. |
void |
setLabel(java.lang.String label)
|
void |
setLabelPosition(int x,
int y)
|
void |
setLabelXPos(int x)
|
void |
setLabelYPos(int y)
|
void |
setName(java.lang.String constructName)
Sets the name of the construct to the given string. |
void |
setPosition(int x,
int y)
|
void |
setRoot(boolean root)
Sets whether or not the construct is a construct type of its underlying data model. |
void |
setTextColor(java.awt.Color c)
Set the default text colour to be used from drawing SchemaObjects of this Construct. |
void |
setVertexDrawable(java.lang.String vertexDrawable)
Sets the name of the class used to draw the vertex of this Construct in any diagram containing it. |
void |
setXPos(int x)
|
void |
setYPos(int y)
|
java.lang.String |
toString()
|
void |
write(java.io.OutputStream os)
|
void |
write(java.io.PrintWriter pw)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CLASS_MINIMUM
public static final int CLASS_NODAL
public static final int CLASS_LINK_NODAL
public static final int CLASS_LINK
public static final int CLASS_CONSTRAINT
public static final int CLASS_ALTERNATION
SchemaObject can be an
instance of this class of construct.
public static final int CLASS_SEQUENCE
SchemaObject can be an instance of this
class of construct.
public static final int CLASS_MAXIMUM
public static final int CONSTRUCT_TYPE_ARRAY
public static final int CONSTRUCT_TYPE_ANY
public static final int CONSTRUCT_TYPE_REFERENCE
public static final Construct ConstructReference
public static final Construct ConstructAny
public static final Construct ConstructArray
public static final java.lang.String CONSTRAINT_REFLEXIVE
public static final java.lang.String CONSTRAINT_INCLUSION
public static final java.lang.String CONSTRAINT_EXCLUSION
public static final java.lang.String CONSTRAINT_MANDATORY
public static final java.lang.String CONSTRAINT_UNIQUE
public static final java.lang.String CONSTRAINT_UNION
public static final java.lang.String CONSTRAINT_UNDEFINED
| Constructor Detail |
|---|
protected Construct(Model model,
int cid,
java.lang.String constructName,
int constructClass,
boolean constructIsRoot)
Construct, which is assumed to already
exist in the STR.
model - the model to which the construct belongs.cid - the construct identifier (CID) of the construct returned
by the MDR.constructName - name of the construct.constructClass - class of the construct.constructIsRoot - set to true if the construct is root
(i.e., it is itself a construct in its underlying model);
false otherwise.| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
Constructs is determined by their getCID()
value. Hence a constructs that depends on another constructs will be
ordered
after that construct.
compare in interface java.util.Comparatorpublic boolean equals(java.lang.Object o)
equals in interface java.util.Comparatorequals in class java.lang.Objectprotected static void removeConstructFromMap(Construct con)
public void remove()
MDRException - if the Construct
is used to implement a SchemaObject.public void retract()
public ConstructScheme createConstructScheme(int schemeType,
Construct refCon,
boolean isKey,
int HDMType,
int lBound,
int uBound)
throws java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructScheme for the construct.
schemeType - type of the scheme (one of
Scheme.TYPE_NAME,
Scheme.TYPE_CONSTRUCT,
Scheme.TYPE_ALTERNATION, and
Scheme.TYPE_SEQUENCE,
see Constants).refCon - the type of construct (of class Construct) that
is represented by the scheme position being created.isKey - set to true if the current scheme position
is (part of) the key of the whole scheme; false
otherwise.HDMType - the HDM type of the construct's scheme (one of
Scheme.HDM_TYPE_N1,
Scheme.HDM_TYPE_N2,
Scheme.HDM_TYPE_P1,
Scheme.HDM_TYPE_P1, and
Scheme.HDM_TYPE_C), see Constants.lBound - minimum occurence of the scheme.uBound - maximum occurence of the scheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOExceptionConstructScheme
public ConstructScheme addNodeNameScheme()
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addNodeNameScheme(boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addNodeNameScheme(int lower,
int upper)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addNodeNameScheme(int lower,
int upper,
boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addEdgeNameScheme()
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addEdgeNameScheme(boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addReferenceScheme(Construct type)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
type - == null means any construct I guess, maybe not implementable.
construct type ?
NODAL : can't have a reference scheme
LINK or LINK-NODAL : reference is to an existing construct which has a
corresponding HDM node or edge (i.e. scheme) and
is used in the construction of this construct's
HDM scheme
CONSTRAINT : reference is to existing construct which has a corresponding
HDM node or edge (i.e. scheme) and is used in the
construction of this constraints HDM sentence through scheme
references in the construct's constraint schemes (this is
also true for constraint scheme arguments of constructs of
type NODAL, LINK or LINK-NODAL).
ALTERNATIOIN or SEQUENCE : Reference is to existing constructs, no
correlation to HDM, just syntax building.
Throws exception if construct type = NODAL
Defaults to isKey = true, 1..1
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addReferenceScheme(Construct type,
boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addReferenceScheme(Construct type,
int lower,
int upper)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addReferenceScheme(Construct type,
int lower,
int upper,
boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addConstraintScheme()
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addConstraintScheme(boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addConstraintScheme(int lower,
int upper)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addConstraintScheme(int lower,
int upper,
boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addTypeScheme()
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addTypeScheme(boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addTypeScheme(int lower,
int upper)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addTypeScheme(int lower,
int upper,
boolean isKey)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addLabelScheme()
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addLabelScheme(boolean isKey)
throws java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addLabelScheme(int lower,
int upper)
throws ConstructSchemeSyntaxException,
java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
ConstructSchemeSyntaxException
java.sql.SQLException
DSRException
MDRException
java.io.IOException
public ConstructScheme addLabelScheme(int lower,
int upper,
boolean isKey)
throws java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
java.sql.SQLException
DSRException
MDRException
java.io.IOExceptionpublic java.lang.String getName()
public int getConstructClass()
public boolean isRoot()
true if the construct is a construct of its
underlying model; false otherwise.public ConstructScheme[] getScheme()
ConstructScheme objects
representing the scheme of the construct.
ConstructScheme objects
representing the scheme of the construct.ConstructSchemepublic java.util.List getConstraint()
ConstructConstraint objects associated to this construct
public void addConstructConstraint(int cid,
java.lang.String cname,
java.lang.String def)
public java.lang.String getVertexDrawable()
public void setVertexDrawable(java.lang.String vertexDrawable)
Construct in any diagram containing it. By default
Gui uses DrawVertex to paint a construct in a
diagram, but this can be replaced by a user provided class.
vertexDrawable - full class name of the DrawableVertex
implementation that is to be used by Gui when
drawing this Construct. Normally this is an
extension of DrawVertex.public void setArcDrawable(java.lang.String arcDrawable)
Construct in any diagram containing it. By default
Gui uses DrawArc to paint a construct in a
diagram, but this can be replaced by a user provided class.
arcDrawable - full class name of the DrawableArc
implementation that is to be used by Gui when
drawing this Construct. Normally this is an
extension of DrawArc.public java.lang.String getArcDrawable()
DrawableArc interface, and normally should
extend DrawArc.
public java.lang.String getConstructDescription()
public void setName(java.lang.String constructName)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
constructName - the string that is to be the construct's name.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setConstructClass(int constructClass)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
constructClass - the class of the construct.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setRoot(boolean root)
throws java.sql.SQLException,
DSRException,
MDRException,
java.io.IOException
root - set to true if the construct is a construct
type of its underlying model; false otherwise.
MDRException
java.sql.SQLException
DSRException
java.io.IOExceptionpublic int getCID()
public static Construct getConstruct(int cid)
throws AutoRepException
Construct identified by the given construct
identifier (CID).
Ordinarily one would usr Model.getConstruct(String) to get
a reference to Construct, i.e. against the Model to which it beongs.
Construct identified by the given construct
identifier (CID).
AutoRepException - if a reference to the construct identified
by the given construct identifier (CID) cannot be found.
protected int getValuePosInScheme()
throws AutoRepException
AutoRepException - if the position in the construct's scheme
where the construct's name is cannot be found.public static java.lang.String getConstructClassString(int conClass)
public Model getModel()
Model to which this Construct belongs
public SchemaObject[] getSchemaObjects()
throws IntegrityException
SchemaObjects that are instances of a
particular Construct. Useful when it is necessary to find
all occurances of a data modelling language in use, and to
find objects when deleting a data modelling language.
IntegrityException
public void importSchemes(java.io.InputStream is)
throws java.io.IOException,
SyntaxException
java.io.IOException
SyntaxExceptionpublic void exportSchemes(java.io.OutputStream os)
public void exportSchemes(java.io.PrintWriter pw)
public void write(java.io.OutputStream os)
public void write(java.io.PrintWriter pw)
public int getXPos()
getXPos in interface Positionablepublic int getYPos()
getYPos in interface Positionablepublic void setXPos(int x)
setXPos in interface Positionablepublic void setYPos(int y)
setYPos in interface Positionable
public void setPosition(int x,
int y)
setPosition in interface Positionable
public void setAbsolutePosition(int x,
int y)
#setPosition() since Construct
instances are not placed relative to other Positionables.
setAbsolutePosition in interface Positionablepublic java.awt.Point getPosition()
PositionablePoint that represents the position of this
Positionable in a Panel. Note that depending on
the implementation of the interface, this might a coordinate
relative to some other positionable
getPosition in interface Positionablepublic java.awt.Point getAbsolutePosition()
getPosition() since Construct
instances are not placed relative to other Positionables.
getAbsolutePosition in interface Positionablepublic Positionable getPositionedRelativeTo()
PositionablePositionable this is relative to. If not relative
to some other Positionable then return null.
getPositionedRelativeTo in interface Positionablepublic int getLabelXPos()
getLabelXPos in interface Positionablepublic int getLabelYPos()
getLabelYPos in interface Positionablepublic java.awt.Point getLabelPosition()
getLabelPosition in interface Positionablepublic void setLabelXPos(int x)
setLabelXPos in interface Positionablepublic void setLabelYPos(int y)
setLabelYPos in interface Positionable
public void setLabelPosition(int x,
int y)
setLabelPosition in interface Positionablepublic java.awt.Color getForegroundColor()
SchemaObjects of this Construct.
getForegroundColor in interface PositionableColor, or null if no default colour is set
for this Construct nor its Modelpublic void setForegroundColor(java.awt.Color c)
SchemaObjects of this Construct.
setForegroundColor in interface PositionableA - Color that will be used when drawing
SchemaObjects of this Construct where no
+ invidual foreground color has been set.public java.awt.Color getBackgroundColor()
SchemaObjects of this Construct.
getBackgroundColor in interface PositionableColor, or null if no default colour is set
for this Construct nor its Modelpublic void setBackgroundColor(java.awt.Color c)
SchemaObjects of this Construct.
setBackgroundColor in interface PositionableA - Color that will be used when drawing
SchemaObjects of this Construct where no
+ invidual background color has been set.public java.awt.Color getTextColor()
SchemaObjects of this Construct.
getTextColor in interface PositionableColor, or null if no default colour is set
for this Construct nor its Modelpublic void setTextColor(java.awt.Color c)
SchemaObjects of this Construct.
setTextColor in interface PositionableA - Color that will be used when drawing
SchemaObjects of this Construct where no
+ invidual text color has been set.public java.lang.String getConstraintDefinition(java.lang.String constraint_name)
Construct.
constraint_name - A string that may appear as a constraint in this
construct
String constaining an IQL definition of
the constraint named in this Construct
public void setConstraintDefinition(java.lang.String constraint_name,
java.lang.String constraint_definition)
Construct.
constraint_name - A string that may appear as a constraint in this
constructconstraint_definition - String constaining an IQL
definition of the constraint named in this Construct.public java.lang.String toString()
toString in class java.lang.Objectpublic PersistentKey getKey()
PersistentObject interface
Added by mdle on 20/10/2005
getKey in interface PersistentObjectPersistentObject.getKey()public java.util.Map getPersistentAttributes()
PersistentObject interface
Added by mdle on 20/10/2005
getPersistentAttributes in interface PersistentObjectPersistentObject.getPersistentAttributes()public java.lang.String getLabel()
getName() at least in that any characters that need escaping
for printing are escaped.
getLabel in interface Positionablepublic void setLabel(java.lang.String label)
setLabel in interface Positionablepublic java.lang.Object getRepObject()
getRepObject in interface Positionable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||