org.limitless.nmc.Prototype1
Class CommandRule

java.lang.Object
  extended by org.limitless.nmc.Prototype1.CommandRule
All Implemented Interfaces:
Command, StorageVisitor

public class CommandRule
extends java.lang.Object
implements Command, StorageVisitor

A Rule describes a pattern a relation promises to meet. This command allows us to add, remove, and list rules. See 5.1.2.16 in the Prototype1 HTML.

Version:
1.0
Author:
Brian Jones

Constructor Summary
CommandRule()
           
 
Method Summary
 java.lang.String[] getHelpDetailed()
          Give the long help information.
 java.lang.String getHelpSummary()
          Get the single-line help detail
 void invoke(java.lang.String[] args)
          Process the command
 boolean isHandlingRelation()
          Return true if you wish to handle Relation objects
 boolean isHandlingRelationRule()
          Return true if you wish to handle relation rules
 boolean isHandlingRole()
          Return TRUE if you want to be given VRRole objects.
 boolean isHandlingVRObject()
          return true if you wish to handle VR objects.,
 void visit(RelationObject r)
          process the relation
 void visit(RelationRule r)
          process relation rule
 void visit(VRObject o)
          Process VR Object
 void visit(VRRole r)
          process Role
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandRule

public CommandRule()
Method Detail

isHandlingRole

public boolean isHandlingRole()
Return TRUE if you want to be given VRRole objects.

Specified by:
isHandlingRole in interface StorageVisitor

isHandlingRelationRule

public boolean isHandlingRelationRule()
Return true if you wish to handle relation rules

Specified by:
isHandlingRelationRule in interface StorageVisitor

isHandlingRelation

public boolean isHandlingRelation()
Return true if you wish to handle Relation objects

Specified by:
isHandlingRelation in interface StorageVisitor

isHandlingVRObject

public boolean isHandlingVRObject()
return true if you wish to handle VR objects.,

Specified by:
isHandlingVRObject in interface StorageVisitor

visit

public void visit(VRObject o)
Process VR Object

Specified by:
visit in interface StorageVisitor
Parameters:
o -

visit

public void visit(VRRole r)
process Role

Specified by:
visit in interface StorageVisitor
Parameters:
r -

visit

public void visit(RelationObject r)
process the relation

Specified by:
visit in interface StorageVisitor
Parameters:
r -

visit

public void visit(RelationRule r)
process relation rule

Specified by:
visit in interface StorageVisitor
Parameters:
r -

getHelpDetailed

public java.lang.String[] getHelpDetailed()
Description copied from interface: Command
Give the long help information.

Specified by:
getHelpDetailed in interface Command

getHelpSummary

public java.lang.String getHelpSummary()
Description copied from interface: Command
Get the single-line help detail

Specified by:
getHelpSummary in interface Command

invoke

public void invoke(java.lang.String[] args)
Description copied from interface: Command
Process the command

Specified by:
invoke in interface Command


Copyright © 1995, 2004 Limitless Knowledge Association, All Rights Reserved.