org.jscience.ml.cml
Interface CMLNode

All Known Subinterfaces:
AbstractBase, AbstractCMLDocument
All Known Implementing Classes:
AbstractCMLDocumentImpl, CMLBaseImpl

public interface CMLNode

Adds i/o control


Field Summary
static java.lang.String ARRAY
          output CML variants
static java.lang.String CML1
           
static java.lang.String CML2
           
 
Method Summary
 void setArraySyntax(boolean syntax)
          set array syntax

set CML array syntax (default false)

 void setVersion(java.lang.String v)
          set CML version

1 or 2 at present (default 2)

 void writeXML(java.io.Writer w)
          write XML (uses default control)
 void writeXML(java.io.Writer w, java.lang.String control)
          write XML (allows for syntactic variants)
 

Field Detail

ARRAY

static final java.lang.String ARRAY
output CML variants

See Also:
Constant Field Values

CML1

static final java.lang.String CML1
See Also:
Constant Field Values

CML2

static final java.lang.String CML2
See Also:
Constant Field Values
Method Detail

setVersion

void setVersion(java.lang.String v)
                throws CMLException
set CML version

1 or 2 at present (default 2)

Parameters:
v - version
Throws:
unsupported - version
CMLException

setArraySyntax

void setArraySyntax(boolean syntax)
set array syntax

set CML array syntax (default false)

Parameters:
syntax -

writeXML

void writeXML(java.io.Writer w,
              java.lang.String control)
              throws CMLException,
                     java.io.IOException
write XML (allows for syntactic variants)

Parameters:
control - applications-specific, for example "CML1+array" or "CML2"
w - output
Throws:
java.io.IOException
CMLException

writeXML

void writeXML(java.io.Writer w)
              throws CMLException,
                     java.io.IOException
write XML (uses default control)

Parameters:
w - output
Throws:
CMLException
java.io.IOException