public class ComponentModule extends BaseModule<ComponentModule,ComponentInfo> implements Validable
Modifier and Type | Field and Description |
---|---|
protected boolean |
valid
validity flag
|
moduleState
Constructor and Description |
---|
ComponentModule(ComponentInfo componentInfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String error) |
void |
addErrors(Collection<String> errors) |
Collection<String> |
getErrors() |
String |
getId()
Obtain the id of the module.
|
ComponentInfo |
getModuleInfo()
Obtain the associated module information.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(ComponentModule parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions)
Resolve the module state with the specified parent.
|
void |
setValid(boolean valid) |
String |
toString() |
finalizeChildModules, finalizeModule, getModuleState, mergeChildModules
public ComponentModule(ComponentInfo componentInfo)
componentInfo
- associated component infopublic void resolve(ComponentModule parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions)
StackDefinitionModule
resolve
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
parent
- the parent that this module will be merged withallStacks
- collection of all stack modules in the treecommonServices
- collection of all common service modules in the treeextensions
- collection of all extension modules in the treepublic ComponentInfo getModuleInfo()
StackDefinitionModule
getModuleInfo
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
public boolean isDeleted()
StackDefinitionModule
isDeleted
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
public String getId()
StackDefinitionModule
getId
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
public boolean isValid()
isValid
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
isValid
in interface Validable
public void setValid(boolean valid)
setValid
in interface StackDefinitionModule<ComponentModule,ComponentInfo>
setValid
in interface Validable
valid
- set validity flagpublic Collection<String> getErrors()
public void addErrors(Collection<String> errors)
Copyright © 2022 Apache Software Foundation. All rights reserved.