|
||||||||||
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 final class Scope
The Scope
class determines whether a given
FreeColGameObjectType
fulfills certain requirements.
Field Summary |
---|
Fields inherited from class net.sf.freecol.common.model.FreeColObject |
---|
ID_ATTRIBUTE_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()
|
int |
hashCode()
|
boolean |
isAbilityValue()
Get the AbilityValue value. |
boolean |
isMatchesNull()
Get the MatchesNull value. |
boolean |
isMatchNegated()
Get the MatchNegated value. |
void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
Initialize this object from an XML-representation of this object. |
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
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 occursMethod 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.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void readFromXMLImpl(javax.xml.stream.XMLStreamReader in) throws javax.xml.stream.XMLStreamException
in
- The input stream with the XML.
javax.xml.stream.XMLStreamException
- if a problem was encountered
during parsing.public void toXMLImpl(javax.xml.stream.XMLStreamWriter out) throws javax.xml.stream.XMLStreamException
out
- The target stream.
javax.xml.stream.XMLStreamException
- if there are any problems writing
to the stream.public static java.lang.String getXMLElementTagName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |