org.ztemplates.property
Class ZOperation

java.lang.Object
  extended by org.ztemplates.property.ZProperty<String>
      extended by org.ztemplates.property.ZOperation

public class ZOperation
extends ZProperty<String>


Field Summary
 
Fields inherited from class org.ztemplates.property.ZProperty
log
 
Constructor Summary
ZOperation(String allowedValue)
          Deprecated. 
ZOperation(String name, String allowedValue)
           
 
Method Summary
 String format(String s)
           
 String getAllowedValue()
           
 ZIOperationListener getOperationListener()
           
 String parse(String s)
           
 void setAllowedValue(String allowedValue)
           
 void setOperationListener(ZIOperationListener callback)
           
 ZMessages validate()
          validates the attached validators
 
Methods inherited from class org.ztemplates.property.ZProperty
clear, getName, getStringValue, getStringValues, getValidators, getValue, getValues, isEmpty, isReadable, isRequired, isWriteable, setName, setReadable, setRequired, setStringValue, setStringValues, setValue, setWriteable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZOperation

public ZOperation(String name,
                  String allowedValue)

ZOperation

@Deprecated
public ZOperation(String allowedValue)
Deprecated. 

To avoid refactoring errors specify the name as you can now use the after[OperationName] callback in actions

Parameters:
allowedValue -
Method Detail

validate

public final ZMessages validate()
                         throws Exception
validates the attached validators

Returns:
Throws:
Exception

getOperationListener

public ZIOperationListener getOperationListener()

setOperationListener

public void setOperationListener(ZIOperationListener callback)

parse

public String parse(String s)
             throws Exception
Specified by:
parse in class ZProperty<String>
Throws:
Exception

format

public String format(String s)
Specified by:
format in class ZProperty<String>

getAllowedValue

public String getAllowedValue()

setAllowedValue

public void setAllowedValue(String allowedValue)


Copyright © 2011. All Rights Reserved.