|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.core.PackageData
public class PackageData
Represents an abstract data package
Method Summary | |
---|---|
Date |
created()
|
File |
directory()
|
File |
findByExtension(String extension)
|
File |
findDOCX()
Deprecated. |
File |
getDownloadDir(File download)
|
File |
getFile(String path)
|
File |
getOriginal()
|
static PackageData |
getPackageData(String id)
|
String |
getParameter(String name)
|
Map<String,String> |
getParameters()
|
String |
getProperty(String name)
|
String |
getProperty(String name,
String fallback)
|
String |
id()
|
boolean |
inspect()
Inspect the package |
boolean |
isUnpacked()
Indicates whether the package contains an unpacked directory. |
boolean |
loadProperties()
|
static PackageData |
newPackageData(String model)
Creates new package data. |
boolean |
saveProperties()
Saves the properties of this packages data in the file system. |
void |
setParameter(String name,
String value)
|
void |
setProperty(String name,
String value)
|
void |
toXML(XMLWriter xml)
|
boolean |
unpack()
Find the DOCX document and unpack its content if necessary |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Date created()
public String id()
public File directory()
public File getFile(String path)
@Deprecated public File findDOCX()
public File findByExtension(String extension)
public File getOriginal()
public boolean isUnpacked()
true
the package contains an unpacked directory;
false
otherwise.public void setParameter(String name, String value)
name
- public String getParameter(String name)
name
-
public Map<String,String> getParameters()
name
-
public String getProperty(String name)
public String getProperty(String name, String fallback)
public void setProperty(String name, String value)
public boolean loadProperties()
public boolean saveProperties()
public boolean inspect() throws IOException
IOException
public boolean unpack() throws IOException
IOException
public void toXML(XMLWriter xml) throws IOException
toXML
in interface XMLWritable
IOException
public File getDownloadDir(File download)
public static PackageData newPackageData(String model)
public static PackageData getPackageData(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |