Class DataFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataFile
    extends java.lang.Object
    implements java.io.Serializable

    Workflow activity data file

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DataFile​(Data d)  
    • Method Summary

      Modifier and Type Method Description
      void addValue​(java.lang.String value)
      Add a value
      void addValues​(java.lang.String[] values)  
      void clearValues()  
      Data getData()
      Data definition
      java.lang.String getGroup()
      Group
      java.lang.String getName()
      Data name
      java.lang.String getValue​(int i)
      Indexed value (not parsed)
      java.lang.String[] getValues()
      Values (not parsed, contains brackets)
      boolean hasChanged()  
      void removeValue​(java.lang.String value)  
      void removeValues​(java.lang.String[] values)  
      void setData​(Data d)  
      void setValue​(int i, java.lang.String value)  
      void setValues​(java.lang.String[] v)  
      void setValues​(java.util.List<java.lang.String> v)  
      int size()  
      org.json.JSONObject toJSONObject()
      Generates a JSON object representation of the data file
      java.lang.String toString()
      Generates a string representation of the data file
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataFile

        public DataFile​(Data d)
    • Method Detail

      • setData

        public void setData​(Data d)
      • getData

        public Data getData()
        Data definition
        Returns:
        data
      • getName

        public java.lang.String getName()
        Data name
        Returns:
        name
      • getGroup

        public java.lang.String getGroup()
        Group
        Returns:
        Group
      • size

        public int size()
      • getValue

        public java.lang.String getValue​(int i)
        Indexed value (not parsed)
        Parameters:
        i - index
        Returns:
        indexed value
      • getValues

        public java.lang.String[] getValues()
        Values (not parsed, contains brackets)
        Returns:
        Values
      • addValue

        public void addValue​(java.lang.String value)
        Add a value
        Parameters:
        value - Value
      • addValues

        public void addValues​(java.lang.String[] values)
      • removeValue

        public void removeValue​(java.lang.String value)
      • removeValues

        public void removeValues​(java.lang.String[] values)
      • setValue

        public void setValue​(int i,
                             java.lang.String value)
      • setValues

        public void setValues​(java.util.List<java.lang.String> v)
      • setValues

        public void setValues​(java.lang.String[] v)
      • clearValues

        public void clearValues()
      • hasChanged

        public boolean hasChanged()
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Generates a JSON object representation of the data file
        Returns:
        data file as JSON object
      • toString

        public java.lang.String toString()
        Generates a string representation of the data file
        Overrides:
        toString in class java.lang.Object
        Returns:
        data file as string