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

fr.inria.edelweiss.rif.xml.schema.Then Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.08.24 at 10:15:40 AM CEST 
//


package fr.inria.edelweiss.rif.xml.schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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>
 *         <group ref="{http://www.w3.org/2007/rif#}ATOMIC"/>
 *         <element name="And" type="{http://www.w3.org/2007/rif#}And-then.type"/>
 *       </choice>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "atom", "equal", "member", "subclass", "frame", "and" }) @XmlRootElement(name = "then") public class Then { @XmlElement(name = "Atom") protected Atom atom; @XmlElement(name = "Equal") protected Equal equal; @XmlElement(name = "Member") protected Member member; @XmlElement(name = "Subclass") protected Subclass subclass; @XmlElement(name = "Frame") protected Frame frame; @XmlElement(name = "And") protected AndThenType and; /** * Gets the value of the atom property. * * @return * possible object is * {@link Atom } * */ public Atom getAtom() { return atom; } /** * Sets the value of the atom property. * * @param value * allowed object is * {@link Atom } * */ public void setAtom(Atom value) { this.atom = value; } /** * Gets the value of the equal property. * * @return * possible object is * {@link Equal } * */ public Equal getEqual() { return equal; } /** * Sets the value of the equal property. * * @param value * allowed object is * {@link Equal } * */ public void setEqual(Equal value) { this.equal = value; } /** * Gets the value of the member property. * * @return * possible object is * {@link Member } * */ public Member getMember() { return member; } /** * Sets the value of the member property. * * @param value * allowed object is * {@link Member } * */ public void setMember(Member value) { this.member = value; } /** * Gets the value of the subclass property. * * @return * possible object is * {@link Subclass } * */ public Subclass getSubclass() { return subclass; } /** * Sets the value of the subclass property. * * @param value * allowed object is * {@link Subclass } * */ public void setSubclass(Subclass value) { this.subclass = value; } /** * Gets the value of the frame property. * * @return * possible object is * {@link Frame } * */ public Frame getFrame() { return frame; } /** * Sets the value of the frame property. * * @param value * allowed object is * {@link Frame } * */ public void setFrame(Frame value) { this.frame = value; } /** * Gets the value of the and property. * * @return * possible object is * {@link AndThenType } * */ public AndThenType getAnd() { return and; } /** * Sets the value of the and property. * * @param value * allowed object is * {@link AndThenType } * */ public void setAnd(AndThenType value) { this.and = value; } public fr.inria.edelweiss.rif.api.IConclusion XML2AST() { if(this.and != null) { return this.and.XML2AST() ; } else { if(this.atom != null) { // ATOMIC is an Atom return null ; // TODO } else if(this.equal != null) { // ATOMIC is a "=" binary operator return this.equal.XML2AST() ; } else if(this.member != null) { // ATOMIC is a "#" binary operator return this.member.XML2AST() ; } else if(this.subclass != null) { // ATOMIC is a "##" binary operator return this.subclass.XML2AST() ; } else if(this.frame != null) { // ATOMIC is a Frame return this.frame.XML2AST() ; } return null ; // Something is wrong if we get there. Likely the XML doesn't validate against XSD. } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy