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 TypeMethodDescriptionvoidCheck if object is valid to be used.clone()Forces all the persistent objects to be cloneable.booleanintGet the display value.intString[]Get the text decoration to be applied on the content profiled by using this condition value.inthashCode()booleanisBold()booleanisEmpty()booleanisItalic()voidsetAttributeGroupName(String attributeGroupName) Set the attribute group name.voidsetAttributeName(String attributeName) Set the profiling attribute name.voidsetAttributeValue(String attributeValue) Set the profiling attribute value.voidsetBackgroundColor(int backgroundColor) Set the background color to be applied on the content profiled by using this condition value.voidsetBold(boolean bold) voidsetDocTypePattern(String docTypePattern) Set the document type pattern.voidsetForegroundColor(int foregroundColor) Set the foreground color to be applied on the content profiled by using this condition value.voidsetItalic(boolean italic) voidsetTextDecoration(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-trueif the bold style should be applied on the content profiled by using this condition value.italic-trueif 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-trueif the bold style should be applied on the content profiled by using this condition value.italic-trueif 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:PersistentObjectCheck if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjExceptionexception.- Specified by:
checkValidin interfacePersistentObject- Throws:
InvalidPersistentObjException- Thrown when instance is not valid.- See Also:
-
getNotPersistentFieldNames
- Specified by:
getNotPersistentFieldNamesin interfacePersistentObject- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
-
clone
Description copied from interface:PersistentObjectForces all the persistent objects to be cloneable.- Specified by:
clonein interfacePersistentObject- Overrides:
clonein 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-trueif the bold style should be applied on the content profiled by using this condition value.
-
isBold
public boolean isBold()- Returns:
- Returns
trueif the bold style should be applied on the content profiled by using this condition value.
-
setItalic
public void setItalic(boolean italic) - Parameters:
italic-trueif the italic style should be applied on the content profiled by using this condition value.
-
isItalic
public boolean isItalic()- Returns:
- Returns
trueif 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:
trueif 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.
-