DATATYPE - The data type to be converted@NotThreadSafe public final class MicroTypeConverterTreeXML<DATATYPE> extends Object implements IConverterTreeXML<DATATYPE>
IConverterTreeXML that uses the
conversion rules stored in the
MicroTypeConverterRegistry.| Constructor and Description |
|---|
MicroTypeConverterTreeXML(String sElementName,
Class<? extends DATATYPE> aNativeClass)
Constructor
|
MicroTypeConverterTreeXML(String sNamespaceURI,
String sElementName,
Class<? extends DATATYPE> aNativeClass)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendDataValue(IMicroElement eDataElement,
DATATYPE aObject) |
static <DATATYPE> MicroTypeConverterTreeXML<DATATYPE> |
create(String sElementName,
Class<? extends DATATYPE> aNativeClass)
Factory method.
|
static <DATATYPE> MicroTypeConverterTreeXML<DATATYPE> |
create(String sNamespaceURI,
String sElementName,
Class<? extends DATATYPE> aNativeClass)
Factory method
|
DATATYPE |
getAsDataValue(IMicroElement eDataElement) |
String |
getElementName() |
String |
getNamespaceURI() |
Class<? extends DATATYPE> |
getNativeClass() |
public MicroTypeConverterTreeXML(@Nonnull @Nonempty String sElementName, @Nonnull Class<? extends DATATYPE> aNativeClass)
sElementName - The element name to use. May neither be null nor emptyaNativeClass - The data type class - required for reading. May be in an interface
as well.public MicroTypeConverterTreeXML(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sElementName, @Nonnull Class<? extends DATATYPE> aNativeClass)
sNamespaceURI - The namespace URI for the created element. May be null.sElementName - The element name to use. May neither be null nor emptyaNativeClass - The data type class - required for reading. May be in an interface
as well.@Nullable public String getNamespaceURI()
getNamespaceURI in interface IConverterMicroNodeToTreeItem<DATATYPE>getNamespaceURI in interface IConverterTreeItemToMicroNode<DATATYPE>public void appendDataValue(@Nonnull IMicroElement eDataElement, @Nullable DATATYPE aObject)
appendDataValue in interface IConverterTreeItemToMicroNode<DATATYPE>@Nullable public DATATYPE getAsDataValue(@Nonnull IMicroElement eDataElement)
getAsDataValue in interface IConverterMicroNodeToTreeItem<DATATYPE>@Nonnull public static <DATATYPE> MicroTypeConverterTreeXML<DATATYPE> create(@Nonnull @Nonempty String sElementName, @Nonnull Class<? extends DATATYPE> aNativeClass)
DATATYPE - The data type to be convertedsElementName - The element name to use. May neither be null nor emptyaNativeClass - The data type class - required for reading. May be in an interface
as well.null.@Nonnull public static <DATATYPE> MicroTypeConverterTreeXML<DATATYPE> create(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sElementName, @Nonnull Class<? extends DATATYPE> aNativeClass)
DATATYPE - The data type to be convertedsNamespaceURI - The namespace URI for the created element. May be null.sElementName - The element name to use. May neither be null nor emptyaNativeClass - The data type class - required for reading. May be in an interface
as well.null.Copyright © 2014–2016 Philip Helger. All rights reserved.