org.xanot.structure
Class AttributeSetRule

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

public class AttributeSetRule
extends XanotRule

Attribute setter rule. This rule define how an XML element's attribute tobe mapped to an object's property.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

Constructor Summary
AttributeSetRule(java.lang.String path, java.lang.String propertyName, java.lang.String xmlAttributeName)
          Creates a new AttributeSetRule object.
 
Method Summary
 java.lang.String getDateFormat()
          Get the date format value.
 java.lang.String getPropertyName()
          Get Object's property name
 java.lang.String getXmlAttributeName()
           
 void setDateFormat(java.lang.String dateFormat)
          Set the date format value
 void setPropertyName(java.lang.String propertyName)
          set Object's property name
 void setXmlAttributeName(java.lang.String xmlAttributeName)
           
 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

AttributeSetRule

public AttributeSetRule(java.lang.String path,
                        java.lang.String propertyName,
                        java.lang.String xmlAttributeName)
Creates a new AttributeSetRule object. TODO Consider the usage of the xmlAttributeName. Should we remove it ?

Parameters:
path - The path, should be equals to the parent path. Hmm. what for.
propertyName - The object's property name.
xmlAttributeName - The XML attribute name.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get Object's property name

Returns:
Returns the propertyName.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
set Object's property name

Parameters:
propertyName - The propertyName to set.

getXmlAttributeName

public java.lang.String getXmlAttributeName()
Returns:
Returns the xmlAttributeName.

setXmlAttributeName

public void setXmlAttributeName(java.lang.String xmlAttributeName)
Parameters:
xmlAttributeName - The xmlAttributeName 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.