public final class InspectionResultConstants extends Object
Metawidget promotes a loose coupling between Inspectors and widget creation. In particular, it
discourages any single Inspector dictating an XML attribute name, as that Inspector then holds a
'monopoly' on how that attribute gets initialised (eg. it should not matter whether a
required
attribute came from a JPA annotation, a Hibernate mapping file or Hibernate
Validator).
Metawidget also promotes that, as both Inspectors and widget creation evolve independently, the XML attributes recognized should evolve in an 'ad hoc' fashion: Metawidget places no restrictions on what attribute names can be used.
However, for those attribute names that have become sufficiently standardized, it is desirable to have a more formalized 'middle ground', if only to avoid typos.
Modifier and Type | Field and Description |
---|---|
static String |
ACTION |
static String |
COMES_AFTER |
static String |
CURRENCY_CODE
ISO 4217 currency code to be applied when formatting currencies.
|
static String |
CURRENCY_SYMBOL |
static String |
DATE_STYLE |
static String |
DATETIME_PATTERN |
static String |
DATETIME_TYPE |
static String |
DISABLED
Disabled field attribute.
|
static String |
DONT_EXPAND
Don't expand field attribute.
|
static String |
ENTITY |
static String |
FALSE
When a true/false attribute is false.
|
static String |
HIDDEN
Hidden field attribute.
|
static String |
INVERSE_RELATIONSHIP
The field in a child entity that relates back to us (i.e.
|
static String |
LABEL
Label field attribute.
|
static String |
LARGE
Field is a 'large' field, such as a BLOB or a CLOB.
|
static String |
LOCALE |
static String |
LOOKUP
Possible field values are to be looked up through the given set of Strings.
|
static String |
LOOKUP_HAS_EMPTY_CHOICE
Force the lookup to have an empty choice in cases where it would normally be suppressed (eg.
|
static String |
LOOKUP_LABELS
Possible field values are to be presented as the given set of Strings.
|
static String |
MASKED
Masked field attribute.
|
static String |
MAXIMUM_FRACTIONAL_DIGITS
The maximum number of fractional digits in this field.
|
static String |
MAXIMUM_INTEGER_DIGITS
The maximum number of integer digits in this field.
|
static String |
MAXIMUM_LENGTH
The maximum length of this field (eg.
|
static String |
MAXIMUM_VALUE
The maximum value this field can contain.
|
static String |
MINIMUM_FRACTIONAL_DIGITS
The minimum number of fractional digits in this field.
|
static String |
MINIMUM_INTEGER_DIGITS
The minimum number of integer digits in this field.
|
static String |
MINIMUM_LENGTH
The minimum length of this field (eg.
|
static String |
MINIMUM_VALUE
The minimum value this field can contain.
|
static String |
NAME
Name attribute.
|
static String |
NAMESPACE |
static String |
NO_SETTER
Whether the property has no setter method.
|
static String |
NUMBER_PATTERN |
static String |
NUMBER_TYPE
The type of the number, such as 'currency' or 'percentage'.
|
static String |
NUMBER_USES_GROUPING_SEPARATORS
Whether the formatted output should contain grouping separators (eg.
|
static String |
PARAMETERIZED_TYPE
Parameterized type arguments, for example the type of elements in a Set.
|
static String |
PROPERTY |
static String |
READ_ONLY
Read-only field attribute.
|
static String |
REQUIRED
Required field attribute.
|
static String |
ROOT |
static String |
SECTION |
static String |
TIME_STYLE |
static String |
TIME_ZONE |
static String |
TRUE
When a true/false attribute is true.
|
static String |
TYPE
Type attribute.
|
static String |
VALIDATION_PATTERN
Regular expression pattern specified by validation library.
|
static String |
VERSION |
static String |
WIDE
Field is a 'wide' field, spanning all columns in a multi-column layout.
|
public static final String NAMESPACE
public static final String ROOT
public static final String VERSION
public static final String ENTITY
public static final String PROPERTY
public static final String ACTION
public static final String NAME
Name is the only guide to behaviour when Metawidget is merging DOM trees from multiple Inspectors. No other attributes, element tag names or document structure are considered. For this reason, all names within any branch of the DOM-subtree must be unique.
public static final String TYPE
For Java classes, this should be the fully-qualified, instantiatable class name (for example, it should not have <K,V> or <String> generic arguments appended to it)
For more abstract concepts, this can be any unique identifier (eg. 'Login Screen').
public static final String COMES_AFTER
public static final String PARAMETERIZED_TYPE
Often this comes from generics, but it can come from other sources (eg. Hibernate mapping files, UiAttribute annotations).
public static final String READ_ONLY
public static final String NO_SETTER
Properties without setters are not automatically considered READ_ONLY
.
If the property is a complex type (eg. Address), it may be writable by setting each of its
nested primitives (eg. Street, City, etc) even though in itself it is 'not settable'.
public static final String REQUIRED
Can be set by, say, org.hibernate.validator.NotNull
or
javax.persistence.Column( nullable = false )
.
public static final String DISABLED
public static final String HIDDEN
Even though a field is 'hidden' from the user, it may still be a necessary part of the User
Interface, and must therefore be part of the inspection result. For example, HTML metawidgets
may need to render hidden fields using input type="hidden"
tags.
Also, it is not possible for an Inspector to hide a field by simply not returning it, as other Inspectors in the chain (who are not concerned with a 'hidden' attribute) will add it back in.
public static final String LOOKUP
public static final String LOOKUP_LABELS
public static final String LOOKUP_HAS_EMPTY_CHOICE
public static final String MASKED
Whether the field is 'masked' (eg. a password field). Expected values are true
or false
. Note this attribute does not denote 'masked' as in a date
format or a number format.
public static final String LABEL
public static final String SECTION
public static final String LARGE
public static final String WIDE
Wide is different to 'large', because 'large' implies a data size (ie. BLOB or CLOB) whereas 'wide' refers purely to spanning columns. Generally all 'large' fields are implicitly 'wide', but not all 'wide' fields are 'large'. For example, you may want a normal text field (not a text area) to span all columns.
public static final String MINIMUM_VALUE
public static final String MAXIMUM_VALUE
public static final String MINIMUM_LENGTH
public static final String MAXIMUM_LENGTH
Can be set by, say, org.hibernate.validator.Length
or
javax.persistence.Column( length )
.
public static final String MINIMUM_INTEGER_DIGITS
public static final String MAXIMUM_INTEGER_DIGITS
public static final String MINIMUM_FRACTIONAL_DIGITS
public static final String MAXIMUM_FRACTIONAL_DIGITS
public static final String DONT_EXPAND
public static final String TRUE
This stops ambiguity around using 'true', 't', 'yes', etc.
public static final String FALSE
public static final String INVERSE_RELATIONSHIP
mappedBy
).public static final String CURRENCY_CODE
public static final String CURRENCY_SYMBOL
public static final String NUMBER_USES_GROUPING_SEPARATORS
public static final String LOCALE
public static final String NUMBER_PATTERN
public static final String NUMBER_TYPE
public static final String DATE_STYLE
public static final String TIME_STYLE
public static final String DATETIME_PATTERN
public static final String TIME_ZONE
public static final String DATETIME_TYPE
public static final String VALIDATION_PATTERN
Copyright © 2015. All Rights Reserved.