|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.reps.ConstructScheme
The ConstructScheme class
Construct,
Model| 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 | |
Construct |
getArgConstruct()
Returns the Construct type of the
ConstructScheme. |
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)
|
int |
getLower()
Returns the lower bound indicating the minimum occurence of the ConstructScheme. |
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 |
isKey()
Returns whether of not the ConstructScheme is part the
key of the whole scheme. |
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.
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 ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
ConstructScheme.
schemeType - the scheme type of the ConstructScheme.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void setArgConstruct(Construct con)
throws ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
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.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void setKey(boolean key)
throws ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
key - set to true if the current scheme position
is part the key of the whole scheme; false
otherwise.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void setHDMType(int HDMType)
throws ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
ConstructScheme.
HDMType - the HDM type of the ConstructScheme.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void setLower(int lowerBound)
throws ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
ConstructScheme.
lowerBound - the lower bound indicating the minimum occurence
of the ConstructScheme.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void setUpper(int upperBound)
throws ModelDefinitionsRepositoryException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
ConstructScheme.
upperBound - the upper bound indicating the maximum occurence
of the ConstructScheme.
ModelDefinitionsRepositoryException
java.sql.SQLException
DataSourceRepositoryException
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 void write(java.io.OutputStream os)
public void write(java.io.PrintWriter pw)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||