|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.run.xml.QualifiedName
public class QualifiedName
A QualifiedName
is a useful class to separately capture the xml namespace prefix and local name of xml elements and attributes as a single object (instead of having to parse them out of String
s all the time). For example, the xmlName "movie:definition" has the namespace prefix "movie" and the local name "definition". If there is no namespace prefix declared, the prefix is always returned as "".
Constructor Summary | |
---|---|
QualifiedName(QualifiedName qualifiedName, java.lang.String localName) Standard Constructor (using a specified QualifiedName for the prefix). |
|
QualifiedName(java.lang.String xmlName) Standard Constructor. |
|
QualifiedName(java.lang.String prefix, java.lang.String localName) Standard Constructor. |
|
QualifiedName(XmlElement xmlElement) Standard Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getLocalName() Returns the local name of the QualifiedName . |
java.lang.String |
getName() Returns the entire qualified name, including the prefix and local name. |
java.lang.String |
getPrefix() Returns the xml prefix of the QualifiedName . |
int |
hashCode() |
boolean |
hasPrefix() Returns boolean based on if the QualifiedName has a namespace prefix. |
java.lang.String |
toString() |
Constructor Detail |
---|
public QualifiedName(java.lang.String xmlName) throws java.util.UnknownFormatConversionException
xmlName
- The name of an xml element/attribute from which to create a qualified name. Must be of the format "prefix:name" or simply "name" (in which case the prefix is considered "")java.util.UnknownFormatConversionException
- When the specified xmlName is invalid (contains mulitple :'s)public QualifiedName(XmlElement xmlElement) throws java.util.UnknownFormatConversionException
xmlElement
- An XmlElement
from which to return the QualifiedName
java.util.UnknownFormatConversionException
- When the specified xmlElement is invalid (contains mulitple :'s)public QualifiedName(QualifiedName qualifiedName, java.lang.String localName)
QualifiedName
for the prefix).
qualifiedName
- The QualifiedName
on which to base the new QualifiedName
.localName
- The local name for the new QualifiedName
.public QualifiedName(java.lang.String prefix, java.lang.String localName)
prefix
- The xmlns prefix for the QualifiedName
localName
- The localname for the QualifiedName
Method Detail |
---|
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
public java.lang.String getPrefix()
QualifiedName
.public java.lang.String getLocalName()
QualifiedName
.public java.lang.String getName()
public boolean hasPrefix()
QualifiedName
has a namespace prefix.true
If the QualifiedName
has an xmlns prefix
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |