public class TypeRegistry extends Object
| Constructor and Description |
|---|
TypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PDeclaredDescriptor<T>> |
getDescriptor(String name,
String packageContext)
Get the declared type with the name and package context.
|
CDocument |
getDocument(String path) |
CDocument |
getDocumentForPackage(String packageContext) |
<T> PDescriptorProvider<T> |
getProvider(String typeName,
String packageContext)
Given a type name and a package context, fetches the type provider for the given type.
|
<T> void |
putDeclaredType(PDeclaredDescriptor<T> declaredType)
Put a declared type into the registry.
|
boolean |
putDocument(String path,
CDocument doc) |
void |
putTypedef(String typeName,
String identifier) |
public <T extends PDeclaredDescriptor<T>> T getDescriptor(String name, String packageContext)
name - Name of type, without any spaces.packageContext - The package context of the type.public <T> void putDeclaredType(PDeclaredDescriptor<T> declaredType)
declaredType - The type to register.public void putTypedef(String typeName, String identifier)
typeName - identifier - public <T> PDescriptorProvider<T> getProvider(String typeName, String packageContext)
typeName - Name of type, without any spaces.packageContext - The package context of the type.Copyright © 2016. All rights reserved.