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