|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.isomorphic.base.Base | +--com.isomorphic.xml.XML
Provides programmatic access to the SmartClient XML processor.
Method Summary | |
static com.isomorphic.datasource.ValidationContext |
toJS(org.w3c.dom.Element element,
java.io.Writer out)
Converts XML from the passed Element object to JavaScript and writes it to the supplied Writer. |
static com.isomorphic.datasource.ValidationContext |
toJS(java.io.Reader reader,
java.io.Writer out)
Converts XML read from the provided Reader to JavaScript and writes it to the supplied Writer. |
static com.isomorphic.datasource.ValidationContext |
toJS(java.lang.String xml,
java.io.Writer out)
Converts an XML string to JavaScript and writes it to the supplied Writer. |
Method Detail |
public static com.isomorphic.datasource.ValidationContext toJS(java.lang.String xml, java.io.Writer out) throws java.lang.Exception
XML.toJS(String) and XML.toJS(Reader) use the XML->JS translation supported by JSTranslater.toJS(), including translation of XML to live SmartClient components. These are convenience methods that assume the inbound String or Reader contains XML.
xml
- xml stringout
- writer where the generated JS output should be writtenJSTranslater.toJS(Object, Writer)
public static com.isomorphic.datasource.ValidationContext toJS(java.io.Reader reader, java.io.Writer out) throws java.lang.Exception
reader
- reader containing xmlout
- writer where the generated JS output should be writtenpublic static com.isomorphic.datasource.ValidationContext toJS(org.w3c.dom.Element element, java.io.Writer out) throws java.lang.Exception
element
- xml element to be convertedout
- writer where the generated JS output should be written
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |