public class Repodata extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.jdom.Namespace |
repons |
static org.jdom.Namespace |
rpmns |
static org.jdom.Namespace |
yumns
Namespaces
|
| Constructor and Description |
|---|
Repodata(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final org.jdom.Namespace yumns
public static final org.jdom.Namespace repons
public static final org.jdom.Namespace rpmns
public Repodata(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
reader - An initialized reader used to access the repo.refresh().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.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.