com.redstarhackers.craftsman.util
Class CapabilityDefinition

java.lang.Object
  extended by com.redstarhackers.craftsman.util.CapabilityDefinition

public class CapabilityDefinition
extends java.lang.Object

TODO Class summary sentence. Class documentation.

Version:
$Revision: 93 $
Author:
$Author: kostya $

Field Summary
static java.lang.String ROOT_CAPABILITY_NAME
           
 
Constructor Summary
CapabilityDefinition()
           
 
Method Summary
 void addOption(OptionDefinition val)
          Add the an option to the options collection.
 java.lang.String getExtends()
          Return the value of the name field.
 java.lang.String getName()
          Return the value of the name field.
 OptionDefinition getOption(java.lang.String name)
           
 java.util.Set getOptionNames()
           
 java.util.Set getOptions()
          Return the value of the options field.
 java.util.Set getRequiredOptionNames()
           
 java.util.Set getTypes()
           
 void initialize()
           
 boolean isExclusive()
           
 boolean isInitialized()
           
 boolean isInstanceOf(java.lang.String type)
           
 void setExclusive(boolean val)
           
 void setExtends(java.lang.String val)
          Set the value of name.
 void setName(java.lang.String val)
          Set the value of name.
 void setOptions(java.util.Set val)
          Set the value of options.
 void setTypes(java.util.Set parents)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROOT_CAPABILITY_NAME

public static final java.lang.String ROOT_CAPABILITY_NAME
See Also:
Constant Field Values
Constructor Detail

CapabilityDefinition

public CapabilityDefinition()
Method Detail

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

getExtends

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

Returns:
the value of name

setExtends

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

Parameters:
val - the new value

isExclusive

public boolean isExclusive()

setExclusive

public void setExclusive(boolean val)

getOptions

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

Returns:
the value of options

setOptions

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

Parameters:
val - the new value

addOption

public void addOption(OptionDefinition val)
Add the an option to the options collection.

Parameters:
val - the new Options to add

getOption

public OptionDefinition getOption(java.lang.String name)

getOptionNames

public java.util.Set getOptionNames()

getRequiredOptionNames

public java.util.Set getRequiredOptionNames()

isInstanceOf

public boolean isInstanceOf(java.lang.String type)

getTypes

public java.util.Set getTypes()

setTypes

public void setTypes(java.util.Set parents)

isInitialized

public boolean isInitialized()

initialize

public void initialize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object