Class GSAuthorityURLInfoEncoder


  • public class GSAuthorityURLInfoEncoder
    extends XmlElement
    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>
     
     
    Version:
    $Id: $
    Author:
    Emmanuel Blondel - emmanuel.blondel1@gmail.com | emmanuel.blondel@fao.org
    • 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 - a String object.
        Returns:
        the filter
      • setup

        protected void setup​(java.lang.String name,
                             java.lang.String href)
        Set-up quickly an AuthorityURL info
        Parameters:
        name - a String object.
        href - a String object.
      • setMember

        protected void setMember​(AuthorityURLInfo type,
                                 java.lang.String value)
        Set an AuthorityURLInfo member (name, href)
        Parameters:
        type - a AuthorityURLInfo object.
        value - a String object.
      • setName

        public void setName​(java.lang.String name)
        Set the name
        Parameters:
        name - a String object.
      • setHref

        public void setHref​(java.lang.String href)
        Set the href
        Parameters:
        href - a String object.
      • delMember

        protected boolean delMember​(AuthorityURLInfo type)
        Deletes an AuthorityURLInfo member
        Parameters:
        type - a AuthorityURLInfo object.
        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 - a AuthorityURLInfo object.
        Returns:
        the value of the AuthorityURLInfo member
      • getName

        public java.lang.String getName()
        Get the name
        Returns:
        a String object.
      • getHref

        public java.lang.String getHref()
        Get the href
        Returns:
        a String object.