it.geosolutions.unredd.geostore.model
Class ReverseAttributeDef

java.lang.Object
  extended by it.geosolutions.unredd.geostore.model.ReverseAttributeDef
Direct Known Subclasses:
UNREDDChartData.ReverseAttributes, UNREDDChartScript.ReverseAttributes, UNREDDFeedback.ReverseAttributes, UNREDDLayer.ReverseAttributes, UNREDDLayerUpdate.ReverseAttributes, UNREDDStatsData.ReverseAttributes, UNREDDStatsDef.ReverseAttributes

public class ReverseAttributeDef
extends Object

A Reverse attribute is a workaround used to store multivalue attributes in a GeoStore Resource.

The attributes of GeoStore resources are persisted more or less in a key+value map. It means that every key can exist at most once for a given resource.
This problem can be partially solved by inverting the key+value pair, and saving the value as it was the key and vice versa.

A shortcoming of this is that no element can be doubled, not we can have a reverse attribute with the value equal to a key of a normal attribute.

Author:
ETj (etj at geo-solutions.it)

Constructor Summary
protected ReverseAttributeDef(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 it.geosolutions.geostore.core.model.enums.DataType getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReverseAttributeDef

protected ReverseAttributeDef(String name)
Method Detail

getName

public String getName()

getType

public it.geosolutions.geostore.core.model.enums.DataType getType()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.