Class ArchetypeAttributeDefinition


  • public class ArchetypeAttributeDefinition
    extends java.lang.Object
    Holds the key/value pair of an archetype attribute definition. Corresponds to a <attribute> entry in types.xml
    • Constructor Summary

      Constructors 
      Constructor Description
      ArchetypeAttributeDefinition​(@NotNull java.lang.String key, @NotNull java.lang.String value)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(@NotNull Attributes baseObject)
      Returns whether a base object matches this attribute definition.
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ArchetypeAttributeDefinition

        public ArchetypeAttributeDefinition​(@NotNull
                                            @NotNull java.lang.String key,
                                            @NotNull
                                            @NotNull java.lang.String value)
        Creates a new instance.
        Parameters:
        key - the key
        value - the value
    • Method Detail

      • matches

        public boolean matches​(@NotNull
                               @NotNull Attributes baseObject)
        Returns whether a base object matches this attribute definition.
        Parameters:
        baseObject - the base object
        Returns:
        whether the base object matches
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object