|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.Scope
public class Scope
The Scope class determines whether a given
FreeColGameObjectType fulfills certain requirements.
| Field Summary | |
|---|---|
private java.lang.String |
abilityID
The ID of an Ability. |
private boolean |
abilityValue
The value of an Ability. |
private boolean |
matchesNull
True if the scope applies to a null object. |
private boolean |
matchNegated
Whether the match is negated. |
private java.lang.String |
methodName
The name of an Method. |
private java.lang.String |
methodValue
The String representation of the value of an
Method. |
private java.lang.String |
type
The ID of a FreeColGameObjectType, or Option. |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, logger, NO_ID, PARTIAL_ATTRIBUTE, UNDEFINED, VALUE_TAG |
| Constructor Summary | |
|---|---|
Scope()
Creates a new Scope instance. |
|
Scope(javax.xml.stream.XMLStreamReader in)
Creates a new Scope instance. |
|
| Method Summary | |
|---|---|
boolean |
appliesTo(FreeColObject object)
Describe appliesTo method here. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAbilityID()
Get the AbilityID value. |
java.lang.String |
getMethodName()
Get the MethodName value. |
java.lang.String |
getMethodValue()
Get the MethodValue value. |
java.lang.String |
getType()
Get the Type value. |
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
int |
hashCode()
|
boolean |
isAbilityValue()
Get the AbilityValue value. |
boolean |
isMatchesNull()
Get the MatchesNull value. |
boolean |
isMatchNegated()
Get the MatchNegated value. |
protected void |
readAttributes(javax.xml.stream.XMLStreamReader in)
Reads the attributes of this object from an XML stream. |
void |
setAbilityID(java.lang.String newAbilityID)
Set the AbilityID value. |
void |
setAbilityValue(boolean newAbilityValue)
Set the AbilityValue value. |
void |
setMatchesNull(boolean newMatchesNull)
Set the MatchesNull value. |
void |
setMatchNegated(boolean newMatchNegated)
Set the MatchNegated value. |
void |
setMethodName(java.lang.String newMethodName)
Set the MethodName value. |
void |
setMethodValue(java.lang.String newMethodValue)
Set the MethodValue value. |
void |
setType(java.lang.String newType)
Set the Type value. |
void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
protected void |
writeAttributes(javax.xml.stream.XMLStreamWriter out)
Write the attributes of this object to a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String type
FreeColGameObjectType, or Option.
private java.lang.String abilityID
Ability.
private boolean abilityValue
Ability.
private java.lang.String methodName
Method.
private java.lang.String methodValue
String representation of the value of an
Method.
private boolean matchesNull
private boolean matchNegated
| Constructor Detail |
|---|
public Scope()
Scope instance.
public Scope(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
Scope instance.
in - a XMLStreamReader value
javax.xml.stream.XMLStreamException - if an error occurs| Method Detail |
|---|
public boolean isMatchesNull()
MatchesNull value.
boolean valuepublic void setMatchesNull(boolean newMatchesNull)
MatchesNull value.
newMatchesNull - The new MatchesNull value.public boolean isMatchNegated()
MatchNegated value.
boolean valuepublic void setMatchNegated(boolean newMatchNegated)
MatchNegated value.
newMatchNegated - The new MatchNegated value.public java.lang.String getType()
Type value.
String valuepublic void setType(java.lang.String newType)
Type value.
newType - The new Type value.public java.lang.String getAbilityID()
AbilityID value.
String valuepublic void setAbilityID(java.lang.String newAbilityID)
AbilityID value.
newAbilityID - The new AbilityID value.public boolean isAbilityValue()
AbilityValue value.
boolean valuepublic void setAbilityValue(boolean newAbilityValue)
AbilityValue value.
newAbilityValue - The new AbilityValue value.public java.lang.String getMethodName()
MethodName value.
String valuepublic void setMethodName(java.lang.String newMethodName)
MethodName value.
newMethodName - The new MethodName value.public java.lang.String getMethodValue()
MethodValue value.
String valuepublic void setMethodValue(java.lang.String newMethodValue)
MethodValue value.
newMethodValue - The new MethodValue value.public boolean appliesTo(FreeColObject object)
appliesTo method here.
object - a FreeColGameObjectType value
boolean valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
public void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
toXMLImpl in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void writeAttributes(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
writeAttributes in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void readAttributes(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColObjectin - The XML input stream.
javax.xml.stream.XMLStreamException - if a problem was encountered
during parsing.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||