com.tensegrity.composite.persistence
Class CompositeLineSerializer

java.lang.Object
  extended bycom.tensegrity.composite.persistence.CompositeLineSerializer
All Implemented Interfaces:
Serializer

public class CompositeLineSerializer
extends java.lang.Object
implements Serializer

The class CompositeLineSerializer converts a given CompositeLine into a AttributeList. The class basically stores the custom attributes and the primitives of a CompositeLine in a list of attributes.

Version:
$Id: CompositeLineSerializer.java,v 1.23 2005/01/18 15:43:15 MichaelKegel Exp $
Author:
Gilles Iachelini

Constructor Summary
CompositeLineSerializer(CompositeLine line)
          Constructor for CompositeLineSerializer.
 
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

CompositeLineSerializer

public CompositeLineSerializer(CompositeLine line)
Constructor for CompositeLineSerializer.

Parameters:
line - the CompositeLine 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.


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