T
- the NamedEntity
typepublic class XmlIoNamedEntity<T extends NamedEntity> extends XmlIoEntity<T>
XmlIoEntity
for NamedEntity
that also handles <>handledTags
Constructor and Description |
---|
XmlIoNamedEntity(String tag,
Class<T> klass) |
Modifier and Type | Method and Description |
---|---|
T |
fromXml(org.jdom2.Element elem)
Create an object from the given element.
|
org.jdom2.Element |
toXml(T entity)
Create an XML element from the given object.
|
getEntityClass, getTag
public org.jdom2.Element toXml(T entity)
XmlIoEntity
toXml
in class XmlIoEntity<T extends NamedEntity>
public T fromXml(org.jdom2.Element elem) throws SpimDataException
XmlIoEntity
id
and added to any XML element created
for that
id.fromXml
in class XmlIoEntity<T extends NamedEntity>
SpimDataException
Copyright © 2015–2021 Fiji. All rights reserved.