/**
 *  Generated with Tigerstripe(tm) Tigerstripe Workbench Feature 2.2.0.v20070514-1108-IXOqsosF8y087t5.
 *
 *  Tigerstripe(tm) is a registered trademark of Tigerstripe, Inc.
 *
 *  Plugin  : Sun Microsystems Inc./SunJavaSpecificationPlugin(1.0) (1.0)
 *
 *  DO NOT EDIT THIS CODE WAS AUTOMATICALLY GENERATED
 *
 *  Generated from source Tigerstipe Artifact :
 *        javax.oss.cbe.CharacteristicSpecification
 *
 *  Using template :
 *        templates/1.3/adapter.vm
 *
 * Copyright 2002-2007 The Members of the OSS through Java(TM) Initiative.
 * All rights reserved. Use is subject to license terms.
 */
package ossj.common.cbe;

import javax.xml.bind.annotation.adapters.XmlAdapter;

// OSSJ Specification
import javax.oss.cbe.CharacteristicSpecification;

/**
 *
 */
public class CharacteristicSpecificationAdapter 
    extends XmlAdapter<CharacteristicSpecificationImpl,CharacteristicSpecification>{
    
    public CharacteristicSpecification unmarshal(CharacteristicSpecificationImpl p) throws Exception {
        try {
            CharacteristicSpecification r = p;
            return r;
        }
        catch (Exception e)
        {
            e.printStackTrace();
            String msg = "Unable to unmarshall CharacteristicSpecification : "+p;
            throw new Exception(msg+" due to "+e);   
        }                
    }

    public CharacteristicSpecificationImpl marshal(CharacteristicSpecification p) throws Exception {
        try {
            CharacteristicSpecificationImpl r = (CharacteristicSpecificationImpl)p;
            return r;
        }
        catch (Exception e)
        {
            e.printStackTrace();
            String msg = "Unable to marshall CharacteristicSpecificationImpl : "+p;
            throw new Exception(msg+" due to "+e);   
        } 
    }
}