org.friendularity.gen.reacted.phys.Electron Maven / Gradle / Ivy
/*
* generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1954 2014-10-29 14:09:16Z [email protected] $) on 5/5/15 7:51 PM
*/
package org.friendularity.gen.reacted.phys;
import org.ontoware.aifbcommons.collection.ClosableIterator;
import org.ontoware.rdf2go.exception.ModelRuntimeException;
import org.ontoware.rdf2go.model.Model;
import org.ontoware.rdf2go.model.node.BlankNode;
import org.ontoware.rdf2go.model.node.Node;
import org.ontoware.rdf2go.model.node.Resource;
import org.ontoware.rdf2go.model.node.URI;
import org.ontoware.rdf2go.model.node.impl.URIImpl;
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.ReactorResult;
/**
* This class manages access to these properties:
*
* - ElementaryCharge
* - RestMassInGrams
*
*
* This class was generated by RDFReactor on 5/5/15 7:51 PM
*/
public class Electron extends Lepton {
private static final long serialVersionUID = 1638277717188644339L;
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Electron */
public static final URI RDFS_CLASS = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Electron", false);
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasElementaryCharge */
public static final URI ELEMENTARYCHARGE = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasElementaryCharge", false);
/** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasRestMassInGrams */
public static final URI RESTMASSINGRAMS = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasRestMassInGrams", false);
/**
* All property-URIs with this class as domain.
* All properties of all super-classes are also available.
*/
public static final URI[] MANAGED_URIS = {
new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasElementaryCharge", false),
new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasRestMassInGrams", false)
};
// protected constructors needed for inheritance
/**
* Returns a Java wrapper over an RDF object, identified by URI.
* Creating two wrappers for the same instanceURI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
* @param classURI URI of RDFS class
* @param instanceIdentifier Resource that identifies this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c1]
*/
protected Electron (Model model, URI classURI, Resource instanceIdentifier, boolean write) {
super(model, classURI, instanceIdentifier, write);
}
// public constructors
/**
* Returns a Java wrapper over an RDF object, identified by URI.
* Creating two wrappers for the same instanceURI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param instanceIdentifier an RDF2Go Resource identifying this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c2]
*/
public Electron (Model model, Resource instanceIdentifier, boolean write) {
super(model, RDFS_CLASS, instanceIdentifier, write);
}
/**
* Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
* Creating two wrappers for the same URI is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param uriString a URI given as a String
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
* @throws ModelRuntimeException if URI syntax is wrong
*
* [Generated from RDFReactor template rule #c7]
*/
public Electron (Model model, String uriString, boolean write) throws ModelRuntimeException {
super(model, RDFS_CLASS, new URIImpl(uriString,false), write);
}
/**
* Returns a Java wrapper over an RDF object, identified by a blank node.
* Creating two wrappers for the same blank node is legal.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param bnode BlankNode of this instance
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c8]
*/
public Electron (Model model, BlankNode bnode, boolean write) {
super(model, RDFS_CLASS, bnode, write);
}
/**
* Returns a Java wrapper over an RDF object, identified by
* a randomly generated URI.
* Creating two wrappers results in different URIs.
* @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
* @param write if true, the statement (this, rdf:type, TYPE) is written to the model
*
* [Generated from RDFReactor template rule #c9]
*/
public Electron (Model model, boolean write) {
super(model, RDFS_CLASS, model.newRandomUniqueURI(), write);
}
///////////////////////////////////////////////////////////////////
// typing
/**
* Return an existing instance of this class in the model. No statements are written.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return an instance of Electron or null if none existst
*
* [Generated from RDFReactor template rule #class0]
*/
public static Electron getInstance(Model model, Resource instanceResource) {
return Base.getInstance(model, instanceResource, Electron.class);
}
/**
* Create a new instance of this class in the model.
* That is, create the statement (instanceResource, RDF.type, http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Electron).
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class1]
*/
public static void createInstance(Model model, Resource instanceResource) {
Base.createInstance(model, RDFS_CLASS, instanceResource);
}
/**
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return true if instanceResource is an instance of this class in the model
*
* [Generated from RDFReactor template rule #class2]
*/
public static boolean hasInstance(Model model, Resource instanceResource) {
return Base.hasInstance(model, RDFS_CLASS, instanceResource);
}
/**
* @param model an RDF2Go model
* @return all instances of this class in Model 'model' as RDF resources
*
* [Generated from RDFReactor template rule #class3]
*/
public static ClosableIterator getAllInstances(Model model) {
return Base.getAllInstances(model, RDFS_CLASS, Resource.class);
}
/**
* @param model an RDF2Go model
* @return all instances of this class in Model 'model' as a ReactorResult,
* which can conveniently be converted to iterator, list or array.
*
* [Generated from RDFReactor template rule #class3-as]
*/
public static ReactorResult extends Electron> getAllInstances_as(Model model) {
return Base.getAllInstances_as(model, RDFS_CLASS, Electron.class );
}
/**
* Remove triple {@code (this, rdf:type, Electron)} from this instance. Other triples are not affected.
* To delete more, use deleteAllProperties
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class4]
*/
public static void deleteInstance(Model model, Resource instanceResource) {
Base.deleteInstance(model, RDFS_CLASS, instanceResource);
}
/**
* Delete all triples {@code (this, *, *)}, i.e. including {@code rdf:type}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #class5]
*/
public static void deleteAllProperties(Model model, Resource instanceResource) {
Base.deleteAllProperties(model, instanceResource);
}
///////////////////////////////////////////////////////////////////
// property access methods
/**
* @param model an RDF2Go model
* @param objectValue
* @return all A's as RDF resources, that have a relation 'AtomicElectron' to this Electron instance
*
* [Generated from RDFReactor template rule #getallinverse1static]
*/
public static ClosableIterator getAllAtomicElectron_Inverse(Model model, Object objectValue) {
return Base.getAll_Inverse(model, Atom.ATOMICELECTRON, objectValue);
}
/**
* @return all A's as RDF resources, that have a relation 'AtomicElectron' to this Electron instance
*
* [Generated from RDFReactor template rule #getallinverse1dynamic]
*/
public ClosableIterator getAllAtomicElectron_Inverse() {
return Base.getAll_Inverse(this.model, Atom.ATOMICELECTRON, this.getResource() );
}
/**
* @param model an RDF2Go model
* @param objectValue
* @return all A's as a ReactorResult, that have a relation 'AtomicElectron' to this Electron instance
*
* [Generated from RDFReactor template rule #getallinverse-as1static]
*/
public static ReactorResult getAllAtomicElectron_Inverse_as(Model model, Object objectValue) {
return Base.getAll_Inverse_as(model, Atom.ATOMICELECTRON, objectValue, Resource.class);
}
/**
* Check if {@code ElementaryCharge} has at least one value set.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-static]
*/
public static boolean hasElementaryCharge(Model model, Resource instanceResource) {
return Base.has(model, instanceResource, ELEMENTARYCHARGE);
}
/**
* Check if {@code ElementaryCharge} has at least one value set.
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-dynamic]
*/
public boolean hasElementaryCharge() {
return Base.has(this.model, this.getResource(), ELEMENTARYCHARGE);
}
/**
* Check if {@code ElementaryCharge} has the given value (maybe among other values).
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-static]
*/
public static boolean hasElementaryCharge(Model model, Resource instanceResource, Node value ) {
return Base.hasValue(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Check if {@code ElementaryCharge} has the given value (maybe among other values).
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-dynamic]
*/
public boolean hasElementaryCharge( Node value ) {
return Base.hasValue(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Get all values of property {@code ElementaryCharge} as an Iterator over RDF2Go nodes.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static]
*/
public static ClosableIterator getAllElementaryCharge_asNode(Model model, Resource instanceResource) {
return Base.getAll_asNode(model, instanceResource, ELEMENTARYCHARGE);
}
/**
* Get all values of property {@code ElementaryCharge} as a ReactorResult of RDF2Go nodes.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static-reactor-result]
*/
public static ReactorResult getAllElementaryCharge_asNode_(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, ELEMENTARYCHARGE, Node.class);
}
/**
* Get all values of property {@code ElementaryCharge} as an Iterator over RDF2Go nodes
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic]
*/
public ClosableIterator getAllElementaryCharge_asNode() {
return Base.getAll_asNode(this.model, this.getResource(), ELEMENTARYCHARGE);
}
/**
* Get all values of property {@code ElementaryCharge} as a ReactorResult of RDF2Go nodes.
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic-reactor-result]
*/
public ReactorResult getAllElementaryCharge_asNode_() {
return Base.getAll_as(this.model, this.getResource(), ELEMENTARYCHARGE, Node.class);
}
/**
* Get all values of property {@code ElementaryCharge}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get11static]
*/
public static ClosableIterator getAllElementaryCharge(Model model, Resource instanceResource) {
return Base.getAll(model, instanceResource, ELEMENTARYCHARGE, java.lang.Float.class);
}
/**
* Get all values of property {@code ElementaryCharge} as a ReactorResult of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get11static-reactorresult]
*/
public static ReactorResult getAllElementaryCharge_as(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, ELEMENTARYCHARGE, java.lang.Float.class);
}
/**
* Get all values of property {@code ElementaryCharge}.
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get12dynamic]
*/
public ClosableIterator getAllElementaryCharge() {
return Base.getAll(this.model, this.getResource(), ELEMENTARYCHARGE, java.lang.Float.class);
}
/**
* Get all values of property {@code ElementaryCharge} as a ReactorResult of {@linkplain java.lang.Float}.
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get12dynamic-reactorresult]
*/
public ReactorResult getAllElementaryCharge_as() {
return Base.getAll_as(this.model, this.getResource(), ELEMENTARYCHARGE, java.lang.Float.class);
}
/**
* Adds a value to property {@code ElementaryCharge} as an RDF2Go {@linkplain Node}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1static]
*/
public static void addElementaryCharge(Model model, Resource instanceResource, Node value) {
Base.add(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Adds a value to property {@code ElementaryCharge} as an RDF2Go {@linkplain Node}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1dynamic]
*/
public void addElementaryCharge(Node value) {
Base.add(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Adds a value to property {@code ElementaryCharge} from an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value
*
* [Generated from RDFReactor template rule #add3static]
*/
public static void addElementaryCharge(Model model, Resource instanceResource, java.lang.Float value) {
Base.add(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Adds a value to property {@code ElementaryCharge} from an instance of {@linkplain java.lang.Float}.
*
* [Generated from RDFReactor template rule #add4dynamic]
*/
public void addElementaryCharge(java.lang.Float value) {
Base.add(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Sets a value of property {@code ElementaryCharge} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be set
*
* [Generated from RDFReactor template rule #set1static]
*/
public static void setElementaryCharge(Model model, Resource instanceResource, Node value) {
Base.set(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Sets a value of property {@code ElementaryCharge} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set1dynamic]
*/
public void setElementaryCharge(Node value) {
Base.set(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Sets a value of property {@code ElementaryCharge} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set3static]
*/
public static void setElementaryCharge(Model model, Resource instanceResource, java.lang.Float value) {
Base.set(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Sets a value of property {@code ElementaryCharge} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set4dynamic]
*/
public void setElementaryCharge(java.lang.Float value) {
Base.set(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Removes a value of property {@code ElementaryCharge} as an RDF2Go {@linkplain Node}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1static]
*/
public static void removeElementaryCharge(Model model, Resource instanceResource, Node value) {
Base.remove(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Removes a value of property {@code ElementaryCharge} as an RDF2Go {@linkplain Node}.
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1dynamic]
*/
public void removeElementaryCharge(Node value) {
Base.remove(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Removes a value of property {@code ElementaryCharge} given as an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove3static]
*/
public static void removeElementaryCharge(Model model, Resource instanceResource, java.lang.Float value) {
Base.remove(model, instanceResource, ELEMENTARYCHARGE, value);
}
/**
* Removes a value of property {@code ElementaryCharge} given as an instance of {@linkplain java.lang.Float}.
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove4dynamic]
*/
public void removeElementaryCharge(java.lang.Float value) {
Base.remove(this.model, this.getResource(), ELEMENTARYCHARGE, value);
}
/**
* Removes all values of property {@code ElementaryCharge}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #removeall1static]
*/
public static void removeAllElementaryCharge(Model model, Resource instanceResource) {
Base.removeAll(model, instanceResource, ELEMENTARYCHARGE);
}
/**
* Removes all values of property {@code ElementaryCharge}.
*
* [Generated from RDFReactor template rule #removeall1dynamic]
*/
public void removeAllElementaryCharge() {
Base.removeAll(this.model, this.getResource(), ELEMENTARYCHARGE);
}
/**
* Check if {@code RestMassInGrams} has at least one value set.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-static]
*/
public static boolean hasRestMassInGrams(Model model, Resource instanceResource) {
return Base.has(model, instanceResource, RESTMASSINGRAMS);
}
/**
* Check if {@code RestMassInGrams} has at least one value set.
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-dynamic]
*/
public boolean hasRestMassInGrams() {
return Base.has(this.model, this.getResource(), RESTMASSINGRAMS);
}
/**
* Check if {@code RestMassInGrams} has the given value (maybe among other values).
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-static]
*/
public static boolean hasRestMassInGrams(Model model, Resource instanceResource, Node value ) {
return Base.hasValue(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Check if {@code RestMassInGrams} has the given value (maybe among other values).
* @param value the value to be checked
* @return true if this property contains (maybe among other) the given value
*
* [Generated from RDFReactor template rule #get0has-value-dynamic]
*/
public boolean hasRestMassInGrams( Node value ) {
return Base.hasValue(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Get all values of property {@code RestMassInGrams} as an Iterator over RDF2Go nodes.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static]
*/
public static ClosableIterator getAllRestMassInGrams_asNode(Model model, Resource instanceResource) {
return Base.getAll_asNode(model, instanceResource, RESTMASSINGRAMS);
}
/**
* Get all values of property {@code RestMassInGrams} as a ReactorResult of RDF2Go nodes.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get7static-reactor-result]
*/
public static ReactorResult getAllRestMassInGrams_asNode_(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, RESTMASSINGRAMS, Node.class);
}
/**
* Get all values of property {@code RestMassInGrams} as an Iterator over RDF2Go nodes
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic]
*/
public ClosableIterator getAllRestMassInGrams_asNode() {
return Base.getAll_asNode(this.model, this.getResource(), RESTMASSINGRAMS);
}
/**
* Get all values of property {@code RestMassInGrams} as a ReactorResult of RDF2Go nodes.
* @return a List of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic-reactor-result]
*/
public ReactorResult getAllRestMassInGrams_asNode_() {
return Base.getAll_as(this.model, this.getResource(), RESTMASSINGRAMS, Node.class);
}
/**
* Get all values of property {@code RestMassInGrams}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get11static]
*/
public static ClosableIterator getAllRestMassInGrams(Model model, Resource instanceResource) {
return Base.getAll(model, instanceResource, RESTMASSINGRAMS, java.lang.Float.class);
}
/**
* Get all values of property {@code RestMassInGrams} as a ReactorResult of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get11static-reactorresult]
*/
public static ReactorResult getAllRestMassInGrams_as(Model model, Resource instanceResource) {
return Base.getAll_as(model, instanceResource, RESTMASSINGRAMS, java.lang.Float.class);
}
/**
* Get all values of property {@code RestMassInGrams}.
* @return a ClosableIterator of $type
*
* [Generated from RDFReactor template rule #get12dynamic]
*/
public ClosableIterator getAllRestMassInGrams() {
return Base.getAll(this.model, this.getResource(), RESTMASSINGRAMS, java.lang.Float.class);
}
/**
* Get all values of property {@code RestMassInGrams} as a ReactorResult of {@linkplain java.lang.Float}.
* @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
*
* [Generated from RDFReactor template rule #get12dynamic-reactorresult]
*/
public ReactorResult getAllRestMassInGrams_as() {
return Base.getAll_as(this.model, this.getResource(), RESTMASSINGRAMS, java.lang.Float.class);
}
/**
* Adds a value to property {@code RestMassInGrams} as an RDF2Go {@linkplain Node}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1static]
*/
public static void addRestMassInGrams(Model model, Resource instanceResource, Node value) {
Base.add(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Adds a value to property {@code RestMassInGrams} as an RDF2Go {@linkplain Node}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #add1dynamic]
*/
public void addRestMassInGrams(Node value) {
Base.add(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Adds a value to property {@code RestMassInGrams} from an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value
*
* [Generated from RDFReactor template rule #add3static]
*/
public static void addRestMassInGrams(Model model, Resource instanceResource, java.lang.Float value) {
Base.add(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Adds a value to property {@code RestMassInGrams} from an instance of {@linkplain java.lang.Float}.
*
* [Generated from RDFReactor template rule #add4dynamic]
*/
public void addRestMassInGrams(java.lang.Float value) {
Base.add(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Sets a value of property {@code RestMassInGrams} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be set
*
* [Generated from RDFReactor template rule #set1static]
*/
public static void setRestMassInGrams(Model model, Resource instanceResource, Node value) {
Base.set(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Sets a value of property {@code RestMassInGrams} from an RDF2Go {@linkplain Node}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set1dynamic]
*/
public void setRestMassInGrams(Node value) {
Base.set(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Sets a value of property {@code RestMassInGrams} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set3static]
*/
public static void setRestMassInGrams(Model model, Resource instanceResource, java.lang.Float value) {
Base.set(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Sets a value of property {@code RestMassInGrams} from an instance of {@linkplain java.lang.Float}.
* First, all existing values are removed, then this value is added.
* Cardinality constraints are not checked, but this method exists only for properties with
* no {@code minCardinality} or {@code minCardinality == 1}.
* @param value the value to be added
*
* [Generated from RDFReactor template rule #set4dynamic]
*/
public void setRestMassInGrams(java.lang.Float value) {
Base.set(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Removes a value of property {@code RestMassInGrams} as an RDF2Go {@linkplain Node}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1static]
*/
public static void removeRestMassInGrams(Model model, Resource instanceResource, Node value) {
Base.remove(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Removes a value of property {@code RestMassInGrams} as an RDF2Go {@linkplain Node}.
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove1dynamic]
*/
public void removeRestMassInGrams(Node value) {
Base.remove(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Removes a value of property {@code RestMassInGrams} given as an instance of {@linkplain java.lang.Float}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove3static]
*/
public static void removeRestMassInGrams(Model model, Resource instanceResource, java.lang.Float value) {
Base.remove(model, instanceResource, RESTMASSINGRAMS, value);
}
/**
* Removes a value of property {@code RestMassInGrams} given as an instance of {@linkplain java.lang.Float}.
* @param value the value to be removed
*
* [Generated from RDFReactor template rule #remove4dynamic]
*/
public void removeRestMassInGrams(java.lang.Float value) {
Base.remove(this.model, this.getResource(), RESTMASSINGRAMS, value);
}
/**
* Removes all values of property {@code RestMassInGrams}.
* @param model an RDF2Go model
* @param instanceResource an RDF2Go resource
*
* [Generated from RDFReactor template rule #removeall1static]
*/
public static void removeAllRestMassInGrams(Model model, Resource instanceResource) {
Base.removeAll(model, instanceResource, RESTMASSINGRAMS);
}
/**
* Removes all values of property {@code RestMassInGrams}.
*
* [Generated from RDFReactor template rule #removeall1dynamic]
*/
public void removeAllRestMassInGrams() {
Base.removeAll(this.model, this.getResource(), RESTMASSINGRAMS);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy