Package org.apache.cocoon.portal.coplet

Examples of org.apache.cocoon.portal.coplet.CopletBaseData


            return null;
        }
    }

    public Object newInstance(Object parent) {
        return new CopletBaseData();
    }
View Full Code Here


    public void resetValue(Object object) {
        ((CopletData) object).setCopletBaseData(null);
    }

    public void setValue(Object object, Object value) {
        CopletBaseData copletBaseData =
            (CopletBaseData) getObjectMap().get(value);
        if (copletBaseData == null)
            throw new IllegalArgumentException(
                "Referenced Coplet Base Data " + value + " does not exist.");
        ((CopletData) object).setCopletBaseData(copletBaseData);
View Full Code Here

*/
public class CopletBaseDataReferenceFieldHandler
    extends ReferenceFieldHandler {

    public Object getValue(Object object) {
        CopletBaseData copletBaseData = ((CopletData) object).getCopletBaseData();
        if (copletBaseData != null) {
            return copletBaseData.getId();
        }
        return null;
    }
View Full Code Here

        }
        return null;
    }

    public Object newInstance(Object parent) {
        return new CopletBaseData();
    }
View Full Code Here

    public void resetValue(Object object) {
        ((CopletData) object).setCopletBaseData(null);
    }

    public void setValue(Object object, Object value) {
        CopletBaseData copletBaseData = (CopletBaseData) getObjectMap().get(value);
        if (copletBaseData == null) {
            throw new ProfileException(
                "Referenced Coplet Base Data " + value + " does not exist.");
        }
        ((CopletData) object).setCopletBaseData(copletBaseData);
View Full Code Here

        return result;
    }

    public Object newInstance(Object parent) {
        return new CopletBaseData();
    }
View Full Code Here

    public void resetValue(Object object) {
        ((CopletBaseDataManager) object).getCopletBaseData().clear();
    }

    public void setValue(Object object, Object value) {
        CopletBaseData data = (CopletBaseData) value;
        ((CopletBaseDataManager) object).getCopletBaseData().put(
            data.getId(),
            data);
    }
View Full Code Here

*/
public class CopletBaseDataReferenceFieldHandler
    extends ReferenceFieldHandler {

    public Object getValue(Object object) {
        CopletBaseData copletBaseData = ((CopletData) object).getCopletBaseData();
        if (copletBaseData != null) {
            return copletBaseData.getId();
        } else {
            return null;
        }
    }
View Full Code Here

            return null;
        }
    }

    public Object newInstance(Object parent) {
        return new CopletBaseData();
    }
View Full Code Here

    public void resetValue(Object object) {
        ((CopletData) object).setCopletBaseData(null);
    }

    public void setValue(Object object, Object value) {
        CopletBaseData copletBaseData = (CopletBaseData) getObjectMap().get(value);
        if (copletBaseData == null) {
            throw new ProfileException(
                "Referenced Coplet Base Data " + value + " does not exist.");
        }
        ((CopletData) object).setCopletBaseData(copletBaseData);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.portal.coplet.CopletBaseData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.