/** * This method checks if the document is a container (ASiC) * * @return true if the document is a container */ public boolean isContainerInfoPresent() { return wrapped.getContainerInfo() != null; }
public XmlContainerInfo getContainerInfo() { return wrapped.getContainerInfo(); }
/** * This method returns the container type * * @return the container type (ASiC-S/E) */ public String getContainerType() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getContainerType(); } return null; }
/** * This method checks if the container has a mimetype file * * @return true if the mimetype file is present */ public boolean isMimetypeFilePresent() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.isMimeTypeFilePresent(); } return false; }
/** * This method returns the zip comment (if the document is a container) * * @return the zip comment for the current document (if container) or null */ public String getZipComment() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getZipComment(); } return null; }
/** * This method returns the content of the mimetype file (if container) * * @return the content of the mimetype file */ public String getMimetypeFileContent() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getMimeTypeContent(); } return null; }