Class PepperModuleProperties

    • Method Detail

      • addProperties

        public void addProperties​(org.eclipse.emf.common.util.URI propURI)
        Loads the given file via Properties.load(java.io.InputStream) and adds all properties given in the passed Property object. That means, the corresponding PepperModuleProperty will be searched and its value will be set to the one found in the passed Properties object. If no corresponding PepperModuleProperties object corresponds to one of the properties contained in the passed Property object, a new one will be created.
      • getProperties

        public Properties getProperties()
        Returns a new Properties object containing all property names and their values.
        Returns:
        new Properties object
      • setPropertyValues

        public void setPropertyValues​(File propFile)
        Loads the given file via Properties.load(java.io.InputStream) and adds all properties given in the passed Property object. That means, the corresponding PepperModuleProperty will be searched and its value will be set to the one found in the passed Properties object. If no corresponding PepperModuleProperties object corresponds to one of the properties contained in the passed Property object, a new one will be created.
      • setPropertyValues

        public void setPropertyValues​(Properties properties)
        Adds all properties given in the passed Property object. That means, the corresponding PepperModuleProperty will be searched and its value will be set to the one found in the passed Properties object. If no corresponding PepperModuleProperties object corresponds to one of the properties contained in the passed Property object, a new one will be created.
      • checkProperties

        public boolean checkProperties()
        Checks if all properties marked as required are really set. Throws a PepperModulePropertyException if a required value is not set.
      • getPropertyNames

        public Collection<String> getPropertyNames()
        Returns all property names registered in that object, and therefore usable for the corresponding PepperModule.
        Returns:
      • removePropertyValue

        public void removePropertyValue​(String propName)
        Removes the value of the property with the passed property name from the properties.
        Parameters:
        propName - name of the property to be removed
      • stringToCharList

        public List<Character> stringToCharList​(String input)
        Expects a list of characters encoded as a String. The String is split and returned as a list of characters. The list must be build like this:
        LIST: ITEM (,ITEM)*
        ITEM: 'CHARACTER'

        For instance the passed String "'a', 'b', 'c'" is returned as a list containing 'a', 'b' and 'c'. In case of the characters "'" or "\" are used as items, they must be escaped as "\'" or "\\".
        Returns:
        the isToTokenize