public class Rule extends Object implements Serializable
Java class for Rule complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Rule">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Method">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="general"/>
<enumeration value="phrase-local"/>
<enumeration value="subject-verb"/>
</restriction>
</simpleType>
</element>
<element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Group" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Message" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="ShortMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Pattern" type="{}Pattern"/>
<element name="Boundaries" type="{}Boundaries"/>
<element name="Suggestion" type="{}Suggestion" maxOccurs="unbounded" minOccurs="0"/>
<element name="Example" type="{}Example" maxOccurs="unbounded"/>
<element name="ModificationHistory" type="{}ModificationHistory" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
<attribute name="active" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="priority" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Rule.Method
Java class for null.
|
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
Boundaries |
getBoundaries()
Gets the value of the boundaries property.
|
List<Example> |
getExample()
Gets the value of the example property.
|
String |
getGroup()
Gets the value of the group property.
|
long |
getId()
Gets the value of the id property.
|
String |
getMessage()
Gets the value of the message property.
|
Rule.Method |
getMethod()
Gets the value of the method property.
|
List<ModificationHistory> |
getModificationHistory()
Gets the value of the modificationHistory property.
|
Pattern |
getPattern()
Gets the value of the pattern property.
|
Long |
getPriority()
Gets the value of the priority property.
|
String |
getShortMessage()
Gets the value of the shortMessage property.
|
List<Suggestion> |
getSuggestion()
Gets the value of the suggestion property.
|
String |
getType()
Gets the value of the type property.
|
boolean |
isActive()
Gets the value of the active property.
|
void |
setActive(boolean value)
Sets the value of the active property.
|
void |
setBoundaries(Boundaries value)
Sets the value of the boundaries property.
|
void |
setGroup(String value)
Sets the value of the group property.
|
void |
setId(long value)
Sets the value of the id property.
|
void |
setMessage(String value)
Sets the value of the message property.
|
void |
setMethod(Rule.Method value)
Sets the value of the method property.
|
void |
setPattern(Pattern value)
Sets the value of the pattern property.
|
void |
setPriority(Long value)
Sets the value of the priority property.
|
void |
setShortMessage(String value)
Sets the value of the shortMessage property.
|
void |
setType(String value)
Sets the value of the type property.
|
public Rule.Method getMethod()
Rule.Methodpublic void setMethod(Rule.Method value)
value - allowed object is
Rule.Methodpublic String getType()
Stringpublic void setType(String value)
value - allowed object is
Stringpublic String getGroup()
Stringpublic void setGroup(String value)
value - allowed object is
Stringpublic String getMessage()
Stringpublic void setMessage(String value)
value - allowed object is
Stringpublic String getShortMessage()
Stringpublic void setShortMessage(String value)
value - allowed object is
Stringpublic Pattern getPattern()
Patternpublic void setPattern(Pattern value)
value - allowed object is
Patternpublic Boundaries getBoundaries()
Boundariespublic void setBoundaries(Boundaries value)
value - allowed object is
Boundariespublic List<Suggestion> getSuggestion()
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 suggestion property.
For example, to add a new item, do as follows:
getSuggestion().add(newItem);
Objects of the following type(s) are allowed in the list
Suggestion
public List<Example> getExample()
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 example property.
For example, to add a new item, do as follows:
getExample().add(newItem);
Objects of the following type(s) are allowed in the list
Example
public List<ModificationHistory> getModificationHistory()
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 modificationHistory property.
For example, to add a new item, do as follows:
getModificationHistory().add(newItem);
Objects of the following type(s) are allowed in the list
ModificationHistory
public long getId()
public void setId(long value)
public boolean isActive()
public void setActive(boolean value)
public Long getPriority()
LongCopyright © 2012–2017 CoGrOO. All rights reserved.