|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.server.control.ChangeSet.Change
private abstract static class ChangeSet.Change
| Field Summary | |
|---|---|
protected ChangeSet.See |
see
|
| Constructor Summary | |
|---|---|
ChangeSet.Change(ChangeSet.See see)
Make a new Change. |
|
| Method Summary | |
|---|---|
void |
attachToElement(org.w3c.dom.Element element)
Some changes can not be directly specialized, but need to be directly attached to an element. |
java.util.List<ChangeSet.Change> |
consequences(ServerPlayer serverPlayer)
Are the secondary changes consequent to this Change? |
boolean |
convertsToElement()
Can this Change be directly converted to an Element? |
boolean |
isNotifiable(ServerPlayer serverPlayer)
Should a player be notified of this Change? |
boolean |
isPerhapsNotifiable(ServerPlayer serverPlayer)
Should a player be notified of a Change for which the visibility is delegated to the change type, allowing special change-specific overrides. |
abstract int |
sortPriority()
The sort priority of a change, to be used by the changeComparator. |
abstract org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a Change for a particular player. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChangeSet.See see
| Constructor Detail |
|---|
ChangeSet.Change(ChangeSet.See see)
| Method Detail |
|---|
public abstract int sortPriority()
public boolean isNotifiable(ServerPlayer serverPlayer)
serverPlayer - The ServerPlayer to consider.
Change should be sent.public boolean isPerhapsNotifiable(ServerPlayer serverPlayer)
serverPlayer - The ServerPlayer to consider.
public java.util.List<ChangeSet.Change> consequences(ServerPlayer serverPlayer)
serverPlayer - The ServerPlayer to consider.
Changes or the
empty list if there are none, which is usually the case.public boolean convertsToElement()
public abstract org.w3c.dom.Element toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
serverPlayer - The ServerPlayer to update.doc - The owner Document to build the element in.
Element encapsulating this change.public void attachToElement(org.w3c.dom.Element element)
element - The Element to attach to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||