public class RepositoryPackage extends DistributedPackage
autoload, detailedVersion, dist, sourcepropertieschangeSupport| Constructor and Description |
|---|
RepositoryPackage() |
RepositoryPackage(File file) |
RepositoryPackage(Object json) |
RepositoryPackage(Reader reader) |
RepositoryPackage(String json) |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryPackage |
fromPackageRepository(File input)
Deserializes packages from packagist.org, e.g.
|
static RepositoryPackage |
fromPackagist(String name)
Deserializes packages from packagist.org, e.g.
|
Persons |
getMaintainers()
Returns the maintainers
|
String |
getPackageName(String version)
Returns the package name suitable for passing it to
"composer.phar require"
|
String |
getRepository()
Returns the repository url
|
Versions |
getVersions()
Returns the versions
|
protected void |
parse(Object obj) |
Object |
prepareJson(LinkedList<String> fields) |
void |
setRepository(String repository) |
getAutoload, getDist, getSource, getType, setTypeclone, getDetailedVersion, getVersion, setVersiongetDescription, getName, setDescription, setNamecloneProperties, getAsArray, getAsBoolean, getAsFloat, getAsInteger, getAsObject, getAsRaw, getAsString, initialize, is, isArray, isObject, setclear, get, getOwnProperties, has, parseField, parseValue, remove, set, sizefromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFields, listen, prepareJsonValue, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic RepositoryPackage()
public RepositoryPackage(Object json)
public RepositoryPackage(String json)
public RepositoryPackage(File file) throws IOException
IOExceptionpublic RepositoryPackage(Reader reader) throws IOException
IOExceptionprotected void parse(Object obj)
parse in class DistributedPackagepublic Object prepareJson(LinkedList<String> fields)
prepareJson in class DistributedPackagepublic static RepositoryPackage fromPackageRepository(File input) throws IOException
input - IOExceptionpublic static RepositoryPackage fromPackagist(String name) throws Exception
name - the package name, such as Symfony/RouterIOExceptionExceptionpublic Versions getVersions()
public String getPackageName(String version) throws Exception
version - Exceptionpublic Persons getMaintainers()
public String getRepository()
public void setRepository(String repository)
repository - the repository to setCopyright © 2013. All Rights Reserved.