public class InterfaceBasedLabelParameterStrategy extends Object implements LabelParameterStrategy
Constructor and Description |
---|
InterfaceBasedLabelParameterStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getLabel(Method method,
Object arg)
Test if the argument is labeled, and if so, downcast to LabeledData and retrieve the domain object's
labeled value.
|
String |
getNoLabel() |
boolean |
isLabeled(Method method,
Object arg)
Test if the argument implemented the LabeledData interface.
|
void |
setNoLabel(String noLabel) |
public InterfaceBasedLabelParameterStrategy()
public String getLabel(Method method, Object arg)
getLabel
in interface LabelParameterStrategy
method
- DOCUMENT ME!arg
- DOCUMENT ME!public String getNoLabel()
public boolean isLabeled(Method method, Object arg)
isLabeled
in interface LabelParameterStrategy
method
- DOCUMENT ME!arg
- DOCUMENT ME!public void setNoLabel(String noLabel)
Copyright © 2016. All rights reserved.