com.nedap.archie.rules.evaluation.DummyRulesPrimitiveObjectParent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
tools that operate on the archie reference models and archetype object model
package com.nedap.archie.rules.evaluation;
import com.nedap.archie.aom.Archetype;
import com.nedap.archie.aom.ArchetypeConstraint;
import com.nedap.archie.aom.CAttribute;
import com.nedap.archie.paths.PathSegment;
import com.nedap.archie.query.APathQuery;
import java.util.ArrayList;
import java.util.List;
public class DummyRulesPrimitiveObjectParent extends CAttribute {
private final transient Archetype archetype;
private List pathSegments;
public DummyRulesPrimitiveObjectParent(Archetype archetype) {
super();
this.archetype = archetype;
this.pathSegments = new ArrayList<>();
}
public void setPathSegments(List pathSegments) {
this.pathSegments = pathSegments;
}
@Override
public List getPathSegments() {
return pathSegments;
}
@Override
public String getLogicalPath() {
return getPath();
}
@Override
public boolean isLeaf() {
return false;
}
@Override
public Archetype getArchetype() {
return archetype;
}
}