Class XMLItem

java.lang.Object
org.imixs.workflow.xml.XMLItem
All Implemented Interfaces:
Serializable

public class XMLItem extends Object implements 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

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public Object[] getValue()
    • setValue

      public void setValue(Object[] _values)
      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

      public Object[] 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

      public boolean equals(Object o)
      This method compares the item name and value array
      Overrides:
      equals in class Object