org.geotools.data.wfs.v1_0_0
Class Action.UpdateAction

java.lang.Object
  extended by org.geotools.data.wfs.v1_0_0.Action.UpdateAction
All Implemented Interfaces:
Action
Enclosing interface:
Action

public static class Action.UpdateAction
extends java.lang.Object
implements Action

Represents an Update Action

Author:
dzwiers

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.geotools.data.wfs.v1_0_0.Action
Action.DeleteAction, Action.InsertAction, Action.UpdateAction
 
Field Summary
 
Fields inherited from interface org.geotools.data.wfs.v1_0_0.Action
DELETE, INSERT, UPDATE
 
Constructor Summary
Action.UpdateAction(java.lang.String typeName, org.opengis.filter.Filter f, java.util.Map properties)
          Makes an UpdateAction Filter is copied so any further changes will not be included in filter of action.
 
Method Summary
 org.opengis.filter.Filter getFilter()
           
 java.util.Map getProperties()
           
 java.lang.Object getProperty(java.lang.String name)
          Returns the property if found ...
 java.lang.String[] getPropertyNames()
          Returns the property names if they exist ...
 int getType()
           
 java.lang.String getTypeName()
           
 java.lang.String toString()
           
 void update(org.opengis.feature.simple.SimpleFeature feature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action.UpdateAction

public Action.UpdateAction(java.lang.String typeName,
                           org.opengis.filter.Filter f,
                           java.util.Map properties)
Makes an UpdateAction Filter is copied so any further changes will not be included in filter of action.

Parameters:
typeName - The TypeName
f - Filter which this update affects
properties - The properties to update. Entries must be where String is an attribute to update and Object is the new Value.
Method Detail

getType

public int getType()
Specified by:
getType in interface Action
Returns:
@see Action#UPDATE

getProperty

public java.lang.Object getProperty(java.lang.String name)
Returns the property if found ... this method will not create a NullPointerException if properties is null.

Parameters:
name - String the property key
Returns:
Object The property if found, null other wise.

getPropertyNames

public java.lang.String[] getPropertyNames()
Returns the property names if they exist ... this method will not create a NullPointerException if properties is null.

Returns:
A list of the keys.

getProperties

public java.util.Map getProperties()
Returns:
a clone of the properties map, null if it does not exist.

getFilter

public org.opengis.filter.Filter getFilter()
Specified by:
getFilter in interface Action
Returns:
Filter the Filter

getTypeName

public java.lang.String getTypeName()
Specified by:
getTypeName in interface Action
Returns:
String the TypeName

update

public void update(org.opengis.feature.simple.SimpleFeature feature)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.