public class MapPairs extends Object implements OMEModelObject
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
static String |
MAPNAMESPACE |
private List<MapPair> |
pairs |
static String |
PAIRSNAMESPACE |
static String |
PROPERTY_FILE |
static String |
VERSION
Version number of this schema release.
|
static Properties |
VERSION_PROPERTIES |
Constructor and Description |
---|
MapPairs()
Default constructor.
|
MapPairs(Element element,
OMEModel model)
Constructs MapPairs recursively from an XML DOM tree.
|
MapPairs(List<MapPair> pairs)
Copies
List argument |
MapPairs(MapPairs orig)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Element |
asXMLElement(Document document)
Takes the entire object hierarchy and produces an XML DOM tree.
|
protected Element |
asXMLElement(Document document,
Element pairs) |
List<MapPair> |
getPairs() |
boolean |
link(Reference reference,
OMEModelObject o)
Link a given OME model object to this model object.
|
(package private) static Properties |
loadProperties() |
void |
update(Element element,
OMEModel model)
Updates the object hierarchy recursively from an XML DOM tree.
|
private static final org.slf4j.Logger LOGGER
public static final String PROPERTY_FILE
public static final Properties VERSION_PROPERTIES
public static final String VERSION
public static final String MAPNAMESPACE
public static final String PAIRSNAMESPACE
public MapPairs()
public MapPairs(MapPairs orig)
public MapPairs(Element element, OMEModel model) throws EnumerationException
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.static Properties loadProperties()
public Element asXMLElement(Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
document
- Destination document for element creation, etc.public void update(Element element, OMEModel model) throws EnumerationException
OMEModelObject
update
in interface OMEModelObject
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public boolean link(Reference reference, OMEModelObject o)
OMEModelObject
link
in interface OMEModelObject
reference
- The type qualifier for the reference. This should
be the corresponding reference type for o
. If, for example,
o
is of type Image
, reference
MUST be of type ImageRef
.o
- Model object to link to.true
if this model object was able to handle the
reference, false
otherwise.Copyright © 2015 Open Microscopy Environment