|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.geoserver.rest.encoder.utils.XmlElement
it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
it.geosolutions.geoserver.rest.encoder.GSNamespaceEncoder
public class GSNamespaceEncoder
Namespace XML encoder. Namespaces must contain a non empty prefix and a URI:
<namespace> <prefix>example</prefix> <uri>http://example.com</uri> </namespace>
| Field Summary | |
|---|---|
static String |
NAMESPACE
|
static String |
PREFIX
|
static String |
URI
|
| Constructor Summary | |
|---|---|
GSNamespaceEncoder(String prefix,
URI uri)
Create a namespace XML encoder. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder |
|---|
add, get, get, set |
| Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement |
|---|
add, addContent, getRoot, isEmpty, remove, set, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE
public static final String PREFIX
public static final String URI
| Constructor Detail |
|---|
public GSNamespaceEncoder(String prefix,
URI uri)
prefix - the namespace prefixuri - the namespace URI
IllegalArgumentException - if prefix or uri are null or empty| Method Detail |
|---|
public String getPrefix()
public void setPrefix(String prefix)
prefix - the new prefix
IllegalArgumentException - if prefix is null or emptypublic URI getURI()
public void setURI(URI uri)
URI - the new uri
IllegalArgumentException - if uri is null or empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||