eu.xenit.apix.node.MetadataChanges Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apix-interface Show documentation
Show all versions of apix-interface Show documentation
Xenit API-X Java interface
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