Class MappingSetImpl

    • Constructor Detail

      • MappingSetImpl

        public MappingSetImpl()
    • Method Detail

      • getModelFactory

        public MappingSetModelFactory getModelFactory()
        Description copied from interface: MappingSet
        Gets the underlying model factory, that is used to construct the implementation classes for all the models.
        Specified by:
        getModelFactory in interface MappingSet
        Returns:
        The model factory
      • getTopLevelClassMappings

        public java.util.Collection<TopLevelClassMapping> getTopLevelClassMappings()
        Description copied from interface: MappingSet
        Gets an immutable collection of all of the top-level class mappings of the mapping set.
        Specified by:
        getTopLevelClassMappings in interface MappingSet
        Returns:
        The top-level class mappings
      • createTopLevelClassMapping

        public TopLevelClassMapping createTopLevelClassMapping​(java.lang.String obfuscatedName,
                                                               java.lang.String deobfuscatedName)
        Description copied from interface: MappingSet
        Creates a top-level class mapping with the given obfuscated and de-obfuscated names.
        Specified by:
        createTopLevelClassMapping in interface MappingSet
        Parameters:
        obfuscatedName - The obfuscated name of the top-level class
        deobfuscatedName - The de-obfuscated name of the top-level class
        Returns:
        The top-level class mapping, to allow for chaining
      • getTopLevelClassMapping

        public java.util.Optional<TopLevelClassMapping> getTopLevelClassMapping​(java.lang.String obfuscatedName)
        Description copied from interface: MappingSet
        Gets the top-level class mapping of the given obfuscated name of the class mapping, should it exist.
        Specified by:
        getTopLevelClassMapping in interface MappingSet
        Parameters:
        obfuscatedName - The obfuscated name of the top-level class mapping
        Returns:
        The top-level class mapping, wrapped in an Optional
      • hasTopLevelClassMapping

        public boolean hasTopLevelClassMapping​(java.lang.String obfuscatedName)
        Description copied from interface: MappingSet
        Establishes whether the mapping set contains a top-level class mapping of the given obfuscated name.
        Specified by:
        hasTopLevelClassMapping in interface MappingSet
        Parameters:
        obfuscatedName - The obfuscated name of the top-level class mapping
        Returns:
        true should a top-level class mapping of the given obfuscated name exist in the mapping set; false otherwise