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 -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedElement(Dimension dimension, int id, String name, IElement.ElementType type, int position, int[] parentsIds, int[] childrenIds, double[] weights, HashMap<IAttribute, Object> attributesValues, int dimensionToken, String permission, boolean hiddenFiltered) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttributeValue(String attributeName) Get the value of the attribute for this elementgetAttributeValue(String attributeName, String language) protected HashMap<IAttribute,Object> getAttributeValues(Element language) intGet the number of children for this elementElement[]Get the children of the elementprotected int[]protected Element[]getChildrenWeight(Integer childId) intgetId()getName()Get the name of the elementintGet the number of parents for this elementElement[]Get the parents of the elementprotected int[]get the permission for this elementIElement.ElementPermission.intget the current positiongetType()Get the type of the elementIElement.ElementTypedoubleGet the weight of this element under this parent elementinthashCode()voidmove(int position) move an element to a new positionvoidrename an elementprotected voidsetType(IElement.ElementType type) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jedox.palojlib.interfaces.IElement
getSubTree, getSubTreeAttributes
-
Field Details
-
attributeValues
-
-
Constructor Details
-
Element
protected Element(Dimension dimension, int id, String name, IElement.ElementType type, int position, int[] parentsIds, int[] childrenIds, double[] weights, HashMap<IAttribute, Object> attributesValues, int dimensionToken, String permission, boolean hiddenFiltered) throws PaloException, PaloJException- Throws:
PaloExceptionPaloJException
-
-
Method Details
-
getName
Description copied from interface:IElementGet the name of the element -
getPosition
public int getPosition()Description copied from interface:IElementget the current position- Specified by:
getPositionin interfaceIElement- Returns:
- positive integer value
-
getType
Description copied from interface:IElementGet the type of the elementIElement.ElementType -
setType
-
getAttributeValue
Description copied from interface:IElementGet the value of the attribute for this element- Specified by:
getAttributeValuein 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:
getAttributeValuein interfaceIElement- Throws:
PaloJExceptionPaloException
-
getChildCount
Description copied from interface:IElementGet the number of children for this element- Specified by:
getChildCountin interfaceIElement- Returns:
- number of children
- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
getParentCount
Description copied from interface:IElementGet the number of parents for this element- Specified by:
getParentCountin interfaceIElement- Returns:
- number of parents
- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
getChildren
Description copied from interface:IElementGet the children of the element- Specified by:
getChildrenin interfaceIElement- Returns:
- children list
- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
getChildrenObjects
-
getParents
Description copied from interface:IElementGet the parents of the element- Specified by:
getParentsin interfaceIElement- Returns:
- parents list
- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
getWeight
Description copied from interface:IElementGet the weight of this element under this parent element- Specified by:
getWeightin interfaceIElement- Parameters:
parent- parent element- Returns:
- double value
- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
rename
Description copied from interface:IElementrename an element- Specified by:
renamein interfaceIElement- Parameters:
name- new element name- Throws:
PaloException- exception from OLAP serverPaloJException- exception from the library itself
-
move
Description copied from interface:IElementmove an element to a new position- Specified by:
movein 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:
getAttributeValuesin interfaceIElement
-
getAttributeValues
-
getPermission
Description copied from interface:IElementget the permission for this elementIElement.ElementPermission.IDimension.setWithElementPermission(boolean)should be set to true before reading the elements- Specified by:
getPermissionin interfaceIElement- Returns:
- permission for this element
-
getChildrenWeight
-
hashCode
public int hashCode() -
equals
-