public class StageLabel extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
private String |
name |
static String |
NAMESPACE |
private Length |
x |
private Length |
y |
private Length |
z |
Constructor and Description |
---|
StageLabel()
Default constructor.
|
StageLabel(Element element,
OMEModel model)
Constructs StageLabel recursively from an XML DOM tree.
|
StageLabel(StageLabel 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 StageLabel_element)
Takes the entire object hierarchy and produced an XML DOM tree taking
into account class hierarchy.
|
String |
getName() |
Length |
getX() |
static String |
getXUnitXsdDefault() |
Length |
getY() |
static String |
getYUnitXsdDefault() |
Length |
getZ() |
static String |
getZUnitXsdDefault() |
boolean |
link(Reference reference,
OMEModelObject o)
Link a given OME model object to this model object.
|
void |
setName(String name) |
void |
setX(Length x) |
void |
setY(Length y) |
void |
setZ(Length z) |
void |
update(Element element,
OMEModel model)
Updates StageLabel recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix
public static final String NAMESPACE
private static final org.slf4j.Logger LOGGER
private String name
private Length y
private Length x
private Length z
public StageLabel()
public StageLabel(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.public StageLabel(StageLabel orig)
public void update(Element element, OMEModel model) throws EnumerationException
update
in interface OMEModelObject
update
in class AbstractOMEModelObject
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
link
in class AbstractOMEModelObject
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.public String getName()
public void setName(String name)
public static String getZUnitXsdDefault()
public static String getYUnitXsdDefault()
public static String getXUnitXsdDefault()
public Length getY()
public void setY(Length y)
public Length getX()
public void setX(Length x)
public Length getZ()
public void setZ(Length z)
public Element asXMLElement(Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.protected Element asXMLElement(Document document, Element StageLabel_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.StageLabel_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2016 Open Microscopy Environment