Esri Geoportal Server
1.2.9

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

java.lang.Object
  extended by com.esri.gpt.control.georss.dcatdef.BaseDcatField
All Implemented Interfaces:
DcatFieldDefinition
Direct Known Subclasses:
ArrayField, BooleanField, DateField, IdentifierField, ReferencesField, SpatialField, StringField, TemporalField

public abstract class BaseDcatField
extends Object
implements DcatFieldDefinition

Base dcat field.


Nested Class Summary
static interface BaseDcatField.FlagsProvider
           
 
Field Summary
protected  BaseDcatField.FlagsProvider flags
           
protected  String fldName
           
 
Fields inherited from interface com.esri.gpt.control.georss.dcatdef.DcatFieldDefinition
OBLIGATORY
 
Constructor Summary
BaseDcatField(String fldName)
          Creates instance of the class.
BaseDcatField(String fldName, BaseDcatField.FlagsProvider flags)
          Creates instance of the class.
BaseDcatField(String fldName, long flags)
          Creates instance of the class.
 
Method Summary
protected  DcatField getAttributeField(DcatSchemas dcatSchemas, IFeedRecord r)
          Gets attribute field.
protected  DcatField getAttributeField(DcatSchemas dcatSchemas, Map<String,IFeedAttribute> index, IFeedRecord r, String _fieldName)
          Gets attribute field.
protected  DcatField getDcatField(DcatFields dcatFields)
          Gets dcat field.
protected  DcatField getDcatField(DcatFields dcatFields, String _fieldName)
          Gets dcat field.
protected  DcatFields getDcatFields(DcatSchemas dcatSchemas, String schemaKey)
          Gets dcat fields
protected  IFeedAttribute getFeedAttribute(DcatSchemas dcatSchemas, IFeedRecord r)
          Gets feed attribute.
protected  IFeedAttribute getFeedAttribute(DcatSchemas dcatSchemas, IFeedRecord r, String _fieldName)
          Gets feed attribute.
protected  IFeedAttribute getFeedAttribute(Map<String,IFeedAttribute> index, DcatField field)
          Gets feed attribute.
protected  Map<String,IFeedAttribute> getIndex(IFeedRecord r)
          Gets index.
protected  String getOutFieldName()
          Gets output field name.
protected  String getSchemaKey(Map<String,IFeedAttribute> index)
          Gets schema key.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.gpt.control.georss.dcatdef.DcatFieldDefinition
print
 

Field Detail

fldName

protected final String fldName

flags

protected BaseDcatField.FlagsProvider flags
Constructor Detail

BaseDcatField

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

Parameters:
fldName - field name

BaseDcatField

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

Parameters:
fldName - field name
flags - flags

BaseDcatField

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

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

getOutFieldName

protected String getOutFieldName()
Gets output field name.

Returns:
field name

getIndex

protected Map<String,IFeedAttribute> getIndex(IFeedRecord r)
Gets index.

Parameters:
r - feed record
Returns:
map of attributes

getSchemaKey

protected String getSchemaKey(Map<String,IFeedAttribute> index)
Gets schema key.

Parameters:
index - map of attributes
Returns:
schema key

getDcatFields

protected DcatFields getDcatFields(DcatSchemas dcatSchemas,
                                   String schemaKey)
Gets dcat fields

Parameters:
dcatSchemas - dcat schemas
schemaKey - schema key
Returns:
dcat fields

getDcatField

protected DcatField getDcatField(DcatFields dcatFields)
Gets dcat field.

Parameters:
dcatFields - dcat fields
Returns:
dcat field

getDcatField

protected DcatField getDcatField(DcatFields dcatFields,
                                 String _fieldName)
Gets dcat field.

Parameters:
dcatFields - dcat fields
_fieldName - field name
Returns:
dcat field

getFeedAttribute

protected IFeedAttribute getFeedAttribute(Map<String,IFeedAttribute> index,
                                          DcatField field)
Gets feed attribute.

Parameters:
index - index
field - field
Returns:
attribute or null if not available

getFeedAttribute

protected IFeedAttribute getFeedAttribute(DcatSchemas dcatSchemas,
                                          IFeedRecord r)
Gets feed attribute.

Parameters:
dcatSchemas - dcat schemas
r - feed record
Returns:
feed attribute

getAttributeField

protected DcatField getAttributeField(DcatSchemas dcatSchemas,
                                      IFeedRecord r)
Gets attribute field.

Parameters:
dcatSchemas - dcat schemas
r - feed record
Returns:
field

getAttributeField

protected DcatField getAttributeField(DcatSchemas dcatSchemas,
                                      Map<String,IFeedAttribute> index,
                                      IFeedRecord r,
                                      String _fieldName)
Gets attribute field.

Parameters:
dcatSchemas - dcat schemas
index - index
r - feed record
_fieldName - field name
Returns:
field

getFeedAttribute

protected IFeedAttribute getFeedAttribute(DcatSchemas dcatSchemas,
                                          IFeedRecord r,
                                          String _fieldName)
Gets feed attribute.

Parameters:
dcatSchemas - dcat schemas
r - feed record
_fieldName - field name
Returns:
feed attribute

toString

public String toString()
Overrides:
toString in class Object

Esri Geoportal Server
1.2.9

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