org.xanot.structure
Class CloseInstanceRule

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

public class CloseInstanceRule
extends XanotRule

Close instance rule. This rule define how an XML element's element tobe set into the parent property.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

Constructor Summary
CloseInstanceRule(java.lang.String path, java.lang.String propertyName)
          Creates a new CloseInstanceRule object.
 
Method Summary
 java.lang.String getDateFormat()
          Get the date format value.
 java.lang.String getPropertyName()
          Get property on the parent side where the object belongs.
 void setDateFormat(java.lang.String dateFormat)
          Set the date format value
 void setPropertyName(java.lang.String propertyName)
          Set property on the parent side where the object belongs.
 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

CloseInstanceRule

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

Parameters:
path - The path, should be equals to the closing xml tag name.
propertyName - Property on the parent side where the object belongs.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get property on the parent side where the object belongs.

Returns:
Returns the propertyName.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Set property on the parent side where the object belongs.

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.