Klasse XMLItem

java.lang.Object
org.imixs.workflow.xml.XMLItem
Alle implementierten Schnittstellen:
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.
Autor:
rsoika
Siehe auch:
  • Konstruktordetails

    • XMLItem

      public XMLItem()
  • Methodendetails

    • 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

      Parameter:
      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.

      Gibt zurück:
      Siehe auch:
    • equals

      public boolean equals(Object o)
      This method compares the item name and value array
      Setzt außer Kraft:
      equals in Klasse Object