org.codehaus.cargo.module
Class Dtd

java.lang.Object
  extended by org.codehaus.cargo.module.Dtd
All Implemented Interfaces:
Grammar

public class Dtd
extends Object
implements Grammar

Contains methods for getting information from a dtd.

Version:
$Id: Dtd.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
Dtd(String systemId)
          Contructor.
 
Method Summary
 List getElementOrder(String tagName)
          Returns a List of DescriptorTag that describes the order that elements can appear in a certain element accordingly to the grammar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dtd

public Dtd(String systemId)
Contructor.

Parameters:
systemId - system id of the dtd to parse
Method Detail

getElementOrder

public List getElementOrder(String tagName)
Returns a List of DescriptorTag that describes the order that elements can appear in a certain element accordingly to the grammar.

Specified by:
getElementOrder in interface Grammar
Parameters:
tagName - the tag name to get the element order of.
Returns:
a List of DescriptorTag or null if tagName doesn't exist
See Also:
Grammar.getElementOrder(String)


Copyright © 2004-2012 Codehaus. All Rights Reserved.