Package ro.sync.ecss.conditions
Class ProfilingAttributeStylePO
java.lang.Object
ro.sync.ecss.conditions.ProfilingAttributeStylePO
- All Implemented Interfaces:
Serializable
,Cloneable
,PersistentObject
@API(type=EXTENDABLE,
src=PRIVATE)
public class ProfilingAttributeStylePO
extends Object
implements PersistentObject
Contains information about a profiling attribute value and associated profiling styles.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ProfilingAttributeStylePO
(String framework, String attributeName, String attributeValue, int foreground, int background, String textDecoration, boolean bold, boolean italic) Constructor.ProfilingAttributeStylePO
(String framework, String attributeName, String attributGroupName, String attributeValue, int foreground, int background, String textDecoration, boolean bold, boolean italic) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check if object is valid to be used.clone()
Forces all the persistent objects to be cloneable.boolean
int
Get the display value.int
String[]
Get the text decoration to be applied on the content profiled by using this condition value.int
hashCode()
boolean
isBold()
boolean
isEmpty()
boolean
isItalic()
void
setAttributeGroupName
(String attributeGroupName) Set the attribute group name.void
setAttributeName
(String attributeName) Set the profiling attribute name.void
setAttributeValue
(String attributeValue) Set the profiling attribute value.void
setBackgroundColor
(int backgroundColor) Set the background color to be applied on the content profiled by using this condition value.void
setBold
(boolean bold) void
setDocTypePattern
(String docTypePattern) Set the document type pattern.void
setForegroundColor
(int foregroundColor) Set the foreground color to be applied on the content profiled by using this condition value.void
setItalic
(boolean italic) void
setTextDecoration
(String textDecoration) toString()
-
Field Details
-
UNDERLINE
Text decoration underline- See Also:
-
DOUBLE_UNDERLINE
Text decoration double underline- See Also:
-
OVERLINE
Text decoration overline- See Also:
-
ANY_VALUE
Wildcard constant for the attribute value.- See Also:
-
NO_COLOR
public static final int NO_COLORNo color.- See Also:
-
-
Constructor Details
-
ProfilingAttributeStylePO
public ProfilingAttributeStylePO()Constructor. -
ProfilingAttributeStylePO
public ProfilingAttributeStylePO(String framework, String attributeName, String attributeValue, int foreground, int background, String textDecoration, boolean bold, boolean italic) Constructor.- Parameters:
framework
- The name of the document type.attributeName
- The attribute name.attributeValue
- The attribute value.foreground
- Foreground color to be applied on the content profiled by using this condition value.background
- Background color to be applied on the content profiled by using this condition value.textDecoration
- Text decoration to be applied on the content profiled by using this condition value.bold
-true
if the bold style should be applied on the content profiled by using this condition value.italic
-true
if the italic style should be applied on the content profiled by using this condition value.
-
ProfilingAttributeStylePO
public ProfilingAttributeStylePO(String framework, String attributeName, String attributGroupName, String attributeValue, int foreground, int background, String textDecoration, boolean bold, boolean italic) Constructor.- Parameters:
framework
- The name of the document type.attributeName
- The attribute name.attributGroupName
- The attribute group name.attributeValue
- The attribute value.foreground
- Foreground color to be applied on the content profiled by using this condition value.background
- Background color to be applied on the content profiled by using this condition value.textDecoration
- Text decoration to be applied on the content profiled by using this condition value.bold
-true
if the bold style should be applied on the content profiled by using this condition value.italic
-true
if the italic style should be applied on the content profiled by using this condition value.
-
-
Method Details
-
setDocTypePattern
Set the document type pattern.- Parameters:
docTypePattern
- The document type pattern.
-
setAttributeName
Set the profiling attribute name.- Parameters:
attributeName
- The profiling attribute name.
-
setAttributeGroupName
Set the attribute group name.- Parameters:
attributeGroupName
- The attributeGroupName to set.
-
setAttributeValue
Set the profiling attribute value.- Parameters:
attributeValue
- The profiling attribute value.
-
setForegroundColor
public void setForegroundColor(int foregroundColor) Set the foreground color to be applied on the content profiled by using this condition value.- Parameters:
foregroundColor
- The foreground color.
-
getForegroundColor
public int getForegroundColor()- Returns:
- Returns the foreground color to be applied on the content profiled by using this condition value.
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor) Set the background color to be applied on the content profiled by using this condition value.- Parameters:
backgroundColor
- The background color.
-
getBackgroundColor
public int getBackgroundColor()- Returns:
- Returns the background color to be applied on the content profiled by using this condition value.
-
checkValid
Description copied from interface:PersistentObject
Check if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjException
exception.- Specified by:
checkValid
in interfacePersistentObject
- Throws:
InvalidPersistentObjException
- Thrown when instance is not valid.- See Also:
-
getNotPersistentFieldNames
- Specified by:
getNotPersistentFieldNames
in interfacePersistentObject
- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
-
clone
Description copied from interface:PersistentObject
Forces all the persistent objects to be cloneable.- Specified by:
clone
in interfacePersistentObject
- Overrides:
clone
in classObject
- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
-
getDocumentTypePattern
- Returns:
- The document type pattern
-
getAttributeName
- Returns:
- The attribute name.
-
getAttributeGroupName
- Returns:
- The attribute group name.
-
getAttributeValue
- Returns:
- The attribute value
-
setTextDecoration
- Parameters:
textDecoration
- Text decoration to be applied on the content profiled by using this condition value.
-
getTextDecoration
Get the text decoration to be applied on the content profiled by using this condition value.
Example values: "underline", "overline", "double_underline".- Returns:
- Returns the text decoration.
-
setBold
public void setBold(boolean bold) - Parameters:
bold
-true
if the bold style should be applied on the content profiled by using this condition value.
-
isBold
public boolean isBold()- Returns:
- Returns
true
if the bold style should be applied on the content profiled by using this condition value.
-
setItalic
public void setItalic(boolean italic) - Parameters:
italic
-true
if the italic style should be applied on the content profiled by using this condition value.
-
isItalic
public boolean isItalic()- Returns:
- Returns
true
if the italic style should be applied on the content profiled by using this condition value.
-
equals
-
hashCode
public int hashCode() -
toString
-
isEmpty
public boolean isEmpty()- Returns:
true
if the profiling style is empty, meaning no text style, decoration and colors have been set.
-
getDisplayedValue
Get the display value. If the attribute group is defined, will be contains by the displayed value.- Returns:
- The displayed value.
-