|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.yum.Repodata
public class Repodata
The Repodata object is used to read yum metadata.
| Field Summary | |
|---|---|
static org.jdom.Namespace |
repons
|
static org.jdom.Namespace |
rpmns
|
static org.jdom.Namespace |
yumns
Namespaces |
| Constructor Summary | |
|---|---|
Repodata(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear caches. |
org.jdom.Element |
getMetadata(org.rhq.enterprise.server.plugins.yum.Repodata.Meta type)
Get the node for the specified metadata type. |
org.rhq.enterprise.server.plugins.yum.RepoReader |
getReader()
Get the object's reader. |
org.jdom.Element |
getRepomd()
Get and parse the repo's repomd.xml file. |
void |
refresh()
Refresh the repo's metadata. |
static String |
toString(org.jdom.Element e)
Utility for converting an XML fragment into a string. |
String |
toString(org.rhq.enterprise.server.plugins.yum.Repodata.Meta type)
A utility for getting an XML (string representation) for the specified metadata type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.jdom.Namespace yumns
public static final org.jdom.Namespace repons
public static final org.jdom.Namespace rpmns
| Constructor Detail |
|---|
public Repodata(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
reader - An initialized reader used to access the repo.refresh().| Method Detail |
|---|
public void refresh()
throws Exception
Exceptionpublic void clear()
public org.rhq.enterprise.server.plugins.yum.RepoReader getReader()
public org.jdom.Element getRepomd()
throws Exception
Exception - On all errors.
public org.jdom.Element getMetadata(org.rhq.enterprise.server.plugins.yum.Repodata.Meta type)
throws Exception
type - A metadata type.
Exception - On all errors.
public String toString(org.rhq.enterprise.server.plugins.yum.Repodata.Meta type)
throws Exception
type - A type of metadata.
Exception - On all errors.public static String toString(org.jdom.Element e)
e - An element to convert.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||