CookXml Reference: Tags for Basic Objects


 

 

Support This Project

 

stats counter

 

Logo SourceForge.net Logo IntelliJ IDEA

These tags are defined in CookXml Common.

Tag Object Type Attribute Description
array Object array type (String, Optional) Create an object array. If type is not specified and all children are of the same object type, then an object array type of child is obtained. Use the type to specify a primitive type array, or a parent class type of the children.
boolean Boolean value "true" or "false"
byte Byte value The first byte of the string is taken as the value.
char Character value The first character of the string is taken as the value.
date Date value see Date converter.
double Double value a double value.
float Float value a float value.
hashmap HashMap   This tag creates an actual HashMap which can be manuiplated via its setter methods. Its child elements should be mapentry in order to add entries to the map.
hashset HashSet   This tag creates an actual HashSet which can be manuiplated via its setter methods. Objects constructed from the child elements will be added to the HashSet.
hashtable Hashtable   This tag creates an actual Hashtable which can be manuiplated via its setter methods. Its child elements should be mapentry in order to add entries to the map.
html String   the first comment between the starting and ending tag is taken as the html text.
int Integer value an integer value
linkedlist LinkedList   This tag creates an actual LinkedList which can be manuiplated via its setter methods. Objects constructed from the child elements will be added to the LinkedList.
locale Locale value see locale converter.
mapentry MapEntryHelper key
value
This tag is used to help entering key and value pair to maps. Alternatively, one could add child objects to a mapentry. The first one would be considered as the key object and the second one would be the value object.
short Short value a short value
stack Stack   This tag creates an actual Stack which can be manuiplated via its setter methods. Objects constructed from the child elements will be added to the Stack.
string String text text string
text String   the text (first CDATA) between the starting and ending text is taken as the text string.
text String src the text is retrieved from the src that can be found using ClassLoader.
treemap TreeMap   This tag creates an actual TreeMap which can be manuiplated via its setter methods. Its child elements should be mapentry in order to add entries to the map.
treeset TreeSet   This tag creates an actual TreeSet which can be manuiplated via its setter methods. Objects constructed from the child elements will be added to the TreeSet.
url URL href See Sun's JavaDoc
vector Vector   This tag creates an actual Vector which can be manuiplated via its setter methods. Objects constructed from the child elements will be added to the Vector.
weakhashmap WeakHashMap   This tag creates an actual WeakHashMap which can be manuiplated via its setter methods. Its child elements should be mapentry in order to add entries to the map.

(c) Copyright 2004-2007 Heng Yuan. All rights reserved.

Valid XHTML 1.0! Valid CSS!