public class GSNamespaceEncoder extends PropertyXMLEncoder
<namespace> <prefix>example</prefix> <uri>http://example.com</uri> </namespace>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE |
static String |
PREFIX |
static String |
URI |
| Constructor and Description |
|---|
GSNamespaceEncoder(String prefix,
URI uri)
Create a namespace XML encoder.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix()
Get the namespace prefix.
|
URI |
getURI()
Get the namespace uri.
|
void |
setPrefix(String prefix)
Change the namespace prefix.
|
void |
setURI(URI uri)
change the nampespace uri.
|
add, createElementWithAttribute, get, get, setadd, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toStringpublic static final String NAMESPACE
public static final String PREFIX
public static final String URI
public GSNamespaceEncoder(String prefix, URI uri)
prefix - the namespace prefixuri - the namespace URIIllegalArgumentException - if prefix or uri are null or emptypublic String getPrefix()
public void setPrefix(String prefix)
prefix - the new prefixIllegalArgumentException - if prefix is null or emptypublic URI getURI()
public void setURI(URI uri)
URI - the new uriIllegalArgumentException - if uri is null or emptyCopyright © 2007–2016 PDOK. All rights reserved.