Class GSAuthorityURLInfoEncoder
- java.lang.Object
-
- it.geosolutions.geoserver.rest.encoder.utils.XmlElement
-
- it.geosolutions.geoserver.rest.encoder.authorityurl.GSAuthorityURLInfoEncoder
-
public class GSAuthorityURLInfoEncoder extends XmlElement
GSAuthorityURLInfoEncoder - encodes an authorityURL for a given GeoServer layer as follows:
For this example, the XML output is:final GSAuthorityURLInfoEncoder ae = new GSAuthorityURLInfoEncoder(); ae.setName("an authority"); ae.setHref("http://www.organization.org");<AuthorityURL> <name>an authority</name> <href>http://www.organization.org</href> </AuthorityURL>- Version:
- $Id: $
- Author:
- Emmanuel Blondel - emmanuel.blondel1@gmail.com | emmanuel.blondel@fao.org
-
-
Constructor Summary
Constructors Constructor Description GSAuthorityURLInfoEncoder()Constructs a new GSAuthorityURLInfoEncoderGSAuthorityURLInfoEncoder(java.lang.String name, java.lang.String href)Constructs quickly an AuthorityURL info
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelHref()Deletes the hrefprotected booleandelMember(AuthorityURLInfo type)Deletes an AuthorityURLInfo memberbooleandelName()Deletes the authority namestatic org.jdom.filter.FiltergetFilterByHref(java.lang.String href)Get a Filter using the AuthorityURLInfo href (authorityURL)java.lang.StringgetHref()Get the hrefprotected java.lang.StringgetMember(AuthorityURLInfo type)Get the value of the AuthorityURLInfo memberjava.lang.StringgetName()Get the namevoidsetHref(java.lang.String href)Set the hrefprotected voidsetMember(AuthorityURLInfo type, java.lang.String value)Set an AuthorityURLInfo member (name, href)voidsetName(java.lang.String name)Set the nameprotected voidsetup(java.lang.String name, java.lang.String href)Set-up quickly an AuthorityURL info
-
-
-
Constructor Detail
-
GSAuthorityURLInfoEncoder
public GSAuthorityURLInfoEncoder()
Constructs a new GSAuthorityURLInfoEncoder
-
GSAuthorityURLInfoEncoder
public GSAuthorityURLInfoEncoder(java.lang.String name, java.lang.String href)Constructs quickly an AuthorityURL info- Parameters:
name- (required)href- (required)
-
-
Method Detail
-
getFilterByHref
public static org.jdom.filter.Filter getFilterByHref(java.lang.String href)
Get a Filter using the AuthorityURLInfo href (authorityURL)- Parameters:
href- aStringobject.- Returns:
- the filter
-
setup
protected void setup(java.lang.String name, java.lang.String href)Set-up quickly an AuthorityURL info- Parameters:
name- aStringobject.href- aStringobject.
-
setMember
protected void setMember(AuthorityURLInfo type, java.lang.String value)
Set an AuthorityURLInfo member (name, href)- Parameters:
type- aAuthorityURLInfoobject.value- aStringobject.
-
setName
public void setName(java.lang.String name)
Set the name- Parameters:
name- aStringobject.
-
setHref
public void setHref(java.lang.String href)
Set the href- Parameters:
href- aStringobject.
-
delMember
protected boolean delMember(AuthorityURLInfo type)
Deletes an AuthorityURLInfo member- Parameters:
type- aAuthorityURLInfoobject.- Returns:
- true if the AuthorityURLInfo member is removed
-
delName
public boolean delName()
Deletes the authority name- Returns:
- true if removed
-
delHref
public boolean delHref()
Deletes the href- Returns:
- true if removed
-
getMember
protected java.lang.String getMember(AuthorityURLInfo type)
Get the value of the AuthorityURLInfo member- Parameters:
type- aAuthorityURLInfoobject.- Returns:
- the value of the AuthorityURLInfo member
-
getName
public java.lang.String getName()
Get the name- Returns:
- a
Stringobject.
-
getHref
public java.lang.String getHref()
Get the href- Returns:
- a
Stringobject.
-
-