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

com.cyc.baseclient.xml.cycml.Function Maven / Gradle / Ivy

Go to download

Query API implementation for requesting and handling answers to arbitrarily complex questions posed to a Cyc server.

There is a newer version: 1.2.2
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2017.07.20 at 01:27:16 PM CDT 
//


package com.cyc.baseclient.xml.cycml;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded">
 *         <element ref="{http://www.opencyc.org/xml/cycML/}number"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}function"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}constant"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}string"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}variable"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}symbol"/>
 *         <element ref="{http://www.opencyc.org/xml/cycML/}sentence"/>
 *       </choice>
 *       <attribute name="reified" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "numberOrFunctionOrConstant" }) @XmlRootElement(name = "function") public class Function { @XmlElementRefs({ @XmlElementRef(name = "variable", namespace = "http://www.opencyc.org/xml/cycML/", type = Variable.class, required = false), @XmlElementRef(name = "number", namespace = "http://www.opencyc.org/xml/cycML/", type = JAXBElement.class, required = false), @XmlElementRef(name = "sentence", namespace = "http://www.opencyc.org/xml/cycML/", type = Sentence.class, required = false), @XmlElementRef(name = "function", namespace = "http://www.opencyc.org/xml/cycML/", type = Function.class, required = false), @XmlElementRef(name = "constant", namespace = "http://www.opencyc.org/xml/cycML/", type = Constant.class, required = false), @XmlElementRef(name = "symbol", namespace = "http://www.opencyc.org/xml/cycML/", type = Symbol.class, required = false), @XmlElementRef(name = "string", namespace = "http://www.opencyc.org/xml/cycML/", type = JAXBElement.class, required = false) }) protected List numberOrFunctionOrConstant; @XmlAttribute(name = "reified", required = true) protected boolean reified; /** * Gets the value of the numberOrFunctionOrConstant property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the numberOrFunctionOrConstant property. * *

* For example, to add a new item, do as follows: *

     *    getNumberOrFunctionOrConstant().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Variable } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link Sentence } * {@link Function } * {@link Constant } * {@link Symbol } * {@link JAXBElement }{@code <}{@link String }{@code >} * * */ public List getNumberOrFunctionOrConstant() { if (numberOrFunctionOrConstant == null) { numberOrFunctionOrConstant = new ArrayList(); } return this.numberOrFunctionOrConstant; } /** * Gets the value of the reified property. * */ public boolean isReified() { return reified; } /** * Sets the value of the reified property. * */ public void setReified(boolean value) { this.reified = value; } }