org.apache.cocoon.forms.binding
Class DeleteNodeJXPathBinding

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.forms.binding.JXPathBindingBase
          extended byorg.apache.cocoon.forms.binding.DeleteNodeJXPathBinding
All Implemented Interfaces:
Binding

public class DeleteNodeJXPathBinding
extends JXPathBindingBase

DeleteNodeJXPathBinding provides an implementation of a Binding that deletes the current context-bean from the target back-end model upon save.

NOTES:

  1. This Binding does not perform any actions when loading.

Version:
$Id: DeleteNodeJXPathBinding.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
DeleteNodeJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts)
           
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Performs the actual load binding regardless of the configured value of the "direction" attribute.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Removes the current context-bean from the jxpath context.
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
getClass, getCommonAtts, getEnclosingLibrary, getId, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteNodeJXPathBinding

public DeleteNodeJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts)
Method Detail

doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
Description copied from class: JXPathBindingBase
Performs the actual load binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doLoad in class JXPathBindingBase

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
Removes the current context-bean from the jxpath context.

Specified by:
doSave in class JXPathBindingBase


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.