games.strategy.engine.xml
Class TestAttachment

java.lang.Object
  extended by games.strategy.engine.xml.TestAttachment
All Implemented Interfaces:
IAttachment, java.io.Serializable

public class TestAttachment
extends java.lang.Object
implements IAttachment

Version:
Author:
Sean Bridges
See Also:
Serialized Form

Constructor Summary
TestAttachment()
          Creates new TestAttatchment
 
Method Summary
 Attachable getAttatchedTo()
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 void setAttatchedTo(Attachable unused)
           
 void setData(GameData m_data)
           
 void setName(java.lang.String aString)
           
 void setValue(java.lang.String value)
           
 void validate(GameData data)
          Called after the attatchment is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAttachment

public TestAttachment()
Creates new TestAttatchment

Method Detail

getAttatchedTo

public Attachable getAttatchedTo()
Specified by:
getAttatchedTo in interface IAttachment

setAttatchedTo

public void setAttatchedTo(Attachable unused)
Specified by:
setAttatchedTo in interface IAttachment

getName

public java.lang.String getName()
Specified by:
getName in interface IAttachment

setName

public void setName(java.lang.String aString)
Specified by:
setName in interface IAttachment

setValue

public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

setData

public void setData(GameData m_data)
Specified by:
setData in interface IAttachment

validate

public void validate(GameData data)
Description copied from interface: IAttachment
Called after the attatchment is created. IF an error occurs should throw an exception to halt the parsing

Specified by:
validate in interface IAttachment