org.xanot.structure
Class PropertySetRule

java.lang.Object
  extended by org.xanot.structure.XanotRule
      extended by org.xanot.structure.PropertySetRule

public class PropertySetRule
extends XanotRule

Propert Setter rule. This rule define how to map sets of xml tag value into object property.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

TODO we might need add mandatory attributes as stated on the annotation.


Constructor Summary
PropertySetRule(java.lang.String path, java.lang.String propertyName)
          Creates a new PropertySetRule object.
 
Method Summary
 java.lang.String getDateFormat()
          Get the date format value.
 java.lang.String getPropertyName()
          Get the property name to set.
 void setDateFormat(java.lang.String dateFormat)
          Set the date format value
 void setPropertyName(java.lang.String propertyName)
          Set the property name to set.
 java.lang.String toString()
          Get string representation of this object.
 
Methods inherited from class org.xanot.structure.XanotRule
getPath, setPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertySetRule

public PropertySetRule(java.lang.String path,
                       java.lang.String propertyName)
Creates a new PropertySetRule object.

Parameters:
path - Path, should be equals to the xml tag name.
propertyName - Property name to set.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get the property name to set.

Returns:
Returns the propertyName.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Set the property name to set.

Parameters:
propertyName - The propertyName to set.

toString

public java.lang.String toString()
Get string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String representation.

getDateFormat

public java.lang.String getDateFormat()
Get the date format value.

Returns:
Date format pattern

setDateFormat

public void setDateFormat(java.lang.String dateFormat)
Set the date format value

Parameters:
dateFormat - new date format pattern


Copyright 2006 null. All Rights Reserved.