org.cogroo.tools.checker.rules.model
Class Suggestion

java.lang.Object
  extended by org.cogroo.tools.checker.rules.model.Suggestion
All Implemented Interfaces:
Serializable

public class Suggestion
extends Object
implements Serializable

Template to suggest a way to correct a grammar mistake

Java class for Suggestion complex type.

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

 <complexType name="Suggestion">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="SuggestionAsString" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="Replace" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="Lexeme" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="TagReference" type="{}TagReference" minOccurs="0"/>
                   <element name="Reference" type="{}Reference" minOccurs="0"/>
                 </sequence>
                 <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="ReplaceMapping" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
                 <attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="Swap" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="a" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
                 <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Nested Class Summary
static class Suggestion.Replace
          Java class for anonymous complex type.
static class Suggestion.ReplaceMapping
          Java class for anonymous complex type.
static class Suggestion.Swap
          Java class for anonymous complex type.
 
Constructor Summary
Suggestion()
           
 
Method Summary
 List<Suggestion.Replace> getReplace()
          Gets the value of the replace property.
 List<Suggestion.ReplaceMapping> getReplaceMapping()
          Gets the value of the replaceMapping property.
 String getSuggestionAsString()
          Gets the value of the suggestionAsString property.
 List<Suggestion.Swap> getSwap()
          Gets the value of the swap property.
 void setSuggestionAsString(String value)
          Sets the value of the suggestionAsString property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Suggestion

public Suggestion()
Method Detail

getSuggestionAsString

public String getSuggestionAsString()
Gets the value of the suggestionAsString property.

Returns:
possible object is String

setSuggestionAsString

public void setSuggestionAsString(String value)
Sets the value of the suggestionAsString property.

Parameters:
value - allowed object is String

getReplace

public List<Suggestion.Replace> getReplace()
Gets the value of the replace 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 replace property.

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

    getReplace().add(newItem);
 

Objects of the following type(s) are allowed in the list Suggestion.Replace


getReplaceMapping

public List<Suggestion.ReplaceMapping> getReplaceMapping()
Gets the value of the replaceMapping 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 replaceMapping property.

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

    getReplaceMapping().add(newItem);
 

Objects of the following type(s) are allowed in the list Suggestion.ReplaceMapping


getSwap

public List<Suggestion.Swap> getSwap()
Gets the value of the swap 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 swap property.

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

    getSwap().add(newItem);
 

Objects of the following type(s) are allowed in the list Suggestion.Swap



Copyright © 2012-2013 CoGrOO. All Rights Reserved.