Class FilterCreator

java.lang.Object
org.opengis.cite.cat20.dgiwg10.xml.FilterCreator

public class FilterCreator extends Object
Author:
Lyn Goltz
  • Constructor Details

    • FilterCreator

      public FilterCreator()
  • Method Details

    • createIdentifierFilter

      public Element createIdentifierFilter(OutputSchema outputSchema, String identifier)
      Creates an PropertyIsEqualTo filter for 'Identifier', an existing identifier is retrieved from the DataSampler.
       <ogc:Filter>
            <ogc:PropertyIsEqualTo>
                <ogc:PropertyName>Identifier</ogc:PropertyName>
                <ogc:Literal>${identifier}</ogc:Literal>
            </ogc:PropertyIsEqualTo>
        </ogc:Filter>
       
      Parameters:
      outputSchema - the requested outputSchema, never null
      identifier - the identifier to filter for, never null
      Returns:
      the filter element, null if no identifier could be found
    • createTitleFilter

      public Element createTitleFilter(OutputSchema outputSchema, String title)
      Creates an PropertyIsEqualTo filter for 'Title', an existing title is retrieved from the DataSampler.
       <ogc:Filter>
            <ogc:PropertyIsEqualTo>
                <ogc:PropertyName>Title</ogc:PropertyName>
                <ogc:Literal>${title}</ogc:Literal>
            </ogc:PropertyIsEqualTo>
        </ogc:Filter>
       
      Parameters:
      outputSchema - the requested outputSchema, never null
      title - the title to filter for, never null
      Returns:
      the filter element, null if no title could be found
    • createAnyTextFilter

      public Element createAnyTextFilter(OutputSchema outputSchema, String propertyValue)
      Creates an PropertyIsLike filter for 'Title', an existing title is retrieved from the DataSampler.
       <ogc:Filter>
            <ogc:PropertyIsLike capeChar="\" singleChar="?" wildCard="*" >
                <ogc:PropertyName>Title</ogc:PropertyName>
                <ogc:Literal>${title}</ogc:Literal>
            </ogc:PropertyIsLike>
        </ogc:Filter>
       
      Parameters:
      outputSchema - the requested outputSchema, never null
      propertyValue - the value to filter for, never null
      Returns:
      the filter element, null if no title could be found