Package org.kingdoms.constants.namespace
Class NamespaceRegistry<V extends NamespaceContainer>
java.lang.Object
org.kingdoms.constants.namespace.NamespaceRegistry<V>
- Type Parameters:
V- the value that theNamespaceassociates with.
- Direct Known Subclasses:
AuditLogRegistry,KingdomMetadataRegistry,KingdomPermissionRegistry,RelationAttributeRegistry
A simple mapping that associates
Namespaces with NamespaceRegistrys-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRegistered(Namespace namespace) booleanisRegisetered(Namespace namespace) void
-
Field Details
-
registry
-
-
Constructor Details
-
NamespaceRegistry
public NamespaceRegistry()
-
-
Method Details
-
register
- Parameters:
value- the value to be registered.- Throws:
IllegalArgumentException- if this namespace has already been registered before.
-
getRegistered
-
isRegisetered
-
getRegistry
- Returns:
- an unmodifiable map of the registry.
-