|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.datatypes.QualifiedName
public class QualifiedName
This class represent a qualified name for something. A name is thought to be built from an optional prefix and/or a
local name E.g.:
- deegree - pre:deegree
a name may be located within a namespace assigned to the names prefix (or as default namespace if the name has not
prefix).
Constructor Summary | |
---|---|
QualifiedName(javax.xml.namespace.QName name)
Creates a new QualifiedName instance from a QName |
|
QualifiedName(java.lang.String name)
|
|
QualifiedName(java.lang.String prefix,
java.lang.String localName,
java.net.URI namespace)
|
|
QualifiedName(java.lang.String name,
java.net.URI namespace)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAsString()
Deprecated. use |
java.lang.String |
getFormattedString()
|
java.lang.String |
getLocalName()
returns the local part of the name |
java.net.URI |
getNamespace()
returns the namespace the name is located within (may be null) |
java.lang.String |
getPrefix()
returns the names prefix |
java.lang.String |
getPrefixedName()
returns a string representation of a QualifiedName. prefix and local name are separated by ':'. |
int |
hashCode()
|
boolean |
isInNamespace(java.net.URI ns)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QualifiedName(javax.xml.namespace.QName name)
QualifiedName
instance from a QName
name
- public QualifiedName(java.lang.String name)
name
- local name/simple (without prefix)public QualifiedName(java.lang.String name, java.net.URI namespace)
name
- complete name including a prefixnamespace
- namespace the name is located withinpublic QualifiedName(java.lang.String prefix, java.lang.String localName, java.net.URI namespace)
prefix
- localName
- local/simple name (e.g. deegree)namespace
- namespace the name is located withinMethod Detail |
---|
@Deprecated public java.lang.String getAsString()
or
,
instead
public java.lang.String getPrefixedName()
public java.lang.String getFormattedString()
public java.lang.String getPrefix()
public java.lang.String getLocalName()
public java.net.URI getNamespace()
public boolean isInNamespace(java.net.URI ns)
ns
- the namespace to checkfor
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org