public class Psr0 extends AbstractJsonObject<Namespace> implements Iterable<Namespace>
http://getcomposer.org/doc/04-schema.md#psr-0propertieschangeSupport| Modifier and Type | Method and Description |
|---|---|
void |
add(Namespace namespace)
Adds a new dependency.
|
Namespace |
getFirst() |
Collection<Namespace> |
getNamespaces() |
boolean |
has(Namespace namespace) |
boolean |
has(String namespace)
Returns whether the given property is present.
|
Iterator<Namespace> |
iterator() |
protected void |
parse(Object obj) |
Object |
prepareJson(LinkedList<String> fields) |
void |
remove(Namespace namespace)
Removes a dependency.
|
clear, get, getOwnProperties, parseField, parseValue, remove, set, set, sizefromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFields, initialize, listen, prepareJsonValue, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic Psr0()
public Psr0(String json) throws org.json.simple.parser.ParseException
org.json.simple.parser.ParseExceptionprotected void parse(Object obj)
parse in class AbstractJsonObject<Namespace>public Object prepareJson(LinkedList<String> fields)
prepareJson in class AbstractJsonObject<Namespace>public void add(Namespace namespace)
dependency - the new dependencypublic void remove(Namespace namespace)
dependency - the dependency to removepublic Collection<Namespace> getNamespaces()
public Namespace getFirst()
public boolean has(String namespace)
AbstractJsonObjecthas in class AbstractJsonObject<Namespace>namespace - the property to look fortrue property presentfalse property not presentpublic boolean has(Namespace namespace)
Copyright © 2013. All Rights Reserved.