|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.rodex.qproc.QuerySubGoal
public class QuerySubGoal
Constructor Summary | |
---|---|
QuerySubGoal(java.lang.String schemeDef)
Create a new sub goal from a scheme definition, e.g. |
|
QuerySubGoal(java.lang.String[] schemeElements)
Creates a new instance of QuerySubGoal |
|
QuerySubGoal(java.lang.String schemaName,
java.lang.String schemeDef)
Create a new sub goal from a schema name and a short scheme definition, e.g. |
|
QuerySubGoal(java.lang.String schemaName,
java.lang.String[] schemeElements)
Create a new sub goal from a schema name and scheme elements |
Method Summary | |
---|---|
void |
addDefQuery(TransformationAbstraction defQuery)
Add a definition query for the schema object represented by this sub-goal. |
void |
addVariable(QueryVariable var)
A head variable of the sub-goal. |
boolean |
equals(java.lang.Object o)
Override the comparison method |
java.util.List |
getDefQueries()
|
java.lang.String[] |
getElements()
Return all scheme elements (scheme name + fields) as one array |
java.lang.String[] |
getFields()
|
java.lang.String |
getID()
Return the object if corresponding to this scheme |
int |
getIndex()
Return the temporary index position of this sub-goal in a list |
java.lang.String |
getSchemaName()
Return the schema name (e.g. |
java.lang.String |
getSchemeName()
Return the scheme name (e.g. |
java.util.List |
getSharedVariables()
Return a List of shared variables |
java.util.List |
getVariables()
Query's head variables |
boolean |
hasField(java.lang.String fieldName)
Check that it contains a field |
int |
hashCode()
Override the Object.hashCode() method for use in a collection.Basically this method helps produces unique key for a QuerySubGoal object when it is stored in a collection, such as HashTable/code> |
boolean |
isMappableTo(QuerySubGoal anotherSubGoal)
Test for containment mapping to another subgoal. |
void |
setID(java.lang.String id)
Set the id for this sub-goal using the corresponding schema object id from the repository |
void |
setIndex(int index)
Set the temporary index position of this scheme in a list of schemes . |
java.lang.String |
toExtendedString()
Output a String representation of the sub goal with schema name (if any) |
java.lang.String |
toInternalString()
Output a String representation of the sub-goal using sub-goal's unique
id instead of the scheme name string |
java.lang.String |
toIQLString()
Output a String representation of the sub goal with schema name (if any)
toIQLString() = "{x,y} ->" + toString() |
java.lang.String |
toString()
Output a String representation of the sub goal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QuerySubGoal(java.lang.String[] schemeElements)
schemeElements
- an array of scheme elements of the query subgoalpublic QuerySubGoal(java.lang.String schemeDef)
public QuerySubGoal(java.lang.String schemaName, java.lang.String schemeDef)
public QuerySubGoal(java.lang.String schemaName, java.lang.String[] schemeElements)
Method Detail |
---|
public boolean isMappableTo(QuerySubGoal anotherSubGoal)
anotherSubGoal
- another QuerySubGoal
object
public boolean hasField(java.lang.String fieldName)
public java.lang.String toString()
String
representation of the sub goal
toString
in class java.lang.Object
public java.lang.String toIQLString()
String
representation of the sub goal with schema name (if any)
toIQLString() = "{x,y} ->" + toString()
public java.lang.String toExtendedString()
String
representation of the sub goal with schema name (if any)
public java.lang.String toInternalString() throws QueryIntegrityException
String
representation of the sub-goal using sub-goal's unique
id instead of the scheme name string
QueryIntegrityException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addVariable(QueryVariable var)
var
- a QueryVariable
objectpublic java.util.List getSharedVariables()
List
of shared variables
null
if there public java.lang.String getSchemeName()
public java.lang.String getSchemaName()
public java.lang.String[] getFields()
public java.lang.String[] getElements()
public java.util.List getVariables()
public java.lang.String getID()
public void setID(java.lang.String id)
public int getIndex()
public void setIndex(int index)
public void addDefQuery(TransformationAbstraction defQuery)
TransformationAbstraction
object
public java.util.List getDefQueries()
public int hashCode()
Object.hashCode()
method for use in a collection.QuerySubGoal
HashTable/code>
- Overrides:
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |