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 TypeMethodDescriptionvoidCheck if object is valid to be used.clone()Forces all the persistent objects to be cloneable.booleanReturn the DITAVAL location.String[]Get the condition set shortcut.inthashCode()voidsetConditions(ro.sync.options.SerializableLinkedHashMap<String, String[]> conditions) voidsetConditionSetName(String conditionSetName) voidsetDitavalFile(String ditavalFile) Set the DITAVAL location.voidsetDocumentTypePattern(String documentTypePattern) voidsetShortcut(String shortcut) Set the condition set shortcut.voidsetUseDITAVAL(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-trueif 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-trueif 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: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:
-
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:
trueif 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.
-