|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(String name)
|
|
QualifiedName(String prefix,
String localName,
URI namespace)
|
|
QualifiedName(String name,
URI namespace)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getAsString()
Deprecated. use |
String |
getFormattedString()
|
String |
getLocalName()
returns the local part of the name |
URI |
getNamespace()
returns the namespace the name is located within (may be null) |
String |
getPrefix()
returns the names prefix |
String |
getPrefixedName()
returns a string representation of a QualifiedName. prefix and local name are separated by ':'. |
int |
hashCode()
|
boolean |
isInNamespace(URI ns)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QualifiedName(String name)
name
- local name/simple (without prefix)public QualifiedName(String name, URI namespace)
name
- complete name including a prefixnamespace
- namespace the name is located withinpublic QualifiedName(String prefix, String localName, URI namespace)
prefix
- localName
- local/simple name (e.g. deegree)namespace
- namespace the name is located withinMethod Detail |
---|
@Deprecated public String getAsString()
or
,
instead
public String getPrefixedName()
public String getFormattedString()
public String getPrefix()
public String getLocalName()
public URI getNamespace()
public boolean isInNamespace(URI ns)
ns
- the namespace to checkfor
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net