public class XlifDocument extends LMSImageXmlDocument
LMSXmlDocument.InitFrom
Modifier and Type | Field and Description |
---|---|
(package private) LMSFileReader.ImageFormat |
imageFormat |
(package private) java.util.List<java.lang.String> |
imagePaths |
Constructor and Description |
---|
XlifDocument(java.lang.String filepath,
LMSCollectionXmlDocument parent) |
Modifier and Type | Method and Description |
---|---|
private LMSFileReader.ImageFormat |
checkImageFormat() |
org.w3c.dom.Node |
getElementNode() |
LMSFileReader.ImageFormat |
getImageFormat() |
java.lang.String |
getImageName()
Returns the name of the image (it might be contained in the XML or otherwise e.g.
|
org.w3c.dom.Node |
getImageNode()
Returns the image node of the xml document which contains image metadata
|
java.util.List<java.lang.String> |
getImagePaths() |
java.lang.String |
getName() |
int |
getTileCount()
Returns the number of tiles referenced by this xlif
|
private void |
initImagePaths()
Searches the xml for referenced images and adds image paths
|
boolean |
isValid() |
void |
printXlifInfo() |
fileExists, getAttr, GetChildWithName, getDoc, getFilepath, getParentFiles, nodeToString, parseFilePath, toString, xPath, xPath
LMSFileReader.ImageFormat imageFormat
java.util.List<java.lang.String> imagePaths
public XlifDocument(java.lang.String filepath, LMSCollectionXmlDocument parent)
public LMSFileReader.ImageFormat getImageFormat()
public java.util.List<java.lang.String> getImagePaths()
public java.lang.String getName()
public org.w3c.dom.Node getElementNode()
public org.w3c.dom.Node getImageNode()
LMSImageXmlDocument
getImageNode
in class LMSImageXmlDocument
public java.lang.String getImageName()
LMSImageXmlDocument
getImageName
in class LMSImageXmlDocument
public int getTileCount()
private LMSFileReader.ImageFormat checkImageFormat()
private void initImagePaths()
public void printXlifInfo()
public boolean isValid()
Copyright © 2022 Open Microscopy Environment