public class XmlIoTimePoints extends XmlIoSingleton<TimePoints>
handledTags
Constructor and Description |
---|
XmlIoTimePoints() |
Modifier and Type | Method and Description |
---|---|
TimePoints |
fromXml(org.jdom2.Element elem)
Create an object from the given element.
|
protected void |
fromXmlList(TimePoints timepoints,
org.jdom2.Element elem)
Create
TimePointsPattern from <
> element of type |
protected TimePointsPattern |
fromXmlPattern(org.jdom2.Element elem)
Create
TimePointsPattern from <
> element of type |
protected void |
fromXmlRange(TimePoints timepoints,
org.jdom2.Element elem)
Create
TimePointsPattern from <
> element of type |
org.jdom2.Element |
toXml(TimePoints timepoints) |
protected void |
toXmlList(TimePoints timepoints,
org.jdom2.Element elem)
Save
TimePoints as a list of TimePoint . |
protected void |
toXmlPattern(TimePointsPattern timepoints,
org.jdom2.Element elem)
Save
TimePointsPattern . |
protected boolean |
toXmlTryRange(TimePoints timepoints,
org.jdom2.Element elem)
Try to save a
TimePoints list as a range. |
getTag, toXml
public org.jdom2.Element toXml(TimePoints timepoints)
public TimePoints fromXml(org.jdom2.Element elem) throws SpimDataException
XmlIoSingleton
created
.
Calling this method clears all unhandled content from previous
invocations.fromXml
in class XmlIoSingleton<TimePoints>
SpimDataException
protected void toXmlPattern(TimePointsPattern timepoints, org.jdom2.Element elem)
TimePointsPattern
.protected TimePointsPattern fromXmlPattern(org.jdom2.Element elem) throws SpimDataIOException
TimePointsPattern
from <
> element of type SpimDataIOException
protected boolean toXmlTryRange(TimePoints timepoints, org.jdom2.Element elem)
TimePoints
list as a range. For this to work,
time-point ids
must form a contiguous range of
integers and the time-point names
must equal
the ids represented
as strings.timepoints
- elem
- true
, if timepoints could be saved,
false
otherwise. If false
is returned,
elem is not modified.protected void fromXmlRange(TimePoints timepoints, org.jdom2.Element elem)
TimePointsPattern
from <
> element of type protected void toXmlList(TimePoints timepoints, org.jdom2.Element elem)
TimePoints
as a list of TimePoint
.timepoints
- elem
- protected void fromXmlList(TimePoints timepoints, org.jdom2.Element elem) throws SpimDataException
TimePointsPattern
from <
> element of type SpimDataException
Copyright © 2015–2021 Fiji. All rights reserved.