public class ComponentRequirement extends Object
Constructor and Description |
---|
ComponentRequirement() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getFieldMappingType()
Returns the type of the field this component requirement will inject.
|
String |
getFieldName()
Returns the field name that this component requirement will inject.
|
String |
getHumanReadableKey()
Returns a human-friendly key, suitable for display.
|
String |
getRole()
Returns the role of the required component.
|
String |
getRoleHint()
Returns the role-hint of the required component.
|
int |
hashCode() |
boolean |
isOptional()
Whether this component requirement is optional and needs not be satisfied
|
void |
setFieldMappingType(String fieldType)
Sets the type of the field that will be populated by the required
component.
|
void |
setFieldName(String fieldName)
Sets the name of the field that will be populated by the required
component.
|
void |
setOptional(boolean optional)
Controls whether a failure to satisfy this requirement can be tolerated by host component or whether construction
of the host component should also fail.
|
void |
setRole(String role)
Sets the role of the require component.
|
void |
setRoleHint(String roleHint)
Sets the role-hint of the require component.
|
String |
toString() |
public String getFieldName()
public void setFieldName(String fieldName)
fieldName
- the name of the field to be populatedpublic String getRole()
public void setRole(String role)
role
- the required component's rolepublic String getRoleHint()
public void setRoleHint(String roleHint)
roleHint
- the required component's role-hintpublic String getFieldMappingType()
public void setFieldMappingType(String fieldType)
fieldType
- the type of the field to be populatedpublic boolean isOptional()
true
if the requested component may be missing, false
if the component is mandatory.public void setOptional(boolean optional)
optional
- true
if the requested component may be missing, false
if the component is
mandatory.public String getHumanReadableKey()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.