public class SourcePreviewConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowHTMLPreview |
boolean |
allowImagePreview |
static boolean |
DEFAULT_ALLOW_H_T_M_L_PREVIEW |
static boolean |
DEFAULT_ALLOW_IMAGE_PREVIEW |
Constructor and Description |
---|
SourcePreviewConfig() |
SourcePreviewConfig(SourcePreviewConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SourcePreviewConfig.
|
static SourcePreviewConfig |
fromString(java.lang.String s)
String representation of this SourcePreviewConfig.
|
boolean |
isAllowHTMLPreview() |
boolean |
isAllowImagePreview() |
SourcePreviewConfig |
makeCopy()
Creates and returns a deep copy of this SourcePreviewConfig.
|
static SourcePreviewConfig |
readFrom(java.io.InputStream is)
Read this SourcePreviewConfig from an XML fragment.
|
void |
setAllowHTMLPreview(boolean allowHTMLPreview) |
void |
setAllowImagePreview(boolean allowImagePreview) |
java.lang.String |
toString()
String representation of this SourcePreviewConfig.
|
SourcePreviewConfig |
withAllowHTMLPreview(boolean allowHTMLPreview) |
SourcePreviewConfig |
withAllowHTMLPreview(java.lang.Boolean allowHTMLPreview) |
SourcePreviewConfig |
withAllowImagePreview(boolean allowImagePreview) |
SourcePreviewConfig |
withAllowImagePreview(java.lang.Boolean allowImagePreview) |
void |
writeTo(java.io.OutputStream os)
Write this SourcePreviewConfig as an XML fragment
|
public boolean allowHTMLPreview
public static final boolean DEFAULT_ALLOW_H_T_M_L_PREVIEW
public boolean allowImagePreview
public static final boolean DEFAULT_ALLOW_IMAGE_PREVIEW
public SourcePreviewConfig()
public SourcePreviewConfig(SourcePreviewConfig o)
public void setAllowHTMLPreview(boolean allowHTMLPreview)
public boolean isAllowHTMLPreview()
public SourcePreviewConfig withAllowHTMLPreview(boolean allowHTMLPreview)
public SourcePreviewConfig withAllowHTMLPreview(java.lang.Boolean allowHTMLPreview)
public void setAllowImagePreview(boolean allowImagePreview)
public boolean isAllowImagePreview()
public SourcePreviewConfig withAllowImagePreview(boolean allowImagePreview)
public SourcePreviewConfig withAllowImagePreview(java.lang.Boolean allowImagePreview)
public SourcePreviewConfig makeCopy()
public static SourcePreviewConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static SourcePreviewConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.