Class TypeRegistry
java.lang.Object
net.tangly.core.TypeRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the code type for the provided code class.Returns the tag type describing the requested namespace and name.Returns the tag type describing the tag.Returns all the namespaces registered.voidRegisters a tag type.<T extends Code>
voidRegisters a code type to the registry.tagNamesForNamespace(@NotNull String namespace) Collection<TagType<?>> tagTypes()
-
Constructor Details
-
TypeRegistry
public TypeRegistry()
-
-
Method Details
-
register
Registers a tag type.- Parameters:
type- tag type to bind
-
tagTypes
-
namespaces
-
tagNamesForNamespace
-
find
Returns the tag type describing the requested namespace and name.- Type Parameters:
T- type of the code- Parameters:
namespace- optional namespace of the tag typename- mandatory name of the tag type- Returns:
- requested tag type as optional
-
find
-
register
-
find
Returns the code type for the provided code class. The implementation takes care to return the expected generic type.- Type Parameters:
T- type of code to look for- Parameters:
clazz- class of the code which code type we are looking for- Returns:
- code type as optional
-