|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.attributes.model.AttributeSettings
public class AttributeSettings
This class represents the top-level container for the Unified Attribute Model (UAM). It contains attribute and group hash map collections, as well as an ordered list representing the order of groups. Instances of this class can be converted to JSON using Jackson.
Constructor Summary | |
---|---|
AttributeSettings()
|
Method Summary | |
---|---|
AttributeSettings |
copyBPCs()
This method creates a shallow copy of AttributeSettings by cloning it's containers (attributes, groups and GroupOrder). |
Attribute |
getAttribute(java.lang.String key)
Looks up an attribute by its name (key). |
Attribute |
getAttribute(java.lang.String key,
java.util.Locale locale)
Looks up an attribute by its name (key) and Locale. |
BPCFilter |
getAttributeFilter()
An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups. |
java.util.HashMap<java.lang.String,Attribute> |
getAttributes()
|
BPCFilter |
getGroupFilter()
An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups. |
java.util.List<java.lang.String> |
getGroupOrder()
|
java.util.HashMap<java.lang.String,Group> |
getGroups()
|
java.util.Set<java.lang.String> |
getLanguageCodes()
|
void |
setAttributeFilter(BPCFilter attributeFilter)
|
void |
setAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
|
void |
setGroupFilter(BPCFilter groupFilter)
|
void |
setGroupOrder(java.util.List<java.lang.String> groupOrder)
|
void |
setGroups(java.util.HashMap<java.lang.String,Group> groups)
|
void |
setLanguageCodes(java.util.Set<java.lang.String> languageCodes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeSettings()
Method Detail |
---|
public void setAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
attributes
- the attributes to setpublic java.util.HashMap<java.lang.String,Attribute> getAttributes()
public Attribute getAttribute(java.lang.String key)
key
- name of attribute
public Attribute getAttribute(java.lang.String key, java.util.Locale locale)
key
- name of attributelocale
- local variant to seek
public void setGroups(java.util.HashMap<java.lang.String,Group> groups)
groups
- the groups to setpublic java.util.HashMap<java.lang.String,Group> getGroups()
public void setGroupOrder(java.util.List<java.lang.String> groupOrder)
groupOrder
- the groupOrder to setpublic java.util.List<java.lang.String> getGroupOrder()
public void setLanguageCodes(java.util.Set<java.lang.String> languageCodes)
attributes
- the attributes to setpublic java.util.Set<java.lang.String> getLanguageCodes()
public void setAttributeFilter(BPCFilter attributeFilter)
attributeFilter
- the attributeFilter to setpublic BPCFilter getAttributeFilter()
public void setGroupFilter(BPCFilter groupFilter)
groupFilter
- the groupFilter to setpublic BPCFilter getGroupFilter()
public AttributeSettings copyBPCs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |