Package ro.sync.ecss.conditions
Class ProfileConditionsSetInfoPO
- java.lang.Object
-
- ro.sync.ecss.conditions.ProfileConditionsSetInfoPO
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,PersistentObject
@API(type=EXTENDABLE, src=PRIVATE) public class ProfileConditionsSetInfoPO extends java.lang.Object implements PersistentObject
Contains information about a condition processing attribute name and possible values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfileConditionsSetInfoPO()
Constructor.ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.String conditionSetName)
Constructor.ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.String conditionSetName, java.lang.String ditavalFile, boolean useDITAVAL)
Constructor.ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.String conditionSetName, java.lang.String ditavalFile, boolean useDITAVAL, java.lang.String shortcut)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValid()
Check if object is valid to be used.java.lang.Object
clone()
Forces all the persistent objects to be cloneable.boolean
equals(java.lang.Object obj)
java.util.Map<java.lang.String,java.lang.String[]>
getConditions()
java.lang.String
getConditionSetName()
java.lang.String
getDITAVALFile()
Return the DITAVAL location.java.lang.String
getDocumentTypePattern()
java.lang.String[]
getNotPersistentFieldNames()
java.lang.String
getShortcut()
Get the condition set shortcut.int
hashCode()
void
setConditions(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions)
void
setConditionSetName(java.lang.String conditionSetName)
void
setDitavalFile(java.lang.String ditavalFile)
Set the DITAVAL location.void
setDocumentTypePattern(java.lang.String documentTypePattern)
void
setShortcut(java.lang.String shortcut)
Set the condition set shortcut.void
setUseDITAVAL(boolean useDITAVAL)
java.lang.String
toString()
boolean
useDITAVAL()
-
-
-
Constructor Detail
-
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO()
Constructor.
-
ProfileConditionsSetInfoPO
public ProfileConditionsSetInfoPO(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.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<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.String conditionSetName, java.lang.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<java.lang.String,java.lang.String[]> conditions, java.lang.String documentTypePattern, java.lang.String conditionSetName, java.lang.String ditavalFile, boolean useDITAVAL, java.lang.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 Detail
-
setConditions
public void setConditions(ro.sync.options.SerializableLinkedHashMap<java.lang.String,java.lang.String[]> conditions)
- Parameters:
conditions
- The conditions to set.
-
getConditions
public java.util.Map<java.lang.String,java.lang.String[]> getConditions()
- Returns:
- Returns the conditions.
-
setDocumentTypePattern
public void setDocumentTypePattern(java.lang.String documentTypePattern)
- Parameters:
documentTypePattern
- The documentTypePattern to set.
-
getDocumentTypePattern
public java.lang.String getDocumentTypePattern()
- Returns:
- Returns the documentTypePattern.
-
setConditionSetName
public void setConditionSetName(java.lang.String conditionSetName)
- Parameters:
conditionSetName
- The conditionSetName to set.
-
getConditionSetName
public java.lang.String getConditionSetName()
- Returns:
- Returns the conditionSetName.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
checkValid
public void checkValid() throws InvalidPersistentObjException
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:
PersistentObject.checkValid()
-
getNotPersistentFieldNames
public java.lang.String[] getNotPersistentFieldNames()
- Specified by:
getNotPersistentFieldNames
in interfacePersistentObject
- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
PersistentObject.getNotPersistentFieldNames()
-
clone
public java.lang.Object clone()
Description copied from interface:PersistentObject
Forces all the persistent objects to be cloneable.- Specified by:
clone
in interfacePersistentObject
- Overrides:
clone
in classjava.lang.Object
- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
Object.clone()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getDITAVALFile
public java.lang.String getDITAVALFile()
Return the DITAVAL location.- Returns:
- The DITAVAL location. It can be
null
.
-
setDitavalFile
public void setDitavalFile(java.lang.String ditavalFile)
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
public java.lang.String getShortcut()
Get the condition set shortcut.- Returns:
- Returns the condition set shortcut.
-
setShortcut
public void setShortcut(java.lang.String shortcut)
Set the condition set shortcut.- Parameters:
shortcut
- The shortcut to set.
-
-