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

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

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

import eu.xenit.apix.data.QName;
import java.util.Map;

/**
 * Datastructure that represents changes to the metadata of a noderef
 */
public class MetadataChanges {

    private QName type;
    private boolean cleanUpAspectsOnGeneralization;
    private QName[] aspectsToAdd;
    private QName[] aspectsToRemove;
    //private Map propertiesToAdd; //: { [k: string]: string[]; };
    //private String[] propertiesToRemove;
    private Map propertiesToSet;

    public MetadataChanges() {

    }

    public MetadataChanges(QName type, QName[] aspectsToAdd, QName[] aspectsToRemove,
            Map propertiesToAdd, String[] propertiesToRemove,
            Map propertiesToSet) {
        this.type = type;
        this.aspectsToAdd = aspectsToAdd;
        this.aspectsToRemove = aspectsToRemove;
        this.propertiesToSet = propertiesToSet;
    }

    public MetadataChanges(QName type, QName[] aspectsToAdd, QName[] aspectsToRemove,
            Map propertiesToSet) {
        this(type, false, aspectsToAdd, aspectsToRemove, propertiesToSet);
    }

    public MetadataChanges(QName type, boolean cleanUpAspectsOnGeneralization, QName[] aspectsToAdd,
            QName[] aspectsToRemove,
            Map propertiesToSet) {
        this.type = type;
        this.cleanUpAspectsOnGeneralization = cleanUpAspectsOnGeneralization;
        this.aspectsToAdd = aspectsToAdd;
        this.aspectsToRemove = aspectsToRemove;
        this.propertiesToSet = propertiesToSet;
    }

    public QName getType() {
        return type;
    }

    public void setType(QName type) {
        this.type = type;
    }

    public boolean hasCleanUpAspectsOnGeneralization() {
        return cleanUpAspectsOnGeneralization;
    }

    public void setCleanUpAspectsOnGeneralization(boolean cleanUpAspectsOnGeneralization) {
        this.cleanUpAspectsOnGeneralization = cleanUpAspectsOnGeneralization;
    }

    public QName[] getAspectsToAdd() {
        return aspectsToAdd;
    }

    public void setAspectsToAdd(QName[] aspectsToAdd) {
        this.aspectsToAdd = aspectsToAdd;
    }

    public QName[] getAspectsToRemove() {
        return aspectsToRemove;
    }

    public void setAspectsToRemove(QName[] aspectsToRemove) {
        this.aspectsToRemove = aspectsToRemove;
    }

    public Map getPropertiesToSet() {
        return propertiesToSet;
    }

    public void setPropertiesToSet(Map propertiesToSet) {
        this.propertiesToSet = propertiesToSet;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy