Class MicroAgentDescriptorXML
java.lang.Object
COM.TIBCO.hawk.config.rbengine.util.MicroAgentDescriptorXML
This class allow a MicroAgentDescriptor to be exported and restored from its
XML representation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic COM.TIBCO.hawk.talon.MicroAgentDescriptorReturns a MicroAgentDescriptor object from a Reader.static COM.TIBCO.hawk.talon.MicroAgentDescriptorrestoreFromFile(String fileName) Restore a MicroAgentDescriptor from a file.static voidsaveToPath(String path, COM.TIBCO.hawk.talon.MicroAgentDescriptor mad) Save the MicroAgentDescriptor to a file in the given path.static StringtoXML(COM.TIBCO.hawk.talon.MicroAgentDescriptor mad) Returns the XML representation of the specified MicroAgentDescriptor.
-
Field Details
-
CNAME
-
-
Constructor Details
-
MicroAgentDescriptorXML
public MicroAgentDescriptorXML()
-
-
Method Details
-
toXML
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:
IOExceptionClassNotFoundException
-
fromXML
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:
FileNotFoundExceptionIOException
-