Class WurbletData

java.lang.Object
org.wurbelizer.wurblet.WurbletData
All Implemented Interfaces:
Serializable

public class WurbletData extends Object implements Serializable
Class holding the wurblet data.
An instance of this class is serialized per wurblet.
See Also:
  • Constructor Details

    • WurbletData

      public WurbletData(String[] source, String[] args)
      Creates an instance of the wurblet data. This is usually done by the wurbiler.
      Parameters:
      source - the fixed source part.
      args - the wurblet args. null = provided by container.
  • Method Details

    • getArgs

      public String[] getArgs()
      Gets the preset arguments for the wurblet.
      Returns:
      preset (fixed) arguments, null = get from container
    • setArgs

      public void setArgs(String[] args)
      Sets the wurblet arguments (e.g. by the @{args} wurblet command).
      Parameters:
      args - fixed args, null = get from container
    • getSource

      public String[] getSource()
      Get the fixed source.
      Returns:
      fixed source (never null!)
    • setSource

      public void setSource(String[] source)
      Set the fixed source.
      Parameters:
      source - fixed source as an array of String.