com.ontotext.wsmo4j.serializer.xml
Class WsmlXmlSerializer

java.lang.Object
  extended by com.ontotext.wsmo4j.serializer.xml.WsmlXmlSerializer
All Implemented Interfaces:
org.wsmo.wsml.Serializer

public class WsmlXmlSerializer
extends Object
implements org.wsmo.wsml.Serializer

XML serializer of WSMO object (check wsml-xml-syntax.xsd)

Author:
not attributable

Field Summary
 
Fields inherited from interface org.wsmo.wsml.Serializer
SERIALIZER_LE_SERIALIZER
 
Constructor Summary
WsmlXmlSerializer(Map<String,Object> map)
          Constructor should not be invoked directly.
 
Method Summary
 Element createElement(String name)
           
 Text createTextNode(String value)
           
 void serialize(org.wsmo.common.TopEntity[] item, StringBuffer target)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, StringBuffer target, Map options)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, Writer target)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, Writer target, Map options)
          Serialize array of top entities to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmlXmlSerializer

public WsmlXmlSerializer(Map<String,Object> map)
Constructor should not be invoked directly. Map properties = new TreeMap(); properties.put(Factory.PROVIDER_CLASS, "com.ontotext.wsmo4j.xmlparser.WsmlXmlSerializer"); serializer = Factory.createSerializer(properties);

Parameters:
map - All parameters are ignored
Method Detail

createElement

public Element createElement(String name)

createTextNode

public Text createTextNode(String value)

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      Writer target)
               throws IOException
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
Throws:
IOException

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      Writer target,
                      Map options)
               throws IOException
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
options - Ignored
Throws:
IOException

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      StringBuffer target)
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      StringBuffer target,
                      Map options)
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
options - Ignored


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.