dk.brics.relaxng.converter
Class RNGParser

java.lang.Object
  extended by dk.brics.relaxng.converter.RNGParser

public class RNGParser
extends Object

Parser for RELAX NG.

The origin of a pattern is determined as for XElement.getOrigin(Element).


Constructor Summary
RNGParser()
          Constructs a new parser.
 
Method Summary
 Map<String,String> getTopLevelNewNames()
          Returns map from old top-level names to new names from the last invocation of parse.
 Grammar parse(Document d, URL base)
          Parses schema from XML representation.
 Grammar parse(InputStream in, URL base)
          Parses schema from input stream.
 Grammar parse(URL url)
          Parses schema from URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RNGParser

public RNGParser()
Constructs a new parser.

Method Detail

getTopLevelNewNames

public Map<String,String> getTopLevelNewNames()
Returns map from old top-level names to new names from the last invocation of parse.

Returns:
map

parse

public Grammar parse(Document d,
                     URL base)
              throws ParseException
Parses schema from XML representation.

Parameters:
d - document (JDOM representation)
base - base URL
Returns:
schema
Throws:
ParseException - if error occurs during parsing

parse

public Grammar parse(InputStream in,
                     URL base)
              throws ParseException
Parses schema from input stream.

Parameters:
in - input stream
base - base URL
Returns:
schema
Throws:
ParseException - if error occurs during parsing

parse

public Grammar parse(URL url)
              throws ParseException
Parses schema from URL.

Parameters:
url - URL
Returns:
schema
Throws:
ParseException - if error occurs during parsing


Copyright © 2005-2010 Anders Møller.