|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.component.repository.ComponentRequirement
public class ComponentRequirement
This represents a component this is required by another component.
Constructor Summary | |
---|---|
ComponentRequirement()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getFieldMappingType()
Returns the type of the field this component requirement will inject. |
java.lang.String |
getFieldName()
Returns the field name that this component requirement will inject. |
java.lang.String |
getHumanReadableKey()
Returns a human-friendly key, suitable for display. |
java.lang.String |
getRole()
Returns the role of the required component. |
java.lang.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(java.lang.String fieldType)
Sets the type of the field that will be populated by the required component. |
void |
setFieldName(java.lang.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(java.lang.String role)
Sets the role of the require component. |
void |
setRoleHint(java.lang.String roleHint)
Sets the role-hint of the require component. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComponentRequirement()
Method Detail |
---|
public java.lang.String getFieldName()
public void setFieldName(java.lang.String fieldName)
fieldName
- the name of the field to be populatedpublic java.lang.String getRole()
public void setRole(java.lang.String role)
role
- the required component's rolepublic java.lang.String getRoleHint()
public void setRoleHint(java.lang.String roleHint)
roleHint
- the required component's role-hintpublic java.lang.String getFieldMappingType()
public void setFieldMappingType(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getHumanReadableKey()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |