public class XMLName extends Object implements Comparable<XMLName>
Modifier and Type | Field and Description |
---|---|
protected String |
name
Local element name (unqualified)
|
static XMLName |
NULL_NAME |
protected String |
xmlNamespace
XML namespace
|
Modifier | Constructor and Description |
---|---|
protected |
XMLName()
Constructor for use by our subclasses
|
|
XMLName(String name)
Constructor that assumes an empty namespace.
|
|
XMLName(String xmlNamespace,
String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(XMLName o) |
boolean |
equals(Object other)
Does this element name equal the one that's passed in?
|
String |
getName()
Get the element's unqualified local name
|
String |
getXMLNamespace()
Get the XML namespace for the element (e.g.
|
int |
hashCode() |
String |
toString()
Dump the XMLName as a string (for debugging)
|
public static final XMLName NULL_NAME
protected String xmlNamespace
protected String name
public XMLName(String xmlNamespace, String name)
xmlNamespace
- XML namespace for element (e.g.
http://foo.adobe.com/2006/mxml or shared.*)name
- element name without prefix (e.g. Button)public XMLName(String name)
name
- element name without prefix (e.g. Button)protected XMLName()
public String getName()
public String getXMLNamespace()
public String toString()
public boolean equals(Object other)
public int compareTo(XMLName o)
compareTo
in interface Comparable<XMLName>
Copyright © 2016 The Apache Software Foundation. All rights reserved.