Class PolynomialType


  • public class PolynomialType
    extends Object
    A polynomial expression. For example: 3 + 2x

    Java class for PolynomialType complex type.

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

     <complexType name="PolynomialType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="Term" maxOccurs="unbounded">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <attribute name="coefficient" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
                     <attribute name="exponent" use="required" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • PolynomialType

        public PolynomialType()
    • Method Detail

      • getTerm

        public List<PolynomialType.Term> getTerm()
        Gets the value of the term 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 Jakarta XML Binding object. This is why there is not a set method for the term property.

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

            getTerm().add(newItem);
         

        Objects of the following type(s) are allowed in the list PolynomialType.Term