Atavism Version 2018.1AGIS API

atavism.server.objects
Class BinaryState

java.lang.Object
  extended by atavism.server.objects.ObjState
      extended by atavism.server.objects.BinaryState
All Implemented Interfaces:
java.io.Serializable

public class BinaryState
extends ObjState

represents an object state that has two values. this is compatible the java beans xml serialization

See Also:
Serialized Form

Constructor Summary
BinaryState()
           
BinaryState(java.lang.String stateName, java.lang.Boolean value)
          stateName is the same name which is used to serialize to the client.
 
Method Summary
 java.lang.Integer getIntValue()
           
 java.lang.String getStateName()
           
 java.lang.Boolean getValue()
           
 java.lang.Boolean isSet()
           
 void setStateName(java.lang.String name)
           
 void setValue(java.lang.Boolean val)
           
 
Methods inherited from class atavism.server.objects.ObjState
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryState

public BinaryState()

BinaryState

public BinaryState(java.lang.String stateName,
                   java.lang.Boolean value)
stateName is the same name which is used to serialize to the client. it SHOULD also be used to set the state in AOObject. it would be good to make a static string variable to refer to this string.

Method Detail

getIntValue

public java.lang.Integer getIntValue()
Specified by:
getIntValue in class ObjState

getStateName

public java.lang.String getStateName()
Specified by:
getStateName in class ObjState

setStateName

public void setStateName(java.lang.String name)

getValue

public java.lang.Boolean getValue()

setValue

public void setValue(java.lang.Boolean val)

isSet

public java.lang.Boolean isSet()


Copyright © 2018 Dragonsan Studios Sp. z o.o.