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

org.friendularity.gen.reacted.phys.Hadron Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
/*
 * 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;

/**
 * Comment from schema: made of quarks held together by the strong force
 *
 * This class manages access to these properties:
 * 
    *
  • SubQuark
  • *
* * This class was generated by RDFReactor on 5/5/15 7:51 PM */ public class Hadron extends CompositeParticle { private static final long serialVersionUID = 6051275043369098933L; /** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Hadron */ public static final URI RDFS_CLASS = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#Hadron", false); /** http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasSubQuark */ public static final URI SUBQUARK = new URIImpl("http://onto.friendularity.org/onto/201503/PhysicsTest_OWL2#hasSubQuark", 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#hasSubQuark", 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 Hadron (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 Hadron (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 Hadron (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 Hadron (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 Hadron (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 Hadron or null if none existst * * [Generated from RDFReactor template rule #class0] */ public static Hadron getInstance(Model model, Resource instanceResource) { return Base.getInstance(model, instanceResource, Hadron.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#Hadron). * @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 getAllInstances_as(Model model) { return Base.getAllInstances_as(model, RDFS_CLASS, Hadron.class ); } /** * Remove triple {@code (this, rdf:type, Hadron)} 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 /** * Check if {@code SubQuark} 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 hasSubQuark(Model model, Resource instanceResource) { return Base.has(model, instanceResource, SUBQUARK); } /** * Check if {@code SubQuark} 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 hasSubQuark() { return Base.has(this.model, this.getResource(), SUBQUARK); } /** * Check if {@code SubQuark} 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 hasSubQuark(Model model, Resource instanceResource, Node value ) { return Base.hasValue(model, instanceResource, SUBQUARK, value); } /** * Check if {@code SubQuark} 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 hasSubQuark( Node value ) { return Base.hasValue(this.model, this.getResource(), SUBQUARK, value); } /** * Get all values of property {@code SubQuark} 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 getAllSubQuark_asNode(Model model, Resource instanceResource) { return Base.getAll_asNode(model, instanceResource, SUBQUARK); } /** * Get all values of property {@code SubQuark} 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 getAllSubQuark_asNode_(Model model, Resource instanceResource) { return Base.getAll_as(model, instanceResource, SUBQUARK, Node.class); } /** * Get all values of property {@code SubQuark} as an Iterator over RDF2Go nodes * @return a ClosableIterator of RDF2Go Nodes * * [Generated from RDFReactor template rule #get8dynamic] */ public ClosableIterator getAllSubQuark_asNode() { return Base.getAll_asNode(this.model, this.getResource(), SUBQUARK); } /** * Get all values of property {@code SubQuark} as a ReactorResult of RDF2Go nodes. * @return a List of RDF2Go Nodes * * [Generated from RDFReactor template rule #get8dynamic-reactor-result] */ public ReactorResult getAllSubQuark_asNode_() { return Base.getAll_as(this.model, this.getResource(), SUBQUARK, Node.class); } /** * Get all values of property {@code SubQuark}. * @param model an RDF2Go model * @param instanceResource an RDF2Go resource * @return a ClosableIterator of $type * * [Generated from RDFReactor template rule #get11static] */ public static ClosableIterator getAllSubQuark(Model model, Resource instanceResource) { return Base.getAll(model, instanceResource, SUBQUARK, Quark.class); } /** * Get all values of property {@code SubQuark} as a ReactorResult of {@linkplain Quark}. * @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 getAllSubQuark_as(Model model, Resource instanceResource) { return Base.getAll_as(model, instanceResource, SUBQUARK, Quark.class); } /** * Get all values of property {@code SubQuark}. * @return a ClosableIterator of $type * * [Generated from RDFReactor template rule #get12dynamic] */ public ClosableIterator getAllSubQuark() { return Base.getAll(this.model, this.getResource(), SUBQUARK, Quark.class); } /** * Get all values of property {@code SubQuark} as a ReactorResult of {@linkplain Quark}. * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array * * [Generated from RDFReactor template rule #get12dynamic-reactorresult] */ public ReactorResult getAllSubQuark_as() { return Base.getAll_as(this.model, this.getResource(), SUBQUARK, Quark.class); } /** * Adds a value to property {@code SubQuark} 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 addSubQuark(Model model, Resource instanceResource, Node value) { Base.add(model, instanceResource, SUBQUARK, value); } /** * Adds a value to property {@code SubQuark} as an RDF2Go {@linkplain Node}. * @param value the value to be added * * [Generated from RDFReactor template rule #add1dynamic] */ public void addSubQuark(Node value) { Base.add(this.model, this.getResource(), SUBQUARK, value); } /** * Adds a value to property {@code SubQuark} from an instance of {@linkplain Quark}. * @param model an RDF2Go model * @param instanceResource an RDF2Go resource * @param value * * [Generated from RDFReactor template rule #add3static] */ public static void addSubQuark(Model model, Resource instanceResource, Quark value) { Base.add(model, instanceResource, SUBQUARK, value); } /** * Adds a value to property {@code SubQuark} from an instance of {@linkplain Quark}. * * [Generated from RDFReactor template rule #add4dynamic] */ public void addSubQuark(Quark value) { Base.add(this.model, this.getResource(), SUBQUARK, value); } /** * Sets a value of property {@code SubQuark} 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 setSubQuark(Model model, Resource instanceResource, Node value) { Base.set(model, instanceResource, SUBQUARK, value); } /** * Sets a value of property {@code SubQuark} 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 setSubQuark(Node value) { Base.set(this.model, this.getResource(), SUBQUARK, value); } /** * Sets a value of property {@code SubQuark} from an instance of {@linkplain Quark}. * 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 setSubQuark(Model model, Resource instanceResource, Quark value) { Base.set(model, instanceResource, SUBQUARK, value); } /** * Sets a value of property {@code SubQuark} from an instance of {@linkplain Quark}. * 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 setSubQuark(Quark value) { Base.set(this.model, this.getResource(), SUBQUARK, value); } /** * Removes a value of property {@code SubQuark} 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 removeSubQuark(Model model, Resource instanceResource, Node value) { Base.remove(model, instanceResource, SUBQUARK, value); } /** * Removes a value of property {@code SubQuark} as an RDF2Go {@linkplain Node}. * @param value the value to be removed * * [Generated from RDFReactor template rule #remove1dynamic] */ public void removeSubQuark(Node value) { Base.remove(this.model, this.getResource(), SUBQUARK, value); } /** * Removes a value of property {@code SubQuark} given as an instance of {@linkplain Quark}. * @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 removeSubQuark(Model model, Resource instanceResource, Quark value) { Base.remove(model, instanceResource, SUBQUARK, value); } /** * Removes a value of property {@code SubQuark} given as an instance of {@linkplain Quark}. * @param value the value to be removed * * [Generated from RDFReactor template rule #remove4dynamic] */ public void removeSubQuark(Quark value) { Base.remove(this.model, this.getResource(), SUBQUARK, value); } /** * Removes all values of property {@code SubQuark}. * @param model an RDF2Go model * @param instanceResource an RDF2Go resource * * [Generated from RDFReactor template rule #removeall1static] */ public static void removeAllSubQuark(Model model, Resource instanceResource) { Base.removeAll(model, instanceResource, SUBQUARK); } /** * Removes all values of property {@code SubQuark}. * * [Generated from RDFReactor template rule #removeall1dynamic] */ public void removeAllSubQuark() { Base.removeAll(this.model, this.getResource(), SUBQUARK); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy