|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.datatypes.util.xml.DataTypeXml
Static methods used for parsing of datatypes.xml
| Constructor Summary | |
DataTypeXml()
|
|
| Method Summary | |
static CommitProcessor |
chainProcessors(CommitProcessor processor1,
CommitProcessor processor2)
|
static Processor |
chainProcessors(Processor processor1,
Processor processor2)
|
static CommitProcessor |
createCommitProcessor(Element processorElement)
|
static Processor |
createProcessor(Element processorElement)
|
protected static String |
getAttribute(Element element,
String localName)
Returns the value of a certain attribute, either an unqualified attribute or an attribute that fits in the default namespace |
static boolean |
getBooleanValue(Element element,
boolean defaultValue)
|
static LocalizedString |
getLocalizedDescription(String tagName,
Element element,
LocalizedString descriptions,
String defaultKey)
Reads a number of tags with 'xml:lang' attributes. |
static long |
getLongValue(Element element)
|
static String |
getValue(Element element)
|
static boolean |
hasAttribute(Element element,
String localName)
Returns whether an element has a certain attribute, either an unqualified attribute or an attribute that fits in the default namespace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataTypeXml()
| Method Detail |
public static boolean hasAttribute(Element element,
String localName)
protected static String getAttribute(Element element,
String localName)
public static LocalizedString getLocalizedDescription(String tagName,
Element element,
LocalizedString descriptions,
String defaultKey)
tagName - Wich tags to read. The bodies are the values.element - From which element this tags must be childs.descriptions - Existing LocalizedString instance or null if a new one must be created.defaultKey - If the localized string was created with some silly automatic key, it can be provided here, in
which 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
null
public static boolean getBooleanValue(Element element,
boolean defaultValue)
public static Processor chainProcessors(Processor processor1,
Processor processor2)
public static CommitProcessor chainProcessors(CommitProcessor processor1,
CommitProcessor processor2)
public static Processor createProcessor(Element processorElement)
public static CommitProcessor createCommitProcessor(Element processorElement)
public static String getValue(Element element)
public static long getLongValue(Element element)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||