public class Slice extends Object implements Serializable
| Constructor and Description |
|---|
Slice() |
Slice(List<Dimension> dimensionsToInit) |
Slice(List<Dimension> dimensionsToInit,
String stringInputFormat) |
Slice(List<Dimension> dimensionsToInit,
String stringInputFormat,
boolean removeNoMbrDims) |
Slice(List<Dimension> dimensionsToInit,
String stringInputFormat,
boolean removeNoMbrDims,
boolean validateSpecialChar) |
Slice(Slice slice) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(Dimension dimension,
String name)
Adds a new Dimension and sets the POV member for the dimension in the slice.
|
void |
addMembers(Dimension dimension,
List<String> members)
Adds a new Dimension with the list of memebrs.
|
List<String> |
getAsPOVStrings() |
String |
getConstraint(String dimensionName) |
String |
getConstraintString() |
Dimension |
getDimension(DIMENSIONTYPE dimensionType) |
List<String> |
getDimensionNames()
returns names of all the dimensions that Slice has.
|
List<Dimension> |
getDimensions()
returns cloned dimensions that Slice has.
|
static List<Dimension> |
getDimsToInit(String povExpression,
List<Dimension> dimensions) |
String |
getMember(DIMENSIONTYPE type)
returns the the first member, that is the POV value as a String
|
String |
getMember(String dimensionName)
returns the the first member, that is the POV value as a String
|
List<String> |
getMembers(String dimensionName)
returns all the members as an array list for a dimension
|
LinkedHashMap<String,String> |
getPOV()
returns the Slice as LinkedHashMap.
|
String |
getPOVString()
returns the POV as HFM format String.
|
String |
getSliceAsString()
returns the Slice as HFM format String.
|
String |
getSliceAsStringEx() |
String |
getString(String dimensionName)
returns the the first member, in HFM string format
|
String |
getString(String dimensionName,
boolean allMembers)
returns the HFM format with all the members for the dimension if allMembers is true.
|
boolean |
hasEmptyMembers()
Validate if if all the dimensions has members
|
void |
insertMember(Dimension dimension,
String name,
DIMENSIONTYPE insertAfter)
Insert a new Dimension after indertAfter and sets the POV member for the dimension in the slice.
|
boolean |
isSelectable(String dimensionName) |
void |
merge(Slice slice)
This will replace the members from source slice to background pov
|
void |
merge(Slice slice,
List<String> exceptions)
This will replace the members from source slice to background pov
|
void |
mergeIfEmpty(Slice slice)
This will copy to the destination only if destination is empty
|
void |
mergeWithEmpty(Slice slice)
This will replace the members from source slice to background pov taking empty member list also if dimension is present
|
void |
removeDimension(Dimension dimension) |
void |
removeDimension(String dimensionName) |
void |
removeDimensionOld(String dimensionName)
Deprecated.
|
void |
setMember(String dimensionName,
String name)
Sets the member for the dimensionName as the POV member to the slice.
|
void |
setMember(String dimensionName,
String name,
boolean povMember)
Adds the member for the dimensionName to the slice.
|
void |
setMembers(String dimensionName,
List<String> members)
Sets the member list for the dimensionName with the new list in the slice.
|
void |
setSelectable(String dimensionName,
boolean bSelectable) |
void |
setSelectableList(String dimensionName,
String memberList) |
void |
setSelectableString(String inputString) |
void |
setString(Dimension dimension,
String value) |
void |
setString(String dimensionName,
String value) |
public Slice()
public Slice(List<Dimension> dimensionsToInit, String stringInputFormat, boolean removeNoMbrDims) throws HFMException
HFMExceptionpublic Slice(List<Dimension> dimensionsToInit, String stringInputFormat, boolean removeNoMbrDims, boolean validateSpecialChar) throws HFMException
HFMExceptionpublic Slice(Slice slice)
public boolean isSelectable(String dimensionName)
public void setSelectable(String dimensionName, boolean bSelectable)
public void removeDimension(Dimension dimension)
@Deprecated public void removeDimensionOld(String dimensionName)
dimensionName - public void removeDimension(String dimensionName)
public void setMember(String dimensionName, String name)
dimensionName - the dimension name for which the member to be set.name - the name of the member for the dimensionNamepublic void setMember(String dimensionName, String name, boolean povMember)
dimensionName - the dimension name for which the member to be set.name - the name of the member for the dimensionNamepovMember - if true , name is set as the POV member in the slicepublic void insertMember(Dimension dimension, String name, DIMENSIONTYPE insertAfter)
dimension - the dimension to be added.name - the name of the member for the dimensioninsertAfter - the dimension type after which new Diemnsion has to be insertedpublic void addMember(Dimension dimension, String name)
dimension - the dimension to be added.name - the name of the member for the dimensionpublic void setMembers(String dimensionName, List<String> members)
dimensionName - the dimension name for which the member to be set.members - new member list for the dimensionNamepublic void addMembers(Dimension dimension, List<String> members)
dimension - the dimension to be added.members - the name of the member for the dimensionpublic List<String> getMembers(String dimensionName)
dimensionName - the dimension name for which the member to be set.public String getMember(String dimensionName)
dimensionName - the dimension name for which the member to be set.public String getMember(DIMENSIONTYPE type)
type - the dimension type for which the member to be set.public String getString(String dimensionName)
dimensionName - the dimension name for which the member to be set.public String getString(String dimensionName, boolean allMembers)
dimensionName - the dimension name for which the member to be set.allMembers - the dimension name for which the member to be set.public LinkedHashMap<String,String> getPOV()
public String getPOVString()
public List<String> getAsPOVStrings()
public String getSliceAsString()
public String getSliceAsStringEx()
public List<String> getDimensionNames()
public List<Dimension> getDimensions()
public String getConstraintString()
public void setSelectableString(String inputString)
public void merge(Slice slice)
slice - source slice to mergepublic void merge(Slice slice, List<String> exceptions)
slice - source slice to mergeexceptions - list of dimension names for which the members should not be merged
pass null, if all the dimensions in the slice should be mergedpublic void mergeWithEmpty(Slice slice)
slice - source slice to mergepublic void mergeIfEmpty(Slice slice)
slice - source slice to mergepublic boolean hasEmptyMembers()
public static List<Dimension> getDimsToInit(String povExpression, List<Dimension> dimensions) throws HFMException
HFMExceptionpublic Dimension getDimension(DIMENSIONTYPE dimensionType)
dimensionType - Copyright 2007, 2026, Oracle. All rights reserved.