public class ExternalReferenceRule extends AbstractRule
RuleIF
Modifier and Type | Field and Description |
---|---|
protected static java.util.ResourceBundle |
MIMETYPE |
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
ExternalReferenceRule() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
java.lang.String |
getDescription()
Get the description of the external reference.
|
java.lang.String |
getDir()
Get the directory specification.
|
java.lang.String |
getLocation()
Get the location of the external reference.
|
java.lang.String |
getMimetype()
Get the mimetype string.
|
NameValueUnit[][] |
getValue()
Return the url of the external reference as string.
|
void |
init()
Init the rule.
|
boolean |
isOverwrite()
Inquire the overwrite flag.
|
protected int |
searchFor(T_ExternalReference[] refs,
java.lang.String description,
java.lang.String mimetype,
java.lang.String location)
Search for the reference that matches the given parameters.
|
void |
setDescription(java.lang.String description)
Set the description of the external reference.
|
void |
setDir(java.lang.String dir,
boolean createDir)
Set the directory.
|
void |
setLocation(java.lang.String location)
Set the location of the external reference.
|
void |
setMimetype(java.lang.String mimetype)
Set the mimetype string.
|
void |
setOverwrite(boolean overwrite)
Set the overwrite flag.
|
void |
setValue(NameValueUnit[][] nvuArr)
Set the filename that should be save as external reference.
|
execute, execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public void setDescription(java.lang.String description)
description
- the new description.public java.lang.String getDescription()
public void setLocation(java.lang.String location)
location
- the new location.public java.lang.String getLocation()
public void setOverwrite(boolean overwrite)
overwrite
- the overwrite flag.public boolean isOverwrite()
public void setMimetype(java.lang.String mimetype)
mimetype
- the mimetypepublic java.lang.String getMimetype()
public void setDir(java.lang.String dir, boolean createDir)
dir
- the directory specificationpublic java.lang.String getDir()
public NameValueUnit[][] getValue()
RuleIF.setValue(NameValueUnit[][] nvu)
protected int searchFor(T_ExternalReference[] refs, java.lang.String description, java.lang.String mimetype, java.lang.String location)
refs
- The sequence of external refernces.description
- the description that should match. null means every.mimetype
- the mimetype that should match. null means every.location
- the location that should match. null means every.public void setValue(NameValueUnit[][] nvuArr)
nvu
- the named filename value.