com.redstarhackers.craftsman.typedefs
Class CapabilityType

java.lang.Object
  extended by DataType
      extended by com.redstarhackers.craftsman.typedefs.CapabilityType

public class CapabilityType
extends DataType

TODO Class summary sentence. Class documentation.

Version:
$Revision: 102 $
Author:
$Author: kostya $

Constructor Summary
CapabilityType()
          Default constructor.
 
Method Summary
 void addOption(CapabilityOptionType option)
           
 void addOption(java.lang.String name, java.lang.String value)
           
 boolean containsOption(java.lang.String name)
          Return the option entries for a given name.
 CapabilityOptionType createOption()
           
 java.lang.String getName()
          Return the value of the name field.
 CapabilityOptionType getOption(java.lang.String name)
          Return the option for a given name (not recommended, as there may be multiple values of a given option).
 java.util.List getOptions()
          Return the value of the options field.
 java.util.List getOptions(java.lang.String name)
          Return the option entries for a given name.
 java.lang.String getOptionValue(java.lang.String name)
          Return the values for all the option entries for a given name.
 java.util.Set getOptionValues(java.lang.String name)
          Return the values for all the option entries for a given name.
 java.util.Set getTypes()
           
 void initialize()
           
 boolean isExclusive()
           
 boolean isInstanceOf(java.lang.String type)
           
static void setExclusive(CapabilityType cap, boolean val)
           
 void setName(java.lang.String val)
          Set the value of name.
 void setOptions(java.util.List val)
          Set the value of options.
 void setTypes(java.util.Set parents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityType

public CapabilityType()
Default constructor.

Method Detail

setExclusive

public static void setExclusive(CapabilityType cap,
                                boolean val)

getName

public java.lang.String getName()
Return the value of the name field.

Returns:
the value of name

setName

public void setName(java.lang.String val)
Set the value of name.

Parameters:
val - the new value

getOptions

public java.util.List getOptions()
Return the value of the options field.

Returns:
the value of options

setOptions

public void setOptions(java.util.List val)
Set the value of options.

Parameters:
val - the new value

createOption

public CapabilityOptionType createOption()

addOption

public void addOption(java.lang.String name,
                      java.lang.String value)

addOption

public void addOption(CapabilityOptionType option)

getOption

public CapabilityOptionType getOption(java.lang.String name)
Return the option for a given name (not recommended, as there may be multiple values of a given option).

Returns:
the option

getOptions

public java.util.List getOptions(java.lang.String name)
Return the option entries for a given name.

Returns:
the options that match the name

containsOption

public boolean containsOption(java.lang.String name)
Return the option entries for a given name.

Returns:
the options that match the name

getOptionValues

public java.util.Set getOptionValues(java.lang.String name)
Return the values for all the option entries for a given name.

Returns:
the values of all the options that match the name

getOptionValue

public java.lang.String getOptionValue(java.lang.String name)
Return the values for all the option entries for a given name.

Returns:
the values of all the options that match the name

isInstanceOf

public boolean isInstanceOf(java.lang.String type)

getTypes

public java.util.Set getTypes()

setTypes

public void setTypes(java.util.Set parents)

initialize

public void initialize()

isExclusive

public boolean isExclusive()