org.opencompare.api.java.impl.AbstractFeatureImpl Maven / Gradle / Ivy
package org.opencompare.api.java.impl;
import org.opencompare.api.java.AbstractFeature;
import org.opencompare.api.java.FeatureGroup;
/**
* Created by gbecan on 09/10/14.
*/
public abstract class AbstractFeatureImpl implements AbstractFeature {
private pcm.AbstractFeature kAbstractFeature;
protected AbstractFeatureImpl(pcm.AbstractFeature kAbstractFeature) {
this.kAbstractFeature = kAbstractFeature;
}
public pcm.AbstractFeature getkAbstractFeature() {
return kAbstractFeature;
}
@Override
public FeatureGroup getParentGroup() {
pcm.FeatureGroup kParentGroup = kAbstractFeature.getParentGroup();
if (kParentGroup != null) {
return new FeatureGroupImpl(kParentGroup);
} else {
return null;
}
}
}