Package ro.sync.ecss.conditions
Class ProfileConditionsSetInfoPO
java.lang.Object
ro.sync.ecss.conditions.ProfileConditionsSetInfoPO
- All Implemented Interfaces:
Serializable
,Cloneable
,PersistentObject
@API(type=EXTENDABLE,
src=PRIVATE)
public class ProfileConditionsSetInfoPO
extends Object
implements PersistentObject
Contains information about a condition processing attribute name and possible values.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ProfileConditionsSetInfoPO
(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName) Constructor.ProfileConditionsSetInfoPO
(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName, String ditavalFile, boolean useDITAVAL) Constructor.ProfileConditionsSetInfoPO
(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName, String ditavalFile, boolean useDITAVAL, String shortcut) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check if object is valid to be used.clone()
Forces all the persistent objects to be cloneable.boolean
Return the DITAVAL location.String[]
Get the condition set shortcut.int
hashCode()
void
setConditions
(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions) void
setConditionSetName
(String conditionSetName) void
setDitavalFile
(String ditavalFile) Set the DITAVAL location.void
setDocumentTypePattern
(String documentTypePattern) void
setShortcut
(String shortcut) Set the condition set shortcut.void
setUseDITAVAL
(boolean useDITAVAL) toString()
boolean
-
Constructor Details
-
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO()Constructor. -
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName) Constructor.- Parameters:
conditions
- Map between attributes and profile values.documentTypePattern
- Document type pattern (the conditions set will be used only for the document types that match it)conditionSetName
- Condition set name.
-
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName, String ditavalFile, boolean useDITAVAL) Constructor.- Parameters:
conditions
- Map between attributes and profile values.documentTypePattern
- Document type pattern (the conditions set will be used only for the document types that match it)conditionSetName
- Condition set name.ditavalFile
- The DITAVAL file used for the condition set. A profiling consition set can be based either on a set of user defined consitions or a DITAVAL file.useDITAVAL
-true
if the DITAVAL file should be used instead of the consitions set.
-
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions, String documentTypePattern, String conditionSetName, String ditavalFile, boolean useDITAVAL, String shortcut) Constructor.- Parameters:
conditions
- Map between attributes and profile values.documentTypePattern
- Document type pattern (the conditions set will be used only for the document types that match it)conditionSetName
- Condition set name.ditavalFile
- The DITAVAL file used for the condition set. A profiling consition set can be based either on a set of user defined consitions or a DITAVAL file.useDITAVAL
-true
if the DITAVAL file should be used instead of the consitions set.shortcut
- The condition set shortcut.
-
-
Method Details
-
setConditions
- Parameters:
conditions
- The conditions to set.
-
getConditions
- Returns:
- Returns the conditions.
-
setDocumentTypePattern
- Parameters:
documentTypePattern
- The documentTypePattern to set.
-
getDocumentTypePattern
- Returns:
- Returns the documentTypePattern.
-
setConditionSetName
- Parameters:
conditionSetName
- The conditionSetName to set.
-
getConditionSetName
- Returns:
- Returns the conditionSetName.
-
toString
-
hashCode
public int hashCode() -
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:
-
equals
-
getDITAVALFile
Return the DITAVAL location.- Returns:
- The DITAVAL location. It can be
null
.
-
setDitavalFile
Set the DITAVAL location.- Parameters:
ditavalFile
- The DITAVAL location to set.
-
useDITAVAL
public boolean useDITAVAL()- Returns:
true
if the DITAVAL file should be used instead of the conditions set.
-
setUseDITAVAL
public void setUseDITAVAL(boolean useDITAVAL) - Parameters:
useDITAVAL
- True if the condition set is using a DITAVAL file instead of the conditions set.
-
getShortcut
Get the condition set shortcut.- Returns:
- Returns the condition set shortcut.
-
setShortcut
Set the condition set shortcut.- Parameters:
shortcut
- The shortcut to set.
-