Package org.imixs.workflow.xml
Class XMLItem
java.lang.Object
org.imixs.workflow.xml.XMLItem
- All Implemented Interfaces:
Serializable
Represents a single item inside a XMLItemCollection. An XMLItem has a name
and a value. The value can be any Serializable collection of objects.
- Author:
- rsoika
- See Also:
-
Constructor Details
-
XMLItem
public XMLItem()
-
-
Method Details
-
getName
-
setName
-
getValue
-
setValue
This method set the value array of the item. The method verifies if the values are from basic type, XMLItem or implementing the Map or List interface.Map or List interface will be converted into instances of XMLItem.
Null values will be converted into an empty vector.
In case an value is not convertible the method prints a warning into the log file.
issue #52: the method also converts XMLGregorianCalendar into java.util.Date
- Parameters:
values
- - array of objects
-
transformValue
This method returns a transformed version of the XMLItem value array.In case an object value is an instance of a XMLItem, the method converts the object into the corresponding Map or List interface.
- Returns:
- See Also:
-
equals
This method compares the item name and value array
-