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

eu.xenit.apix.node.ChildParentAssociation Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.node;

import eu.xenit.apix.data.NodeRef;
import eu.xenit.apix.data.QName;

/**
 * Represents a child parent relation between a source and a target node of a specific type. A child can have multiple
 * parents but should only have one primary parent.
 */
public class ChildParentAssociation extends NodeAssociation {

    private boolean isPrimary;

    public ChildParentAssociation() {
    }

    public ChildParentAssociation(NodeRef source, NodeRef target, QName type, boolean isPrimary) {
        super(source, target, type);
        this.isPrimary = isPrimary;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy