public final class XMLCatalogImpl.CatalogEntry extends Object implements XmlElement, Comparable<XMLCatalogImpl.CatalogEntry>, Serializable
| Constructor and Description |
|---|
CatalogEntry(EName name,
String value,
Map<EName,String> attributes)
Creates a new catalog element representation with name, value and attributes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(XMLCatalogImpl.CatalogEntry o)
Compare two catalog entries.
|
boolean |
equals(Object that) |
String |
getAttribute(EName name)
Returns the attribute value for the given attribute.
|
Map<EName,String> |
getAttributes()
Returns the element's attributes.
|
EName |
getEName()
Returns the expanded name of the entry.
|
String |
getQName()
Returns the qualified name of the entry as a string.
|
String |
getValue()
Returns the element value.
|
boolean |
hasAttribute(EName name)
Returns
true if the element contains an attribute with the given name. |
boolean |
hasAttributes()
Returns
true if the element contains attributes. |
int |
hashCode() |
String |
toString() |
Node |
toXml(Document document)
Returns the XML representation of this entry.
|
public String getQName()
public EName getEName()
public String getValue()
public boolean hasAttributes()
true if the element contains attributes.true if the element contains attributespublic Map<EName,String> getAttributes()
public boolean hasAttribute(EName name)
true if the element contains an attribute with the given name.true if the element contains the attributepublic String getAttribute(EName name)
public Node toXml(Document document)
toXml in interface XmlElementdocument - the documentpublic int compareTo(XMLCatalogImpl.CatalogEntry o)
compareTo in interface Comparable<XMLCatalogImpl.CatalogEntry>Copyright © 2009–2021 Opencast Project. All rights reserved.