Esri Geoportal Server
1.2.9

com.esri.gpt.control.georss.dcatdef
Class StringField

java.lang.Object
  extended by com.esri.gpt.control.georss.dcatdef.BaseDcatField
      extended by com.esri.gpt.control.georss.dcatdef.StringField
All Implemented Interfaces:
DcatFieldDefinition

public class StringField
extends BaseDcatField

String field.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.gpt.control.georss.dcatdef.BaseDcatField
BaseDcatField.FlagsProvider
 
Field Summary
 
Fields inherited from class com.esri.gpt.control.georss.dcatdef.BaseDcatField
flags, fldName
 
Fields inherited from interface com.esri.gpt.control.georss.dcatdef.DcatFieldDefinition
OBLIGATORY
 
Constructor Summary
StringField(String fldName)
          Creates instance of the class.
StringField(String fldName, BaseDcatField.FlagsProvider flags)
          Creates instance of the class.
StringField(String fldName, long flags)
          Creates instance of the class.
 
Method Summary
 String eval(Properties properties, DcatSchemas dcatSchemas, IFeedRecord r)
          Evaluate.
protected  String getDefaultValue(IFeedRecord r, Properties properties)
          Gets default value.
 void print(com.google.gson.stream.JsonWriter jsonWriter, Properties properties, DcatSchemas dcatSchemas, IFeedRecord r)
          Print field according to the definition.
protected  String readValue(DcatSchemas dcatSchemas, DcatField dcatField, IFeedRecord r, IFeedAttribute attr)
          Reads value.
protected  boolean validateValue(String value)
          Validates value.
 
Methods inherited from class com.esri.gpt.control.georss.dcatdef.BaseDcatField
getAttributeField, getAttributeField, getDcatField, getDcatField, getDcatFields, getFeedAttribute, getFeedAttribute, getFeedAttribute, getIndex, getOutFieldName, getSchemaKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringField

public StringField(String fldName)
Creates instance of the class.

Parameters:
fldName - field name

StringField

public StringField(String fldName,
                   long flags)
Creates instance of the class.

Parameters:
fldName - field name
flags - flags

StringField

public StringField(String fldName,
                   BaseDcatField.FlagsProvider flags)
Creates instance of the class.

Parameters:
fldName - field name
flags - flags provider
Method Detail

readValue

protected String readValue(DcatSchemas dcatSchemas,
                           DcatField dcatField,
                           IFeedRecord r,
                           IFeedAttribute attr)
Reads value.

Parameters:
dcatSchemas - DCAT schemas
dcatField - DCAT field
r - feed records
attr - attribute attribute
Returns:
value

validateValue

protected boolean validateValue(String value)
Validates value.

Parameters:
value - value to validate
Returns:
true if value is valid

getDefaultValue

protected String getDefaultValue(IFeedRecord r,
                                 Properties properties)
Gets default value.

Parameters:
r - record
properties - properties
Returns:
default value

eval

public String eval(Properties properties,
                   DcatSchemas dcatSchemas,
                   IFeedRecord r)
Evaluate.

Parameters:
properties - properties
dcatSchemas - schemas
r - record
Returns:

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 writer
properties - properties
dcatSchemas - dcat schemas
r - record to print
Throws:
IOException - if printing fails

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.