|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.SchemaElement
A schema element, having a name, corresponding to a datatype, and having a (potentially empty) list of operator names (from the list of operators supported by the corresponding datatype).
| Field Summary | |
protected java.util.List |
children
The element children. |
protected java.lang.String |
datatypeName
The schema element datatype. |
protected java.lang.String |
name
The schema element name. |
protected java.util.List |
operators
The list of operators (as strings) for this schema element. |
| Constructor Summary | |
SchemaElement()
Creates a new, empty schema element. |
|
SchemaElement(java.lang.String name)
Creates a new schema element. |
|
SchemaElement(java.lang.String name,
java.lang.String datatypeName,
java.util.List operators)
Creates a new schema element. |
|
| Method Summary | |
boolean |
add(SchemaElement element)
Adds the specified schema element as a child. |
boolean |
addAll(java.util.Collection c)
Adds all schema elements in the specified collection to the children set. |
void |
appendHierarchicalView(java.lang.StringBuffer buf,
int depth)
Appends a description of this schema element to the hierarchical view. |
java.util.Iterator |
children()
Returns an iterator over the children. |
int |
childrenCount()
Returns the number of direct children. |
void |
clear()
Removes all children. |
boolean |
contains(SchemaElement element)
Returns true iff the specified element is a child. |
boolean |
equals(java.lang.Object obj)
|
SchemaElement |
get(int index)
Returns the i-th child. |
java.lang.String |
getDatatypeName()
Returns the the datatype name. |
SchemaElement |
getElement(java.lang.String xpath)
Returns the schema element specified by a XPath. |
java.lang.String |
getName()
Returns the name of this schema element. |
java.util.List |
getOperators()
Returns the list of schema element operators. |
java.util.List |
getXPaths()
Returns all XPath expressions for this schema subtree. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true iff there is no child. |
boolean |
remove(SchemaElement element)
Removes the specified schema element as a child. |
void |
setDatatypeName(java.lang.String datatypeName)
Sets the datatype name. |
void |
setName(java.lang.String name)
Sets the name of this schema element. |
void |
setOperators(java.util.List operators)
Sets the list of schema element operators. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected java.lang.String datatypeName
protected java.util.List operators
protected java.util.List children
| Constructor Detail |
public SchemaElement()
public SchemaElement(java.lang.String name)
name - name of the schema element
public SchemaElement(java.lang.String name,
java.lang.String datatypeName,
java.util.List operators)
name - name of the schema elementdatatypeName - datatype of the schema elementoperators - list of operators (as strings)| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - name of this schema elementpublic java.lang.String getDatatypeName()
public void setDatatypeName(java.lang.String datatypeName)
datatypeName - datatype namepublic java.util.List getOperators()
public void setOperators(java.util.List operators)
operators - list of schema element operators (as strings)public boolean add(SchemaElement element)
element - new child elementpublic boolean addAll(java.util.Collection c)
c - collection with schema elementspublic void clear()
public boolean contains(SchemaElement element)
element - true iff the specified element is a childpublic SchemaElement get(int index)
index - index number
public boolean isEmpty()
public java.util.Iterator children()
public boolean remove(SchemaElement element)
element - element to be removedpublic int childrenCount()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public java.util.List getXPaths()
public SchemaElement getElement(java.lang.String xpath)
xpath - XPath
public void appendHierarchicalView(java.lang.StringBuffer buf,
int depth)
buf - string buffer for the hierarchical viewdepth - element depth
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||