0001: /**
0002: * 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:47
0003: */package org.ontoware.rdfreactor.schema.owl;
0004:
0005: import org.ontoware.aifbcommons.collection.ClosableIterator;
0006: import org.ontoware.rdf2go.exception.ModelRuntimeException;
0007: import org.ontoware.rdf2go.model.Model;
0008: import org.ontoware.rdf2go.model.node.BlankNode;
0009: import org.ontoware.rdf2go.model.node.URI;
0010: import org.ontoware.rdf2go.model.node.impl.URIImpl;
0011: import org.ontoware.rdfreactor.runtime.Base;
0012: import org.ontoware.rdfreactor.runtime.ReactorResult;
0013:
0014: /**
0015: * This class manages access to these properties:
0016: * <ul>
0017: * <li> AllValuesFrom </li>
0018: * <li> Cardinality </li>
0019: * <li> HasValue </li>
0020: * <li> MaxCardinality </li>
0021: * <li> MinCardinality </li>
0022: * <li> OnProperty </li>
0023: * <li> SomeValuesFrom </li>
0024: * </ul>
0025: *
0026: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 12:47
0027: */
0028: public class Restriction extends OwlClass {
0029:
0030: /** http://www.w3.org/2002/07/owl#Restriction */
0031: public static final URI RDFS_CLASS = new URIImpl(
0032: "http://www.w3.org/2002/07/owl#Restriction", false);
0033:
0034: /** http://www.w3.org/2002/07/owl#allValuesFrom */
0035: public static final URI ALLVALUESFROM = new URIImpl(
0036: "http://www.w3.org/2002/07/owl#allValuesFrom", false);
0037:
0038: /** http://www.w3.org/2002/07/owl#cardinality */
0039: public static final URI CARDINALITY = new URIImpl(
0040: "http://www.w3.org/2002/07/owl#cardinality", false);
0041:
0042: /** http://www.w3.org/2002/07/owl#hasValue */
0043: public static final URI HASVALUE = new URIImpl(
0044: "http://www.w3.org/2002/07/owl#hasValue", false);
0045:
0046: /** http://www.w3.org/2002/07/owl#maxCardinality */
0047: public static final URI MAXCARDINALITY = new URIImpl(
0048: "http://www.w3.org/2002/07/owl#maxCardinality", false);
0049:
0050: /** http://www.w3.org/2002/07/owl#minCardinality */
0051: public static final URI MINCARDINALITY = new URIImpl(
0052: "http://www.w3.org/2002/07/owl#minCardinality", false);
0053:
0054: /** http://www.w3.org/2002/07/owl#onProperty */
0055: public static final URI ONPROPERTY = new URIImpl(
0056: "http://www.w3.org/2002/07/owl#onProperty", false);
0057:
0058: /** http://www.w3.org/2002/07/owl#someValuesFrom */
0059: public static final URI SOMEVALUESFROM = new URIImpl(
0060: "http://www.w3.org/2002/07/owl#someValuesFrom", false);
0061:
0062: /** all property-URIs with this class as domain */
0063: public static final URI[] MANAGED_URIS = {
0064: new URIImpl("http://www.w3.org/2002/07/owl#allValuesFrom",
0065: false),
0066: new URIImpl("http://www.w3.org/2002/07/owl#cardinality",
0067: false),
0068: new URIImpl("http://www.w3.org/2002/07/owl#hasValue", false),
0069: new URIImpl("http://www.w3.org/2002/07/owl#maxCardinality",
0070: false),
0071: new URIImpl("http://www.w3.org/2002/07/owl#minCardinality",
0072: false),
0073: new URIImpl("http://www.w3.org/2002/07/owl#onProperty",
0074: false),
0075: new URIImpl("http://www.w3.org/2002/07/owl#someValuesFrom",
0076: false) };
0077:
0078: // protected constructors needed for inheritance
0079:
0080: /**
0081: * Returns a Java wrapper over an RDF object, identified by URI.
0082: * Creating two wrappers for the same instanceURI is legal.
0083: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
0084: * @param classURI URI of RDFS class
0085: * @param instanceIdentifier Resource that identifies this instance
0086: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0087: *
0088: * [Generated from RDFReactor template rule #c1]
0089: */
0090: protected Restriction(Model model, URI classURI,
0091: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0092: boolean write) {
0093: super (model, classURI, instanceIdentifier, write);
0094: }
0095:
0096: // public constructors
0097:
0098: /**
0099: * Returns a Java wrapper over an RDF object, identified by URI.
0100: * Creating two wrappers for the same instanceURI is legal.
0101: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0102: * @param instanceIdentifier an RDF2Go Resource identifying this instance
0103: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0104: *
0105: * [Generated from RDFReactor template rule #c2]
0106: */
0107: public Restriction(Model model,
0108: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0109: boolean write) {
0110: super (model, RDFS_CLASS, instanceIdentifier, write);
0111: }
0112:
0113: /**
0114: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
0115: * Creating two wrappers for the same URI is legal.
0116: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0117: * @param uriString a URI given as a String
0118: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0119: * @throws ModelRuntimeException if URI syntax is wrong
0120: *
0121: * [Generated from RDFReactor template rule #c7]
0122: */
0123: public Restriction(Model model, String uriString, boolean write)
0124: throws ModelRuntimeException {
0125: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
0126: }
0127:
0128: /**
0129: * Returns a Java wrapper over an RDF object, identified by a blank node.
0130: * Creating two wrappers for the same blank node is legal.
0131: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0132: * @param bnode BlankNode of this instance
0133: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0134: *
0135: * [Generated from RDFReactor template rule #c8]
0136: */
0137: public Restriction(Model model, BlankNode bnode, boolean write) {
0138: super (model, RDFS_CLASS, bnode, write);
0139: }
0140:
0141: /**
0142: * Returns a Java wrapper over an RDF object, identified by
0143: * a randomly generated URI.
0144: * Creating two wrappers results in different URIs.
0145: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0146: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0147: *
0148: * [Generated from RDFReactor template rule #c9]
0149: */
0150: public Restriction(Model model, boolean write) {
0151: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
0152: }
0153:
0154: ///////////////////////////////////////////////////////////////////
0155: // typing
0156:
0157: /**
0158: * Create a new instance of this class in the model.
0159: * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/2002/07/owl#Restriction).
0160: * @param model an RDF2Go model
0161: * @param instanceResource an RDF2Go resource
0162: *
0163: * [Generated from RDFReactor template rule #class1]
0164: */
0165: public static void createInstance(Model model,
0166: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0167: Base.createInstance(model, RDFS_CLASS, instanceResource);
0168: }
0169:
0170: /**
0171: * @param model an RDF2Go model
0172: * @param instanceResource an RDF2Go resource
0173: * @return true if instanceResource is an instance of this class in the model
0174: *
0175: * [Generated from RDFReactor template rule #class2]
0176: */
0177: public static boolean hasInstance(Model model,
0178: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0179: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
0180: }
0181:
0182: /**
0183: * @param model an RDF2Go model
0184: * @return all instances of this class in Model 'model' as RDF resources
0185: *
0186: * [Generated from RDFReactor template rule #class3]
0187: */
0188: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
0189: Model model) {
0190: return Base.getAllInstances(model, RDFS_CLASS,
0191: org.ontoware.rdf2go.model.node.Resource.class);
0192: }
0193:
0194: /**
0195: * @param model an RDF2Go model
0196: * @return all instances of this class in Model 'model' as a ReactorResult,
0197: * which can conveniently be converted to iterator, list or array.
0198: *
0199: * [Generated from RDFReactor template rule #class3-as]
0200: */
0201: public static ReactorResult<? extends Restriction> getAllInstance_as(
0202: Model model) {
0203: return Base.getAllInstances_as(model, RDFS_CLASS,
0204: Restriction.class);
0205: }
0206:
0207: /**
0208: * Delete all rdf:type from this instance. Other triples are not affected.
0209: * @param model an RDF2Go model
0210: * @param instanceResource an RDF2Go resource
0211: *
0212: * [Generated from RDFReactor template rule #class4]
0213: */
0214: public static void deleteInstance(Model model,
0215: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0216: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
0217: }
0218:
0219: ///////////////////////////////////////////////////////////////////
0220: // property access methods
0221:
0222: /**
0223: * Get all values of property AllValuesFrom as an Iterator over RDF2Go nodes
0224: * @param model an RDF2Go model
0225: * @param resource an RDF2Go resource
0226: * @return a ClosableIterator of RDF2Go Nodes
0227: *
0228: * [Generated from RDFReactor template rule #get7static]
0229: */
0230: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllAllValuesFrom_asNode(
0231: Model model,
0232: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0233: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0234: .getAll_asNode(model, instanceResource, ALLVALUESFROM);
0235: }
0236:
0237: /**
0238: * Get all values of property AllValuesFrom as a ReactorResult of RDF2Go nodes
0239: * @param model an RDF2Go model
0240: * @param resource an RDF2Go resource
0241: * @return a List of RDF2Go Nodes
0242: *
0243: * [Generated from RDFReactor template rule #get7static-reactor-result]
0244: */
0245: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllAllValuesFrom_asNode_(
0246: Model model,
0247: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0248: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0249: .getAll_as(model, instanceResource, ALLVALUESFROM,
0250: org.ontoware.rdf2go.model.node.Node.class);
0251: }
0252:
0253: /**
0254: * Get all values of property AllValuesFrom as an Iterator over RDF2Go nodes
0255: * @return a ClosableIterator of RDF2Go Nodes
0256: *
0257: * [Generated from RDFReactor template rule #get8dynamic]
0258: */
0259: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllAllValuesFrom_asNode() {
0260: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0261: .getAll_asNode(this .model, this .getResource(),
0262: ALLVALUESFROM);
0263: }
0264:
0265: /**
0266: * Get all values of property AllValuesFrom as a ReactorResult of RDF2Go nodes
0267: * @return a List of RDF2Go Nodes
0268: *
0269: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0270: */
0271: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllAllValuesFrom_asNode_() {
0272: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0273: .getAll_as(this .model, this .getResource(),
0274: ALLVALUESFROM,
0275: org.ontoware.rdf2go.model.node.Node.class);
0276: }
0277:
0278: /**
0279: * Get all values of property AllValuesFrom * @param model an RDF2Go model
0280: * @param resource an RDF2Go resource
0281: * @return a ClosableIterator of $type
0282: *
0283: * [Generated from RDFReactor template rule #get11static]
0284: */
0285: public static ClosableIterator<OwlClass> getAllAllValuesFrom(
0286: Model model,
0287: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0288: return Base.getAll(model, instanceResource, ALLVALUESFROM,
0289: OwlClass.class);
0290: }
0291:
0292: /**
0293: * Get all values of property AllValuesFrom as a ReactorResult of Class
0294: * @param model an RDF2Go model
0295: * @param resource an RDF2Go resource
0296: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0297: *
0298: * [Generated from RDFReactor template rule #get11static-reactorresult]
0299: */
0300: public static ReactorResult<OwlClass> getAllAllValuesFrom_as(
0301: Model model,
0302: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0303: return Base.getAll_as(model, instanceResource, ALLVALUESFROM,
0304: OwlClass.class);
0305: }
0306:
0307: /**
0308: * Get all values of property AllValuesFrom * @return a ClosableIterator of $type
0309: *
0310: * [Generated from RDFReactor template rule #get12dynamic]
0311: */
0312: public ClosableIterator<OwlClass> getAllAllValuesFrom() {
0313: return Base.getAll(this .model, this .getResource(),
0314: ALLVALUESFROM, OwlClass.class);
0315: }
0316:
0317: /**
0318: * Get all values of property AllValuesFrom as a ReactorResult of Class
0319: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0320: *
0321: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0322: */
0323: public ReactorResult<OwlClass> getAllAllValuesFrom_as() {
0324: return Base.getAll_as(this .model, this .getResource(),
0325: ALLVALUESFROM, OwlClass.class);
0326: }
0327:
0328: /**
0329: * Adds a value to property AllValuesFrom as an RDF2Go node
0330: * @param model an RDF2Go model
0331: * @param resource an RDF2Go resource
0332: * @param value the value to be added
0333: *
0334: * [Generated from RDFReactor template rule #add1static]
0335: */
0336: public static void addAllValuesFrom(Model model,
0337: org.ontoware.rdf2go.model.node.Resource instanceResource,
0338: org.ontoware.rdf2go.model.node.Node value) {
0339: Base.add(model, instanceResource, ALLVALUESFROM, value);
0340: }
0341:
0342: /**
0343: * Adds a value to property AllValuesFrom as an RDF2Go node
0344: * @param value the value to be added
0345: *
0346: * [Generated from RDFReactor template rule #add1dynamic]
0347: */
0348: public void addAllValuesFrom(
0349: org.ontoware.rdf2go.model.node.Node value) {
0350: Base.add(this .model, this .getResource(), ALLVALUESFROM, value);
0351: }
0352:
0353: /**
0354: * Adds a value to property AllValuesFrom from an instance of Class
0355: * @param model an RDF2Go model
0356: * @param resource an RDF2Go resource
0357: *
0358: * [Generated from RDFReactor template rule #add3static]
0359: */
0360: public static void addAllValuesFrom(Model model,
0361: org.ontoware.rdf2go.model.node.Resource instanceResource,
0362: OwlClass value) {
0363: Base.add(model, instanceResource, ALLVALUESFROM, value);
0364: }
0365:
0366: /**
0367: * Adds a value to property AllValuesFrom from an instance of Class
0368: *
0369: * [Generated from RDFReactor template rule #add4dynamic]
0370: */
0371: public void addAllValuesFrom(OwlClass value) {
0372: Base.add(this .model, this .getResource(), ALLVALUESFROM, value);
0373: }
0374:
0375: /**
0376: * Sets a value of property AllValuesFrom from an RDF2Go node.
0377: * First, all existing values are removed, then this value is added.
0378: * Cardinality constraints are not checked, but this method exists only for properties with
0379: * no minCardinality or minCardinality == 1.
0380: * @param model an RDF2Go model
0381: * @param resource an RDF2Go resource
0382: * @param value the value to be set
0383: *
0384: * [Generated from RDFReactor template rule #set1static]
0385: */
0386: public static void setAllValuesFrom(Model model,
0387: org.ontoware.rdf2go.model.node.Resource instanceResource,
0388: org.ontoware.rdf2go.model.node.Node value) {
0389: Base.set(model, instanceResource, ALLVALUESFROM, value);
0390: }
0391:
0392: /**
0393: * Sets a value of property AllValuesFrom from an RDF2Go node.
0394: * First, all existing values are removed, then this value is added.
0395: * Cardinality constraints are not checked, but this method exists only for properties with
0396: * no minCardinality or minCardinality == 1.
0397: * @param value the value to be added
0398: *
0399: * [Generated from RDFReactor template rule #set1dynamic]
0400: */
0401: public void setAllValuesFrom(
0402: org.ontoware.rdf2go.model.node.Node value) {
0403: Base.set(this .model, this .getResource(), ALLVALUESFROM, value);
0404: }
0405:
0406: /**
0407: * Sets a value of property AllValuesFrom from an instance of Class
0408: * First, all existing values are removed, then this value is added.
0409: * Cardinality constraints are not checked, but this method exists only for properties with
0410: * no minCardinality or minCardinality == 1.
0411: * @param model an RDF2Go model
0412: * @param resource an RDF2Go resource
0413: * @param value the value to be added
0414: *
0415: * [Generated from RDFReactor template rule #set3static]
0416: */
0417: public static void setAllValuesFrom(Model model,
0418: org.ontoware.rdf2go.model.node.Resource instanceResource,
0419: OwlClass value) {
0420: Base.set(model, instanceResource, ALLVALUESFROM, value);
0421: }
0422:
0423: /**
0424: * Sets a value of property AllValuesFrom from an instance of Class
0425: * First, all existing values are removed, then this value is added.
0426: * Cardinality constraints are not checked, but this method exists only for properties with
0427: * no minCardinality or minCardinality == 1.
0428: * @param value the value to be added
0429: *
0430: * [Generated from RDFReactor template rule #set4dynamic]
0431: */
0432: public void setAllValuesFrom(OwlClass value) {
0433: Base.set(this .model, this .getResource(), ALLVALUESFROM, value);
0434: }
0435:
0436: /**
0437: * Removes a value of property AllValuesFrom as an RDF2Go node
0438: * @param model an RDF2Go model
0439: * @param resource an RDF2Go resource
0440: * @param value the value to be removed
0441: *
0442: * [Generated from RDFReactor template rule #remove1static]
0443: */
0444: public static void removeAllValuesFrom(Model model,
0445: org.ontoware.rdf2go.model.node.Resource instanceResource,
0446: org.ontoware.rdf2go.model.node.Node value) {
0447: Base.remove(model, instanceResource, ALLVALUESFROM, value);
0448: }
0449:
0450: /**
0451: * Removes a value of property AllValuesFrom as an RDF2Go node
0452: * @param value the value to be removed
0453: *
0454: * [Generated from RDFReactor template rule #remove1dynamic]
0455: */
0456: public void removeAllValuesFrom(
0457: org.ontoware.rdf2go.model.node.Node value) {
0458: Base.remove(this .model, this .getResource(), ALLVALUESFROM,
0459: value);
0460: }
0461:
0462: /**
0463: * Removes a value of property AllValuesFrom given as an instance of Class
0464: * @param model an RDF2Go model
0465: * @param resource an RDF2Go resource
0466: * @param value the value to be removed
0467: *
0468: * [Generated from RDFReactor template rule #remove3static]
0469: */
0470: public static void removeAllValuesFrom(Model model,
0471: org.ontoware.rdf2go.model.node.Resource instanceResource,
0472: OwlClass value) {
0473: Base.remove(model, instanceResource, ALLVALUESFROM, value);
0474: }
0475:
0476: /**
0477: * Removes a value of property AllValuesFrom given as an instance of Class
0478: * @param value the value to be removed
0479: *
0480: * [Generated from RDFReactor template rule #remove4dynamic]
0481: */
0482: public void removeAllValuesFrom(OwlClass value) {
0483: Base.remove(this .model, this .getResource(), ALLVALUESFROM,
0484: value);
0485: }
0486:
0487: /**
0488: * Removes all values of property AllValuesFrom * @param model an RDF2Go model
0489: * @param resource an RDF2Go resource
0490: *
0491: * [Generated from RDFReactor template rule #removeall1static]
0492: */
0493: public static void removeAllAllValuesFrom(Model model,
0494: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0495: Base.removeAll(model, instanceResource, ALLVALUESFROM);
0496: }
0497:
0498: /**
0499: * Removes all values of property AllValuesFrom *
0500: * [Generated from RDFReactor template rule #removeall1dynamic]
0501: */
0502: public void addAllValuesFrom() {
0503: Base.removeAll(this .model, this .getResource(), ALLVALUESFROM);
0504: }
0505:
0506: /**
0507: * Get all values of property Cardinality as an Iterator over RDF2Go nodes
0508: * @param model an RDF2Go model
0509: * @param resource an RDF2Go resource
0510: * @return a ClosableIterator of RDF2Go Nodes
0511: *
0512: * [Generated from RDFReactor template rule #get7static]
0513: */
0514: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllCardinality_asNode(
0515: Model model,
0516: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0517: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0518: .getAll_asNode(model, instanceResource, CARDINALITY);
0519: }
0520:
0521: /**
0522: * Get all values of property Cardinality as a ReactorResult of RDF2Go nodes
0523: * @param model an RDF2Go model
0524: * @param resource an RDF2Go resource
0525: * @return a List of RDF2Go Nodes
0526: *
0527: * [Generated from RDFReactor template rule #get7static-reactor-result]
0528: */
0529: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllCardinality_asNode_(
0530: Model model,
0531: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0532: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0533: .getAll_as(model, instanceResource, CARDINALITY,
0534: org.ontoware.rdf2go.model.node.Node.class);
0535: }
0536:
0537: /**
0538: * Get all values of property Cardinality as an Iterator over RDF2Go nodes
0539: * @return a ClosableIterator of RDF2Go Nodes
0540: *
0541: * [Generated from RDFReactor template rule #get8dynamic]
0542: */
0543: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllCardinality_asNode() {
0544: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0545: .getAll_asNode(this .model, this .getResource(),
0546: CARDINALITY);
0547: }
0548:
0549: /**
0550: * Get all values of property Cardinality as a ReactorResult of RDF2Go nodes
0551: * @return a List of RDF2Go Nodes
0552: *
0553: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0554: */
0555: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllCardinality_asNode_() {
0556: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0557: .getAll_as(this .model, this .getResource(), CARDINALITY,
0558: org.ontoware.rdf2go.model.node.Node.class);
0559: }
0560:
0561: /**
0562: * Get all values of property Cardinality * @param model an RDF2Go model
0563: * @param resource an RDF2Go resource
0564: * @return a ClosableIterator of $type
0565: *
0566: * [Generated from RDFReactor template rule #get11static]
0567: */
0568: public static ClosableIterator<Integer> getAllCardinality(
0569: Model model,
0570: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0571: return Base.getAll(model, instanceResource, CARDINALITY,
0572: Integer.class);
0573: }
0574:
0575: /**
0576: * Get all values of property Cardinality as a ReactorResult of Integer
0577: * @param model an RDF2Go model
0578: * @param resource an RDF2Go resource
0579: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0580: *
0581: * [Generated from RDFReactor template rule #get11static-reactorresult]
0582: */
0583: public static ReactorResult<Integer> getAllCardinality_as(
0584: Model model,
0585: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0586: return Base.getAll_as(model, instanceResource, CARDINALITY,
0587: Integer.class);
0588: }
0589:
0590: /**
0591: * Get all values of property Cardinality * @return a ClosableIterator of $type
0592: *
0593: * [Generated from RDFReactor template rule #get12dynamic]
0594: */
0595: public ClosableIterator<Integer> getAllCardinality() {
0596: return Base.getAll(this .model, this .getResource(), CARDINALITY,
0597: Integer.class);
0598: }
0599:
0600: /**
0601: * Get all values of property Cardinality as a ReactorResult of Integer
0602: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0603: *
0604: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0605: */
0606: public ReactorResult<Integer> getAllCardinality_as() {
0607: return Base.getAll_as(this .model, this .getResource(),
0608: CARDINALITY, Integer.class);
0609: }
0610:
0611: /**
0612: * Adds a value to property Cardinality as an RDF2Go node
0613: * @param model an RDF2Go model
0614: * @param resource an RDF2Go resource
0615: * @param value the value to be added
0616: *
0617: * [Generated from RDFReactor template rule #add1static]
0618: */
0619: public static void addCardinality(Model model,
0620: org.ontoware.rdf2go.model.node.Resource instanceResource,
0621: org.ontoware.rdf2go.model.node.Node value) {
0622: Base.add(model, instanceResource, CARDINALITY, value);
0623: }
0624:
0625: /**
0626: * Adds a value to property Cardinality as an RDF2Go node
0627: * @param value the value to be added
0628: *
0629: * [Generated from RDFReactor template rule #add1dynamic]
0630: */
0631: public void addCardinality(org.ontoware.rdf2go.model.node.Node value) {
0632: Base.add(this .model, this .getResource(), CARDINALITY, value);
0633: }
0634:
0635: /**
0636: * Adds a value to property Cardinality from an instance of Integer
0637: * @param model an RDF2Go model
0638: * @param resource an RDF2Go resource
0639: *
0640: * [Generated from RDFReactor template rule #add3static]
0641: */
0642: public static void addCardinality(Model model,
0643: org.ontoware.rdf2go.model.node.Resource instanceResource,
0644: Integer value) {
0645: Base.add(model, instanceResource, CARDINALITY, value);
0646: }
0647:
0648: /**
0649: * Adds a value to property Cardinality from an instance of Integer
0650: *
0651: * [Generated from RDFReactor template rule #add4dynamic]
0652: */
0653: public void addCardinality(Integer value) {
0654: Base.add(this .model, this .getResource(), CARDINALITY, value);
0655: }
0656:
0657: /**
0658: * Sets a value of property Cardinality from an RDF2Go node.
0659: * First, all existing values are removed, then this value is added.
0660: * Cardinality constraints are not checked, but this method exists only for properties with
0661: * no minCardinality or minCardinality == 1.
0662: * @param model an RDF2Go model
0663: * @param resource an RDF2Go resource
0664: * @param value the value to be set
0665: *
0666: * [Generated from RDFReactor template rule #set1static]
0667: */
0668: public static void setCardinality(Model model,
0669: org.ontoware.rdf2go.model.node.Resource instanceResource,
0670: org.ontoware.rdf2go.model.node.Node value) {
0671: Base.set(model, instanceResource, CARDINALITY, value);
0672: }
0673:
0674: /**
0675: * Sets a value of property Cardinality from an RDF2Go node.
0676: * First, all existing values are removed, then this value is added.
0677: * Cardinality constraints are not checked, but this method exists only for properties with
0678: * no minCardinality or minCardinality == 1.
0679: * @param value the value to be added
0680: *
0681: * [Generated from RDFReactor template rule #set1dynamic]
0682: */
0683: public void setCardinality(org.ontoware.rdf2go.model.node.Node value) {
0684: Base.set(this .model, this .getResource(), CARDINALITY, value);
0685: }
0686:
0687: /**
0688: * Sets a value of property Cardinality from an instance of Integer
0689: * First, all existing values are removed, then this value is added.
0690: * Cardinality constraints are not checked, but this method exists only for properties with
0691: * no minCardinality or minCardinality == 1.
0692: * @param model an RDF2Go model
0693: * @param resource an RDF2Go resource
0694: * @param value the value to be added
0695: *
0696: * [Generated from RDFReactor template rule #set3static]
0697: */
0698: public static void setCardinality(Model model,
0699: org.ontoware.rdf2go.model.node.Resource instanceResource,
0700: Integer value) {
0701: Base.set(model, instanceResource, CARDINALITY, value);
0702: }
0703:
0704: /**
0705: * Sets a value of property Cardinality from an instance of Integer
0706: * First, all existing values are removed, then this value is added.
0707: * Cardinality constraints are not checked, but this method exists only for properties with
0708: * no minCardinality or minCardinality == 1.
0709: * @param value the value to be added
0710: *
0711: * [Generated from RDFReactor template rule #set4dynamic]
0712: */
0713: public void setCardinality(Integer value) {
0714: Base.set(this .model, this .getResource(), CARDINALITY, value);
0715: }
0716:
0717: /**
0718: * Removes a value of property Cardinality as an RDF2Go node
0719: * @param model an RDF2Go model
0720: * @param resource an RDF2Go resource
0721: * @param value the value to be removed
0722: *
0723: * [Generated from RDFReactor template rule #remove1static]
0724: */
0725: public static void removeCardinality(Model model,
0726: org.ontoware.rdf2go.model.node.Resource instanceResource,
0727: org.ontoware.rdf2go.model.node.Node value) {
0728: Base.remove(model, instanceResource, CARDINALITY, value);
0729: }
0730:
0731: /**
0732: * Removes a value of property Cardinality as an RDF2Go node
0733: * @param value the value to be removed
0734: *
0735: * [Generated from RDFReactor template rule #remove1dynamic]
0736: */
0737: public void removeCardinality(
0738: org.ontoware.rdf2go.model.node.Node value) {
0739: Base.remove(this .model, this .getResource(), CARDINALITY, value);
0740: }
0741:
0742: /**
0743: * Removes a value of property Cardinality given as an instance of Integer
0744: * @param model an RDF2Go model
0745: * @param resource an RDF2Go resource
0746: * @param value the value to be removed
0747: *
0748: * [Generated from RDFReactor template rule #remove3static]
0749: */
0750: public static void removeCardinality(Model model,
0751: org.ontoware.rdf2go.model.node.Resource instanceResource,
0752: Integer value) {
0753: Base.remove(model, instanceResource, CARDINALITY, value);
0754: }
0755:
0756: /**
0757: * Removes a value of property Cardinality given as an instance of Integer
0758: * @param value the value to be removed
0759: *
0760: * [Generated from RDFReactor template rule #remove4dynamic]
0761: */
0762: public void removeCardinality(Integer value) {
0763: Base.remove(this .model, this .getResource(), CARDINALITY, value);
0764: }
0765:
0766: /**
0767: * Removes all values of property Cardinality * @param model an RDF2Go model
0768: * @param resource an RDF2Go resource
0769: *
0770: * [Generated from RDFReactor template rule #removeall1static]
0771: */
0772: public static void removeAllCardinality(Model model,
0773: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0774: Base.removeAll(model, instanceResource, CARDINALITY);
0775: }
0776:
0777: /**
0778: * Removes all values of property Cardinality *
0779: * [Generated from RDFReactor template rule #removeall1dynamic]
0780: */
0781: public void addCardinality() {
0782: Base.removeAll(this .model, this .getResource(), CARDINALITY);
0783: }
0784:
0785: /**
0786: * Get all values of property HasValue as an Iterator over RDF2Go nodes
0787: * @param model an RDF2Go model
0788: * @param resource an RDF2Go resource
0789: * @return a ClosableIterator of RDF2Go Nodes
0790: *
0791: * [Generated from RDFReactor template rule #get7static]
0792: */
0793: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllHasValue_asNode(
0794: Model model,
0795: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0796: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0797: .getAll_asNode(model, instanceResource, HASVALUE);
0798: }
0799:
0800: /**
0801: * Get all values of property HasValue as a ReactorResult of RDF2Go nodes
0802: * @param model an RDF2Go model
0803: * @param resource an RDF2Go resource
0804: * @return a List of RDF2Go Nodes
0805: *
0806: * [Generated from RDFReactor template rule #get7static-reactor-result]
0807: */
0808: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllHasValue_asNode_(
0809: Model model,
0810: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0811: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0812: .getAll_as(model, instanceResource, HASVALUE,
0813: org.ontoware.rdf2go.model.node.Node.class);
0814: }
0815:
0816: /**
0817: * Get all values of property HasValue as an Iterator over RDF2Go nodes
0818: * @return a ClosableIterator of RDF2Go Nodes
0819: *
0820: * [Generated from RDFReactor template rule #get8dynamic]
0821: */
0822: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllHasValue_asNode() {
0823: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0824: .getAll_asNode(this .model, this .getResource(), HASVALUE);
0825: }
0826:
0827: /**
0828: * Get all values of property HasValue as a ReactorResult of RDF2Go nodes
0829: * @return a List of RDF2Go Nodes
0830: *
0831: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
0832: */
0833: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllHasValue_asNode_() {
0834: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
0835: .getAll_as(this .model, this .getResource(), HASVALUE,
0836: org.ontoware.rdf2go.model.node.Node.class);
0837: }
0838:
0839: /**
0840: * Get all values of property HasValue * @param model an RDF2Go model
0841: * @param resource an RDF2Go resource
0842: * @return a ClosableIterator of $type
0843: *
0844: * [Generated from RDFReactor template rule #get11static]
0845: */
0846: public static ClosableIterator<OwlThing> getAllHasValue(
0847: Model model,
0848: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0849: return Base.getAll(model, instanceResource, HASVALUE,
0850: OwlThing.class);
0851: }
0852:
0853: /**
0854: * Get all values of property HasValue as a ReactorResult of Thing
0855: * @param model an RDF2Go model
0856: * @param resource an RDF2Go resource
0857: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0858: *
0859: * [Generated from RDFReactor template rule #get11static-reactorresult]
0860: */
0861: public static ReactorResult<OwlThing> getAllHasValue_as(
0862: Model model,
0863: org.ontoware.rdf2go.model.node.Resource instanceResource) {
0864: return Base.getAll_as(model, instanceResource, HASVALUE,
0865: OwlThing.class);
0866: }
0867:
0868: /**
0869: * Get all values of property HasValue * @return a ClosableIterator of $type
0870: *
0871: * [Generated from RDFReactor template rule #get12dynamic]
0872: */
0873: public ClosableIterator<OwlThing> getAllHasValue() {
0874: return Base.getAll(this .model, this .getResource(), HASVALUE,
0875: OwlThing.class);
0876: }
0877:
0878: /**
0879: * Get all values of property HasValue as a ReactorResult of Thing
0880: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
0881: *
0882: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
0883: */
0884: public ReactorResult<OwlThing> getAllHasValue_as() {
0885: return Base.getAll_as(this .model, this .getResource(), HASVALUE,
0886: OwlThing.class);
0887: }
0888:
0889: /**
0890: * Adds a value to property HasValue as an RDF2Go node
0891: * @param model an RDF2Go model
0892: * @param resource an RDF2Go resource
0893: * @param value the value to be added
0894: *
0895: * [Generated from RDFReactor template rule #add1static]
0896: */
0897: public static void addHasValue(Model model,
0898: org.ontoware.rdf2go.model.node.Resource instanceResource,
0899: org.ontoware.rdf2go.model.node.Node value) {
0900: Base.add(model, instanceResource, HASVALUE, value);
0901: }
0902:
0903: /**
0904: * Adds a value to property HasValue as an RDF2Go node
0905: * @param value the value to be added
0906: *
0907: * [Generated from RDFReactor template rule #add1dynamic]
0908: */
0909: public void addHasValue(org.ontoware.rdf2go.model.node.Node value) {
0910: Base.add(this .model, this .getResource(), HASVALUE, value);
0911: }
0912:
0913: /**
0914: * Adds a value to property HasValue from an instance of Thing
0915: * @param model an RDF2Go model
0916: * @param resource an RDF2Go resource
0917: *
0918: * [Generated from RDFReactor template rule #add3static]
0919: */
0920: public static void addHasValue(Model model,
0921: org.ontoware.rdf2go.model.node.Resource instanceResource,
0922: OwlThing value) {
0923: Base.add(model, instanceResource, HASVALUE, value);
0924: }
0925:
0926: /**
0927: * Adds a value to property HasValue from an instance of Thing
0928: *
0929: * [Generated from RDFReactor template rule #add4dynamic]
0930: */
0931: public void addHasValue(OwlThing value) {
0932: Base.add(this .model, this .getResource(), HASVALUE, value);
0933: }
0934:
0935: /**
0936: * Sets a value of property HasValue from an RDF2Go node.
0937: * First, all existing values are removed, then this value is added.
0938: * Cardinality constraints are not checked, but this method exists only for properties with
0939: * no minCardinality or minCardinality == 1.
0940: * @param model an RDF2Go model
0941: * @param resource an RDF2Go resource
0942: * @param value the value to be set
0943: *
0944: * [Generated from RDFReactor template rule #set1static]
0945: */
0946: public static void setHasValue(Model model,
0947: org.ontoware.rdf2go.model.node.Resource instanceResource,
0948: org.ontoware.rdf2go.model.node.Node value) {
0949: Base.set(model, instanceResource, HASVALUE, value);
0950: }
0951:
0952: /**
0953: * Sets a value of property HasValue from an RDF2Go node.
0954: * First, all existing values are removed, then this value is added.
0955: * Cardinality constraints are not checked, but this method exists only for properties with
0956: * no minCardinality or minCardinality == 1.
0957: * @param value the value to be added
0958: *
0959: * [Generated from RDFReactor template rule #set1dynamic]
0960: */
0961: public void setHasValue(org.ontoware.rdf2go.model.node.Node value) {
0962: Base.set(this .model, this .getResource(), HASVALUE, value);
0963: }
0964:
0965: /**
0966: * Sets a value of property HasValue from an instance of Thing
0967: * First, all existing values are removed, then this value is added.
0968: * Cardinality constraints are not checked, but this method exists only for properties with
0969: * no minCardinality or minCardinality == 1.
0970: * @param model an RDF2Go model
0971: * @param resource an RDF2Go resource
0972: * @param value the value to be added
0973: *
0974: * [Generated from RDFReactor template rule #set3static]
0975: */
0976: public static void setHasValue(Model model,
0977: org.ontoware.rdf2go.model.node.Resource instanceResource,
0978: OwlThing value) {
0979: Base.set(model, instanceResource, HASVALUE, value);
0980: }
0981:
0982: /**
0983: * Sets a value of property HasValue from an instance of Thing
0984: * First, all existing values are removed, then this value is added.
0985: * Cardinality constraints are not checked, but this method exists only for properties with
0986: * no minCardinality or minCardinality == 1.
0987: * @param value the value to be added
0988: *
0989: * [Generated from RDFReactor template rule #set4dynamic]
0990: */
0991: public void setHasValue(OwlThing value) {
0992: Base.set(this .model, this .getResource(), HASVALUE, value);
0993: }
0994:
0995: /**
0996: * Removes a value of property HasValue as an RDF2Go node
0997: * @param model an RDF2Go model
0998: * @param resource an RDF2Go resource
0999: * @param value the value to be removed
1000: *
1001: * [Generated from RDFReactor template rule #remove1static]
1002: */
1003: public static void removeHasValue(Model model,
1004: org.ontoware.rdf2go.model.node.Resource instanceResource,
1005: org.ontoware.rdf2go.model.node.Node value) {
1006: Base.remove(model, instanceResource, HASVALUE, value);
1007: }
1008:
1009: /**
1010: * Removes a value of property HasValue as an RDF2Go node
1011: * @param value the value to be removed
1012: *
1013: * [Generated from RDFReactor template rule #remove1dynamic]
1014: */
1015: public void removeHasValue(org.ontoware.rdf2go.model.node.Node value) {
1016: Base.remove(this .model, this .getResource(), HASVALUE, value);
1017: }
1018:
1019: /**
1020: * Removes a value of property HasValue given as an instance of Thing
1021: * @param model an RDF2Go model
1022: * @param resource an RDF2Go resource
1023: * @param value the value to be removed
1024: *
1025: * [Generated from RDFReactor template rule #remove3static]
1026: */
1027: public static void removeHasValue(Model model,
1028: org.ontoware.rdf2go.model.node.Resource instanceResource,
1029: OwlThing value) {
1030: Base.remove(model, instanceResource, HASVALUE, value);
1031: }
1032:
1033: /**
1034: * Removes a value of property HasValue given as an instance of Thing
1035: * @param value the value to be removed
1036: *
1037: * [Generated from RDFReactor template rule #remove4dynamic]
1038: */
1039: public void removeHasValue(OwlThing value) {
1040: Base.remove(this .model, this .getResource(), HASVALUE, value);
1041: }
1042:
1043: /**
1044: * Removes all values of property HasValue * @param model an RDF2Go model
1045: * @param resource an RDF2Go resource
1046: *
1047: * [Generated from RDFReactor template rule #removeall1static]
1048: */
1049: public static void removeAllHasValue(Model model,
1050: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1051: Base.removeAll(model, instanceResource, HASVALUE);
1052: }
1053:
1054: /**
1055: * Removes all values of property HasValue *
1056: * [Generated from RDFReactor template rule #removeall1dynamic]
1057: */
1058: public void addHasValue() {
1059: Base.removeAll(this .model, this .getResource(), HASVALUE);
1060: }
1061:
1062: /**
1063: * Get all values of property MaxCardinality as an Iterator over RDF2Go nodes
1064: * @param model an RDF2Go model
1065: * @param resource an RDF2Go resource
1066: * @return a ClosableIterator of RDF2Go Nodes
1067: *
1068: * [Generated from RDFReactor template rule #get7static]
1069: */
1070: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllMaxCardinality_asNode(
1071: Model model,
1072: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1073: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1074: .getAll_asNode(model, instanceResource, MAXCARDINALITY);
1075: }
1076:
1077: /**
1078: * Get all values of property MaxCardinality as a ReactorResult of RDF2Go nodes
1079: * @param model an RDF2Go model
1080: * @param resource an RDF2Go resource
1081: * @return a List of RDF2Go Nodes
1082: *
1083: * [Generated from RDFReactor template rule #get7static-reactor-result]
1084: */
1085: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMaxCardinality_asNode_(
1086: Model model,
1087: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1088: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1089: .getAll_as(model, instanceResource, MAXCARDINALITY,
1090: org.ontoware.rdf2go.model.node.Node.class);
1091: }
1092:
1093: /**
1094: * Get all values of property MaxCardinality as an Iterator over RDF2Go nodes
1095: * @return a ClosableIterator of RDF2Go Nodes
1096: *
1097: * [Generated from RDFReactor template rule #get8dynamic]
1098: */
1099: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllMaxCardinality_asNode() {
1100: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1101: .getAll_asNode(this .model, this .getResource(),
1102: MAXCARDINALITY);
1103: }
1104:
1105: /**
1106: * Get all values of property MaxCardinality as a ReactorResult of RDF2Go nodes
1107: * @return a List of RDF2Go Nodes
1108: *
1109: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
1110: */
1111: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMaxCardinality_asNode_() {
1112: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1113: .getAll_as(this .model, this .getResource(),
1114: MAXCARDINALITY,
1115: org.ontoware.rdf2go.model.node.Node.class);
1116: }
1117:
1118: /**
1119: * Get all values of property MaxCardinality * @param model an RDF2Go model
1120: * @param resource an RDF2Go resource
1121: * @return a ClosableIterator of $type
1122: *
1123: * [Generated from RDFReactor template rule #get11static]
1124: */
1125: public static ClosableIterator<Integer> getAllMaxCardinality(
1126: Model model,
1127: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1128: return Base.getAll(model, instanceResource, MAXCARDINALITY,
1129: Integer.class);
1130: }
1131:
1132: /**
1133: * Get all values of property MaxCardinality as a ReactorResult of Integer
1134: * @param model an RDF2Go model
1135: * @param resource an RDF2Go resource
1136: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1137: *
1138: * [Generated from RDFReactor template rule #get11static-reactorresult]
1139: */
1140: public static ReactorResult<Integer> getAllMaxCardinality_as(
1141: Model model,
1142: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1143: return Base.getAll_as(model, instanceResource, MAXCARDINALITY,
1144: Integer.class);
1145: }
1146:
1147: /**
1148: * Get all values of property MaxCardinality * @return a ClosableIterator of $type
1149: *
1150: * [Generated from RDFReactor template rule #get12dynamic]
1151: */
1152: public ClosableIterator<Integer> getAllMaxCardinality() {
1153: return Base.getAll(this .model, this .getResource(),
1154: MAXCARDINALITY, Integer.class);
1155: }
1156:
1157: /**
1158: * Get all values of property MaxCardinality as a ReactorResult of Integer
1159: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1160: *
1161: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
1162: */
1163: public ReactorResult<Integer> getAllMaxCardinality_as() {
1164: return Base.getAll_as(this .model, this .getResource(),
1165: MAXCARDINALITY, Integer.class);
1166: }
1167:
1168: /**
1169: * Adds a value to property MaxCardinality as an RDF2Go node
1170: * @param model an RDF2Go model
1171: * @param resource an RDF2Go resource
1172: * @param value the value to be added
1173: *
1174: * [Generated from RDFReactor template rule #add1static]
1175: */
1176: public static void addMaxCardinality(Model model,
1177: org.ontoware.rdf2go.model.node.Resource instanceResource,
1178: org.ontoware.rdf2go.model.node.Node value) {
1179: Base.add(model, instanceResource, MAXCARDINALITY, value);
1180: }
1181:
1182: /**
1183: * Adds a value to property MaxCardinality as an RDF2Go node
1184: * @param value the value to be added
1185: *
1186: * [Generated from RDFReactor template rule #add1dynamic]
1187: */
1188: public void addMaxCardinality(
1189: org.ontoware.rdf2go.model.node.Node value) {
1190: Base.add(this .model, this .getResource(), MAXCARDINALITY, value);
1191: }
1192:
1193: /**
1194: * Adds a value to property MaxCardinality from an instance of Integer
1195: * @param model an RDF2Go model
1196: * @param resource an RDF2Go resource
1197: *
1198: * [Generated from RDFReactor template rule #add3static]
1199: */
1200: public static void addMaxCardinality(Model model,
1201: org.ontoware.rdf2go.model.node.Resource instanceResource,
1202: Integer value) {
1203: Base.add(model, instanceResource, MAXCARDINALITY, value);
1204: }
1205:
1206: /**
1207: * Adds a value to property MaxCardinality from an instance of Integer
1208: *
1209: * [Generated from RDFReactor template rule #add4dynamic]
1210: */
1211: public void addMaxCardinality(Integer value) {
1212: Base.add(this .model, this .getResource(), MAXCARDINALITY, value);
1213: }
1214:
1215: /**
1216: * Sets a value of property MaxCardinality from an RDF2Go node.
1217: * First, all existing values are removed, then this value is added.
1218: * Cardinality constraints are not checked, but this method exists only for properties with
1219: * no minCardinality or minCardinality == 1.
1220: * @param model an RDF2Go model
1221: * @param resource an RDF2Go resource
1222: * @param value the value to be set
1223: *
1224: * [Generated from RDFReactor template rule #set1static]
1225: */
1226: public static void setMaxCardinality(Model model,
1227: org.ontoware.rdf2go.model.node.Resource instanceResource,
1228: org.ontoware.rdf2go.model.node.Node value) {
1229: Base.set(model, instanceResource, MAXCARDINALITY, value);
1230: }
1231:
1232: /**
1233: * Sets a value of property MaxCardinality from an RDF2Go node.
1234: * First, all existing values are removed, then this value is added.
1235: * Cardinality constraints are not checked, but this method exists only for properties with
1236: * no minCardinality or minCardinality == 1.
1237: * @param value the value to be added
1238: *
1239: * [Generated from RDFReactor template rule #set1dynamic]
1240: */
1241: public void setMaxCardinality(
1242: org.ontoware.rdf2go.model.node.Node value) {
1243: Base.set(this .model, this .getResource(), MAXCARDINALITY, value);
1244: }
1245:
1246: /**
1247: * Sets a value of property MaxCardinality from an instance of Integer
1248: * First, all existing values are removed, then this value is added.
1249: * Cardinality constraints are not checked, but this method exists only for properties with
1250: * no minCardinality or minCardinality == 1.
1251: * @param model an RDF2Go model
1252: * @param resource an RDF2Go resource
1253: * @param value the value to be added
1254: *
1255: * [Generated from RDFReactor template rule #set3static]
1256: */
1257: public static void setMaxCardinality(Model model,
1258: org.ontoware.rdf2go.model.node.Resource instanceResource,
1259: Integer value) {
1260: Base.set(model, instanceResource, MAXCARDINALITY, value);
1261: }
1262:
1263: /**
1264: * Sets a value of property MaxCardinality from an instance of Integer
1265: * First, all existing values are removed, then this value is added.
1266: * Cardinality constraints are not checked, but this method exists only for properties with
1267: * no minCardinality or minCardinality == 1.
1268: * @param value the value to be added
1269: *
1270: * [Generated from RDFReactor template rule #set4dynamic]
1271: */
1272: public void setMaxCardinality(Integer value) {
1273: Base.set(this .model, this .getResource(), MAXCARDINALITY, value);
1274: }
1275:
1276: /**
1277: * Removes a value of property MaxCardinality as an RDF2Go node
1278: * @param model an RDF2Go model
1279: * @param resource an RDF2Go resource
1280: * @param value the value to be removed
1281: *
1282: * [Generated from RDFReactor template rule #remove1static]
1283: */
1284: public static void removeMaxCardinality(Model model,
1285: org.ontoware.rdf2go.model.node.Resource instanceResource,
1286: org.ontoware.rdf2go.model.node.Node value) {
1287: Base.remove(model, instanceResource, MAXCARDINALITY, value);
1288: }
1289:
1290: /**
1291: * Removes a value of property MaxCardinality as an RDF2Go node
1292: * @param value the value to be removed
1293: *
1294: * [Generated from RDFReactor template rule #remove1dynamic]
1295: */
1296: public void removeMaxCardinality(
1297: org.ontoware.rdf2go.model.node.Node value) {
1298: Base.remove(this .model, this .getResource(), MAXCARDINALITY,
1299: value);
1300: }
1301:
1302: /**
1303: * Removes a value of property MaxCardinality given as an instance of Integer
1304: * @param model an RDF2Go model
1305: * @param resource an RDF2Go resource
1306: * @param value the value to be removed
1307: *
1308: * [Generated from RDFReactor template rule #remove3static]
1309: */
1310: public static void removeMaxCardinality(Model model,
1311: org.ontoware.rdf2go.model.node.Resource instanceResource,
1312: Integer value) {
1313: Base.remove(model, instanceResource, MAXCARDINALITY, value);
1314: }
1315:
1316: /**
1317: * Removes a value of property MaxCardinality given as an instance of Integer
1318: * @param value the value to be removed
1319: *
1320: * [Generated from RDFReactor template rule #remove4dynamic]
1321: */
1322: public void removeMaxCardinality(Integer value) {
1323: Base.remove(this .model, this .getResource(), MAXCARDINALITY,
1324: value);
1325: }
1326:
1327: /**
1328: * Removes all values of property MaxCardinality * @param model an RDF2Go model
1329: * @param resource an RDF2Go resource
1330: *
1331: * [Generated from RDFReactor template rule #removeall1static]
1332: */
1333: public static void removeAllMaxCardinality(Model model,
1334: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1335: Base.removeAll(model, instanceResource, MAXCARDINALITY);
1336: }
1337:
1338: /**
1339: * Removes all values of property MaxCardinality *
1340: * [Generated from RDFReactor template rule #removeall1dynamic]
1341: */
1342: public void addMaxCardinality() {
1343: Base.removeAll(this .model, this .getResource(), MAXCARDINALITY);
1344: }
1345:
1346: /**
1347: * Get all values of property MinCardinality as an Iterator over RDF2Go nodes
1348: * @param model an RDF2Go model
1349: * @param resource an RDF2Go resource
1350: * @return a ClosableIterator of RDF2Go Nodes
1351: *
1352: * [Generated from RDFReactor template rule #get7static]
1353: */
1354: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllMinCardinality_asNode(
1355: Model model,
1356: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1357: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1358: .getAll_asNode(model, instanceResource, MINCARDINALITY);
1359: }
1360:
1361: /**
1362: * Get all values of property MinCardinality as a ReactorResult of RDF2Go nodes
1363: * @param model an RDF2Go model
1364: * @param resource an RDF2Go resource
1365: * @return a List of RDF2Go Nodes
1366: *
1367: * [Generated from RDFReactor template rule #get7static-reactor-result]
1368: */
1369: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMinCardinality_asNode_(
1370: Model model,
1371: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1372: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1373: .getAll_as(model, instanceResource, MINCARDINALITY,
1374: org.ontoware.rdf2go.model.node.Node.class);
1375: }
1376:
1377: /**
1378: * Get all values of property MinCardinality as an Iterator over RDF2Go nodes
1379: * @return a ClosableIterator of RDF2Go Nodes
1380: *
1381: * [Generated from RDFReactor template rule #get8dynamic]
1382: */
1383: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllMinCardinality_asNode() {
1384: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1385: .getAll_asNode(this .model, this .getResource(),
1386: MINCARDINALITY);
1387: }
1388:
1389: /**
1390: * Get all values of property MinCardinality as a ReactorResult of RDF2Go nodes
1391: * @return a List of RDF2Go Nodes
1392: *
1393: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
1394: */
1395: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMinCardinality_asNode_() {
1396: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1397: .getAll_as(this .model, this .getResource(),
1398: MINCARDINALITY,
1399: org.ontoware.rdf2go.model.node.Node.class);
1400: }
1401:
1402: /**
1403: * Get all values of property MinCardinality * @param model an RDF2Go model
1404: * @param resource an RDF2Go resource
1405: * @return a ClosableIterator of $type
1406: *
1407: * [Generated from RDFReactor template rule #get11static]
1408: */
1409: public static ClosableIterator<Integer> getAllMinCardinality(
1410: Model model,
1411: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1412: return Base.getAll(model, instanceResource, MINCARDINALITY,
1413: Integer.class);
1414: }
1415:
1416: /**
1417: * Get all values of property MinCardinality as a ReactorResult of Integer
1418: * @param model an RDF2Go model
1419: * @param resource an RDF2Go resource
1420: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1421: *
1422: * [Generated from RDFReactor template rule #get11static-reactorresult]
1423: */
1424: public static ReactorResult<Integer> getAllMinCardinality_as(
1425: Model model,
1426: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1427: return Base.getAll_as(model, instanceResource, MINCARDINALITY,
1428: Integer.class);
1429: }
1430:
1431: /**
1432: * Get all values of property MinCardinality * @return a ClosableIterator of $type
1433: *
1434: * [Generated from RDFReactor template rule #get12dynamic]
1435: */
1436: public ClosableIterator<Integer> getAllMinCardinality() {
1437: return Base.getAll(this .model, this .getResource(),
1438: MINCARDINALITY, Integer.class);
1439: }
1440:
1441: /**
1442: * Get all values of property MinCardinality as a ReactorResult of Integer
1443: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1444: *
1445: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
1446: */
1447: public ReactorResult<Integer> getAllMinCardinality_as() {
1448: return Base.getAll_as(this .model, this .getResource(),
1449: MINCARDINALITY, Integer.class);
1450: }
1451:
1452: /**
1453: * Adds a value to property MinCardinality as an RDF2Go node
1454: * @param model an RDF2Go model
1455: * @param resource an RDF2Go resource
1456: * @param value the value to be added
1457: *
1458: * [Generated from RDFReactor template rule #add1static]
1459: */
1460: public static void addMinCardinality(Model model,
1461: org.ontoware.rdf2go.model.node.Resource instanceResource,
1462: org.ontoware.rdf2go.model.node.Node value) {
1463: Base.add(model, instanceResource, MINCARDINALITY, value);
1464: }
1465:
1466: /**
1467: * Adds a value to property MinCardinality as an RDF2Go node
1468: * @param value the value to be added
1469: *
1470: * [Generated from RDFReactor template rule #add1dynamic]
1471: */
1472: public void addMinCardinality(
1473: org.ontoware.rdf2go.model.node.Node value) {
1474: Base.add(this .model, this .getResource(), MINCARDINALITY, value);
1475: }
1476:
1477: /**
1478: * Adds a value to property MinCardinality from an instance of Integer
1479: * @param model an RDF2Go model
1480: * @param resource an RDF2Go resource
1481: *
1482: * [Generated from RDFReactor template rule #add3static]
1483: */
1484: public static void addMinCardinality(Model model,
1485: org.ontoware.rdf2go.model.node.Resource instanceResource,
1486: Integer value) {
1487: Base.add(model, instanceResource, MINCARDINALITY, value);
1488: }
1489:
1490: /**
1491: * Adds a value to property MinCardinality from an instance of Integer
1492: *
1493: * [Generated from RDFReactor template rule #add4dynamic]
1494: */
1495: public void addMinCardinality(Integer value) {
1496: Base.add(this .model, this .getResource(), MINCARDINALITY, value);
1497: }
1498:
1499: /**
1500: * Sets a value of property MinCardinality from an RDF2Go node.
1501: * First, all existing values are removed, then this value is added.
1502: * Cardinality constraints are not checked, but this method exists only for properties with
1503: * no minCardinality or minCardinality == 1.
1504: * @param model an RDF2Go model
1505: * @param resource an RDF2Go resource
1506: * @param value the value to be set
1507: *
1508: * [Generated from RDFReactor template rule #set1static]
1509: */
1510: public static void setMinCardinality(Model model,
1511: org.ontoware.rdf2go.model.node.Resource instanceResource,
1512: org.ontoware.rdf2go.model.node.Node value) {
1513: Base.set(model, instanceResource, MINCARDINALITY, value);
1514: }
1515:
1516: /**
1517: * Sets a value of property MinCardinality from an RDF2Go node.
1518: * First, all existing values are removed, then this value is added.
1519: * Cardinality constraints are not checked, but this method exists only for properties with
1520: * no minCardinality or minCardinality == 1.
1521: * @param value the value to be added
1522: *
1523: * [Generated from RDFReactor template rule #set1dynamic]
1524: */
1525: public void setMinCardinality(
1526: org.ontoware.rdf2go.model.node.Node value) {
1527: Base.set(this .model, this .getResource(), MINCARDINALITY, value);
1528: }
1529:
1530: /**
1531: * Sets a value of property MinCardinality from an instance of Integer
1532: * First, all existing values are removed, then this value is added.
1533: * Cardinality constraints are not checked, but this method exists only for properties with
1534: * no minCardinality or minCardinality == 1.
1535: * @param model an RDF2Go model
1536: * @param resource an RDF2Go resource
1537: * @param value the value to be added
1538: *
1539: * [Generated from RDFReactor template rule #set3static]
1540: */
1541: public static void setMinCardinality(Model model,
1542: org.ontoware.rdf2go.model.node.Resource instanceResource,
1543: Integer value) {
1544: Base.set(model, instanceResource, MINCARDINALITY, value);
1545: }
1546:
1547: /**
1548: * Sets a value of property MinCardinality from an instance of Integer
1549: * First, all existing values are removed, then this value is added.
1550: * Cardinality constraints are not checked, but this method exists only for properties with
1551: * no minCardinality or minCardinality == 1.
1552: * @param value the value to be added
1553: *
1554: * [Generated from RDFReactor template rule #set4dynamic]
1555: */
1556: public void setMinCardinality(Integer value) {
1557: Base.set(this .model, this .getResource(), MINCARDINALITY, value);
1558: }
1559:
1560: /**
1561: * Removes a value of property MinCardinality as an RDF2Go node
1562: * @param model an RDF2Go model
1563: * @param resource an RDF2Go resource
1564: * @param value the value to be removed
1565: *
1566: * [Generated from RDFReactor template rule #remove1static]
1567: */
1568: public static void removeMinCardinality(Model model,
1569: org.ontoware.rdf2go.model.node.Resource instanceResource,
1570: org.ontoware.rdf2go.model.node.Node value) {
1571: Base.remove(model, instanceResource, MINCARDINALITY, value);
1572: }
1573:
1574: /**
1575: * Removes a value of property MinCardinality as an RDF2Go node
1576: * @param value the value to be removed
1577: *
1578: * [Generated from RDFReactor template rule #remove1dynamic]
1579: */
1580: public void removeMinCardinality(
1581: org.ontoware.rdf2go.model.node.Node value) {
1582: Base.remove(this .model, this .getResource(), MINCARDINALITY,
1583: value);
1584: }
1585:
1586: /**
1587: * Removes a value of property MinCardinality given as an instance of Integer
1588: * @param model an RDF2Go model
1589: * @param resource an RDF2Go resource
1590: * @param value the value to be removed
1591: *
1592: * [Generated from RDFReactor template rule #remove3static]
1593: */
1594: public static void removeMinCardinality(Model model,
1595: org.ontoware.rdf2go.model.node.Resource instanceResource,
1596: Integer value) {
1597: Base.remove(model, instanceResource, MINCARDINALITY, value);
1598: }
1599:
1600: /**
1601: * Removes a value of property MinCardinality given as an instance of Integer
1602: * @param value the value to be removed
1603: *
1604: * [Generated from RDFReactor template rule #remove4dynamic]
1605: */
1606: public void removeMinCardinality(Integer value) {
1607: Base.remove(this .model, this .getResource(), MINCARDINALITY,
1608: value);
1609: }
1610:
1611: /**
1612: * Removes all values of property MinCardinality * @param model an RDF2Go model
1613: * @param resource an RDF2Go resource
1614: *
1615: * [Generated from RDFReactor template rule #removeall1static]
1616: */
1617: public static void removeAllMinCardinality(Model model,
1618: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1619: Base.removeAll(model, instanceResource, MINCARDINALITY);
1620: }
1621:
1622: /**
1623: * Removes all values of property MinCardinality *
1624: * [Generated from RDFReactor template rule #removeall1dynamic]
1625: */
1626: public void addMinCardinality() {
1627: Base.removeAll(this .model, this .getResource(), MINCARDINALITY);
1628: }
1629:
1630: /**
1631: * Get all values of property OnProperty as an Iterator over RDF2Go nodes
1632: * @param model an RDF2Go model
1633: * @param resource an RDF2Go resource
1634: * @return a ClosableIterator of RDF2Go Nodes
1635: *
1636: * [Generated from RDFReactor template rule #get7static]
1637: */
1638: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOnProperty_asNode(
1639: Model model,
1640: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1641: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1642: .getAll_asNode(model, instanceResource, ONPROPERTY);
1643: }
1644:
1645: /**
1646: * Get all values of property OnProperty as a ReactorResult of RDF2Go nodes
1647: * @param model an RDF2Go model
1648: * @param resource an RDF2Go resource
1649: * @return a List of RDF2Go Nodes
1650: *
1651: * [Generated from RDFReactor template rule #get7static-reactor-result]
1652: */
1653: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllOnProperty_asNode_(
1654: Model model,
1655: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1656: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1657: .getAll_as(model, instanceResource, ONPROPERTY,
1658: org.ontoware.rdf2go.model.node.Node.class);
1659: }
1660:
1661: /**
1662: * Get all values of property OnProperty as an Iterator over RDF2Go nodes
1663: * @return a ClosableIterator of RDF2Go Nodes
1664: *
1665: * [Generated from RDFReactor template rule #get8dynamic]
1666: */
1667: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOnProperty_asNode() {
1668: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1669: .getAll_asNode(this .model, this .getResource(),
1670: ONPROPERTY);
1671: }
1672:
1673: /**
1674: * Get all values of property OnProperty as a ReactorResult of RDF2Go nodes
1675: * @return a List of RDF2Go Nodes
1676: *
1677: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
1678: */
1679: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllOnProperty_asNode_() {
1680: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1681: .getAll_as(this .model, this .getResource(), ONPROPERTY,
1682: org.ontoware.rdf2go.model.node.Node.class);
1683: }
1684:
1685: /**
1686: * Get all values of property OnProperty * @param model an RDF2Go model
1687: * @param resource an RDF2Go resource
1688: * @return a ClosableIterator of $type
1689: *
1690: * [Generated from RDFReactor template rule #get11static]
1691: */
1692: public static ClosableIterator<OwlProperty> getAllOnProperty(
1693: Model model,
1694: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1695: return Base.getAll(model, instanceResource, ONPROPERTY,
1696: OwlProperty.class);
1697: }
1698:
1699: /**
1700: * Get all values of property OnProperty as a ReactorResult of Property
1701: * @param model an RDF2Go model
1702: * @param resource an RDF2Go resource
1703: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1704: *
1705: * [Generated from RDFReactor template rule #get11static-reactorresult]
1706: */
1707: public static ReactorResult<OwlProperty> getAllOnProperty_as(
1708: Model model,
1709: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1710: return Base.getAll_as(model, instanceResource, ONPROPERTY,
1711: OwlProperty.class);
1712: }
1713:
1714: /**
1715: * Get all values of property OnProperty * @return a ClosableIterator of $type
1716: *
1717: * [Generated from RDFReactor template rule #get12dynamic]
1718: */
1719: public ClosableIterator<OwlProperty> getAllOnProperty() {
1720: return Base.getAll(this .model, this .getResource(), ONPROPERTY,
1721: OwlProperty.class);
1722: }
1723:
1724: /**
1725: * Get all values of property OnProperty as a ReactorResult of Property
1726: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1727: *
1728: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
1729: */
1730: public ReactorResult<OwlProperty> getAllOnProperty_as() {
1731: return Base.getAll_as(this .model, this .getResource(),
1732: ONPROPERTY, OwlProperty.class);
1733: }
1734:
1735: /**
1736: * Adds a value to property OnProperty as an RDF2Go node
1737: * @param model an RDF2Go model
1738: * @param resource an RDF2Go resource
1739: * @param value the value to be added
1740: *
1741: * [Generated from RDFReactor template rule #add1static]
1742: */
1743: public static void addOnProperty(Model model,
1744: org.ontoware.rdf2go.model.node.Resource instanceResource,
1745: org.ontoware.rdf2go.model.node.Node value) {
1746: Base.add(model, instanceResource, ONPROPERTY, value);
1747: }
1748:
1749: /**
1750: * Adds a value to property OnProperty as an RDF2Go node
1751: * @param value the value to be added
1752: *
1753: * [Generated from RDFReactor template rule #add1dynamic]
1754: */
1755: public void addOnProperty(org.ontoware.rdf2go.model.node.Node value) {
1756: Base.add(this .model, this .getResource(), ONPROPERTY, value);
1757: }
1758:
1759: /**
1760: * Adds a value to property OnProperty from an instance of Property
1761: * @param model an RDF2Go model
1762: * @param resource an RDF2Go resource
1763: *
1764: * [Generated from RDFReactor template rule #add3static]
1765: */
1766: public static void addOnProperty(Model model,
1767: org.ontoware.rdf2go.model.node.Resource instanceResource,
1768: OwlProperty value) {
1769: Base.add(model, instanceResource, ONPROPERTY, value);
1770: }
1771:
1772: /**
1773: * Adds a value to property OnProperty from an instance of Property
1774: *
1775: * [Generated from RDFReactor template rule #add4dynamic]
1776: */
1777: public void addOnProperty(OwlProperty value) {
1778: Base.add(this .model, this .getResource(), ONPROPERTY, value);
1779: }
1780:
1781: /**
1782: * Sets a value of property OnProperty from an RDF2Go node.
1783: * First, all existing values are removed, then this value is added.
1784: * Cardinality constraints are not checked, but this method exists only for properties with
1785: * no minCardinality or minCardinality == 1.
1786: * @param model an RDF2Go model
1787: * @param resource an RDF2Go resource
1788: * @param value the value to be set
1789: *
1790: * [Generated from RDFReactor template rule #set1static]
1791: */
1792: public static void setOnProperty(Model model,
1793: org.ontoware.rdf2go.model.node.Resource instanceResource,
1794: org.ontoware.rdf2go.model.node.Node value) {
1795: Base.set(model, instanceResource, ONPROPERTY, value);
1796: }
1797:
1798: /**
1799: * Sets a value of property OnProperty from an RDF2Go node.
1800: * First, all existing values are removed, then this value is added.
1801: * Cardinality constraints are not checked, but this method exists only for properties with
1802: * no minCardinality or minCardinality == 1.
1803: * @param value the value to be added
1804: *
1805: * [Generated from RDFReactor template rule #set1dynamic]
1806: */
1807: public void setOnProperty(org.ontoware.rdf2go.model.node.Node value) {
1808: Base.set(this .model, this .getResource(), ONPROPERTY, value);
1809: }
1810:
1811: /**
1812: * Sets a value of property OnProperty from an instance of Property
1813: * First, all existing values are removed, then this value is added.
1814: * Cardinality constraints are not checked, but this method exists only for properties with
1815: * no minCardinality or minCardinality == 1.
1816: * @param model an RDF2Go model
1817: * @param resource an RDF2Go resource
1818: * @param value the value to be added
1819: *
1820: * [Generated from RDFReactor template rule #set3static]
1821: */
1822: public static void setOnProperty(Model model,
1823: org.ontoware.rdf2go.model.node.Resource instanceResource,
1824: OwlProperty value) {
1825: Base.set(model, instanceResource, ONPROPERTY, value);
1826: }
1827:
1828: /**
1829: * Sets a value of property OnProperty from an instance of Property
1830: * First, all existing values are removed, then this value is added.
1831: * Cardinality constraints are not checked, but this method exists only for properties with
1832: * no minCardinality or minCardinality == 1.
1833: * @param value the value to be added
1834: *
1835: * [Generated from RDFReactor template rule #set4dynamic]
1836: */
1837: public void setOnProperty(OwlProperty value) {
1838: Base.set(this .model, this .getResource(), ONPROPERTY, value);
1839: }
1840:
1841: /**
1842: * Removes a value of property OnProperty as an RDF2Go node
1843: * @param model an RDF2Go model
1844: * @param resource an RDF2Go resource
1845: * @param value the value to be removed
1846: *
1847: * [Generated from RDFReactor template rule #remove1static]
1848: */
1849: public static void removeOnProperty(Model model,
1850: org.ontoware.rdf2go.model.node.Resource instanceResource,
1851: org.ontoware.rdf2go.model.node.Node value) {
1852: Base.remove(model, instanceResource, ONPROPERTY, value);
1853: }
1854:
1855: /**
1856: * Removes a value of property OnProperty as an RDF2Go node
1857: * @param value the value to be removed
1858: *
1859: * [Generated from RDFReactor template rule #remove1dynamic]
1860: */
1861: public void removeOnProperty(
1862: org.ontoware.rdf2go.model.node.Node value) {
1863: Base.remove(this .model, this .getResource(), ONPROPERTY, value);
1864: }
1865:
1866: /**
1867: * Removes a value of property OnProperty given as an instance of Property
1868: * @param model an RDF2Go model
1869: * @param resource an RDF2Go resource
1870: * @param value the value to be removed
1871: *
1872: * [Generated from RDFReactor template rule #remove3static]
1873: */
1874: public static void removeOnProperty(Model model,
1875: org.ontoware.rdf2go.model.node.Resource instanceResource,
1876: OwlProperty value) {
1877: Base.remove(model, instanceResource, ONPROPERTY, value);
1878: }
1879:
1880: /**
1881: * Removes a value of property OnProperty given as an instance of Property
1882: * @param value the value to be removed
1883: *
1884: * [Generated from RDFReactor template rule #remove4dynamic]
1885: */
1886: public void removeOnProperty(OwlProperty value) {
1887: Base.remove(this .model, this .getResource(), ONPROPERTY, value);
1888: }
1889:
1890: /**
1891: * Removes all values of property OnProperty * @param model an RDF2Go model
1892: * @param resource an RDF2Go resource
1893: *
1894: * [Generated from RDFReactor template rule #removeall1static]
1895: */
1896: public static void removeAllOnProperty(Model model,
1897: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1898: Base.removeAll(model, instanceResource, ONPROPERTY);
1899: }
1900:
1901: /**
1902: * Removes all values of property OnProperty *
1903: * [Generated from RDFReactor template rule #removeall1dynamic]
1904: */
1905: public void addOnProperty() {
1906: Base.removeAll(this .model, this .getResource(), ONPROPERTY);
1907: }
1908:
1909: /**
1910: * Get all values of property SomeValuesFrom as an Iterator over RDF2Go nodes
1911: * @param model an RDF2Go model
1912: * @param resource an RDF2Go resource
1913: * @return a ClosableIterator of RDF2Go Nodes
1914: *
1915: * [Generated from RDFReactor template rule #get7static]
1916: */
1917: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSomeValuesFrom_asNode(
1918: Model model,
1919: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1920: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1921: .getAll_asNode(model, instanceResource, SOMEVALUESFROM);
1922: }
1923:
1924: /**
1925: * Get all values of property SomeValuesFrom as a ReactorResult of RDF2Go nodes
1926: * @param model an RDF2Go model
1927: * @param resource an RDF2Go resource
1928: * @return a List of RDF2Go Nodes
1929: *
1930: * [Generated from RDFReactor template rule #get7static-reactor-result]
1931: */
1932: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllSomeValuesFrom_asNode_(
1933: Model model,
1934: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1935: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1936: .getAll_as(model, instanceResource, SOMEVALUESFROM,
1937: org.ontoware.rdf2go.model.node.Node.class);
1938: }
1939:
1940: /**
1941: * Get all values of property SomeValuesFrom as an Iterator over RDF2Go nodes
1942: * @return a ClosableIterator of RDF2Go Nodes
1943: *
1944: * [Generated from RDFReactor template rule #get8dynamic]
1945: */
1946: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSomeValuesFrom_asNode() {
1947: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
1948: .getAll_asNode(this .model, this .getResource(),
1949: SOMEVALUESFROM);
1950: }
1951:
1952: /**
1953: * Get all values of property SomeValuesFrom as a ReactorResult of RDF2Go nodes
1954: * @return a List of RDF2Go Nodes
1955: *
1956: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
1957: */
1958: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllSomeValuesFrom_asNode_() {
1959: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
1960: .getAll_as(this .model, this .getResource(),
1961: SOMEVALUESFROM,
1962: org.ontoware.rdf2go.model.node.Node.class);
1963: }
1964:
1965: /**
1966: * Get all values of property SomeValuesFrom * @param model an RDF2Go model
1967: * @param resource an RDF2Go resource
1968: * @return a ClosableIterator of $type
1969: *
1970: * [Generated from RDFReactor template rule #get11static]
1971: */
1972: public static ClosableIterator<OwlClass> getAllSomeValuesFrom(
1973: Model model,
1974: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1975: return Base.getAll(model, instanceResource, SOMEVALUESFROM,
1976: OwlClass.class);
1977: }
1978:
1979: /**
1980: * Get all values of property SomeValuesFrom as a ReactorResult of Class
1981: * @param model an RDF2Go model
1982: * @param resource an RDF2Go resource
1983: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
1984: *
1985: * [Generated from RDFReactor template rule #get11static-reactorresult]
1986: */
1987: public static ReactorResult<OwlClass> getAllSomeValuesFrom_as(
1988: Model model,
1989: org.ontoware.rdf2go.model.node.Resource instanceResource) {
1990: return Base.getAll_as(model, instanceResource, SOMEVALUESFROM,
1991: OwlClass.class);
1992: }
1993:
1994: /**
1995: * Get all values of property SomeValuesFrom * @return a ClosableIterator of $type
1996: *
1997: * [Generated from RDFReactor template rule #get12dynamic]
1998: */
1999: public ClosableIterator<OwlClass> getAllSomeValuesFrom() {
2000: return Base.getAll(this .model, this .getResource(),
2001: SOMEVALUESFROM, OwlClass.class);
2002: }
2003:
2004: /**
2005: * Get all values of property SomeValuesFrom as a ReactorResult of Class
2006: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
2007: *
2008: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
2009: */
2010: public ReactorResult<OwlClass> getAllSomeValuesFrom_as() {
2011: return Base.getAll_as(this .model, this .getResource(),
2012: SOMEVALUESFROM, OwlClass.class);
2013: }
2014:
2015: /**
2016: * Adds a value to property SomeValuesFrom as an RDF2Go node
2017: * @param model an RDF2Go model
2018: * @param resource an RDF2Go resource
2019: * @param value the value to be added
2020: *
2021: * [Generated from RDFReactor template rule #add1static]
2022: */
2023: public static void addSomeValuesFrom(Model model,
2024: org.ontoware.rdf2go.model.node.Resource instanceResource,
2025: org.ontoware.rdf2go.model.node.Node value) {
2026: Base.add(model, instanceResource, SOMEVALUESFROM, value);
2027: }
2028:
2029: /**
2030: * Adds a value to property SomeValuesFrom as an RDF2Go node
2031: * @param value the value to be added
2032: *
2033: * [Generated from RDFReactor template rule #add1dynamic]
2034: */
2035: public void addSomeValuesFrom(
2036: org.ontoware.rdf2go.model.node.Node value) {
2037: Base.add(this .model, this .getResource(), SOMEVALUESFROM, value);
2038: }
2039:
2040: /**
2041: * Adds a value to property SomeValuesFrom from an instance of Class
2042: * @param model an RDF2Go model
2043: * @param resource an RDF2Go resource
2044: *
2045: * [Generated from RDFReactor template rule #add3static]
2046: */
2047: public static void addSomeValuesFrom(Model model,
2048: org.ontoware.rdf2go.model.node.Resource instanceResource,
2049: OwlClass value) {
2050: Base.add(model, instanceResource, SOMEVALUESFROM, value);
2051: }
2052:
2053: /**
2054: * Adds a value to property SomeValuesFrom from an instance of Class
2055: *
2056: * [Generated from RDFReactor template rule #add4dynamic]
2057: */
2058: public void addSomeValuesFrom(OwlClass value) {
2059: Base.add(this .model, this .getResource(), SOMEVALUESFROM, value);
2060: }
2061:
2062: /**
2063: * Sets a value of property SomeValuesFrom from an RDF2Go node.
2064: * First, all existing values are removed, then this value is added.
2065: * Cardinality constraints are not checked, but this method exists only for properties with
2066: * no minCardinality or minCardinality == 1.
2067: * @param model an RDF2Go model
2068: * @param resource an RDF2Go resource
2069: * @param value the value to be set
2070: *
2071: * [Generated from RDFReactor template rule #set1static]
2072: */
2073: public static void setSomeValuesFrom(Model model,
2074: org.ontoware.rdf2go.model.node.Resource instanceResource,
2075: org.ontoware.rdf2go.model.node.Node value) {
2076: Base.set(model, instanceResource, SOMEVALUESFROM, value);
2077: }
2078:
2079: /**
2080: * Sets a value of property SomeValuesFrom from an RDF2Go node.
2081: * First, all existing values are removed, then this value is added.
2082: * Cardinality constraints are not checked, but this method exists only for properties with
2083: * no minCardinality or minCardinality == 1.
2084: * @param value the value to be added
2085: *
2086: * [Generated from RDFReactor template rule #set1dynamic]
2087: */
2088: public void setSomeValuesFrom(
2089: org.ontoware.rdf2go.model.node.Node value) {
2090: Base.set(this .model, this .getResource(), SOMEVALUESFROM, value);
2091: }
2092:
2093: /**
2094: * Sets a value of property SomeValuesFrom from an instance of Class
2095: * First, all existing values are removed, then this value is added.
2096: * Cardinality constraints are not checked, but this method exists only for properties with
2097: * no minCardinality or minCardinality == 1.
2098: * @param model an RDF2Go model
2099: * @param resource an RDF2Go resource
2100: * @param value the value to be added
2101: *
2102: * [Generated from RDFReactor template rule #set3static]
2103: */
2104: public static void setSomeValuesFrom(Model model,
2105: org.ontoware.rdf2go.model.node.Resource instanceResource,
2106: OwlClass value) {
2107: Base.set(model, instanceResource, SOMEVALUESFROM, value);
2108: }
2109:
2110: /**
2111: * Sets a value of property SomeValuesFrom from an instance of Class
2112: * First, all existing values are removed, then this value is added.
2113: * Cardinality constraints are not checked, but this method exists only for properties with
2114: * no minCardinality or minCardinality == 1.
2115: * @param value the value to be added
2116: *
2117: * [Generated from RDFReactor template rule #set4dynamic]
2118: */
2119: public void setSomeValuesFrom(OwlClass value) {
2120: Base.set(this .model, this .getResource(), SOMEVALUESFROM, value);
2121: }
2122:
2123: /**
2124: * Removes a value of property SomeValuesFrom as an RDF2Go node
2125: * @param model an RDF2Go model
2126: * @param resource an RDF2Go resource
2127: * @param value the value to be removed
2128: *
2129: * [Generated from RDFReactor template rule #remove1static]
2130: */
2131: public static void removeSomeValuesFrom(Model model,
2132: org.ontoware.rdf2go.model.node.Resource instanceResource,
2133: org.ontoware.rdf2go.model.node.Node value) {
2134: Base.remove(model, instanceResource, SOMEVALUESFROM, value);
2135: }
2136:
2137: /**
2138: * Removes a value of property SomeValuesFrom as an RDF2Go node
2139: * @param value the value to be removed
2140: *
2141: * [Generated from RDFReactor template rule #remove1dynamic]
2142: */
2143: public void removeSomeValuesFrom(
2144: org.ontoware.rdf2go.model.node.Node value) {
2145: Base.remove(this .model, this .getResource(), SOMEVALUESFROM,
2146: value);
2147: }
2148:
2149: /**
2150: * Removes a value of property SomeValuesFrom given as an instance of Class
2151: * @param model an RDF2Go model
2152: * @param resource an RDF2Go resource
2153: * @param value the value to be removed
2154: *
2155: * [Generated from RDFReactor template rule #remove3static]
2156: */
2157: public static void removeSomeValuesFrom(Model model,
2158: org.ontoware.rdf2go.model.node.Resource instanceResource,
2159: OwlClass value) {
2160: Base.remove(model, instanceResource, SOMEVALUESFROM, value);
2161: }
2162:
2163: /**
2164: * Removes a value of property SomeValuesFrom given as an instance of Class
2165: * @param value the value to be removed
2166: *
2167: * [Generated from RDFReactor template rule #remove4dynamic]
2168: */
2169: public void removeSomeValuesFrom(OwlClass value) {
2170: Base.remove(this .model, this .getResource(), SOMEVALUESFROM,
2171: value);
2172: }
2173:
2174: /**
2175: * Removes all values of property SomeValuesFrom * @param model an RDF2Go model
2176: * @param resource an RDF2Go resource
2177: *
2178: * [Generated from RDFReactor template rule #removeall1static]
2179: */
2180: public static void removeAllSomeValuesFrom(Model model,
2181: org.ontoware.rdf2go.model.node.Resource instanceResource) {
2182: Base.removeAll(model, instanceResource, SOMEVALUESFROM);
2183: }
2184:
2185: /**
2186: * Removes all values of property SomeValuesFrom *
2187: * [Generated from RDFReactor template rule #removeall1dynamic]
2188: */
2189: public void addSomeValuesFrom() {
2190: Base.removeAll(this.model, this.getResource(), SOMEVALUESFROM);
2191: }
2192: }
|