sam.rules
Class Syntax.Resource

java.lang.Object
  |
  +--sam.rules.Syntax
        |
        +--sam.rules.Syntax.Resource
Enclosing class:
Syntax

protected abstract static class Syntax.Resource
extends Syntax

Class for specifications of pure resources that are not user-selectable


Nested Class Summary
 
Nested classes inherited from class sam.rules.Syntax
Syntax.Resource
 
Field Summary
 
Fields inherited from class sam.rules.Syntax
description, name, NON_SELECTABLE_TYPE
 
Constructor Summary
protected Syntax.Resource(java.lang.String name)
           
 
Method Summary
protected  void doParse(java.lang.String argument)
          Really parses a command-line supplied switch
protected abstract  void doSaveTo(java.util.jar.JarOutputStream output)
           
protected abstract  void doSetTo(sam.rules.ModusOperandi modusOperandi)
           
 java.lang.String example()
          Builds an example for this single Syntax element
 sam.rules.Rule getRule()
          Gets the Rule specified by this RuleSpecification.
abstract  void load(java.util.zip.ZipFile archive)
          Loads a Rule from specified archive
 
Methods inherited from class sam.rules.Syntax
parse, parseInteger, recognizesSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Syntax.Resource

protected Syntax.Resource(java.lang.String name)
Method Detail

load

public abstract void load(java.util.zip.ZipFile archive)
Description copied from class: Syntax
Loads a Rule from specified archive

Specified by:
load in class Syntax

doSetTo

protected abstract void doSetTo(sam.rules.ModusOperandi modusOperandi)

doSaveTo

protected abstract void doSaveTo(java.util.jar.JarOutputStream output)

example

public final java.lang.String example()
Description copied from class: Syntax
Builds an example for this single Syntax element

Specified by:
example in class Syntax

doParse

protected final void doParse(java.lang.String argument)
Description copied from class: Syntax
Really parses a command-line supplied switch

Specified by:
doParse in class Syntax

getRule

public final sam.rules.Rule getRule()
Description copied from class: Syntax
Gets the Rule specified by this RuleSpecification. This might require prompting the user for a correct specification through the current RulingInterface

Specified by:
getRule in class Syntax