ar.com.epere4.java2excel.parser.impl
Class BodyDtdImpl

java.lang.Object
  extended by ar.com.epere4.java2excel.parser.impl.BodyDtdImpl
All Implemented Interfaces:
BodyDtd

public class BodyDtdImpl
extends java.lang.Object
implements BodyDtd

Author:
epere4

Field Summary
static java.lang.Class[] DEFAULT_TYPES_TO_EXCLUDE_IN_AUTO_COMPLETE
          This is the default value for getTypesToExcludeInAutoComplete().
 
Constructor Summary
BodyDtdImpl()
           
 
Method Summary
 void addProperty(PropertyDtd property)
          Adds a property to this instance.
 void addTypesToExcludeInAutoComplete(java.lang.Class[] typesToAdd)
          Adds the specified types to what getTypesToExcludeInAutoComplete() will return.
 void completeProperties(java.lang.Class beanClass)
          If BodyDtd.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.lang.Class[] getTypesToExcludeInAutoComplete()
          These represents the classes or interfaces to exclude in the completeProperties(Class) method.
 java.util.Iterator propertiesIterator()
          
 void setIncludeExtraLevel(int includeExtraLevel)
           
 void setTypesToExcludeInAutoComplete(java.lang.Class[] typesToExcludeInAutoComplete)
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TYPES_TO_EXCLUDE_IN_AUTO_COMPLETE

public static final java.lang.Class[] DEFAULT_TYPES_TO_EXCLUDE_IN_AUTO_COMPLETE
This is the default value for getTypesToExcludeInAutoComplete().

Constructor Detail

BodyDtdImpl

public BodyDtdImpl()
Method Detail

addProperty

public 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.

Specified by:
addProperty in interface BodyDtd
Parameters:
property - the PropertyDtd to be added. These are the properties that will be returned by BodyDtd.propertiesIterator().
Since:
18/02/2006
See Also:
BodyDtd.addProperty(PropertyDtd)

propertiesIterator

public java.util.Iterator propertiesIterator()

Specified by:
propertiesIterator in interface BodyDtd
Returns:
an Iterator of PropertyDtd.
See Also:
BodyDtd.propertiesIterator()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getIncludeExtraLevel

public int getIncludeExtraLevel()

Specified by:
getIncludeExtraLevel in interface BodyDtd
Returns:
la propiedad includeExtraLevel.
Since:
18/02/2006
See Also:
BodyDtd.getIncludeExtraLevel()

setIncludeExtraLevel

public void setIncludeExtraLevel(int includeExtraLevel)
Parameters:
includeExtraLevel - The includeExtraLevel to set.
Since:
18/02/2006

completeProperties

public void completeProperties(java.lang.Class beanClass)
If BodyDtd.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, BodyDtd.getIncludeExtraLevel() will return -1;

Specified by:
completeProperties in interface BodyDtd
Parameters:
beanClass - the class where properties will be read from.
Since:
20/02/2006
See Also:
#completeProperties(java.lang.Class)

getTypesToExcludeInAutoComplete

public java.lang.Class[] getTypesToExcludeInAutoComplete()
These represents the classes or interfaces to exclude in the completeProperties(Class) method. Properties of this types will not be followed.

Returns:
Returns the typesToExcludeInAutoComplete.
Since:
21/02/2006

setTypesToExcludeInAutoComplete

public void setTypesToExcludeInAutoComplete(java.lang.Class[] typesToExcludeInAutoComplete)
Parameters:
typesToExcludeInAutoComplete - The typesToExcludeInAutoComplete to set.
Since:
21/02/2006
See Also:
getTypesToExcludeInAutoComplete()

addTypesToExcludeInAutoComplete

public void addTypesToExcludeInAutoComplete(java.lang.Class[] typesToAdd)
Adds the specified types to what getTypesToExcludeInAutoComplete() will return.

Parameters:
typesToAdd - the types to add.
Since:
22/02/2006


Copyright © 2006 epere4. All Rights Reserved.