com.tensegrity.graph.rule.persistence
Class RuleSerializer

java.lang.Object
  extended bycom.tensegrity.graph.rule.persistence.RuleSerializer
All Implemented Interfaces:
Serializer

public class RuleSerializer
extends java.lang.Object
implements Serializer

This class serializes a single Rule into an AttributeList.

Version:
$Id: RuleSerializer.java,v 1.38 2005/11/02 16:16:22 MichaelKegel Exp $
Author:
Gilles Iachelini, Stepan Rutz

Constructor Summary
RuleSerializer(Rule rule)
          Constructs a new RuleSerializer instance for the given Rule.
 
Method Summary
 AttributeList serialize()
          Translates the information of the object to be serialized into an AttributeList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSerializer

public RuleSerializer(Rule rule)
Constructs a new RuleSerializer instance for the given Rule.

Parameters:
rule - the Rule to serialize.
Method Detail

serialize

public AttributeList serialize()
                        throws SerializeException
Description copied from interface: Serializer
Translates the information of the object to be serialized into an AttributeList.

Specified by:
serialize in interface Serializer
Returns:
the list of translated information.
Throws:
SerializeException - is thrown whenever an error occurs while serializing the given object.
See Also:
Serializer.serialize()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.