org.enhydra.xml.xmlc.misc
Class SSIDirective

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

final class SSIDirective
extends java.lang.Object

A parsed SSI directive.


Nested Class Summary
(package private)  class SSIDirective.Arg
          Class containing an argument name/value pair.
 
Constructor Summary
SSIDirective(java.lang.String cmd, java.lang.String systemId)
          Constructor.
 
Method Summary
 void addArg(java.lang.String name, java.lang.String value)
          Add an argument.
 java.lang.String getArgName(int idx)
          Get an argument name.
 java.lang.String getArgValue(int idx)
          Get an argument value by index.
 java.lang.String getArgValue(java.lang.String name)
          Get an argument value by name.
 java.lang.String getCmd()
          Get the command.
 int getNumArgs()
          Get the number of arguments
 java.lang.String getSystemId()
          Get the system id for the file that contained this directive.
 java.lang.String toString()
          Return object contents as a string for debugging.
 void validateArgumentNames(java.lang.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(java.lang.String cmd,
                    java.lang.String systemId)
Constructor.

Method Detail

addArg

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


getCmd

public java.lang.String getCmd()
Get the command.


getSystemId

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


getNumArgs

public int getNumArgs()
Get the number of arguments


getArgName

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


getArgValue

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


getArgValue

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


validateArgumentNames

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

java.io.IOException

toString

public java.lang.String toString()
Return object contents as a string for debugging.

Overrides:
toString in class java.lang.Object


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