Esri Geoportal Server
1.2.9

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

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

public class TemporalField
extends BaseDcatField

Temporal 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
TemporalField(String fldName)
          Creates instance of the class.
TemporalField(String fldName, long flags)
          Creates instance of the class.
 
Method Summary
protected  List<Date> getDefaultValue(Properties properties)
          Reads default value.
protected  IFeedAttribute getFeedAttribute(Map<String,IFeedAttribute> index, DcatField field)
          Gets feed attribute.
 void print(com.google.gson.stream.JsonWriter jsonWriter, Properties properties, DcatSchemas dcatSchemas, IFeedRecord r)
          Print field according to the definition.
protected  Date readValueAsDate(IFeedAttribute attr)
          Reads date as date.
protected  String readValueAsString(IFeedAttribute attr)
          Reads date as string.
protected  List<Date> readValuesAsDate(IFeedAttribute attr)
          Reads value.
protected  List<String> readValuesAsString(IFeedAttribute attr)
          Reads value.
 
Methods inherited from class com.esri.gpt.control.georss.dcatdef.BaseDcatField
getAttributeField, getAttributeField, getDcatField, getDcatField, getDcatFields, 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

TemporalField

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

Parameters:
fldName - field name

TemporalField

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

Parameters:
fldName - field name
flags - flags
Method Detail

getFeedAttribute

protected IFeedAttribute getFeedAttribute(Map<String,IFeedAttribute> index,
                                          DcatField field)
Description copied from class: BaseDcatField
Gets feed attribute.

Overrides:
getFeedAttribute in class BaseDcatField
Parameters:
index - index
field - field
Returns:
attribute or null if not available

readValuesAsDate

protected List<Date> readValuesAsDate(IFeedAttribute attr)
Reads value.

Parameters:
attr - attribute
Returns:
value

readValuesAsString

protected List<String> readValuesAsString(IFeedAttribute attr)
Reads value.

Parameters:
attr - attribute
Returns:
value

readValueAsDate

protected Date readValueAsDate(IFeedAttribute attr)
Reads date as date.

Parameters:
attr - attribute
Returns:
date

readValueAsString

protected String readValueAsString(IFeedAttribute attr)
Reads date as string.

Parameters:
attr - attribute
Returns:
date

getDefaultValue

protected List<Date> getDefaultValue(Properties properties)
Reads default value.

Parameters:
properties - properties
Returns:
default value

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.