com.tensegrity.composite.geometry.persistence
Class GeometryItemSerializer

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

public class GeometryItemSerializer
extends java.lang.Object
implements Serializer

The GeometryItemSerializer is responsible to convert a GeometryItem into an AttributeList. This AttributeList contains Attributes for each field of a GeometryItem.

Version:
$Id: GeometryItemSerializer.java,v 1.9 2005/01/17 17:39:24 BurkhardWick Exp $
Author:
Gilles Iachelini

Constructor Summary
GeometryItemSerializer(GeometryItem item)
          Constructor for GeometryItemSerializer.
 
Method Summary
static java.lang.String getTypeName(int type)
          Returns the type name for the given type.
 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

GeometryItemSerializer

public GeometryItemSerializer(GeometryItem item)
Constructor for GeometryItemSerializer.

Parameters:
item - the GeometryItem 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.

getTypeName

public static final java.lang.String getTypeName(int type)
                                          throws SerializeException
Returns the type name for the given type.

Parameters:
type - the type to get the name for
Returns:
the type name for the given type.
Throws:
SerializeException - if the given type is unknown


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