edu.ucla.util
Class FlagProperty

Object
  extended by AbstractEnumProperty
      extended by FlagProperty
All Implemented Interfaces:
EnumProperty
Direct Known Subclasses:
EvidenceAssertedProperty, HiddenProperty, ImpactProperty, InferenceValidProperty, MapProperty, QueryParticipantProperty

public abstract class FlagProperty
extends AbstractEnumProperty

Since:
20030820
Author:
keith cascio

Nested Class Summary
 class FlagProperty.FlagValue
           
 
Field Summary
 FlagProperty.FlagValue FALSE
           
 EnumValue[] myArray
           
 List myList
           
 FlagProperty.FlagValue TRUE
           
 
Constructor Summary
FlagProperty()
           
 
Method Summary
 boolean contains(EnumValue val)
           
 EnumValue forIndex(int index)
           
 EnumValue forString(String str)
           
 FlagProperty.FlagValue getValue(boolean flag)
           
 int indexOf(EnumValue value)
           
 boolean isFlag()
           
 Iterator iterator()
           
 int size()
           
 boolean toBoolean(EnumValue value)
           
 EnumValue valueOf(boolean flag)
           
 EnumValue[] valuesAsArray()
           
 
Methods inherited from class AbstractEnumProperty
isModified, isTransient, isUserEditable, rotate, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface EnumProperty
getDefault, getID, getName
 

Field Detail

TRUE

public final FlagProperty.FlagValue TRUE

FALSE

public final FlagProperty.FlagValue FALSE

myArray

public final EnumValue[] myArray

myList

public final List myList
Constructor Detail

FlagProperty

public FlagProperty()
Method Detail

isFlag

public boolean isFlag()
Specified by:
isFlag in interface EnumProperty
Overrides:
isFlag in class AbstractEnumProperty

contains

public boolean contains(EnumValue val)

forString

public EnumValue forString(String str)

iterator

public Iterator iterator()

valuesAsArray

public EnumValue[] valuesAsArray()

size

public int size()

toBoolean

public boolean toBoolean(EnumValue value)
Specified by:
toBoolean in interface EnumProperty
Overrides:
toBoolean in class AbstractEnumProperty

valueOf

public EnumValue valueOf(boolean flag)

getValue

public FlagProperty.FlagValue getValue(boolean flag)

indexOf

public int indexOf(EnumValue value)
Since:
20050823

forIndex

public EnumValue forIndex(int index)
Since:
20050823


Copyright 2010 UCLA Automated Reasoning Group