public final class IntrospectionComponentFormatter extends ComponentFormatterTemplate
Component. This formatter does not support nested properties.| Constructor and Description |
|---|
IntrospectionComponentFormatter(Class<? extends Component> targetType,
String... propertyNames)
Creates a new
IntrospectionComponentFormatter. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doFormat(Component c)
Returns a
String representation of the given , showing only the
properties specified in this formatter's
. |
Class<? extends Component> |
targetType()
Returns the type of
this formatter supports. |
String |
toString() |
formatpublic IntrospectionComponentFormatter(Class<? extends Component> targetType, String... propertyNames)
IntrospectionComponentFormatter.targetType - the type of Component that this formatter supports.propertyNames - the property names to show as the String representation of a given
Component.NullPointerException - if targetType is null.protected String doFormat(Component c)
String representation of the given Component, showing only the
properties specified in this formatter's
constructor.doFormat in class ComponentFormatterTemplatec - the given Component.String representation of the given Component.NullPointerException - if the given Component is null.IllegalArgumentException - if the type of the given Component is not supported by this
formatter.targetType()public Class<? extends Component> targetType()
Component this formatter supports.Component this formatter supports.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.