public class BaseObjectInspectorConfig extends Object
Handles configuring the convention to use to recognize actions/properties.
Note that whilst BaseObjectInspector
is an abstract class,
BaseObjectInspectorConfig
is concrete and instantiable. This is so that subclasses
of BaseObjectInspector
that don't require additional configuration (eg. most of
them) don't need to further define a Config
class, whilst still allowing their
property/action styles to be configured in the (rare) cases they need to. Incidentally, this is
why we call this class BaseObjectInspectorConfig
as opposed to
AbstractPropertyInspectorConfig
, because a non-abstract class called
AbstractXXX
was deemed confusing! All our other base classes are called
BaseXXX
for consistency. Also see Stephen
Colebourne's blog.
Modifier and Type | Field and Description |
---|---|
protected ActionStyle |
mActionStyle |
protected boolean |
mNullActionStyle |
protected boolean |
mNullPropertyStyle |
protected PropertyStyle |
mPropertyStyle |
Constructor and Description |
---|
BaseObjectInspectorConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected ActionStyle |
getActionStyle()
Gets the style used to recognize actions.
|
protected PropertyStyle |
getPropertyStyle()
Gets the style used to recognize properties.
|
int |
hashCode() |
BaseObjectInspectorConfig |
setActionStyle(ActionStyle actionStyle)
Sets the style used to recognize actions.
|
BaseObjectInspectorConfig |
setPropertyStyle(PropertyStyle propertyStyle)
Sets the style used to recognize properties.
|
protected PropertyStyle mPropertyStyle
protected boolean mNullPropertyStyle
protected ActionStyle mActionStyle
protected boolean mNullActionStyle
public BaseObjectInspectorConfig setPropertyStyle(PropertyStyle propertyStyle)
public BaseObjectInspectorConfig setActionStyle(ActionStyle actionStyle)
protected PropertyStyle getPropertyStyle()
protected ActionStyle getActionStyle()
Copyright © 2015. All Rights Reserved.