Class NamespacedKey

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.NamespacedKey

public final class NamespacedKey extends Object
Represents a key that exists in a namespace.
  • Field Details

    • PATTERN

      public static final Pattern PATTERN
      The regex rule that the namespace and key must match.
  • Constructor Details

    • NamespacedKey

      public NamespacedKey(String namespace, String name)
      Creates a new NamespacedKey with the given namespace and name.

      Each String can only contain letters, numbers, and underscores.

      Parameters:
      namespace - The namespace of the key.
      name - The name of the key.
      Throws:
      InvalidNameSpacedKeyException - If either the namespace or name is null or does not match the regex rule.
  • Method Details