public class Namespace extends JsonObject
http://getcomposer.org/doc/04-schema.md#psr-0propertieschangeSupport| Constructor and Description |
|---|
Namespace() |
Namespace(String namespacename,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String path) |
void |
addPaths(UniqueJsonArray paths) |
void |
clear()
Clears the paths from this namespace
|
Namespace |
clone() |
boolean |
equals(Object obj) |
String |
getFirst()
Returns the path and if there are more than one, returns the first one.
|
String |
getNamespace()
Returns the name.
|
protected List<String> |
getOwnProperties() |
UniqueJsonArray |
getPaths() |
String |
prepareJson(LinkedList<String> fields) |
void |
remove(String path)
Removes the given property.
|
void |
removeAll() |
void |
setNamespace(String namespace)
Sets the name.
|
int |
size() |
cloneProperties, getAsArray, getAsBoolean, getAsFloat, getAsInteger, getAsObject, getAsRaw, getAsString, initialize, is, isArray, isObject, setget, has, parse, parseField, parseValue, setfromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFields, listen, prepareJsonValue, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic String prepareJson(LinkedList<String> fields)
prepareJson in class AbstractJsonObject<JsonValue>protected List<String> getOwnProperties()
getOwnProperties in class AbstractJsonObject<JsonValue>public String getNamespace()
public void setNamespace(String namespace)
name - the name to setpublic void add(String path)
public void clear()
clear in interface JsonCollectionclear in class AbstractJsonObject<JsonValue>public void addPaths(UniqueJsonArray paths)
public String getFirst()
public void remove(String path)
AbstractJsonObjectremove in class AbstractJsonObject<JsonValue>path - the propertypublic void removeAll()
public UniqueJsonArray getPaths()
public int size()
size in interface JsonCollectionsize in class AbstractJsonObject<JsonValue>Copyright © 2013. All Rights Reserved.