org.geotools.filter.identity
Class FeatureIdImpl

java.lang.Object
  extended by org.geotools.filter.identity.FeatureIdImpl
All Implemented Interfaces:
org.opengis.filter.identity.FeatureId, org.opengis.filter.identity.Identifier

public class FeatureIdImpl
extends java.lang.Object
implements org.opengis.filter.identity.FeatureId

Implementation of FeatureId

This class is mutable under one condition only; during a commit a datastore can update the internal fid to reflect the real identify assigned by the database or wfs.

Author:
Justin Deoliveira, The Open Planning Project

Field Summary
protected  java.lang.String fid
          underlying fid
protected  java.lang.String origionalFid
           
 
Constructor Summary
FeatureIdImpl(java.lang.String fid)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getID()
           
 int hashCode()
           
 boolean matches(org.opengis.feature.Feature feature)
           
 boolean matches(java.lang.Object object)
           
 void setID(java.lang.String id)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fid

protected java.lang.String fid
underlying fid


origionalFid

protected java.lang.String origionalFid
Constructor Detail

FeatureIdImpl

public FeatureIdImpl(java.lang.String fid)
Method Detail

getID

public java.lang.String getID()
Specified by:
getID in interface org.opengis.filter.identity.FeatureId
Specified by:
getID in interface org.opengis.filter.identity.Identifier

setID

public void setID(java.lang.String id)

matches

public boolean matches(org.opengis.feature.Feature feature)

matches

public boolean matches(java.lang.Object object)
Specified by:
matches in interface org.opengis.filter.identity.FeatureId
Specified by:
matches in interface org.opengis.filter.identity.Identifier

toString

public java.lang.String toString()
Specified by:
toString in interface org.opengis.filter.identity.Identifier
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface org.opengis.filter.identity.Identifier
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.opengis.filter.identity.Identifier
Overrides:
hashCode in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.