|
||||||||||
| 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.authorityurl.GSAuthorityURLInfoEncoder
public class GSAuthorityURLInfoEncoder
GSAuthorityURLInfoEncoder - encodes an authorityURL for a given GeoServer layer as follows:
final GSAuthorityURLInfoEncoder ae = new GSAuthorityURLInfoEncoder();
ae.setName("an authority");
ae.setHref("http://www.organization.org");
For this example, the XML output is:
<AuthorityURL>
<name>an authority</name>
<href>http://www.organization.org</href>
</AuthorityURL>
| Constructor Summary | |
|---|---|
GSAuthorityURLInfoEncoder()
Constructs a new GSAuthorityURLInfoEncoder |
|
GSAuthorityURLInfoEncoder(String name,
String href)
Constructs quickly an AuthorityURL info |
|
| Method Summary | |
|---|---|
boolean |
delHref()
Deletes the href |
protected boolean |
delMember(AuthorityURLInfo type)
Deletes an AuthorityURLInfo member |
boolean |
delName()
Deletes the authority name |
static org.jdom.filter.Filter |
getFilterByHref(String href)
Get a Filter using the AuthorityURLInfo href (authorityURL) |
String |
getHref()
Get the href |
protected String |
getMember(AuthorityURLInfo type)
Get the value of the AuthorityURLInfo member |
String |
getName()
Get the name |
void |
setHref(String href)
Set the href |
protected void |
setMember(AuthorityURLInfo type,
String value)
Set an AuthorityURLInfo member (name, href) |
void |
setName(String name)
Set the name |
protected void |
setup(String name,
String href)
Set-up quickly an AuthorityURL info |
| Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement |
|---|
add, add, addContent, getRoot, isEmpty, remove, set, set, setRoot, setRoot, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GSAuthorityURLInfoEncoder()
public GSAuthorityURLInfoEncoder(String name,
String href)
name - (required)href - (required)| Method Detail |
|---|
public static org.jdom.filter.Filter getFilterByHref(String href)
href -
protected void setup(String name,
String href)
name - href -
protected void setMember(AuthorityURLInfo type,
String value)
type - value - public void setName(String name)
name - public void setHref(String href)
href - protected boolean delMember(AuthorityURLInfo type)
type -
public boolean delName()
public boolean delHref()
protected String getMember(AuthorityURLInfo type)
type -
public String getName()
public String getHref()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||