public interface IntrospectionContext
| Modifier and Type | Method and Description |
|---|---|
void |
addError(org.fabric3.api.host.failure.ValidationFailure e)
Add a fatal error to the validation results.
|
void |
addErrors(java.util.List<org.fabric3.api.host.failure.ValidationFailure> errors)
Add a collection of fatal errors to the validation results.
|
void |
addTypeMapping(java.lang.Class<?> type,
TypeMapping typeMapping)
Adds a mapping from formal parameter types to actual types for a class to the cache.
|
void |
addWarning(org.fabric3.api.host.failure.ValidationFailure e)
Add a non-fatal warning to the validation results.
|
void |
addWarnings(java.util.List<org.fabric3.api.host.failure.ValidationFailure> warnings)
Add a collection of non-fatal warnings to the validation results.
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader of the contribution being installed.
|
java.net.URI |
getContributionUri()
Returns the active contribution URI.
|
java.util.List<org.fabric3.api.host.failure.ValidationFailure> |
getErrors()
Returns the list of fatal errors detected during validation.
|
java.net.URL |
getSourceBase()
Returns the location of the XML artifact being introspected.
|
java.lang.String |
getTargetNamespace()
Target namespace for this loader context.
|
TypeMapping |
getTypeMapping(java.lang.Class<?> type)
Used for introspecting Java generics.
|
java.util.Map<java.lang.Class<?>,TypeMapping> |
getTypeMappings()
Used for introspecting Java generics.
|
java.util.List<org.fabric3.api.host.failure.ValidationFailure> |
getWarnings()
Returns the list of non-fatal warnings detected during validation.
|
boolean |
hasErrors()
Returns true if the validation has detected any fatal errors.
|
boolean |
hasWarnings()
Returns true if the validation has detected any non-fatal warnings.
|
void |
setTargetNamespace(java.lang.String namespace)
Sets the current target namespace
|
java.net.URI getContributionUri()
boolean hasErrors()
java.util.List<org.fabric3.api.host.failure.ValidationFailure> getErrors()
void addError(org.fabric3.api.host.failure.ValidationFailure e)
e - the fatal error that has been foundvoid addErrors(java.util.List<org.fabric3.api.host.failure.ValidationFailure> errors)
errors - the fatal errors that have been foundboolean hasWarnings()
java.util.List<org.fabric3.api.host.failure.ValidationFailure> getWarnings()
void addWarning(org.fabric3.api.host.failure.ValidationFailure e)
e - the non-fatal warning that has been foundvoid addWarnings(java.util.List<org.fabric3.api.host.failure.ValidationFailure> warnings)
warnings - the non-fatal warnings that have been foundjava.lang.ClassLoader getClassLoader()
java.net.URL getSourceBase()
java.lang.String getTargetNamespace()
void setTargetNamespace(java.lang.String namespace)
namespace - the namespace to setTypeMapping getTypeMapping(java.lang.Class<?> type)
type - the classjava.util.Map<java.lang.Class<?>,TypeMapping> getTypeMappings()
void addTypeMapping(java.lang.Class<?> type,
TypeMapping typeMapping)
type - the classtypeMapping - the mappings