|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.control.search.browse.TocTree
public class TocTree
Represents a table of contents tree.
Constructor Summary | |
---|---|
TocTree()
Default constructor |
Method Summary | |
---|---|
String |
asJson()
Returns a JSON representation of the property. |
String |
asXml()
Returns an XML representation of the property. |
static TocTree |
build(TocContext context,
String relativePath)
Builds a tree. |
String |
generateResponse(TocContext context)
Generates the response string. |
List<TocItem> |
getChildren()
Gets the children. |
String |
getIDProperty()
Gets the ID property. |
String |
getLabelProperty()
Gets the label property. |
boolean |
hasChildren()
Determines whether or not this property has children. |
static TocTree |
makeTreeInstance(TocContext context,
String className)
Makes a TocTree instance based upon a class name. |
void |
processTreeNode(TocContext context,
Node node)
Processes a TOC tree node. |
void |
setChildren(List<TocItem> children)
Sets the children. |
void |
setIDProperty(String attribute)
Sets the ID property. |
void |
setLabelProperty(String attribute)
Sets the label property. |
void |
toJson(PrintWriter writer,
int depth,
boolean isLast)
Writes a JSON representation of the property. |
void |
toXml(PrintWriter writer,
int depth)
Writes an XML representation of the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TocTree()
Method Detail |
---|
public List<TocItem> getChildren()
public void setChildren(List<TocItem> children)
children
- the childrenpublic String getIDProperty()
public void setIDProperty(String attribute)
attribute
- the ID propertypublic String getLabelProperty()
public void setLabelProperty(String attribute)
attribute
- the label propertypublic String asJson() throws IOException
IOException
- if an exception occurspublic String asXml() throws IOException
IOException
- if an exception occurspublic static TocTree build(TocContext context, String relativePath) throws Exception
context
- the operation contextrelativePath
- path the associated XML document
Exception
public String generateResponse(TocContext context) throws Exception
context
- the operation context
Exception
- if an exception occurspublic boolean hasChildren()
true
if this property has childrenpublic static TocTree makeTreeInstance(TocContext context, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
context
- the operation contextclassName
- the fully qualified class name
ClassNotFoundException
- if the class was not found
InstantiationException
- if the class could not be instantiated
IllegalAccessException
- if the class could not be accessedpublic void processTreeNode(TocContext context, Node node) throws Exception
context
- the operation contextnode
- the tree node
Exception
- if an exception occurspublic void toJson(PrintWriter writer, int depth, boolean isLast) throws IOException
writer
- the writerdepth
- the depth of the parent
IOException
- if an exception occurspublic void toXml(PrintWriter writer, int depth) throws IOException
writer
- the writerdepth
- the depth of the parent
IOException
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |