Package net.sf.freecol.common.model
Class Modifier
- java.lang.Object
-
- net.sf.freecol.common.model.FreeColObject
-
- net.sf.freecol.common.model.FreeColSpecObject
-
- net.sf.freecol.common.model.Feature
-
- net.sf.freecol.common.model.Modifier
-
- All Implemented Interfaces:
java.lang.Comparable<FreeColObject>,Named,ObjectWithId
public class Modifier extends Feature
TheModifierclass encapsulates a bonus or penalty that can be applied to any action within the game, most obviously combat. The Modifier may be applicable only to certain Objects specified by means ofScopeobjects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModifier.ModifierType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAMPHIBIOUS_ATTACKstatic java.lang.StringARTILLERY_AGAINST_RAIDstatic java.lang.StringARTILLERY_IN_THE_OPENstatic java.util.Comparator<Modifier>ascendingModifierIndexComparatorComparator to sort by ascending modifier index, then type, then source, then FCO order.static java.lang.StringATTACK_BONUSstatic intAUTO_PRODUCTION_INDEXstatic intBASE_COMBAT_INDEXstatic java.lang.StringBIG_MOVEMENT_PENALTYstatic java.lang.StringBOMBARD_BONUSstatic java.lang.StringBREEDING_DIVISORstatic java.lang.StringBREEDING_FACTORstatic java.lang.StringBUILDING_PRICE_BONUSstatic intBUILDING_PRODUCTION_INDEXstatic java.lang.StringCARGO_PENALTYstatic java.lang.StringCOLONY_GOODS_PARTYstatic intCOLONY_PRODUCTION_INDEXstatic java.lang.StringCONSUME_ONLY_SURPLUS_PRODUCTIONstatic java.lang.StringCONVERSION_ALARM_RATEstatic java.lang.StringCONVERSION_SKILLstatic intDEFAULT_MODIFIER_INDEXstatic intDEFAULT_PRODUCTION_INDEXstatic java.lang.StringDEFENCEstatic intDISASTER_PRODUCTION_INDEXstatic intEXPERT_PRODUCTION_INDEXstatic java.lang.StringEXPLORE_LOST_CITY_RUMOURstatic java.lang.StringEXPOSED_TILES_RADIUSstatic intFATHER_PRODUCTION_INDEXstatic java.lang.StringFORTIFIEDstatic intGENERAL_COMBAT_INDEXstatic java.lang.StringIMMIGRATIONstatic intIMPROVEMENT_PRODUCTION_INDEXprivate floatincrementThe value increments per turn.private static java.lang.StringINCREMENT_TAGprivate static java.lang.StringINCREMENT_TYPE_TAGprivate Modifier.ModifierTypeincrementTypeThe type of increment.private static java.lang.StringINDEX_TAGstatic java.lang.StringLAND_PAYMENT_MODIFIERstatic java.lang.StringLIBERTYstatic java.lang.StringLINE_OF_SIGHT_BONUSstatic java.lang.StringMINIMUM_COLONY_SIZEstatic java.lang.StringMISSIONARY_TRADE_BONUSprivate intmodifierIndexA sorting index.private Modifier.ModifierTypemodifierTypeThe type of this Modifier.static java.lang.StringMOVEMENT_BONUSstatic intNATION_PRODUCTION_INDEXstatic java.lang.StringNATIVE_ALARM_MODIFIERstatic java.lang.StringNATIVE_CONVERT_BONUSstatic java.lang.StringOFFENCEstatic java.lang.StringOFFENCE_AGAINSTprivate static java.lang.StringOLD_INCREMENT_TYPE_TAGstatic intPARTY_PRODUCTION_INDEXstatic java.lang.StringPEACE_TREATYstatic java.lang.StringPOPULAR_SUPPORTstatic java.lang.StringRELIGIOUS_UNREST_BONUSstatic intRESOURCE_PRODUCTION_INDEXstatic intROLE_COMBAT_INDEXstatic java.lang.StringSAIL_HIGH_SEASstatic java.lang.StringSHIP_TRADE_PENALTYstatic java.lang.StringSMALL_MOVEMENT_PENALTYstatic java.lang.StringSOLstatic java.lang.StringTAGstatic java.lang.StringTILE_TYPE_CHANGE_PRODUCTIONstatic java.lang.StringTRADE_BONUSstatic java.lang.StringTRADE_VOLUME_PENALTYstatic java.lang.StringTREASURE_TRANSPORT_FEEprivate static java.lang.StringTYPE_TAGstatic intUNIT_ADDITIVE_COMBAT_INDEXstatic intUNIT_NORMAL_COMBAT_INDEXstatic floatUNKNOWNprivate floatvalueThe value of this Modifier.static java.lang.StringWAREHOUSE_STORAGE-
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ARRAY_SIZE_TAG, DEFAULT_CLASS_INDEX, fcoComparator, ID_ATTRIBUTE_TAG, logger, PARTIAL_ATTRIBUTE_TAG, VALUE_TAG
-
-
Constructor Summary
Constructors Constructor Description Modifier(java.lang.String id, float value, Modifier.ModifierType type)Creates a newModifierinstance.Modifier(java.lang.String id, float value, Modifier.ModifierType type, FreeColObject source)Creates a newModifierinstance.Modifier(java.lang.String id, float value, Modifier.ModifierType type, FreeColObject source, int modifierIndex)Creates a newModifierinstance.Modifier(FreeColXMLReader xr, Specification specification)Creates a newModifierinstance.Modifier(Specification specification)Deliberately empty constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatapply(float base, float value)Applies the given value to the given base value, depending on the type of this Modifier.private floatapply(float base, float value, Modifier.ModifierType type)Applies the given value to the given base value, depending on the give modifier Type.floatapplyTo(float number)Applies this Modifier to a number.floatapplyTo(float number, Turn turn)Applies this Modifier to a number.<T extends FreeColObject>
booleancopyIn(T other)Copy another FreeColObject into this one if it is compatible.booleanequals(java.lang.Object o)floatgetIncrement()Get the increment value.Modifier.ModifierTypegetIncrementType()Get the increment type.intgetModifierIndex()Get the modifier index.Modifier.ModifierTypegetType()Get the modifier type.floatgetValue()Get the modifier value.floatgetValue(Turn turn)Get the value the modifier during the given Turn.java.lang.StringgetXMLTagName()Get the serialization tag for this object.inthashCode()booleanhasIncrement()Does this modifier have an increment?static booleanisFloatKnown(float value)Is this a "known" value.booleanisKnown()Does this modifier have a known value? That is, is it not set to the UNKNOWN value.static ModifiermakeModifier(Modifier modifier)Make a copy of a modifier.static ModifiermakeTimedModifier(java.lang.String id, Modifier template, Turn start)Makes a timed modifier (one with start/end turn and increment) with the specified identifier from a template modifier (containing the increment and value) and given start turn.protected voidreadAttributes(FreeColXMLReader xr)Reads the attributes of this object from an XML stream.ModifiersetIncrement(float increment)Set the increment value.ModifiersetIncrement(Modifier.ModifierType incrementType, float increment, Turn firstTurn, Turn lastTurn)Set the whole increment.ModifiersetIncrementType(Modifier.ModifierType incrementType)Set the increment type.ModifiersetModifierIndex(int modifierIndex)Set the modifier index.ModifiersetType(Modifier.ModifierType modifierType)Set the modifier type.ModifiersetValue(float value)Set the modifier value.java.lang.StringtoString()protected voidwriteAttributes(FreeColXMLWriter xw)Write the attributes of this object to a stream.-
Methods inherited from class net.sf.freecol.common.model.Feature
addScope, appliesTo, appliesTo, appliesTo, copyScopes, getDuration, getFirstTurn, getLastTurn, getNameKey, getScopeList, getScopes, getSource, hasScope, hasTimeLimit, isIndependent, isOutOfDate, isTemporary, readChild, readChildren, setDuration, setFirstTurn, setLastTurn, setSource, setTemporary, writeChildren
-
Methods inherited from class net.sf.freecol.common.model.FreeColSpecObject
getSpecification, setSpecification
-
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addAbility, addFeatures, addModifier, addPropertyChangeListener, addPropertyChangeListener, apply, apply, applyModifiers, applyModifiers, arrayKey, compareIds, compareTo, containsAbilityKey, containsModifierKey, copy, copy, copy, copy, copyInCast, dumpObject, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAbilities, getAbilities, getAbilities, getAbilities, getClassIndex, getDefenceModifiers, getDisplayObject, getFeatureContainer, getFreeColObjectClass, getFreeColObjectClassByName, getGame, getId, getIdNumber, getIdType, getIdTypeByName, getModifiers, getModifiers, getModifiers, getModifiers, getObjectClassIndex, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getSortedAbilities, getSortedModifiers, getSuffix, getSuffix, hasAbility, hasAbility, hasAbility, hasListeners, hasModifier, hasModifier, hasModifier, idEquals, invokeMethod, logFreeColObjects, readFromXML, readFromXMLPartial, removeAbilities, removeAbility, removeFeatures, removeModifier, removeModifiers, removePropertyChangeListener, removePropertyChangeListener, save, save, save, save, serialize, serialize, serialize, serialize, setGame, setId, toXML, toXML, toXMLPartial, toXMLPartial
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
ascendingModifierIndexComparator
public static final java.util.Comparator<Modifier> ascendingModifierIndexComparator
Comparator to sort by ascending modifier index, then type, then source, then FCO order.
-
AMPHIBIOUS_ATTACK
public static final java.lang.String AMPHIBIOUS_ATTACK
- See Also:
- Constant Field Values
-
ARTILLERY_AGAINST_RAID
public static final java.lang.String ARTILLERY_AGAINST_RAID
- See Also:
- Constant Field Values
-
ARTILLERY_IN_THE_OPEN
public static final java.lang.String ARTILLERY_IN_THE_OPEN
- See Also:
- Constant Field Values
-
ATTACK_BONUS
public static final java.lang.String ATTACK_BONUS
- See Also:
- Constant Field Values
-
BIG_MOVEMENT_PENALTY
public static final java.lang.String BIG_MOVEMENT_PENALTY
- See Also:
- Constant Field Values
-
BOMBARD_BONUS
public static final java.lang.String BOMBARD_BONUS
- See Also:
- Constant Field Values
-
BREEDING_DIVISOR
public static final java.lang.String BREEDING_DIVISOR
- See Also:
- Constant Field Values
-
BREEDING_FACTOR
public static final java.lang.String BREEDING_FACTOR
- See Also:
- Constant Field Values
-
BUILDING_PRICE_BONUS
public static final java.lang.String BUILDING_PRICE_BONUS
- See Also:
- Constant Field Values
-
CARGO_PENALTY
public static final java.lang.String CARGO_PENALTY
- See Also:
- Constant Field Values
-
COLONY_GOODS_PARTY
public static final java.lang.String COLONY_GOODS_PARTY
- See Also:
- Constant Field Values
-
CONSUME_ONLY_SURPLUS_PRODUCTION
public static final java.lang.String CONSUME_ONLY_SURPLUS_PRODUCTION
- See Also:
- Constant Field Values
-
CONVERSION_ALARM_RATE
public static final java.lang.String CONVERSION_ALARM_RATE
- See Also:
- Constant Field Values
-
CONVERSION_SKILL
public static final java.lang.String CONVERSION_SKILL
- See Also:
- Constant Field Values
-
DEFENCE
public static final java.lang.String DEFENCE
- See Also:
- Constant Field Values
-
EXPLORE_LOST_CITY_RUMOUR
public static final java.lang.String EXPLORE_LOST_CITY_RUMOUR
- See Also:
- Constant Field Values
-
EXPOSED_TILES_RADIUS
public static final java.lang.String EXPOSED_TILES_RADIUS
- See Also:
- Constant Field Values
-
FORTIFIED
public static final java.lang.String FORTIFIED
- See Also:
- Constant Field Values
-
IMMIGRATION
public static final java.lang.String IMMIGRATION
- See Also:
- Constant Field Values
-
LAND_PAYMENT_MODIFIER
public static final java.lang.String LAND_PAYMENT_MODIFIER
- See Also:
- Constant Field Values
-
LIBERTY
public static final java.lang.String LIBERTY
- See Also:
- Constant Field Values
-
LINE_OF_SIGHT_BONUS
public static final java.lang.String LINE_OF_SIGHT_BONUS
- See Also:
- Constant Field Values
-
MINIMUM_COLONY_SIZE
public static final java.lang.String MINIMUM_COLONY_SIZE
- See Also:
- Constant Field Values
-
MISSIONARY_TRADE_BONUS
public static final java.lang.String MISSIONARY_TRADE_BONUS
- See Also:
- Constant Field Values
-
MOVEMENT_BONUS
public static final java.lang.String MOVEMENT_BONUS
- See Also:
- Constant Field Values
-
NATIVE_ALARM_MODIFIER
public static final java.lang.String NATIVE_ALARM_MODIFIER
- See Also:
- Constant Field Values
-
NATIVE_CONVERT_BONUS
public static final java.lang.String NATIVE_CONVERT_BONUS
- See Also:
- Constant Field Values
-
OFFENCE
public static final java.lang.String OFFENCE
- See Also:
- Constant Field Values
-
OFFENCE_AGAINST
public static final java.lang.String OFFENCE_AGAINST
- See Also:
- Constant Field Values
-
PEACE_TREATY
public static final java.lang.String PEACE_TREATY
- See Also:
- Constant Field Values
-
POPULAR_SUPPORT
public static final java.lang.String POPULAR_SUPPORT
- See Also:
- Constant Field Values
-
RELIGIOUS_UNREST_BONUS
public static final java.lang.String RELIGIOUS_UNREST_BONUS
- See Also:
- Constant Field Values
-
SAIL_HIGH_SEAS
public static final java.lang.String SAIL_HIGH_SEAS
- See Also:
- Constant Field Values
-
SHIP_TRADE_PENALTY
public static final java.lang.String SHIP_TRADE_PENALTY
- See Also:
- Constant Field Values
-
SMALL_MOVEMENT_PENALTY
public static final java.lang.String SMALL_MOVEMENT_PENALTY
- See Also:
- Constant Field Values
-
SOL
public static final java.lang.String SOL
- See Also:
- Constant Field Values
-
TILE_TYPE_CHANGE_PRODUCTION
public static final java.lang.String TILE_TYPE_CHANGE_PRODUCTION
- See Also:
- Constant Field Values
-
TRADE_BONUS
public static final java.lang.String TRADE_BONUS
- See Also:
- Constant Field Values
-
TRADE_VOLUME_PENALTY
public static final java.lang.String TRADE_VOLUME_PENALTY
- See Also:
- Constant Field Values
-
TREASURE_TRANSPORT_FEE
public static final java.lang.String TREASURE_TRANSPORT_FEE
- See Also:
- Constant Field Values
-
WAREHOUSE_STORAGE
public static final java.lang.String WAREHOUSE_STORAGE
- See Also:
- Constant Field Values
-
UNKNOWN
public static final float UNKNOWN
- See Also:
- Constant Field Values
-
DEFAULT_MODIFIER_INDEX
public static final int DEFAULT_MODIFIER_INDEX
- See Also:
- Constant Field Values
-
RESOURCE_PRODUCTION_INDEX
public static final int RESOURCE_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
COLONY_PRODUCTION_INDEX
public static final int COLONY_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
EXPERT_PRODUCTION_INDEX
public static final int EXPERT_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
FATHER_PRODUCTION_INDEX
public static final int FATHER_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
IMPROVEMENT_PRODUCTION_INDEX
public static final int IMPROVEMENT_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
AUTO_PRODUCTION_INDEX
public static final int AUTO_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
BUILDING_PRODUCTION_INDEX
public static final int BUILDING_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
NATION_PRODUCTION_INDEX
public static final int NATION_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
PARTY_PRODUCTION_INDEX
public static final int PARTY_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
DISASTER_PRODUCTION_INDEX
public static final int DISASTER_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
DEFAULT_PRODUCTION_INDEX
public static final int DEFAULT_PRODUCTION_INDEX
- See Also:
- Constant Field Values
-
BASE_COMBAT_INDEX
public static final int BASE_COMBAT_INDEX
- See Also:
- Constant Field Values
-
UNIT_ADDITIVE_COMBAT_INDEX
public static final int UNIT_ADDITIVE_COMBAT_INDEX
- See Also:
- Constant Field Values
-
UNIT_NORMAL_COMBAT_INDEX
public static final int UNIT_NORMAL_COMBAT_INDEX
- See Also:
- Constant Field Values
-
ROLE_COMBAT_INDEX
public static final int ROLE_COMBAT_INDEX
- See Also:
- Constant Field Values
-
GENERAL_COMBAT_INDEX
public static final int GENERAL_COMBAT_INDEX
- See Also:
- Constant Field Values
-
modifierType
private Modifier.ModifierType modifierType
The type of this Modifier.
-
value
private float value
The value of this Modifier.
-
increment
private float increment
The value increments per turn. This can be used to create Modifiers whose values increase or decrease over time.
-
incrementType
private Modifier.ModifierType incrementType
The type of increment.
-
modifierIndex
private int modifierIndex
A sorting index.
-
INCREMENT_TAG
private static final java.lang.String INCREMENT_TAG
- See Also:
- Constant Field Values
-
INCREMENT_TYPE_TAG
private static final java.lang.String INCREMENT_TYPE_TAG
- See Also:
- Constant Field Values
-
INDEX_TAG
private static final java.lang.String INDEX_TAG
- See Also:
- Constant Field Values
-
TYPE_TAG
private static final java.lang.String TYPE_TAG
- See Also:
- Constant Field Values
-
OLD_INCREMENT_TYPE_TAG
private static final java.lang.String OLD_INCREMENT_TYPE_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Modifier
public Modifier(Specification specification)
Deliberately empty constructor.- Parameters:
specification- The definingSpecification.
-
Modifier
public Modifier(java.lang.String id, float value, Modifier.ModifierType type, FreeColObject source, int modifierIndex)Creates a newModifierinstance.- Parameters:
id- The object identifier.value- The modifier value.type- The type of the modifier.source- The sourceFreeColObject.modifierIndex- The modifier index.
-
Modifier
public Modifier(java.lang.String id, float value, Modifier.ModifierType type, FreeColObject source)Creates a newModifierinstance.- Parameters:
id- The object identifier.value- The modifier value.type- The type of the modifier.source- The sourceFreeColObject.
-
Modifier
public Modifier(java.lang.String id, float value, Modifier.ModifierType type)Creates a newModifierinstance.- Parameters:
id- The object identifier.value- The modifier value.type- The type of the modifier.
-
Modifier
public Modifier(FreeColXMLReader xr, Specification specification) throws javax.xml.stream.XMLStreamException
Creates a newModifierinstance.- Parameters:
xr- TheFreeColXMLReaderto read from.specification- TheSpecificationto refer to.- Throws:
javax.xml.stream.XMLStreamException- if there is an error reading the stream.
-
-
Method Detail
-
makeModifier
public static Modifier makeModifier(Modifier modifier)
Make a copy of a modifier.- Parameters:
modifier- TheModifierto copy.- Returns:
- A copy of the modifier.
-
makeTimedModifier
public static Modifier makeTimedModifier(java.lang.String id, Modifier template, Turn start)
Makes a timed modifier (one with start/end turn and increment) with the specified identifier from a template modifier (containing the increment and value) and given start turn. Currently the only suitable template is "model.modifier.colonyGoodsParty".- Parameters:
id- The id for the new modifier.template- A templateModifierwith increment.start- The startingTurn.- Returns:
- A new timed modifier.
-
getType
public final Modifier.ModifierType getType()
Get the modifier type.- Returns:
- The
ModifierType.
-
setType
public final Modifier setType(Modifier.ModifierType modifierType)
Set the modifier type.- Parameters:
modifierType- The newModifierTypevalue.- Returns:
- This modifier.
-
isFloatKnown
public static boolean isFloatKnown(float value)
Is this a "known" value.- Parameters:
value- The value to test.- Returns:
- True if the value is known.
-
isKnown
public boolean isKnown()
Does this modifier have a known value? That is, is it not set to the UNKNOWN value.- Returns:
- True if the value is known.
-
getValue
public final float getValue()
Get the modifier value.- Returns:
- The modifier value.
-
getValue
public final float getValue(Turn turn)
Get the value the modifier during the given Turn.- Parameters:
turn- TheTurnto check.- Returns:
- The turn-dependent modifier value.
-
setValue
public final Modifier setValue(float value)
Set the modifier value.- Parameters:
value- The new value.- Returns:
- This modifier.
-
hasIncrement
public final boolean hasIncrement()
Does this modifier have an increment?- Returns:
- True if this modifier has an increment.
-
getIncrementType
public final Modifier.ModifierType getIncrementType()
Get the increment type.- Returns:
- The increment
ModifierType.
-
setIncrementType
public final Modifier setIncrementType(Modifier.ModifierType incrementType)
Set the increment type.- Parameters:
incrementType- The new incrementModifierType.- Returns:
- This modifier.
-
getIncrement
public final float getIncrement()
Get the increment value.- Returns:
- The increment value.
-
setIncrement
public final Modifier setIncrement(float increment)
Set the increment value.- Parameters:
increment- The new value.- Returns:
- This modifier.
-
setIncrement
public final Modifier setIncrement(Modifier.ModifierType incrementType, float increment, Turn firstTurn, Turn lastTurn)
Set the whole increment.- Parameters:
incrementType- The newModifierType.increment- The new increment value.firstTurn- The firstTurnthe increment is active.lastTurn- The lastTurnthe increment is active.- Returns:
- This modifier.
-
getModifierIndex
public final int getModifierIndex()
Get the modifier index.- Returns:
- The modifier index.
-
setModifierIndex
public final Modifier setModifierIndex(int modifierIndex)
Set the modifier index.- Parameters:
modifierIndex- The new modifier index value.- Returns:
- This modifier.
-
apply
public float apply(float base, float value)Applies the given value to the given base value, depending on the type of this Modifier.- Parameters:
base- afloatvaluevalue- afloatvalue- Returns:
- a
floatvalue
-
apply
private float apply(float base, float value, Modifier.ModifierType type)Applies the given value to the given base value, depending on the give modifier Type.- Parameters:
base- The base value.value- The modifier value.type- TheModifierType.- Returns:
- The result of applying the value to the base.
-
applyTo
public float applyTo(float number)
Applies this Modifier to a number. This method does not take scopes, increments or time limits into account.- Parameters:
number- afloatvalue- Returns:
- a
floatvalue
-
applyTo
public float applyTo(float number, Turn turn)Applies this Modifier to a number. This method does take increments into account.- Parameters:
number- The number to modify.turn- TheTurnto evaluate increments in.- Returns:
- The modified number.
-
copyIn
public <T extends FreeColObject> boolean copyIn(T other)
Copy another FreeColObject into this one if it is compatible.
-
writeAttributes
protected void writeAttributes(FreeColXMLWriter xw) throws javax.xml.stream.XMLStreamException
Write the attributes of this object to a stream. To be overridden if required by any object that has attributes and uses the toXML(FreeColXMLWriter, String) call.- Overrides:
writeAttributesin classFeature- Parameters:
xw- TheFreeColXMLWriterto write to.- Throws:
javax.xml.stream.XMLStreamException- if there are any problems writing to the stream.
-
readAttributes
protected void readAttributes(FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException
Reads the attributes of this object from an XML stream.- Overrides:
readAttributesin classFeature- Parameters:
xr- TheFreeColXMLReaderto read from.- Throws:
javax.xml.stream.XMLStreamException- if there is a problem reading the stream.
-
getXMLTagName
public java.lang.String getXMLTagName()
Get the serialization tag for this object.- Specified by:
getXMLTagNamein classFreeColObject- Returns:
- The tag.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classFreeColObject
-
-