Package org.geotools.gml2.simple
Class QualifiedName
-
- All Implemented Interfaces:
Serializable
public class QualifiedName extends QName
A QName subclass holding the fully qualified name as a field (important performance wise, ContentHandler writes out XML much faster if given the fully qualified name as opposed to namespace URI and local name)- Author:
- Andrea Aime - GeoSolutions
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QualifiedName(String namespaceURI, String localPart)
QualifiedName(String namespaceURI, String localPart, String prefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QualifiedName
build(String targetNamespace, String name, String prefix)
This method is used to replicate a "feature" of the standard encoder, when no prefix can be found, "null" will be used instead of having the code throw an exceptionQualifiedName
derive(String prefix)
Derives a newQualifiedName
with the given prefix, or returns itself if the prefix is the same alredy in useQualifiedName
derive(String prefix, String uri)
String
getQualifiedName()
-
Methods inherited from class QName
equals, getLocalPart, getNamespaceURI, getPrefix, hashCode, toString, valueOf
-
-
-
-
Method Detail
-
getQualifiedName
public String getQualifiedName()
-
derive
public QualifiedName derive(String prefix)
Derives a newQualifiedName
with the given prefix, or returns itself if the prefix is the same alredy in use
-
derive
public QualifiedName derive(String prefix, String uri)
-
build
public static QualifiedName build(String targetNamespace, String name, String prefix)
This method is used to replicate a "feature" of the standard encoder, when no prefix can be found, "null" will be used instead of having the code throw an exception
-
-