Class 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.
    • 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 class java.lang.Object
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • clone

        public java.lang.Object clone()
        Description copied from interface: PersistentObject
        Forces all the persistent objects to be cloneable.
        Specified by:
        clone in interface PersistentObject
        Overrides:
        clone in class java.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 class java.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.