|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.xmlquery.QueryElement
public class QueryElement
A single query element. An object of this class is an element of a query.
TODO: Consider computing proper mime-type based on class of object being inserted as a value into the result.
| Constructor Summary | |
|---|---|
QueryElement()
Create a blank query element. |
|
QueryElement(Node node)
|
|
QueryElement(String role,
String value)
Create a query element. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(Object rhs)
|
String |
getRole()
Get my role. |
String |
getValue()
Get my value. |
int |
hashCode()
|
void |
setRole(String role)
Set my role. |
void |
setValue(String value)
Set my value. |
String |
toString()
|
Node |
toXML(Document doc)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryElement()
public QueryElement(String role,
String value)
role - The role the element plays.value - The value of the element.public QueryElement(Node node)
| Method Detail |
|---|
public String getRole()
public String getValue()
public void setRole(String role)
role - The new role this element plays.public void setValue(String value)
value - The new value of this element.
public Node toXML(Document doc)
throws DOMException
toXML in interface DocumentableDOMExceptionpublic boolean equals(Object rhs)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||