Class MicroAgentDescriptorXML

java.lang.Object
COM.TIBCO.hawk.config.rbengine.util.MicroAgentDescriptorXML

public class MicroAgentDescriptorXML extends Object
This class allow a MicroAgentDescriptor to be exported and restored from its XML representation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static COM.TIBCO.hawk.talon.MicroAgentDescriptor
    fromXML(Reader reader)
    Returns a MicroAgentDescriptor object from a Reader.
    static COM.TIBCO.hawk.talon.MicroAgentDescriptor
    Restore a MicroAgentDescriptor from a file.
    static void
    saveToPath(String path, COM.TIBCO.hawk.talon.MicroAgentDescriptor mad)
    Save the MicroAgentDescriptor to a file in the given path.
    static String
    toXML(COM.TIBCO.hawk.talon.MicroAgentDescriptor mad)
    Returns the XML representation of the specified MicroAgentDescriptor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CNAME

      public static String CNAME
  • Constructor Details

    • MicroAgentDescriptorXML

      public MicroAgentDescriptorXML()
  • Method Details

    • toXML

      public static String toXML(COM.TIBCO.hawk.talon.MicroAgentDescriptor mad) throws IOException
      Returns the XML representation of the specified MicroAgentDescriptor.
      Parameters:
      mad - The MicroAgentDescriptor to obtain the XML representation.
      Throws:
      IOException
    • saveToPath

      public static void saveToPath(String path, COM.TIBCO.hawk.talon.MicroAgentDescriptor mad) throws IOException, ClassNotFoundException
      Save the MicroAgentDescriptor to a file in the given path.
      Parameters:
      path - The path where the MicroAgentDescriptor's XML representation is written to. The name of the file created is obtain from the method getDisplayName() of the MicroAgentDescriptor.
      mad - The MicroAgentDescriptor to be written.
      Throws:
      IOException
      ClassNotFoundException
    • fromXML

      public static COM.TIBCO.hawk.talon.MicroAgentDescriptor fromXML(Reader reader) throws IOException
      Returns a MicroAgentDescriptor object from a Reader.
      Parameters:
      reader - The reader that the XML representation the MicroAgentDescriptor object.
      Throws:
      IOException
    • restoreFromFile

      public static COM.TIBCO.hawk.talon.MicroAgentDescriptor restoreFromFile(String fileName) throws FileNotFoundException, IOException
      Restore a MicroAgentDescriptor from a file.
      Parameters:
      fileName - The fileName of the file that caontain the XML representation of the MicroAgentDescriptor.
      Throws:
      FileNotFoundException
      IOException