Class DCIImageConfiguration


  • public class DCIImageConfiguration
    extends Object
    Base class for DCI image configuration
    • Constructor Detail

      • DCIImageConfiguration

        public DCIImageConfiguration()
    • Method Detail

      • createFromXml

        public static DCIImageConfiguration createFromXml​(String xml)
                                                   throws Exception
        Create DCI list object from XML document
        Parameters:
        xml - XML document
        Returns:
        deserialized object
        Throws:
        Exception - if the object cannot be fully deserialized
      • createXml

        public String createXml()
                         throws Exception
        Create XML from configuration.
        Returns:
        XML document
        Throws:
        Exception - if the schema for the object is not valid
      • getDciRuleArray

        public DCIImageRule[] getDciRuleArray()
        Returns:
        the dciRuleList
      • setDciRuleArray

        public void setDciRuleArray​(DCIImageRule[] dciRuleList)
        Parameters:
        dciRuleList - the dciRuleList to set
      • getRulesAsList

        public List<DCIImageRule> getRulesAsList()
        Returns DCI array as a list
        Returns:
        TODO
      • setDci

        public void setDci​(SingleDciConfig dci)
        Parameters:
        dci - the dci to set
      • getDefaultImage

        public UUID getDefaultImage()
        Returns:
        the defaultImage
      • setDefaultImage

        public void setDefaultImage​(UUID defaultImage)
        Parameters:
        defaultImage - the defaultImage to set
      • containRuleList

        public boolean containRuleList()
      • getCorrectImage

        public UUID getCorrectImage​(DciValue dciValue)
        Checks is any rule applicable on last value All except line and not like are compared with help of T.compateTo(T). Like and not like values can be given with regular expressions so they are always compared as a strings and with help of Glob.matchIgnoreCase(pattern, string).
        Returns:
        correct image according to last value