org.oddjob.designer.arooa
Class DesignIH

java.lang.Object
  extended byorg.oddjob.designer.arooa.DesignIH

public final class DesignIH
extends java.lang.Object

An introspection helper for parsing the design object tree. The following methods are recognized:


Method Summary
 org.xml.sax.Attributes attributes(java.lang.Object object)
          Return the attributes for an objec.
 ElementWrapper[] elements(java.lang.Object object)
           
protected  ElementWrapper elementWrapperFor(java.lang.String name, java.lang.Object object)
           
static DesignIH getHelper(java.lang.Class c)
          Returns a helper for the given class, either from the cache or by creating a new instance.
 boolean hasDetailData(DesignElement object)
          Does the element have nested data.
 java.lang.String text(java.lang.Object object)
          Get the text associated with a object.
 java.lang.String unknown(java.lang.Object object)
           
 void unknown(java.lang.Object object, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHelper

public static DesignIH getHelper(java.lang.Class c)
Returns a helper for the given class, either from the cache or by creating a new instance.

Parameters:
c - The class for which a helper is required. Must not be null.
Returns:
a helper for the specified class

attributes

public org.xml.sax.Attributes attributes(java.lang.Object object)
Return the attributes for an objec.


text

public java.lang.String text(java.lang.Object object)
Get the text associated with a object.


unknown

public java.lang.String unknown(java.lang.Object object)

unknown

public void unknown(java.lang.Object object,
                    java.lang.String text)

elementWrapperFor

protected ElementWrapper elementWrapperFor(java.lang.String name,
                                           java.lang.Object object)

elements

public ElementWrapper[] elements(java.lang.Object object)

hasDetailData

public boolean hasDetailData(DesignElement object)
Does the element have nested data. An element has any nested elements.

Parameters:
object - The element.
Returns:
true if it does.