| Constructor and Description |
|---|
FilterCreator() |
| Modifier and Type | Method and Description |
|---|---|
Element |
createAnyTextFilter(OutputSchema outputSchema,
String propertyValue)
Creates an PropertyIsLike filter for 'Title', an existing title is retrieved from the DataSampler.
|
Element |
createIdentifierFilter(OutputSchema outputSchema,
String identifier)
Creates an PropertyIsEqualTo filter for 'Identifier', an existing identifier is retrieved from the DataSampler.
|
Element |
createTitleFilter(OutputSchema outputSchema,
String title)
Creates an PropertyIsEqualTo filter for 'Title', an existing title is retrieved from the DataSampler.
|
public Element createIdentifierFilter(OutputSchema outputSchema, String identifier)
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Identifier</ogc:PropertyName>
<ogc:Literal>${identifier}</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
outputSchema - the requested outputSchema, never nullidentifier - the identifier to filter for, never nullnull if no identifier could be foundpublic Element createTitleFilter(OutputSchema outputSchema, String title)
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Title</ogc:PropertyName>
<ogc:Literal>${title}</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
outputSchema - the requested outputSchema, never nulltitle - the title to filter for, never nullnull if no title could be foundpublic Element createAnyTextFilter(OutputSchema outputSchema, String propertyValue)
<ogc:Filter>
<ogc:PropertyIsLike capeChar="\" singleChar="?" wildCard="*" >
<ogc:PropertyName>Title</ogc:PropertyName>
<ogc:Literal>${title}</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
outputSchema - the requested outputSchema, never nullpropertyValue - the value to filter for, never nullnull if no title could be foundCopyright © 2019 Open Geospatial Consortium. All rights reserved.