Package org.ontoware.rdfreactor.schema.rdfs

Source Code of org.ontoware.rdfreactor.schema.rdfs.Alt

/**
* generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870
* 2007-11-07 17:30:59Z max.at.xam.de $) on 26.01.08 12:44
*/
package org.ontoware.rdfreactor.schema.rdfs;

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 was generated by <a
* href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 12:44
*/
public class Alt extends Container {
 
  /**
     *
     */
  private static final long serialVersionUID = 1L;
 
  /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt */
  public static final URI RDFS_CLASS = new URIImpl(
          "http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt", false);
 
  /** all property-URIs with this class as domain */
  public static final URI[] MANAGED_URIS = {
 
  };
 
  // 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 Alt(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 Alt(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 Alt(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 Alt(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 Alt(Model model, boolean write) {
    super(model, RDFS_CLASS, model.newRandomUniqueURI(), write);
  }
 
  // /////////////////////////////////////////////////////////////////
  // typing
 
  /**
   * Create a new instance of this class in the model. That is, create the
   * statement (instanceResource, RDF.type,
   * http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt).
   *
   * @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 Alt> getAllInstance_as(Model model) {
    return Base.getAllInstances_as(model, RDFS_CLASS, Alt.class);
  }
 
  /**
   * Delete all rdf:type from this instance. Other triples are not affected.
   *
   * @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);
  }
 
  // /////////////////////////////////////////////////////////////////
  // property access methods
 
}
TOP

Related Classes of org.ontoware.rdfreactor.schema.rdfs.Alt

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.