com.esri.gpt.control.georss.dcatdef
Class BooleanField
java.lang.Object
com.esri.gpt.control.georss.dcatdef.BaseDcatField
com.esri.gpt.control.georss.dcatdef.BooleanField
- All Implemented Interfaces:
- DcatFieldDefinition
public class BooleanField
- extends BaseDcatField
Boolean field.
Methods inherited from class com.esri.gpt.control.georss.dcatdef.BaseDcatField |
getAttributeField, getAttributeField, getDcatField, getDcatField, getDcatFields, getFeedAttribute, getFeedAttribute, getFeedAttribute, getIndex, getOutFieldName, getSchemaKey, toString |
BooleanField
public BooleanField(String fldName)
BooleanField
public BooleanField(String fldName,
long flags)
BooleanField
public BooleanField(String fldName,
BaseDcatField.FlagsProvider flags)
print
public void print(com.google.gson.stream.JsonWriter jsonWriter,
Properties properties,
DcatSchemas dcatSchemas,
IFeedRecord r)
throws IOException
- Description copied from interface:
DcatFieldDefinition
- Print field according to the definition.
- Parameters:
jsonWriter
- underlying json writerproperties
- propertiesdcatSchemas
- dcat schemasr
- record to print
- Throws:
IOException
- if printing fails
readValue
protected String readValue(DcatSchemas dcatSchemas,
DcatField dcatField,
IFeedRecord r,
IFeedAttribute attr)
- Reads value.
- Parameters:
dcatSchemas
- DCAT schemasdcatField
- DCAT fieldr
- feed recordsattr
- attribute attribute
- Returns:
- value
validateValue
protected boolean validateValue(String value)
- Validates value.
- Parameters:
value
- value to validate
- Returns:
true
if value is valid
eval
public Boolean eval(Properties properties,
DcatSchemas dcatSchemas,
IFeedRecord r)
- Evaluate.
- Parameters:
properties
- propertiesdcatSchemas
- schemasr
- record
- Returns:
- value
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.