Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.weaverplatform.protocol.model.CreateAttributeOperation Maven / Gradle / Ivy
package com.weaverplatform.protocol.model;
/**
* @author Mohamad Alamili
*/
public class CreateAttributeOperation extends CreatePropertyOperation {
private AttributeValue value;
private AttributeDataType datatype;
public CreateAttributeOperation(String user, String id, String sourceId, String key, String value, AttributeDataType dataType) {
this(user, id, sourceId, key, value, dataType, null, null);
}
public CreateAttributeOperation(String user, String id, String sourceId, String key, double value, AttributeDataType dataType) {
this(user, id, sourceId, key, value, dataType, null, null);
}
public CreateAttributeOperation(String user, String id, String sourceId, String key, boolean value, AttributeDataType dataType) {
this(user, id, sourceId, key, value, dataType, null, null);
}
public CreateAttributeOperation(String user, String id, String sourceId, String key, String value, AttributeDataType dataType, String replaceId, String replacesId) {
super(user, id, sourceId, key, replaceId, replacesId);
this.value = new AttributeValue(value);
this.datatype = dataType;
}
public CreateAttributeOperation(String user, String id, String sourceId, String key, double value, AttributeDataType dataType, String replaceId, String replacesId) {
super(user, id, sourceId, key, replaceId, replacesId);
this.value = new AttributeValue(value);
this.datatype = dataType;
}
public CreateAttributeOperation(String user, String id, String sourceId, String key, boolean value, AttributeDataType dataType, String replaceId, String replacesId) {
super(user, id, sourceId, key, replaceId, replacesId);
this.value = new AttributeValue(value);
this.datatype = dataType;
}
public WriteOperationAction getAction(){
return WriteOperationAction.CREATE_ATTRIBUTE;
}
public AttributeValue getValue() {
return value;
}
public AttributeDataType getDatatype() {
return datatype;
}
}