Class DefaultArchetypeGenerationConfigurator.RequiredPropertyComparator

java.lang.Object
org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.RequiredPropertyComparator
All Implemented Interfaces:
Comparator<String>
Enclosing class:
DefaultArchetypeGenerationConfigurator

public static class DefaultArchetypeGenerationConfigurator.RequiredPropertyComparator extends Object implements Comparator<String>
  • Field Details

  • Constructor Details

    • RequiredPropertyComparator

      public RequiredPropertyComparator(ArchetypeConfiguration archetypeConfiguration)
  • Method Details

    • compare

      public int compare(String left, String right)
      Specified by:
      compare in interface Comparator<String>
    • computePropertyReferences

      private Map<String,Set<String>> computePropertyReferences()
    • references

      private boolean references(String targetProperty, String sourceProperty)
      Learn whether one property references another. Semantically, "references targetProperty, sourceProperty (does)."
      Parameters:
      targetProperty - String denoting property for which the state of being-referenced-by-the-property-denoted-by sourceProperty is desired
      sourceProperty - String denoting property for which the state of references-the-property-denoted-by targetProperty is desired
      Returns:
      boolean