org.enhydra.xml.xmlc.misc
Class SSIDirective

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.misc.SSIDirective

final class SSIDirective
extends Object

A parsed SSI directive.


Inner Class Summary
(package private)  class SSIDirective.Arg
          Class containing an argument name/value pair.
 
Constructor Summary
SSIDirective(String cmd, String systemId)
          Constructor.
 
Method Summary
 void addArg(String name, String value)
          Add an argument.
 String getArgName(int idx)
          Get an argument name.
 String getArgValue(int idx)
          Get an argument value by index.
 String getArgValue(String name)
          Get an argument value by name.
 String getCmd()
          Get the command.
 int getNumArgs()
          Get the number of arguments
 String getSystemId()
          Get the system id for the file that contained this directive.
 String toString()
          Return object contents as a string for debugging.
 void validateArgumentNames(String[] validNames)
          Validate the arguments names are in a list of valid arguments.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSIDirective

public SSIDirective(String cmd,
                    String systemId)
Constructor.
Method Detail

addArg

public void addArg(String name,
                   String value)
Add an argument.

getCmd

public String getCmd()
Get the command.

getSystemId

public String getSystemId()
Get the system id for the file that contained this directive.

getNumArgs

public int getNumArgs()
Get the number of arguments

getArgName

public String getArgName(int idx)
Get an argument name.

getArgValue

public String getArgValue(int idx)
Get an argument value by index.

getArgValue

public String getArgValue(String name)
Get an argument value by name.

validateArgumentNames

public void validateArgumentNames(String[] validNames)
                           throws IOException
Validate the arguments names are in a list of valid arguments.

toString

public String toString()
Return object contents as a string for debugging.
Overrides:
toString in class Object


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.