ch.javasoft.xml.config
Interface XmlNode

All Known Implementing Classes:
ConstConfigParser.XmlAttribute, ConstConfigParser.XmlElement, FileConfigParser.XmlAttribute, FileConfigParser.XmlElement, StreamConfigParser.XmlAttribute, StreamConfigParser.XmlElement, URLConfigParser.XmlAttribute, URLConfigParser.XmlElement, XmlConfig.XmlAttribute, XmlConfig.XmlElement

public interface XmlNode

Enums or other objects might want to implement this in order to use the methods of XmlUtil, where attributes and elements are specified with objects implementing XmlNode.


Method Summary
 String getXmlName()
          The xml version of an attribute or element name.
 

Method Detail

getXmlName

String getXmlName()
The xml version of an attribute or element name. Constants cannot be java keywords, and special characters are not supported. They are usually encoded with underscores for enum constants. When the xml name is returned, the underscores are replaced by the real characters. Samples:
enum name: name, const_, log_level, sys_prop
xml name: name, const, log-level, sys-prop