Package org.cyclos.entities.system
Class ExportFormat
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.ConfigurationEntity
-
- org.cyclos.entities.system.ExportFormat
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class ExportFormat extends ConfigurationEntity implements DefinesNetwork, UsesScript
An export format is knows how to handle exporting of data. There are some built-in formats (CSV, Excel and PDF), which cannot be removed. Other formats may be created, which
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description ExportFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()Set<ExportFormatContext>getContexts()StringgetEncoding()StringgetFileExtension()NetworkgetNetwork()Returns the network this entity belongs toCustomScriptgetScript()StringgetScriptParameters()CustomScriptUsedInTypegetScriptUsedInType()Returns the type of script usagebooleanisBinary()booleanisCustom()booleanisEnabled()Indicates whether this entity is enabledvoidsetBinary(boolean binary)voidsetContentType(String contentType)voidsetContexts(Set<ExportFormatContext> contexts)voidsetEnabled(boolean enabled)voidsetEncoding(String encoding)voidsetFileExtension(String fileExtension)voidsetNetwork(Network network)voidsetScript(CustomScript script)voidsetScriptParameters(String scriptParameters)-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getContentType
public String getContentType()
-
getContexts
public Set<ExportFormatContext> getContexts()
-
getEncoding
public String getEncoding()
-
getFileExtension
public String getFileExtension()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getScript
public CustomScript getScript()
-
getScriptParameters
public String getScriptParameters()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
isBinary
public boolean isBinary()
-
isCustom
public boolean isCustom()
-
isEnabled
public boolean isEnabled()
Description copied from interface:UsesScriptIndicates whether this entity is enabled- Specified by:
isEnabledin interfaceUsesScript
-
setBinary
public void setBinary(boolean binary)
-
setContentType
public void setContentType(String contentType)
-
setContexts
public void setContexts(Set<ExportFormatContext> contexts)
-
setEnabled
public void setEnabled(boolean enabled)
-
setEncoding
public void setEncoding(String encoding)
-
setFileExtension
public void setFileExtension(String fileExtension)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setScript
public void setScript(CustomScript script)
-
setScriptParameters
public void setScriptParameters(String scriptParameters)
-
-