/*
 * This file is part of the DITA Open Toolkit project hosted on
 * Sourceforge.net. See the accompanying license.txt file for
 * applicable licenses.
 */

/*
 * (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved.
 */
package org.dita.dost.module;

import java.util.Collection;

/**
 * ContentImpl is the implementation of content container. It contains Collection and
 * Object and can be used to exchange different types of data between module, reader
 * and writer instances.
 * 
 * @author Zhang, Yuan Peng
 */
public class ContentImpl implements Content {

    @SuppressWarnings("rawtypes")
    private Collection collection;
    private Object object;

    /**
     * Automatically generated constructor: ContentImpl.
     */
    public ContentImpl() {
        collection = null;
        object = null;
    }


    /**
     * @see org.dita.dost.module.Content#getCollection()
     * @return collection
     * 
     */
    @SuppressWarnings("rawtypes")
    public Collection getCollection() {
        return collection;
    }


    /**
     * @see org.dita.dost.module.Content#getValue()
     * @return object
     * 
     */
    public Object getValue() {
        return object;
    }


    /**
     * Set the collection-like content.
     * @param col collection
     */
    @SuppressWarnings("rawtypes")
    public void setCollection(final Collection col) {
        this.collection = col;
    }


    /**
     * Set the object-like content.
     * @param obj object
     */
    public void setValue(final Object obj) {
        this.object = obj;
    }
}
