org.enhydra.xml.xmlc.commands.options
Class OptionsParser

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.commands.options.OptionsParser

public class OptionsParser
extends Object

Parse XMLC options, including options files.


Constructor Summary
OptionsParser(OptionSet options, ErrorReporter errorReporter)
          Constructor.
 
Method Summary
 MetaData getMetaData()
          Get the metadata object, create if it doesn't exists.
 OptionSet getOptions()
          Get the parsed options.
 String[] getPositionalArgs()
          Get the positional arguments.
 void parse(String[] args)
          Parse options.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsParser

public OptionsParser(OptionSet options,
                     ErrorReporter errorReporter)
Constructor.
Parameters:
optionsSet - The set of options to parse, all value are stored in this object.
errorReporter - Use to reporrt metadata parse errors.
Method Detail

parse

public void parse(String[] args)
           throws XMLCException
Parse options.
Parameters:
args - The arguments.

getOptions

public OptionSet getOptions()
Get the parsed options.

getMetaData

public MetaData getMetaData()
Get the metadata object, create if it doesn't exists.

getPositionalArgs

public String[] getPositionalArgs()
Get the positional arguments. Options files (.xmlc) will have been removed.


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