org.jopendocument.dom
Class Library.EmbeddedLibrary
java.lang.Object
org.jopendocument.dom.Library
org.jopendocument.dom.Library.EmbeddedLibrary
- Enclosing class:
- Library
@ThreadSafe
public static final class Library.EmbeddedLibrary
- extends Library
isPasswordProtected
public final boolean isPasswordProtected()
getModules
public final Map<String,String> getModules()
getDialogs
public final Map<String,org.jdom.Element> getDialogs()
toFlatXML
public org.jdom.Element toFlatXML(XMLFormatVersion vers)
- Description copied from class:
Library
- The element to define this in a flat XML.
- Specified by:
toFlatXML
in class Library
- Parameters:
vers
- the version of the format.
- Returns:
- an element totally defining this.
toPackageLibrariesElement
public org.jdom.Element toPackageLibrariesElement(XMLFormatVersion vers)
- Description copied from class:
Library
- The element to include in the "script-lc.xml" entry in a package.
- Specified by:
toPackageLibrariesElement
in class Library
- Parameters:
vers
- the version of the format.
- Returns:
- an element defining the properties of this.
- See Also:
Library.toPackageDocuments(XMLFormatVersion)
toPackageDocuments
public final Map<String,org.jdom.Document> toPackageDocuments(XMLFormatVersion vers)
- Description copied from class:
Library
- The documents to include in a package.
- Specified by:
toPackageDocuments
in class Library
- Parameters:
vers
- the version of the format.
- Returns:
- documents totally defining this, by file name.
toPackageDialogDocuments
public Map<String,org.jdom.Document> toPackageDialogDocuments(XMLFormatVersion vers)
- Specified by:
toPackageDialogDocuments
in class Library
canBeMerged
public boolean canBeMerged(Library obj)
- Description copied from class:
Library
- Whether this library can be merged with the passed one. The merge can happen if there's no
overlap between the two, or if the content of the overlap is equal (e.g. both define the
module 'foo' with the same content).
- Specified by:
canBeMerged
in class Library
- Parameters:
obj
- another library.
- Returns:
true
if this library and the other can be merged.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Library
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Library
Copyright © 2010 jOpenDocument All Rights Reserved.