| java.lang.Object org.mmbase.datatypes.util.xml.DataTypeXml
DataTypeXml | abstract public class DataTypeXml (Code) | | Static methods used for parsing of datatypes.xml
author: Michiel Meeuwissen version: $Id: DataTypeXml.java,v 1.12 2007/11/01 09:44:37 michiel Exp $ since: MMBase-1.8 |
getAttribute | protected static String getAttribute(Element element, String localName)(Code) | | Returns the value of a certain attribute, either an unqualified attribute or an attribute that fits in the
default namespace
|
getBooleanValue | public static boolean getBooleanValue(Element element, boolean defaultValue)(Code) | | |
getLocalizedDescription | public static LocalizedString getLocalizedDescription(String tagName, Element element, LocalizedString descriptions, String defaultKey)(Code) | | Reads a number of tags with 'xml:lang' attributes.
Parameters: tagName - Wich tags to read. The bodies are the values. Parameters: element - From which element this tags must be childs. Parameters: descriptions - Existing LocalizedString instance or null if a new one must be created. Parameters: defaultKey - If the localized string was created with some silly automatic key, it can be provided here, inwhich case it will be changed if a tag withouth xml:lang is found, or with xml:lang equals the current default.It can also be null A new LocalizedString or the updated 'descriptions' parameter if that was not null |
getLongValue | public static long getLongValue(Element element)(Code) | | |
hasAttribute | public static boolean hasAttribute(Element element, String localName)(Code) | | Returns whether an element has a certain attribute, either an unqualified attribute or an attribute that fits in the
default namespace
|
|
|