All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencompare.api.java.impl.value.DateValueImpl Maven / Gradle / Ivy

There is a newer version: 0.7
Show newest version
package org.opencompare.api.java.impl.value;

import org.opencompare.api.java.PCMElement;
import org.opencompare.api.java.PCMFactory;
import org.opencompare.api.java.impl.ValueImpl;
import org.opencompare.api.java.util.PCMVisitor;
import org.opencompare.api.java.value.DateValue;
import pcm.Value;

/**
 * Created by gbecan on 30/01/15.
 */
public class DateValueImpl extends ValueImpl implements DateValue {

    private pcm.DateValue kDateValue;

    public DateValueImpl(pcm.DateValue kDateValue) {
        super(kDateValue);
        this.kDateValue = kDateValue;
    }

    public pcm.DateValue getkDateValue() {
        return kDateValue;
    }

    @Override
    public String getValue() {
        return kDateValue.getValue();
    }

    @Override
    public void setValue(String value) {
        kDateValue.setValue(value);
    }

    @Override
    public void accept(PCMVisitor visitor) {
        visitor.visit(this);
    }

    @Override
    public PCMElement clone(PCMFactory factory) {
        DateValue copy = factory.createDateValue();
        copy.setValue(this.getValue());
        return copy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy