|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.reps.ConstructScheme
public class ConstructScheme
Edited by mdle on 20/10/2005 to implement the PersistentObject interface
| Constructor Summary | |
|---|---|
protected |
ConstructScheme(int cid,
int pos,
int schemeType,
Construct con,
boolean key,
int HDMType,
int lowerBound,
int upperBound)
Instantiates a new ConstructScheme object. |
| Method Summary | |
|---|---|
java.lang.String |
getArgCID()
|
Construct |
getArgConstruct()
Returns the Construct type of the
ConstructScheme. |
int |
getCID()
Other setter, getter methods |
int |
getHDMType()
Returns the HDM type of the ConstructScheme. |
static java.lang.String |
getHDMTypeString(int HDMType)
|
static java.lang.String |
getHDMTypeString(int HDMType,
boolean brief)
|
PersistentKey |
getKey()
Implements PersistentObject interface
Added by mdle on 20/10/2005 |
int |
getLower()
Returns the lower bound indicating the minimum occurence of the ConstructScheme. |
java.util.Map |
getPersistentAttributes()
Implements PersistentObject interface
Added by mdle on 20/10/2005 |
int |
getSchemePos()
|
int |
getSchemeType()
Returns the scheme type of the ConstructScheme. |
static java.lang.String |
getSchemeTypeString(int schemeType)
|
static java.lang.String |
getSchemeTypeString(int schemeType,
boolean brief)
|
int |
getUpper()
Returns the upper bound indicating the maximum occurence of the ConstructScheme. |
boolean |
inRange(int c)
Determine if a certain number of instances of elements in a scheme matching this ConstructScheme are permissable. |
boolean |
isKey()
Returns whether of not the ConstructScheme is part the
key of the whole scheme. |
void |
setArgCID(java.lang.String argCID)
Added to set the argCID value independently when loading models dmle 9/11/2005 |
void |
setArgConstruct(Construct con)
Sets the Construct in the ConstructScheme. |
void |
setHDMType(int HDMType)
Sets the HDM type of the ConstructScheme. |
void |
setKey(boolean key)
Sets whether or not the current scheme position is part the key of the whole scheme. |
void |
setLower(int lowerBound)
Sets the lower bound indicating the minimum occurence of the ConstructScheme. |
void |
setSchemeType(int schemeType)
Sets the scheme type of the ConstructScheme. |
void |
setUpper(int upperBound)
Sets the upper bound indicating the maximum occurence of the ConstructScheme. |
void |
write(java.io.OutputStream os)
|
void |
write(java.io.PrintWriter pw)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConstructScheme(int cid,
int pos,
int schemeType,
Construct con,
boolean key,
int HDMType,
int lowerBound,
int upperBound)
Construct
has in its scheme one or more ConstructScheme objects.
sType - scheme type of the ConstructScheme.con - reference to the construct if the scheme position being
created contains a Construct. Set to null
otherwise.key - set to true if the sheme position being
created forms the key or part of the key of the position's
underlying construct; false otherwise.HDMType - the corresponding HDM type of the
construct scheme at the current scheme position.lowerBound - minimum occurrence of the scheme argument.upperBound - maximum occurrence of the scheme argument. If
upperBound is less than lowerBound then their is no upper bound.Construct| Method Detail |
|---|
public int getSchemeType()
ConstructScheme.
ConstructScheme.public Construct getArgConstruct()
Construct type of the
ConstructScheme. If the scheme type of the
ConstructScheme is Scheme.TYPE_NAME,
this field should be set to null
- Returns:
- the type of
Construct of the
ConstructScheme. Returns null if
the ConstructScheme is of scheme type
Scheme.TYPE_NAME.
public boolean isKey()
ConstructScheme is part the
key of the whole scheme.
true if the current scheme position is part the
key of the whole scheme; false otherwise.public int getHDMType()
ConstructScheme.
ConstructScheme.public int getLower()
ConstructScheme.
ConstructScheme.public int getUpper()
ConstructScheme.
ConstructScheme.
public void setSchemeType(int schemeType)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
ConstructScheme.
schemeType - the scheme type of the ConstructScheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setArgConstruct(Construct con)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
Construct in the ConstructScheme.
If the scheme type of ConstructScheme is
Scheme.TYPE_NAME, this field should be set to
null.
con - the Construct in the ConstructScheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOExceptionpublic void setArgCID(java.lang.String argCID)
public void setKey(boolean key)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
key - set to true if the current scheme position
is part the key of the whole scheme; false
otherwise.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setHDMType(int HDMType)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
ConstructScheme.
HDMType - the HDM type of the ConstructScheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setLower(int lowerBound)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
ConstructScheme.
lowerBound - the lower bound indicating the minimum occurence
of the ConstructScheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOException
public void setUpper(int upperBound)
throws MDRException,
java.sql.SQLException,
DSRException,
java.io.IOException
ConstructScheme.
upperBound - the upper bound indicating the maximum occurence
of the ConstructScheme.
MDRException
java.sql.SQLException
DSRException
java.io.IOExceptionpublic static java.lang.String getHDMTypeString(int HDMType)
public static java.lang.String getHDMTypeString(int HDMType,
boolean brief)
public static java.lang.String getSchemeTypeString(int schemeType)
public static java.lang.String getSchemeTypeString(int schemeType,
boolean brief)
public boolean inRange(int c)
c - number of instances of elements to check
public void write(java.io.OutputStream os)
public void write(java.io.PrintWriter pw)
public int getCID()
public int getSchemePos()
public java.lang.String getArgCID()
public 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||