Class VariableUsage


  • @Immutable
    public class VariableUsage
    extends Object
    Object representing an analyzed usage of a variable anywhere in Bamboo. Variable usages have the following format: ${<namespace>.<name>}. For example, for a variable usage ${bamboo.maven.arguments}, an instance of VariableUsage would have namespace "bamboo" and name "maven.arguments".
    • Constructor Detail

      • VariableUsage

        public VariableUsage​(@NotNull
                             @NotNull String namespace,
                             @NotNull
                             @NotNull String name)
    • Method Detail

      • getNamespace

        @NotNull
        public @NotNull String getNamespace()
      • getName

        @NotNull
        public @NotNull String getName()
      • toUsageString

        @NotNull
        public @NotNull String toUsageString()
        Returns this object's representation as a usage string, e.g. for namespace "bamboo" and name "mavenArgs" the usage string would be "${bamboo.mavenArgs}".
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object