Class ErrorTypeRepositoryDTO
java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.ErrorTypeRepositoryDTO
- All Implemented Interfaces:
org.mule.runtime.api.exception.ErrorTypeRepository
public class ErrorTypeRepositoryDTO
extends Object
implements org.mule.runtime.api.exception.ErrorTypeRepository
This is a serializable version of an
ErrorTypeRepository. It is designed to behave as any possible serialized instance,
whether it is a default or a composite one.-
Constructor Summary
ConstructorsConstructorDescriptionErrorTypeRepositoryDTO(org.mule.runtime.api.message.ErrorType anyErrorType, org.mule.runtime.api.message.ErrorType sourceErrorType, org.mule.runtime.api.message.ErrorType sourceResponseErrorType, org.mule.runtime.api.message.ErrorType criticalErrorType, Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes) -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.message.ErrorTypeaddErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType) org.mule.runtime.api.message.ErrorTypeaddInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType) protected Optional<org.mule.runtime.api.message.ErrorType>doLookupErrorType(Map<org.mule.runtime.api.component.ComponentIdentifier, org.mule.runtime.api.message.ErrorType> errorTypes, org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) org.mule.runtime.api.message.ErrorTypeorg.mule.runtime.api.message.ErrorTypeOptional<org.mule.runtime.api.message.ErrorType>getErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) Set<org.mule.runtime.api.message.ErrorType>Set<org.mule.runtime.api.message.ErrorType>org.mule.runtime.api.message.ErrorTypeorg.mule.runtime.api.message.ErrorTypevoidprotected Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> initializeErrorTypeSet(boolean internal) protected voidinitializeErrorTypeSetForChildrenRecursively(org.mule.runtime.api.message.ErrorType parentErrorType, List<ErrorTypeHierarchyItemDTO> hierarchyItemChildren, Map<org.mule.runtime.api.component.ComponentIdentifier, org.mule.runtime.api.message.ErrorType> types, boolean internal) Optional<org.mule.runtime.api.message.ErrorType>lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) protected Stream<org.mule.runtime.api.message.ErrorType>nonRootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes) protected Stream<org.mule.runtime.api.message.ErrorType>rootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes)
-
Constructor Details
-
ErrorTypeRepositoryDTO
public ErrorTypeRepositoryDTO(org.mule.runtime.api.message.ErrorType anyErrorType, org.mule.runtime.api.message.ErrorType sourceErrorType, org.mule.runtime.api.message.ErrorType sourceResponseErrorType, org.mule.runtime.api.message.ErrorType criticalErrorType, Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes)
-
-
Method Details
-
initErrorTypesCollections
public void initErrorTypesCollections() -
initializeErrorTypeSet
protected Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> initializeErrorTypeSet(boolean internal) -
initializeErrorTypeSetForChildrenRecursively
protected void initializeErrorTypeSetForChildrenRecursively(org.mule.runtime.api.message.ErrorType parentErrorType, List<ErrorTypeHierarchyItemDTO> hierarchyItemChildren, Map<org.mule.runtime.api.component.ComponentIdentifier, org.mule.runtime.api.message.ErrorType> types, boolean internal) -
nonRootErrorTypesStream
-
rootErrorTypesStream
-
addErrorType
public org.mule.runtime.api.message.ErrorType addErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType) - Specified by:
addErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
addInternalErrorType
public org.mule.runtime.api.message.ErrorType addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType) - Specified by:
addInternalErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
lookupErrorType
public Optional<org.mule.runtime.api.message.ErrorType> lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) - Specified by:
lookupErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
doLookupErrorType
-
getErrorType
public Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) - Specified by:
getErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getErrorNamespaces
- Specified by:
getErrorNamespacesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getAnyErrorType
public org.mule.runtime.api.message.ErrorType getAnyErrorType()- Specified by:
getAnyErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getSourceErrorType
public org.mule.runtime.api.message.ErrorType getSourceErrorType()- Specified by:
getSourceErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getSourceResponseErrorType
public org.mule.runtime.api.message.ErrorType getSourceResponseErrorType()- Specified by:
getSourceResponseErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getCriticalErrorType
public org.mule.runtime.api.message.ErrorType getCriticalErrorType()- Specified by:
getCriticalErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getErrorTypes
- Specified by:
getErrorTypesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getInternalErrorTypes
- Specified by:
getInternalErrorTypesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getHierarchy
-