|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.xmlquery.Header
public class Header
A single header. An object of this class is a header element of a query.
| Constructor Summary | |
|---|---|
Header()
Create a new, blank header. |
|
Header(Node node)
Create a header from a DOM node. |
|
Header(String name)
Create a header. |
|
Header(String name,
String type,
String unit)
Create a fully specified header. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
static List |
createHeaders(Node root)
Create a list of headers from an XML document. |
boolean |
equals(Object rhs)
|
String |
getName()
Get the name. |
String |
getType()
Get the type of this result. |
String |
getUnit()
Get the unit. |
int |
hashCode()
|
void |
setName(String name)
Set the name. |
void |
setType(String type)
Set the type of this result. |
void |
setUnit(String unit)
Set the unit. |
String |
toString()
|
Node |
toXML(Document doc)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Header()
public Header(String name)
name - Name of this header.
public Header(String name,
String type,
String unit)
name - Name of this header.type - Data type.unit - Units.public Header(Node node)
node - The DOM node, which must be a <headerElement> element.| Method Detail |
|---|
public static List createHeaders(Node root)
root - A <resultHeader> element.
Headers.public String getName()
public String getType()
public String getUnit()
public void setName(String name)
name - The name of the header, suitable for printing in a column heading.public void setType(String type)
type - The type, as in data type.public void setUnit(String unit)
unit - The units in which the header is presented.
public Node toXML(Document doc)
throws DOMException
toXML in interface DocumentableDOMExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object rhs)
equals 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 | |||||||||