20 package net.sf.gridarta.model.archetypetype;
23 import org.jetbrains.annotations.NotNull;
36 private final String
key;
60 return matches(baseObject.getAttributeString(key));
68 private boolean matches(@NotNull
final String attributeValue) {
69 return attributeValue.equals(value) || (value.equals(
"0") && attributeValue.isEmpty());
75 return key +
"=" +
value;
A set of key/value pairs.
ArchetypeAttributeDefinition(@NotNull final String key, @NotNull final String value)
Creates a new instance.
boolean matches(@NotNull final Attributes baseObject)
Returns whether a base object matches this attribute definition.
Base package of all Gridarta classes.
Holds the key/value pair of an archetype attribute definition.
final String value
The value.
boolean matches(@NotNull final String attributeValue)
Returns whether an attribute value matches this attribute definition.