ProgramixGenericLib v5.0.1

com.programix.saxplus
Interface NameDetail


public interface NameDetail

Stores all of the detail about the name of a element or the name of an attribute. The addition of "namespaces" to XML was very useful in certain scenarios, but it sure complicates basic parsing. An instance of [a class that implements] NameDetail holds all of the "local name" "qualified name" and "namespace URI" information available. Very often, only the plain old name is needed, and this is what getName() returns.

Author:
Paul Hyde

Method Summary
 String getLocalName()
          Returns the "local name" as reported by SAX parser.
 String getName()
          Returns a simple name which is usually the "correct" tag or attribute name.
 NameDetail getParent()
          Returns the NameDetail for the containing tag.
 String getQName()
          Returns the "qualified name" as reported by SAX parser.
 String getURI()
          Returns the "namespace URI" as reported by the SAX parser.
 

Method Detail

getName

String getName()
Returns a simple name which is usually the "correct" tag or attribute name. If getLocalName() returns a string that is not empty, then this "local name" is used, otherwise the value returned from getQName() is used.


getLocalName

String getLocalName()
Returns the "local name" as reported by SAX parser.


getQName

String getQName()
Returns the "qualified name" as reported by SAX parser.


getURI

String getURI()
Returns the "namespace URI" as reported by the SAX parser.


getParent

NameDetail getParent()
Returns the NameDetail for the containing tag. If this NameDetail is an attribute, then the element name that this attribute belongs to is returned. If this NameDetail is an element, then its containing element name is returned. If this is the root tag, then null is returned.


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.