@GwtCompatible public final class GenericFacet extends Facet<java.lang.Object>
This class holds the metadata for a facet and its options. For example, a Car record could have a Color facet with the options Black, White, Silver.
Modifier and Type | Class and Description |
---|---|
static class |
GenericFacet.GenericFacetBuilder
A builder that will construct a GenericFacet with the correct parameters
|
DEFAULT_OPTION, LOCAL_PART, QNAME, VISIBLE_BY_DEFAULT, XML_ROOT_ELEMENT
Constructor and Description |
---|
GenericFacet(java.lang.String name,
boolean isVisible,
java.lang.String defaultOption,
java.util.List<FacetOption<java.lang.Object>> options,
int numOmittedOptions,
int omittedOptionsDataCount,
boolean isExclusiveOptions)
Constructs a new facet.
|
GenericFacet(java.lang.String name,
boolean isVisible,
java.lang.String defaultOption,
java.util.List<FacetOption<java.lang.Object>> options,
int numOmittedOptions,
int omittedOptionsDataCount,
boolean isExclusiveOptions,
java.lang.String facetType,
java.lang.String sourceRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<FacetOption<java.lang.Object>> |
getOptions() |
protected void |
setOptions(java.util.List<FacetOption<java.lang.Object>> options)
Sets the options for this facet.
|
equalDataCheck, equals, findOptionById, findOptionById, findOptionByIdReadOnly, findOptionByIdReadOnly, getAppliedOptions, getDefaultOption, getFacetType, getName, getNumOmittedOptions, getOmittedOptionsDataCount, getOptionsReadOnly, getSourceRef, getTotalNumOptions, hashCode, isExclusiveOptions, isVisible, multilineToString, setAppliedOptions, setAppliedOptions, toString
public GenericFacet(java.lang.String name, boolean isVisible, java.lang.String defaultOption, java.util.List<FacetOption<java.lang.Object>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions)
name
- The name of the facet.options
- The list of options for this facet.defaultOption
- The name of the label of the option to be applied by defaultnumOmittedOptions
- The number of additional options that are available, but are not included
in the provided list of options.omittedOptionsDataCount
- The number of objects that contain data matched by the omitted options.
This allows the UI to present the generic option "Other" along with a count.isExclusiveOptions
- Whether this facet's options are exclusive or not. See
Facet.isExclusiveOptions()
.public GenericFacet(java.lang.String name, boolean isVisible, java.lang.String defaultOption, java.util.List<FacetOption<java.lang.Object>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions, java.lang.String facetType, java.lang.String sourceRef)
public java.util.List<FacetOption<java.lang.Object>> getOptions()
getOptions
in class Facet<java.lang.Object>
protected void setOptions(java.util.List<FacetOption<java.lang.Object>> options)
Facet
setOptions
in class Facet<java.lang.Object>
options
- the list of optionsCopyright © 2003-2024 Appian Corporation. All Rights Reserved.