org.xanot.structure
Class CloseCollectionInstanceRule

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

public class CloseCollectionInstanceRule
extends XanotRule

Collection adding rule. This rule define how an XML element's attribute tobe mapped to an object's collection property.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

Constructor Summary
CloseCollectionInstanceRule(java.lang.String path, java.lang.String methodName)
          Creates a new CloseColletionInstance object.
 
Method Summary
 java.lang.String getDateFormat()
          Get the date format value.
 java.lang.String getMethodName()
          Get the parent's method name used for addition.
 void setDateFormat(java.lang.String dateFormat)
          Set the date format value
 void setMethodName(java.lang.String methodName)
          Set the parent's method name used for addition.
 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

CloseCollectionInstanceRule

public CloseCollectionInstanceRule(java.lang.String path,
                                   java.lang.String methodName)
Creates a new CloseColletionInstance object.

Parameters:
path - Path of the element. Equals to xml element name.
methodName - Method name tobe called on the parent object for addition.
Method Detail

getMethodName

public java.lang.String getMethodName()
Get the parent's method name used for addition.

Returns:
Returns the methodName.

setMethodName

public void setMethodName(java.lang.String methodName)
Set the parent's method name used for addition.

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