Package bug003

Source Code of bug003.B

/**
* generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1765 2010-02-11 09:51:13Z max.at.xam.de $) on 27.04.10 22:45
*/
package bug003;

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.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:
* <ul>
*   <li> ValueB </li>
* </ul>
*
* This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 27.04.10 22:45
*/
public class B extends Thing {

    /** http://protege.stanford.edu/kb#B */
  @SuppressWarnings("hiding")
  public static final URI RDFS_CLASS = new URIImpl("http://protege.stanford.edu/kb#B", false);

    /** http://protege.stanford.edu/kb#valueB */
  public static final URI VALUEB = new URIImpl("http://protege.stanford.edu/kb#valueB",false);

    /**
     * All property-URIs with this class as domain.
     * All properties of all super-classes are also available.
     */
  @SuppressWarnings("hiding")
    public static final URI[] MANAGED_URIS = {
      new URIImpl("http://protege.stanford.edu/kb#valueB",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 B ( Model model, URI classURI, org.ontoware.rdf2go.model.node.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 B ( Model model, org.ontoware.rdf2go.model.node.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 B ( 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 B ( 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 B ( 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 B  or null if none existst
   *
   * [Generated from RDFReactor template rule #class0]
   */
  public static B  getInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.getInstance(model, instanceResource, B.class);
  }

  /**
   * Create a new instance of this class in the model.
   * That is, create the statement (instanceResource, RDF.type, http://protege.stanford.edu/kb#B).
   * @param model an RDF2Go model
   * @param instanceResource an RDF2Go resource
   *
   * [Generated from RDFReactor template rule #class1]
   */
  public static void createInstance(Model model, org.ontoware.rdf2go.model.node.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, org.ontoware.rdf2go.model.node.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<org.ontoware.rdf2go.model.node.Resource> getAllInstances(Model model) {
    return Base.getAllInstances(model, RDFS_CLASS, org.ontoware.rdf2go.model.node.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 B> getAllInstances_as(Model model) {
    return Base.getAllInstances_as(model, RDFS_CLASS, B.class );
  }

    /**
   * Remove rdf:type B 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, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    Base.deleteInstance(model, RDFS_CLASS, instanceResource);
  }

  /**
   * Delete all (this, *, *), i.e. including rdf:type
   * @param model an RDF2Go model
   * @param resource
   */
  public static void deleteAllProperties(Model model,  org.ontoware.rdf2go.model.node.Resource instanceResource) {
    Base.deleteAllProperties(model, instanceResource);
  }

    ///////////////////////////////////////////////////////////////////
    // property access methods


    /**
     * Check if org.ontoware.rdfreactor.generator.java.JProperty@15e2075 has at least one value set
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
     * @return true if this property has at least one value
   *
   * [Generated from RDFReactor template rule #get0has-static]
     */
  public static boolean hasValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.has(model, instanceResource, VALUEB);
  }

    /**
     * Check if org.ontoware.rdfreactor.generator.java.JProperty@15e2075 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 hasValueB() {
    return Base.has(this.model, this.getResource(), VALUEB);
  }

    /**
     * Check if org.ontoware.rdfreactor.generator.java.JProperty@15e2075 has the given value (maybe among other values). 
     * @param model an RDF2Go model
     * @param resource 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 hasValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value ) {
    return Base.hasValue(model, instanceResource, VALUEB, value);
  }

    /**
     * Check if org.ontoware.rdfreactor.generator.java.JProperty@15e2075 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 hasValueB( org.ontoware.rdf2go.model.node.Node value ) {
    return Base.hasValue(this.model, this.getResource(), VALUEB, value);
  }

     /**
     * Get all values of property ValueB as an Iterator over RDF2Go nodes
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
     * @return a ClosableIterator of RDF2Go Nodes
   *
   * [Generated from RDFReactor template rule #get7static]
     */
  public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllValueB_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.getAll_asNode(model, instanceResource, VALUEB);
  }
 
    /**
     * Get all values of property ValueB as a ReactorResult of RDF2Go nodes
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
     * @return a List of RDF2Go Nodes
   *
   * [Generated from RDFReactor template rule #get7static-reactor-result]
     */
  public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllValueB_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.getAll_as(model, instanceResource, VALUEB, org.ontoware.rdf2go.model.node.Node.class);
  }

    /**
     * Get all values of property ValueB as an Iterator over RDF2Go nodes
     * @return a ClosableIterator of RDF2Go Nodes
   *
   * [Generated from RDFReactor template rule #get8dynamic]
     */
  public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllValueB_asNode() {
    return Base.getAll_asNode(this.model, this.getResource(), VALUEB);
  }

    /**
     * Get all values of property ValueB as a ReactorResult of RDF2Go nodes
     * @return a List of RDF2Go Nodes
   *
   * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
     */
  public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllValueB_asNode_() {
    return Base.getAll_as(this.model, this.getResource(), VALUEB, org.ontoware.rdf2go.model.node.Node.class);
  }
     /**
     * Get all values of property ValueB     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
     * @return a ClosableIterator of $type
   *
   * [Generated from RDFReactor template rule #get11static]
     */
  public static ClosableIterator<java.lang.String> getAllValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.getAll(model, instanceResource, VALUEB, java.lang.String.class);
  }
 
    /**
     * Get all values of property ValueB as a ReactorResult of java.lang.String
     * @param model an RDF2Go model
     * @param resource 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<java.lang.String> getAllValueB_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    return Base.getAll_as(model, instanceResource, VALUEB, java.lang.String.class);
  }

    /**
     * Get all values of property ValueB     * @return a ClosableIterator of $type
   *
   * [Generated from RDFReactor template rule #get12dynamic]
     */
  public ClosableIterator<java.lang.String> getAllValueB() {
    return Base.getAll(this.model, this.getResource(), VALUEB, java.lang.String.class);
  }

    /**
     * Get all values of property ValueB as a ReactorResult of java.lang.String
     * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
   *
   * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
     */
  public ReactorResult<java.lang.String> getAllValueB_as() {
    return Base.getAll_as(this.model, this.getResource(), VALUEB, java.lang.String.class);
  }
    /**
     * Adds a value to property ValueB as an RDF2Go node
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   * @param value the value to be added
   *
   * [Generated from RDFReactor template rule #add1static]
     */
  public static void addValueB( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {
    Base.add(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Adds a value to property ValueB as an RDF2Go node
   * @param value the value to be added
   *
   * [Generated from RDFReactor template rule #add1dynamic]
     */
  public void addValueB( org.ontoware.rdf2go.model.node.Node value) {
    Base.add(this.model, this.getResource(), VALUEB, value);
  }
    /**
     * Adds a value to property ValueB from an instance of java.lang.String
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   *
   * [Generated from RDFReactor template rule #add3static]
     */
  public static void addValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {
    Base.add(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Adds a value to property ValueB from an instance of java.lang.String
   *
   * [Generated from RDFReactor template rule #add4dynamic]
     */
  public void addValueB(java.lang.String value) {
    Base.add(this.model, this.getResource(), VALUEB, value);
  }
 

    /**
     * Sets a value of property ValueB from an RDF2Go 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 minCardinality or minCardinality == 1.
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   * @param value the value to be set
   *
   * [Generated from RDFReactor template rule #set1static]
     */
  public static void setValueB( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {
    Base.set(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Sets a value of property ValueB from an RDF2Go 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 minCardinality or minCardinality == 1.
   * @param value the value to be added
   *
   * [Generated from RDFReactor template rule #set1dynamic]
     */
  public void setValueB( org.ontoware.rdf2go.model.node.Node value) {
    Base.set(this.model, this.getResource(), VALUEB, value);
  }
    /**
     * Sets a value of property ValueB from an instance of java.lang.String
     * 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 minCardinality or minCardinality == 1.
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   * @param value the value to be added
   *
   * [Generated from RDFReactor template rule #set3static]
     */
  public static void setValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {
    Base.set(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Sets a value of property ValueB from an instance of java.lang.String
     * 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 minCardinality or minCardinality == 1.
   * @param value the value to be added
   *
   * [Generated from RDFReactor template rule #set4dynamic]
     */
  public void setValueB(java.lang.String value) {
    Base.set(this.model, this.getResource(), VALUEB, value);
  }
 


    /**
     * Removes a value of property ValueB as an RDF2Go node
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   * @param value the value to be removed
   *
   * [Generated from RDFReactor template rule #remove1static]
     */
  public static void removeValueB( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {
    Base.remove(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Removes a value of property ValueB as an RDF2Go node
   * @param value the value to be removed
   *
   * [Generated from RDFReactor template rule #remove1dynamic]
     */
  public void removeValueB( org.ontoware.rdf2go.model.node.Node value) {
    Base.remove(this.model, this.getResource(), VALUEB, value);
  }
    /**
     * Removes a value of property ValueB given as an instance of java.lang.String
     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   * @param value the value to be removed
   *
   * [Generated from RDFReactor template rule #remove3static]
     */
  public static void removeValueB(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {
    Base.remove(model, instanceResource, VALUEB, value);
  }
 
    /**
     * Removes a value of property ValueB given as an instance of java.lang.String
   * @param value the value to be removed
   *
   * [Generated from RDFReactor template rule #remove4dynamic]
     */
  public void removeValueB(java.lang.String value) {
    Base.remove(this.model, this.getResource(), VALUEB, value);
  }
 
    /**
     * Removes all values of property ValueB     * @param model an RDF2Go model
     * @param resource an RDF2Go resource
   *
   * [Generated from RDFReactor template rule #removeall1static]
     */
  public static void removeAllValueB( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
    Base.removeAll(model, instanceResource, VALUEB);
  }
 
    /**
     * Removes all values of property ValueB   *
   * [Generated from RDFReactor template rule #removeall1dynamic]
     */
  public void removeAllValueB() {
    Base.removeAll(this.model, this.getResource(), VALUEB);
  }
}
TOP

Related Classes of bug003.B

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.