org.xanot.structure
Class PropertyCollectionSetRule

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

public class PropertyCollectionSetRule
extends XanotRule

Propert Collection Setter rule. This rule define how to map sets of xml tag with same name into object collection property.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

Constructor Summary
PropertyCollectionSetRule(java.lang.String path, java.lang.String xmlProperty, java.lang.String methodName)
          Creates a new PropertyCollectionSetRule object.
 
Method Summary
 java.lang.String getDateFormat()
          Get the date format value.
 java.lang.String getMethodName()
          Get the method name tobe invoke for element addition.
 java.lang.String getXmlProperty()
          Get the xml element tag name
 void setDateFormat(java.lang.String dateFormat)
          Set the date format value
 void setMethodName(java.lang.String methodName)
          Set the method name tobe invoke for element addition.
 void setXmlProperty(java.lang.String xmlProperty)
          Set the xml element tag name
 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

PropertyCollectionSetRule

public PropertyCollectionSetRule(java.lang.String path,
                                 java.lang.String xmlProperty,
                                 java.lang.String methodName)
Creates a new PropertyCollectionSetRule object.

Parameters:
path - Path, should be equals to the parent element's tag name.
xmlProperty - the xml tag name
methodName - Method name tobe invoke for element addition.
Method Detail

getMethodName

public java.lang.String getMethodName()
Get the method name tobe invoke for element addition.

Returns:
Returns the methodName.

setMethodName

public void setMethodName(java.lang.String methodName)
Set the method name tobe invoke for element addition.

Parameters:
methodName - The methodName to set.

getXmlProperty

public java.lang.String getXmlProperty()
Get the xml element tag name

Returns:
Returns the xmlProperty.

setXmlProperty

public void setXmlProperty(java.lang.String xmlProperty)
Set the xml element tag name

Parameters:
xmlProperty - The xmlProperty 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.