public class Psr extends AbstractJsonObject<Namespace> implements Iterable<Namespace>
http://getcomposer.org/doc/04-schema.md#psr-0propertiessortOrderchangeSupport| Modifier and Type | Method and Description |
|---|---|
void |
add(Namespace namespace)
Adds a new dependency.
|
protected Object |
buildJson() |
protected void |
doParse(Object obj) |
Namespace |
getFirst() |
Namespace |
getNamespaceForPath(String path)
Returns the namespace for a given path or null if the path isn't found
|
Collection<Namespace> |
getNamespaces() |
boolean |
has(Namespace namespace) |
boolean |
has(String namespace)
Returns whether the given property is present.
|
boolean |
hasPath(String path) |
Iterator<Namespace> |
iterator() |
void |
remove(Namespace namespace)
Removes a dependency.
|
int |
size() |
clear, get, getOwnProperties, parseField, remove, set, setappendSortOrder, fromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFieldNames, getFields, getJsonValue, initialize, listen, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic Psr()
public Psr(String json) throws ParseException
ParseExceptionprotected void doParse(Object obj)
doParse in class AbstractJsonObject<Namespace>protected Object buildJson()
buildJson 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 int size()
size in interface JsonCollectionsize in class AbstractJsonObject<Namespace>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)
public boolean hasPath(String path)
Copyright © 2014. All rights reserved.