Skip to content

OME

Bases: NBOBaseClass

Represents the XML element OME.

The OME element is a container for all information objects accessible by OME. These information objects include descriptions of the imaging experiments and the people who perform them, descriptions of the microscope, the resulting images and how they were acquired, the analyses performed on those images, and the analysis results themselves. An OME file may contain any or all of this information. With the creation of the Metadata Only Companion OME-XML and Binary Only OME-TIFF files the top level OME node has changed slightly. It can EITHER: Contain all the previously expected elements OR: Contain a single BinaryOnly element that points at its Metadata Only Companion OME-XML file.

getTypeName()

Returns the class type name.

Returns:

Type Description
string

The class type name

getXMLName()

Returns the XML element name corresponding to this class.

Returns:

Type Description
string

The XML element name

getNBOType()

Returns the NBO Type corresponding to this class.

Returns:

Type Description
int

The NBO Type value

getChildren()

Returns a list of all classes derived from this class.

Returns:

Type Description
List[NBOBaseClass]

The list of derived classes

getSubElements()

Returns a list of all child elements contained in this class.

Returns:

Type Description
List[NBOBaseClass]

The list of child classes

fromJsonFile(path)

Populates this object from a JSON file.

Parameters:

Name Type Description Default
path string

The path to the JSON file

required

fromJsonString(json_string)

Populates this object from a JSON string.

Parameters:

Name Type Description Default
json_string string

The JSON content as a string

required

fromXmlFile(path)

Populates this object from a XML file.

Parameters:

Name Type Description Default
path string

The path to the XML file

required

fromXmlString(xml_string)

Populates this object from a XML string.

Parameters:

Name Type Description Default
xml_string string

The XML content as a string

required

toXmlFile(filename)

Serializes this object to an XML file.

Parameters:

Name Type Description Default
filename string

The path to the output XML file

required

toXmlString()

Serializes this object to an XML string.

Returns:

Type Description
string

A string containing the XML representation of this object

setUUID(value)

Sets the value of the UUID attribute.

This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.

Parameters:

Name Type Description Default
value UniversallyUniqueIdentifier_Type

The value to set

required

getUUID()

Returns the value of the UUID attribute.

This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.

Returns:

Type Description
UniversallyUniqueIdentifier_Type

The value of the attribute

resetUUID()

Resets the UUID attribute to an unset state.

This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.

hasUUID()

Checks whether the optional UUID attribute is present.

This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.

Returns:

Type Description
boolean

true if the optional attribute has been set, false otherwise

setCreator(value)

Sets the value of the Creator attribute.

This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.

Parameters:

Name Type Description Default
value string

The value to set

required

getCreator()

Returns the value of the Creator attribute.

This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.

Returns:

Type Description
string

The value of the attribute

resetCreator()

Resets the Creator attribute to an unset state.

This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.

hasCreator()

Checks whether the optional Creator attribute is present.

This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.

Returns:

Type Description
boolean

true if the optional attribute has been set, false otherwise

setRights(value)

Sets the value of the Rights element.

No description available in the XSD standard.

Parameters:

Name Type Description Default
value Rights

The value to set

required

getRights()

Returns the value of the Rights element.

No description available in the XSD standard.

Returns:

Type Description
Rights

The value of the element

resetRights()

Resets the Rights element to an unset state.

No description available in the XSD standard.

hasRights()

Checks whether the optional Rights element is present.

No description available in the XSD standard.

Returns:

Type Description
boolean

true if the optional attribute has been set, false otherwise

setome_choice(value)

Sets the value of the ome_choice element.

No description available in the XSD standard.

Parameters:

Name Type Description Default
value OME_Choice

The value to set

required

getome_choice()

Returns the value of the ome_choice element.

No description available in the XSD standard.

Returns:

Type Description
OME_Choice

The value of the element

resetome_choice()

Resets the ome_choice element to an unset state.

No description available in the XSD standard.

hasome_choice()

Checks whether the optional ome_choice element is present.

No description available in the XSD standard.

Returns:

Type Description
boolean

true if the optional attribute has been set, false otherwise