public class SemanticViewUtils
extends java.lang.Object
| Constructor and Description |
|---|
SemanticViewUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAttributeDisplayName(SemanticView view,
java.lang.String attributeKey,
java.util.Locale locale)
Null safe method to get an attribute display name from the view or return the key if there is none.
|
static java.lang.String |
getCollectionLanguage(SemanticView view)
Get the language of the dataset by collection key
|
static java.lang.String |
getPredefinedMetricDisplayName(SemanticView view,
java.lang.String metricKey,
java.util.Locale locale)
Null safe method to get a predefined metric display name from the view or return the key if there is none.
|
static java.lang.String |
getSourceAttributeKey(SemanticView view,
java.lang.String attributeKey)
Returns the source attribute key if one exists.
|
static boolean |
isBaseAttribute(SemanticView view,
java.lang.String attributeKey)
Determines if an attribute key exists in a base collection.
|
static boolean |
isRefineable(SemanticView view,
java.lang.String attributeKey)
Determines if the attribute having the specified keys is a refineable attribute.
|
static boolean |
isSingleAssign(SemanticView view,
java.lang.String attributeKey) |
public static boolean isSingleAssign(SemanticView view, java.lang.String attributeKey)
public static java.lang.String getAttributeDisplayName(SemanticView view, java.lang.String attributeKey, java.util.Locale locale)
attributesMap - attributeKey - locale - public static java.lang.String getPredefinedMetricDisplayName(SemanticView view, java.lang.String metricKey, java.util.Locale locale)
attributesMap - metricKey - locale - public static boolean isBaseAttribute(SemanticView view, java.lang.String attributeKey) throws DataSourceException, KeyNotFoundException
isRefineable for that purpose instead.view - attributeKey - DataSourceExceptionKeyNotFoundExceptionpublic static boolean isRefineable(SemanticView view, java.lang.String attributeKey)
view - attributeKey - public static java.lang.String getSourceAttributeKey(SemanticView view, java.lang.String attributeKey)
view - attributeKey - public static java.lang.String getCollectionLanguage(SemanticView view) throws KeyNotFoundException, DataSourceException, java.lang.Exception
dataSource - viewKey - KeyNotFoundExceptionDataSourceExceptionjava.lang.ExceptionCopyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.