GXPARSE hosted by SourceForge.net Logo

ca.gorman.xml.parse.util
Class DtdUtilities

java.lang.Object
  extended by ca.gorman.xml.parse.util.DtdUtilities

public class DtdUtilities
extends Object

Utility methods for applications that use DTDs..


Constructor Summary
DtdUtilities()
           
 
Method Summary
static String getPrefixedName(Attribute attribute)
           Get the prefixed name of an attribute.
static String getPrefixedName(Element element)
           Get the prefixed name of an element.
static String getPrefixedName(QName qName)
           Get a prefixed name that corresponds to a QName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DtdUtilities

public DtdUtilities()
Method Detail

getPrefixedName

public static String getPrefixedName(QName qName)

Get a prefixed name that corresponds to a QName.

Warning: Prefixed names may be useful in some applications, but are not generally reliable as identifiers because the same prefix may represent different namespaces at different points within the same document.

Returns:
prefixed name if qName is not null, or null

getPrefixedName

public static String getPrefixedName(Element element)

Get the prefixed name of an element.

Warning: Prefixed names may be useful in some applications, but are not generally reliable as identifiers because the same prefix may represent different namespaces at different points within the same document.

Returns:
prefixed name if element is not null, or null

getPrefixedName

public static String getPrefixedName(Attribute attribute)

Get the prefixed name of an attribute.

Warning: Prefixed names may be useful in some applications, but are not generally reliable as identifiers because the same prefix may represent different namespaces at different points within the same document.

Returns:
prefixed name if attribute is not null, or null

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License