|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.resource.EboResourceElement
Constructor Summary | |
EboResourceElement(String resourceSetName,
String directoryName,
String diskPath,
String fileName,
byte[] bytes)
|
Method Summary | |
boolean |
canPersist()
|
String |
getAsJavaPackage()
|
byte[] |
getBytes()
Returns the bytes for the resource. |
Class |
getClassDef()
|
Class |
getClassDef(ClassLoader loader)
|
String |
getDirectoryName()
|
String |
getDiskPath()
|
Document |
getDocument()
If the resource is an XML document, this method will return a parsed DOM of the resource. |
String |
getElementString()
Deprecated. The method does not allow for specification of the encoding, and always assumes UTF8 which may not be proper in all cases. Please get the bytes directly, or the InputStream and do your own conversion to string by specifying the appropriate encoding. This method will be removed in the next version. |
String |
getFileName()
|
String |
getFileNameOnly()
|
InputStream |
getInputStream(com.sssw.fw.resource.EbiContext context)
Returns an input stream to the resource. |
long |
getLastModified()
|
String |
getPath()
|
String |
getPrimaryKey()
|
com.sssw.fw.resource.EboResource |
getResourceSet()
|
String |
getResourceSetName()
|
Map |
getSecondaryKeys()
|
String[] |
getSecondaryKeys(String secondaryKey)
|
boolean |
getTemporary()
|
String |
getURL()
|
String |
getUUID()
|
boolean |
hasDocument()
|
boolean |
implementsInterface(Class clazz,
String interfaceClass)
|
boolean |
implementsInterface(String interfaceClass)
|
boolean |
isClass()
|
boolean |
isFromDisk()
|
boolean |
isFromJar()
|
boolean |
isHTML()
|
boolean |
isJava()
|
boolean |
isJSP()
|
boolean |
isTemporary()
|
boolean |
isXML()
|
boolean |
isXSL()
|
void |
setBytes(byte[] bytes)
Modifies the bytes of the resource. |
void |
setBytes(String bytes)
Deprecated. This method does not allow the encoding to be specified and assumes UTF8 which may not be appropriate. Please set the bytes by calling setBytes(byte[]) intead. This method will be removed in the next version. |
void |
setDirectoryName(String directoryName)
|
void |
setDiskPath(String diskPath)
|
void |
setDocument(Document document)
Deprecated. Do not use this method, it will be removed in the next version. Instead, call set bytes, then getDocument(). When using this method, there is no guarantee the document you set will be the document that is returned from getDocument() since that one is looked for in the cache, then if not found, is recreated based on the resource element's content. |
void |
setFileName(String fileName)
|
void |
setJavaPackage(String javaPackage)
|
void |
setLastModified(long lastModified)
|
void |
setResourceSetName(String resourceSetName)
|
void |
setTemporary(boolean temporary)
|
int |
size()
|
String |
toString()
|
void |
updateFrom(EboResourceElement source)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public EboResourceElement(String resourceSetName, String directoryName, String diskPath, String fileName, byte[] bytes)
Method Detail |
public boolean implementsInterface(String interfaceClass)
public boolean implementsInterface(Class clazz, String interfaceClass)
public String getUUID()
public int size()
public void updateFrom(EboResourceElement source)
public Document getDocument()
To create a clone
use this code: Document cloneDoc = (Document) reEl.getDocument().cloneNode(true);
public void setDocument(Document document)
public boolean hasDocument()
public String getURL()
public String getPath()
public String getPrimaryKey()
public String[] getSecondaryKeys(String secondaryKey)
public Map getSecondaryKeys()
public com.sssw.fw.resource.EboResource getResourceSet()
public String getResourceSetName()
public void setResourceSetName(String resourceSetName)
public String getDirectoryName()
public void setDirectoryName(String directoryName)
public boolean isJava()
public boolean isJSP()
public boolean isClass()
public String getAsJavaPackage()
public void setJavaPackage(String javaPackage)
public Class getClassDef()
public Class getClassDef(ClassLoader loader)
public boolean isXML()
public boolean isXSL()
public boolean isHTML()
public boolean isTemporary()
public boolean getTemporary()
public void setTemporary(boolean temporary)
public String getDiskPath()
public void setDiskPath(String diskPath)
public byte[] getBytes()
public InputStream getInputStream(com.sssw.fw.resource.EbiContext context) throws com.sssw.fw.resource.EboUnrecoverableSystemException, com.sssw.fw.resource.EboSecurityException
context
- The context used to retreive the resource's input stream. If null is passed,
a dummy context will be used. This can be useful in cases where there is no context available
and the resource is a file.public void setBytes(String bytes)
EboResourceElement.setBytes(byte[])
public void setBytes(byte[] bytes)
bytes
- The byte array representing the new context of the resource.public void setLastModified(long lastModified)
public long getLastModified()
public void setFileName(String fileName)
public String getFileName()
public String getFileNameOnly()
public String getElementString()
EboResourceElement.getBytes()
,
#getInputStream(com.sssw.fw.api.EbiContext)
public boolean isFromJar()
public boolean canPersist()
public boolean isFromDisk()
public String toString()
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |