Class AliasPattern


  • public final class AliasPattern
    extends Object
    The type of the pattern for an alias path.
    • Constructor Detail

      • AliasPattern

        public AliasPattern()
    • Method Detail

      • phrase

        public String phrase()
        Get the phrase property: The alias pattern phrase.
        Returns:
        the phrase value.
      • withPhrase

        public AliasPattern withPhrase​(String phrase)
        Set the phrase property: The alias pattern phrase.
        Parameters:
        phrase - the phrase value to set.
        Returns:
        the AliasPattern object itself.
      • variable

        public String variable()
        Get the variable property: The alias pattern variable.
        Returns:
        the variable value.
      • withVariable

        public AliasPattern withVariable​(String variable)
        Set the variable property: The alias pattern variable.
        Parameters:
        variable - the variable value to set.
        Returns:
        the AliasPattern object itself.
      • type

        public AliasPatternType type()
        Get the type property: The type of alias pattern.
        Returns:
        the type value.
      • withType

        public AliasPattern withType​(AliasPatternType type)
        Set the type property: The type of alias pattern.
        Parameters:
        type - the type value to set.
        Returns:
        the AliasPattern object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.