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

Object
  extended by Action.UpdateAction
All Implemented Interfaces:
Action
Enclosing interface:
Action

public static class Action.UpdateAction
extends Object
implements Action

Represents an Update Action

Author:
dzwiers

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

Constructor Detail

Action.UpdateAction

public Action.UpdateAction(String typeName,
                           Filter f,
                           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 Object getProperty(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 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 Map getProperties()
Returns:
a clone of the properties map, null if it does not exist.

getFilter

public Filter getFilter()
Specified by:
getFilter in interface Action
Returns:
Filter the Filter

getTypeName

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

update

public void update(SimpleFeature feature)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.