org.oddjob.arooa.types
Class IsType
java.lang.Object
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#fruitBeanExample
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final ArooaElement ELEMENT
IsType
public IsType()
supports
public static boolean supports(InstantiationContext context)