|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cogroo.tools.checker.rules.model.Rule
public class Rule
The error rule
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>
| Nested Class Summary | |
|---|---|
static class |
Rule.Method
Java class for null. |
| Constructor Summary | |
|---|---|
Rule()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rule()
| Method Detail |
|---|
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()
Longpublic void setPriority(Long value)
value - allowed object is
Long
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||