Iterable<Result.Attribute>
Result.CategoryData
, Result.CategoryNode
public abstract static class Result.Category extends Object implements Iterable<Result.Attribute>
Result.CategoryNode
and Result.CategoryData
classes.Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
Result.Attribute |
getAttribute(String name) |
Get the attribute with the specified name or null if no such attribute exists for this category.
|
String |
getDisplayName() |
Get the display name of this category.
|
String |
getLocale() |
Get the locale of this category.
|
String |
getParentKey() |
Get the parent key of this category.
|
int |
getProductCount() |
Get the number of products in this category.
|
String |
getTicket() |
Get the notification ticket of this category.
|
String |
getValue(String attributeName) |
Get the attribute with the specified
name from this category or null if no such attribute exists. |
String |
getValue(String attributeName,
String defaultValue) |
Get the value of the attribute with the specified
attributeName . |
int |
hashCode() |
|
Iterator<Result.Attribute> |
iterator() |
|
String |
key() |
Return the key of this category.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public final Result.Attribute getAttribute(String name)
name
- the name of the attribute to getpublic final String key()
public final String getValue(String attributeName)
name
from this category or null if no such attribute exists.attributeName
- the name of the attribute whose value to retrievepublic final String getValue(String attributeName, String defaultValue)
attributeName
. The specified defaultValue
will be returned if no such attribute exists.attributeName
- the name of the attribute whose value to retrievedefaultValue
- the value to return if this category doesn't have an attribute with the specified attributeName
public String getTicket()
public String getDisplayName()
public String getParentKey()
public String getLocale()
public int getProductCount()
public Iterator<Result.Attribute> iterator()
iterator
in interface Iterable<Result.Attribute>
Copyright © 2021 Apptus Technologies AB. All rights reserved.