public class OME extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
OME()
Default constructor.
|
OME(org.w3c.dom.Element element,
OMEModel model)
Constructs OME recursively from an XML DOM tree.
|
OME(OME orig)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataset(Dataset dataset) |
void |
addExperiment(Experiment experiment) |
void |
addExperimenter(Experimenter experimenter) |
void |
addExperimenterGroup(ExperimenterGroup experimenterGroup) |
void |
addImage(Image image) |
void |
addInstrument(Instrument instrument) |
void |
addPlate(Plate plate) |
void |
addProject(Project project) |
void |
addROI(ROI roi) |
void |
addScreen(Screen screen) |
org.w3c.dom.Element |
asXMLElement(org.w3c.dom.Document document)
Takes the entire object hierarchy and produces an XML DOM tree.
|
protected org.w3c.dom.Element |
asXMLElement(org.w3c.dom.Document document,
org.w3c.dom.Element OME_element)
Takes the entire object hierarchy and produced an XML DOM tree taking
into account class hierarchy.
|
java.util.List<Dataset> |
copyDatasetList() |
java.util.List<ExperimenterGroup> |
copyExperimenterGroupList() |
java.util.List<Experimenter> |
copyExperimenterList() |
java.util.List<Experiment> |
copyExperimentList() |
java.util.List<Image> |
copyImageList() |
java.util.List<Instrument> |
copyInstrumentList() |
java.util.List<Plate> |
copyPlateList() |
java.util.List<Project> |
copyProjectList() |
java.util.List<ROI> |
copyROIList() |
java.util.List<Screen> |
copyScreenList() |
BinaryOnly |
getBinaryOnly() |
java.lang.String |
getCreator() |
Dataset |
getDataset(int index) |
Experiment |
getExperiment(int index) |
Experimenter |
getExperimenter(int index) |
ExperimenterGroup |
getExperimenterGroup(int index) |
Image |
getImage(int index) |
Instrument |
getInstrument(int index) |
Plate |
getPlate(int index) |
Project |
getProject(int index) |
Rights |
getRights() |
ROI |
getROI(int index) |
Screen |
getScreen(int index) |
StructuredAnnotations |
getStructuredAnnotations() |
java.lang.String |
getUUID() |
boolean |
link(Reference reference,
OMEModelObject o)
Link a given OME model object to this model object.
|
void |
removeDataset(Dataset dataset) |
void |
removeExperiment(Experiment experiment) |
void |
removeExperimenter(Experimenter experimenter) |
void |
removeExperimenterGroup(ExperimenterGroup experimenterGroup) |
void |
removeImage(Image image) |
void |
removeInstrument(Instrument instrument) |
void |
removePlate(Plate plate) |
void |
removeProject(Project project) |
void |
removeROI(ROI roi) |
void |
removeScreen(Screen screen) |
void |
setBinaryOnly(BinaryOnly binaryOnly) |
void |
setCreator(java.lang.String creator) |
Dataset |
setDataset(int index,
Dataset dataset) |
Experiment |
setExperiment(int index,
Experiment experiment) |
Experimenter |
setExperimenter(int index,
Experimenter experimenter) |
ExperimenterGroup |
setExperimenterGroup(int index,
ExperimenterGroup experimenterGroup) |
Image |
setImage(int index,
Image image) |
Instrument |
setInstrument(int index,
Instrument instrument) |
Plate |
setPlate(int index,
Plate plate) |
Project |
setProject(int index,
Project project) |
void |
setRights(Rights rights) |
ROI |
setROI(int index,
ROI roi) |
Screen |
setScreen(int index,
Screen screen) |
void |
setStructuredAnnotations(StructuredAnnotations structuredAnnotations) |
void |
setUUID(java.lang.String uuid) |
int |
sizeOfDatasetList() |
int |
sizeOfExperimenterGroupList() |
int |
sizeOfExperimenterList() |
int |
sizeOfExperimentList() |
int |
sizeOfImageList() |
int |
sizeOfInstrumentList() |
int |
sizeOfPlateList() |
int |
sizeOfProjectList() |
int |
sizeOfROIList() |
int |
sizeOfScreenList() |
void |
update(org.w3c.dom.Element element,
OMEModel model)
Updates OME recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix
public static final java.lang.String NAMESPACE
public OME()
public OME(org.w3c.dom.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 OME(OME orig)
public void update(org.w3c.dom.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 java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
public java.lang.String getCreator()
public void setCreator(java.lang.String creator)
public Rights getRights()
public void setRights(Rights rights)
public int sizeOfProjectList()
public java.util.List<Project> copyProjectList()
public Project getProject(int index)
public void addProject(Project project)
public void removeProject(Project project)
public int sizeOfDatasetList()
public java.util.List<Dataset> copyDatasetList()
public Dataset getDataset(int index)
public void addDataset(Dataset dataset)
public void removeDataset(Dataset dataset)
public int sizeOfExperimentList()
public java.util.List<Experiment> copyExperimentList()
public Experiment getExperiment(int index)
public Experiment setExperiment(int index, Experiment experiment)
public void addExperiment(Experiment experiment)
public void removeExperiment(Experiment experiment)
public int sizeOfPlateList()
public java.util.List<Plate> copyPlateList()
public Plate getPlate(int index)
public void addPlate(Plate plate)
public void removePlate(Plate plate)
public int sizeOfScreenList()
public java.util.List<Screen> copyScreenList()
public Screen getScreen(int index)
public void addScreen(Screen screen)
public void removeScreen(Screen screen)
public int sizeOfExperimenterList()
public java.util.List<Experimenter> copyExperimenterList()
public Experimenter getExperimenter(int index)
public Experimenter setExperimenter(int index, Experimenter experimenter)
public void addExperimenter(Experimenter experimenter)
public void removeExperimenter(Experimenter experimenter)
public int sizeOfExperimenterGroupList()
public java.util.List<ExperimenterGroup> copyExperimenterGroupList()
public ExperimenterGroup getExperimenterGroup(int index)
public ExperimenterGroup setExperimenterGroup(int index, ExperimenterGroup experimenterGroup)
public void addExperimenterGroup(ExperimenterGroup experimenterGroup)
public void removeExperimenterGroup(ExperimenterGroup experimenterGroup)
public int sizeOfInstrumentList()
public java.util.List<Instrument> copyInstrumentList()
public Instrument getInstrument(int index)
public Instrument setInstrument(int index, Instrument instrument)
public void addInstrument(Instrument instrument)
public void removeInstrument(Instrument instrument)
public int sizeOfImageList()
public java.util.List<Image> copyImageList()
public Image getImage(int index)
public void addImage(Image image)
public void removeImage(Image image)
public StructuredAnnotations getStructuredAnnotations()
public void setStructuredAnnotations(StructuredAnnotations structuredAnnotations)
public int sizeOfROIList()
public java.util.List<ROI> copyROIList()
public ROI getROI(int index)
public void addROI(ROI roi)
public void removeROI(ROI roi)
public BinaryOnly getBinaryOnly()
public void setBinaryOnly(BinaryOnly binaryOnly)
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.protected org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document, org.w3c.dom.Element OME_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.OME_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2014 Open Microscopy Environment