org.limitless.nmc.Prototype1
Class CommandQuery

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

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

This is a mechanism to list all relations (and the objects they connect) based on query conditions. The complexity of this query will increase as we learn more what sorts of things we'd like to know. This is highly subject to change! See 5.1.2.7 in the prototype_1.html document.

Version:
1.0
Author:
Brian Jones

Constructor Summary
CommandQuery()
           
 
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

CommandQuery

public CommandQuery()
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.