org.oddjob.arooa.types
Class IsType

java.lang.Object
  extended by org.oddjob.arooa.types.IsType

public class IsType
extends Object

Description

Create an Object that is the class of the property. The properties class must have a public zero argument constructor.

Example

Using is to set a simple property.
<snack>
    <fruit>
        <is type="apple" colour="red"/>
    </fruit>
</snack>
Where the snack bean is: org/oddjob/arooa/types/IsTypeTest.java#simpleBean and the fruit bean is: org/oddjob/arooa/types/IsTypeTest.java#fruitBean

Example

Using is to set an indexed property.
<snack>
    <fruit>
        <is type="apple" colour="red"/>
        <is type="pear" colour="green"/>
    </fruit>
</snack>
Where the snack bean is: org/oddjob/arooa/types/IsTypeTest.java#indexedBean and the fruit bean is as above.

Example

Using is to set a mapped property.
<snack>
    <fruit>
        <is key="morning" type="apple" colour="red"/>
        <is key="afternoon" type="grapes" colour="white"/>
    </fruit>
</snack>
Where the snack bean is: org/oddjob/arooa/types/IsTypeTest.java#mappedBean and the fruit bean is as above.
Author:
rob

Field Summary
static ArooaElement ELEMENT
           
 
Constructor Summary
IsType()
           
 
Method Summary
static boolean supports(InstantiationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT

public static final ArooaElement ELEMENT
Constructor Detail

IsType

public IsType()
Method Detail

supports

public static boolean supports(InstantiationContext context)