|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.JsonSimple
com.googlecode.fascinator.common.ManifestNode
public class ManifestNode
Represents a node in a JSON manifest. This object wraps the JSON interface (but does not extend it) with supplemental data to aid navigation.
| Constructor Summary | |
|---|---|
ManifestNode()
Create a new empty node |
|
ManifestNode(JsonObject newJsonObject)
Wrap a JsonObject in this class |
|
| Method Summary | |
|---|---|
boolean |
addChild(java.lang.String id,
java.lang.String title)
Add a new child node to this node. |
java.util.List<ManifestNode> |
getChildren()
Return a list of children for this node. |
boolean |
getHidden()
Get the hidden flag for this node. |
java.lang.String |
getId()
Get the ID for this node. |
java.lang.String |
getKey()
Get the key of this node. |
java.lang.String |
getParentKey()
Get the key of the parent node to this node. |
java.lang.String |
getTitle()
Get the title for this node. |
boolean |
hasChildren()
Check if this node has any children. |
void |
setHidden(boolean hidden)
Set the hidden flag for this node. |
void |
setId(java.lang.String id)
Set the ID for this node. |
void |
setKey(java.lang.String newKey)
Set the key of this node. |
void |
setParentKey(java.lang.String newParent)
Set the key of the parent node to this node. |
void |
setTitle(java.lang.String title)
Set the title for this node. |
| Methods inherited from class com.googlecode.fascinator.common.JsonSimple |
|---|
fromJavaMap, getArray, getBoolean, getInteger, getJsonArray, getJsonObject, getJsonSimpleList, getJsonSimpleMap, getObject, getPath, getString, getStringList, getStringList, getStringList, search, setPropertySubstitution, toJavaList, toJavaMap, toString, toString, writeArray, writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManifestNode()
public ManifestNode(JsonObject newJsonObject)
newJsonObject - : The JsonObject to wrap| Method Detail |
|---|
public java.lang.String getKey()
public void setKey(java.lang.String newKey)
newKey - : The new keypublic java.lang.String getParentKey()
public void setParentKey(java.lang.String newParent)
newParent - : The parent node key, null if this is a top level node
public boolean addChild(java.lang.String id,
java.lang.String title)
id - : The ID value to put in this node.title - : The title value to put in this node.
public boolean hasChildren()
public java.util.List<ManifestNode> getChildren()
public boolean getHidden()
public void setHidden(boolean hidden)
hidden - : The new flagpublic java.lang.String getId()
public void setId(java.lang.String id)
id - : The new IDpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - : The new title
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||