ar.com.epere4.java2excel.parser
Interface BodyDtd

All Known Implementing Classes:
BodyDtdImpl

public interface BodyDtd

This interface represents the body tag in the configuration xml file. Properties defined in this interface are documented in the dtd schema that you can find in the url defined by Parser.JAVA2EXCEL_SYSTEM_ID or in the resource you can find in Parser.JAVA2EXCEL_LOCAL_DTD_URL.

Since:
06/02/2006
Author:
epere4

Method Summary
 void addProperty(PropertyDtd property)
          Adds a property to this instance.
 void completeProperties(java.lang.Class beanClass)
          If getIncludeExtraLevel() returns a value greater than -1, it will add properties to this instances that will be obtained by reflection from the beanClass.
 int getIncludeExtraLevel()
           
 java.util.Iterator propertiesIterator()
           
 

Method Detail

propertiesIterator

java.util.Iterator propertiesIterator()
Returns:
an Iterator of PropertyDtd.

getIncludeExtraLevel

int getIncludeExtraLevel()
Returns:
la propiedad includeExtraLevel.
Since:
18/02/2006

completeProperties

void completeProperties(java.lang.Class beanClass)
If getIncludeExtraLevel() returns a value greater than -1, it will add properties to this instances that will be obtained by reflection from the beanClass. The beanClass will be search by reflection for properties up to the configured level. See the comments in the dtd, for more details. After using this method, getIncludeExtraLevel() will return -1;

Parameters:
beanClass - the class where properties will be read from.
Since:
20/02/2006

addProperty

void addProperty(PropertyDtd property)
Adds a property to this instance. Implementations must ensure that no similar properties can be added acording to PropertyDtd.getExpression(). If a similar property is added, it should overwrite the previous one.

Parameters:
property - the PropertyDtd to be added. These are the properties that will be returned by propertiesIterator().
Since:
18/02/2006


Copyright © 2006 epere4. All Rights Reserved.