@Deprecated @Immutable public final class NodeTypeNode extends JsonNode
NodeTypeNode
class is responsible for knowing how to obtain a NodeType based on the Workspace. URL
to obtain all the node types would look like: Modifier and Type | Field and Description |
---|---|
protected static int |
NODE_TYPE_DEPTH
Deprecated.
|
protected static String |
NODE_TYPES_PATH
Deprecated.
|
Constructor and Description |
---|
NodeTypeNode(Workspace workspace)
Deprecated.
Use this constructor if wanting all node types for a workspace
|
NodeTypeNode(Workspace workspace,
String nodeTypeName)
Deprecated.
Use this constructor if wanting all node types for a workspace
|
Modifier and Type | Method and Description |
---|---|
protected ChildNodeDefinition |
createChildNodeDefinition(String defnName,
org.codehaus.jettison.json.JSONObject body,
String declaringNodeTypeName,
Map<String,NodeType> nodeTypes)
Deprecated.
|
protected void |
createNodeType(String name,
org.codehaus.jettison.json.JSONObject body,
Map<String,NodeType> nodeTypes)
Deprecated.
|
protected PropertyDefinition |
createPropertyDefinition(String defnName,
org.codehaus.jettison.json.JSONObject body,
String declaringNodeTypeName,
Map<String,NodeType> nodeTypes)
Deprecated.
|
Map<String,NodeType> |
getNodeTypes(String jsonResponse)
Deprecated.
|
String |
getPath()
Deprecated.
|
protected String |
getPrimaryType(String key,
org.codehaus.jettison.json.JSONObject child)
Deprecated.
|
URL |
getUrl()
Deprecated.
The URL will NOT end in '/'.
|
protected int |
typeValueFrom(org.codehaus.jettison.json.JSONObject properties,
String name,
int defaultType)
Deprecated.
|
protected String |
valueFrom(org.codehaus.jettison.json.JSONObject properties,
String name)
Deprecated.
|
protected boolean |
valueFrom(org.codehaus.jettison.json.JSONObject properties,
String name,
boolean defaultValue)
Deprecated.
|
protected String |
valueFrom(org.codehaus.jettison.json.JSONObject properties,
String name,
String defaultValue)
Deprecated.
|
protected List<String> |
valuesFrom(org.codehaus.jettison.json.JSONObject properties,
String name)
Deprecated.
|
children, getContent, getId, properties, toString, withChild, withMixin, withPrimaryType, withProperty
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, write
protected static final String NODE_TYPES_PATH
protected static final int NODE_TYPE_DEPTH
public NodeTypeNode(Workspace workspace) throws Exception
workspace
- the workspace being used (never null
)Exception
- if there is a problem creating the folder nodepublic NodeTypeNode(Workspace workspace, String nodeTypeName) throws Exception
workspace
- the workspace being used (never null
)nodeTypeName
- the node type name; may not be nullException
- if there is a problem creating the folder nodepublic String getPath()
public URL getUrl() throws Exception
The URL will NOT end in '/'.
getUrl
in class JsonNode
Exception
- if there is a problem constructing the URLJsonNode.getUrl()
public Map<String,NodeType> getNodeTypes(String jsonResponse) throws Exception
jsonResponse
- the HTTP connection JSON response (never null
) containing the NodeTypesnull
)Exception
- if there is a problem obtaining the node typesprotected void createNodeType(String name, org.codehaus.jettison.json.JSONObject body, Map<String,NodeType> nodeTypes) throws Exception
Exception
protected String getPrimaryType(String key, org.codehaus.jettison.json.JSONObject child) throws Exception
Exception
protected PropertyDefinition createPropertyDefinition(String defnName, org.codehaus.jettison.json.JSONObject body, String declaringNodeTypeName, Map<String,NodeType> nodeTypes) throws Exception
Exception
protected ChildNodeDefinition createChildNodeDefinition(String defnName, org.codehaus.jettison.json.JSONObject body, String declaringNodeTypeName, Map<String,NodeType> nodeTypes) throws Exception
Exception
protected List<String> valuesFrom(org.codehaus.jettison.json.JSONObject properties, String name) throws Exception
Exception
protected boolean valueFrom(org.codehaus.jettison.json.JSONObject properties, String name, boolean defaultValue) throws Exception
Exception
protected String valueFrom(org.codehaus.jettison.json.JSONObject properties, String name) throws Exception
Exception
protected String valueFrom(org.codehaus.jettison.json.JSONObject properties, String name, String defaultValue) throws Exception
Exception
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.