public class QueryElement extends Object implements Serializable, Cloneable, Documentable
TODO: Consider computing proper mime-type based on class of object being inserted as a value into the result.
Constructor and Description |
---|
QueryElement()
Create a blank query element.
|
QueryElement(Node node) |
QueryElement(String role,
String value)
Create a query element.
|
Modifier and Type | Method and Description |
---|---|
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)
Document (aka serialize) this object into an XML DOM node.
|
public QueryElement()
public QueryElement(String role, String value)
role
- The role the element plays.value
- The value of the element.public QueryElement(Node node)
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
Documentable
toXML
in interface Documentable
doc
- What document will own the node.DOMException
- If an error occurs while creating the DOM structure.Copyright © 1999–2017 Apache OODT. All rights reserved.