Package com.jedox.palojlib.main
Class Element
java.lang.Object
com.jedox.palojlib.main.Element
- All Implemented Interfaces:
IElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jedox.palojlib.interfaces.IElement
IElement.ElementPermission, IElement.ElementType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Element
(Dimension dimension, int id, String name, IElement.ElementType type, int position, int[] parentsIds, int[] childrenIds, double[] weights, int dimensionToken, String permission, boolean hiddenFiltered) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttributeValue
(String attributeName) Get the value of the attribute for this elementgetAttributeValue
(String attributeName, String language) int
Get the number of children for this elementElement[]
Get the children of the elementprotected int[]
protected Element[]
getChildrenWeight
(Integer childId) int
getId()
getName()
Get the name of the elementint
Get the number of parents for this elementElement[]
Get the parents of the elementprotected int[]
get the permission for this elementIElement.ElementPermission
.int
get the current positiongetType()
Get the type of the elementIElement.ElementType
double
Get the weight of this element under this parent elementint
hashCode()
void
move
(int position) move an element to a new positionvoid
rename an elementprotected void
setType
(IElement.ElementType type) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jedox.palojlib.interfaces.IElement
getSubTree, getSubTreeAttributes
-
Constructor Details
-
Element
protected Element(Dimension dimension, int id, String name, IElement.ElementType type, int position, int[] parentsIds, int[] childrenIds, double[] weights, int dimensionToken, String permission, boolean hiddenFiltered) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
-
Method Details
-
getName
Description copied from interface:IElement
Get the name of the element -
getPosition
public int getPosition()Description copied from interface:IElement
get the current position- Specified by:
getPosition
in interfaceIElement
- Returns:
- positive integer value
-
getType
Description copied from interface:IElement
Get the type of the elementIElement.ElementType
-
setType
-
getAttributeValue
Description copied from interface:IElement
Get the value of the attribute for this element- Specified by:
getAttributeValue
in interfaceIElement
- Parameters:
attributeName
- attribute name- Returns:
- the attribute value
- Throws:
PaloJException
- exception from the library itselfPaloException
- exception from OLAP server
-
getAttributeValue
public Object getAttributeValue(String attributeName, String language) throws PaloJException, PaloException - Specified by:
getAttributeValue
in interfaceIElement
- Throws:
PaloJException
PaloException
-
getChildCount
Description copied from interface:IElement
Get the number of children for this element- Specified by:
getChildCount
in interfaceIElement
- Returns:
- number of children
- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
getParentCount
Description copied from interface:IElement
Get the number of parents for this element- Specified by:
getParentCount
in interfaceIElement
- Returns:
- number of parents
- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
getChildren
Description copied from interface:IElement
Get the children of the element- Specified by:
getChildren
in interfaceIElement
- Returns:
- children list
- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
getChildrenObjects
-
getParents
Description copied from interface:IElement
Get the parents of the element- Specified by:
getParents
in interfaceIElement
- Returns:
- parents list
- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
getWeight
Description copied from interface:IElement
Get the weight of this element under this parent element- Specified by:
getWeight
in interfaceIElement
- Parameters:
parent
- parent element- Returns:
- double value
- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
rename
Description copied from interface:IElement
rename an element- Specified by:
rename
in interfaceIElement
- Parameters:
name
- new element name- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
move
Description copied from interface:IElement
move an element to a new position- Specified by:
move
in interfaceIElement
- Parameters:
position
- new position- Throws:
PaloException
- exception from OLAP serverPaloJException
- exception from the library itself
-
getId
public int getId() -
getParentsIds
protected int[] getParentsIds() -
getChildrenIds
protected int[] getChildrenIds() -
getAttributeValues
- Specified by:
getAttributeValues
in interfaceIElement
-
getPermission
Description copied from interface:IElement
get the permission for this elementIElement.ElementPermission
.IDimension.setWithElementPermission(boolean)
should be set to true before reading the elements- Specified by:
getPermission
in interfaceIElement
- Returns:
- permission for this element
-
getChildrenWeight
-
hashCode
public int hashCode() -
equals
-