T
- the BasicViewSetup
typepublic class XmlIoBasicViewSetups<T extends BasicViewSetup> extends XmlIoEntityMap<T>
BasicViewSetup
subclass as
an XML section. Each BasicViewSetup
contains a set of
attributes
. All occurring attributes
types are collected. For each attribute type, an <
> section is added as a child, containing
all values of the attribute type that occur.handledTags
Constructor and Description |
---|
XmlIoBasicViewSetups(Class<T> klass) |
Modifier and Type | Method and Description |
---|---|
HashMap<Integer,T> |
fromXml(org.jdom2.Element elem)
Create an object from the given element.
|
org.jdom2.Element |
toXml(Collection<T> setups)
Add the values to a new
XmlIoSingleton.getTag() element (in the iteration order of the collection). |
toXml
getTag, toXml
public org.jdom2.Element toXml(Collection<T> setups) throws SpimDataException
XmlIoEntityMap
XmlIoSingleton.getTag()
element (in the iteration order of the collection).toXml
in class XmlIoEntityMap<T extends BasicViewSetup>
SpimDataException
public HashMap<Integer,T> fromXml(org.jdom2.Element elem) throws SpimDataException
XmlIoSingleton
created
.
Calling this method clears all unhandled content from previous
invocations.fromXml
in class XmlIoEntityMap<T extends BasicViewSetup>
SpimDataException
Copyright © 2015–2021 Fiji. All rights reserved.