Class FeatureTemplate


  • public class FeatureTemplate
    extends TypeTemplate
    Represents a Template for a Feature which contains all necessary Informations to build a concrete Type.
    Author:
    Weigel
    • Constructor Detail

      • FeatureTemplate

        public FeatureTemplate()
    • Method Detail

      • addVauleMapping

        public void addVauleMapping​(String xmlElement,
                                    String value)
        Adds a ValueMapping to the Template
        Parameters:
        xmlElement -
        value -
      • setValueMap

        public void setValueMap​(HashMap<String,​String> valueMapping)
        Parameters:
        valueMapping - the valueMapping to set
      • getValueMap

        public Map<String,​String> getValueMap()
        Returns:
        the valueMapping
      • getMappedValue

        public String getMappedValue​(String xmlElement)
        returns a mapped Value for a spezific value from the xml
        Parameters:
        xmlElement -
        Returns:
        a mapped Valu
      • setType

        public void setType​(boolean type)
        can mark the feature as a type.
        Parameters:
        type -
      • isType

        public boolean isType()
        Returns:
        wheter this feature is a Type or not
      • getTsName

        public String getTsName()
        Returns:
        the tsName
      • setTsName

        public void setTsName​(String tsName)
        Parameters:
        tsName - the tsName to set