Package mgui.io.standard.xml
Class XMLOutputOptions
java.lang.Object
mgui.interfaces.InterfaceOptions
mgui.io.InterfaceIOOptions
mgui.io.standard.xml.XMLOutputOptions
- All Implemented Interfaces:
InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
- Direct Known Subclasses:
ShapeModel3DOutputOptions
,WorkspaceOutputOptions
public class XMLOutputOptions extends InterfaceIOOptions
Specifies options for writing an XML object (i.e., an instance of
XMLObject
).- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
delimiter
XMLObject.XMLEncoding
encoding
java.io.File
file
java.lang.String
filename
InterfaceIOOptions
io_options
int
max_line_size
XMLObject
object
int
sig_digits
XMLObject.XMLType
type
FileWriter
writer
-
Constructor Summary
Constructors Constructor Description XMLOutputOptions()
-
Method Summary
Modifier and Type Method Description javax.swing.JFileChooser
getFileChooser()
Returns a file chooser appropriate for this options instancejavax.swing.JFileChooser
getFileChooser(java.io.File file)
Returns a file chooser appropriate for this options instancejava.io.File[]
getFiles()
Returns the list of files associated with this options instancevoid
setFiles(java.io.File[] files)
Sets the list of files associated with this options instancevoid
setObject(InterfaceObject obj)
Sets the object on which to perform an I/O operationMethods inherited from class mgui.io.InterfaceIOOptions
getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setFromComplementaryOptions, writeXML, writeXML, writeXML
Methods inherited from class mgui.interfaces.InterfaceOptions
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
file
public java.io.File file -
type
-
object
-
encoding
-
sig_digits
public int sig_digits -
max_line_size
public int max_line_size -
delimiter
public java.lang.String delimiter -
writer
-
io_options
-
filename
public java.lang.String filename
-
-
Constructor Details
-
XMLOutputOptions
public XMLOutputOptions()
-
-
Method Details
-
getFiles
public java.io.File[] getFiles()Description copied from class:InterfaceIOOptions
Returns the list of files associated with this options instance- Specified by:
getFiles
in classInterfaceIOOptions
- Returns:
-
setFiles
public void setFiles(java.io.File[] files)Description copied from class:InterfaceIOOptions
Sets the list of files associated with this options instance- Specified by:
setFiles
in classInterfaceIOOptions
-
getFileChooser
public javax.swing.JFileChooser getFileChooser()Description copied from class:InterfaceIOOptions
Returns a file chooser appropriate for this options instance- Specified by:
getFileChooser
in classInterfaceIOOptions
- Returns:
-
setObject
Description copied from class:InterfaceIOOptions
Sets the object on which to perform an I/O operation- Specified by:
setObject
in classInterfaceIOOptions
- Throws:
java.lang.ClassCastException
- ifobj
is the wrong class for this options instance
-
getFileChooser
public javax.swing.JFileChooser getFileChooser(java.io.File file)Description copied from class:InterfaceIOOptions
Returns a file chooser appropriate for this options instance- Specified by:
getFileChooser
in classInterfaceIOOptions
- Returns:
-