|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.xmla.XMLA_QuaxUti
public class XMLA_QuaxUti
Utility Functions for Quax
Field Summary |
---|
Fields inherited from interface com.tonbeller.jpivot.olap.query.QuaxUti |
---|
FUNTYPE_BRACES, FUNTYPE_FUNCTION, FUNTYPE_INFIX, FUNTYPE_PROPERTY, FUNTYPE_TUPLE |
Constructor Summary | |
---|---|
XMLA_QuaxUti()
|
Method Summary | |
---|---|
void |
addLevelMembers(java.util.List list,
Level lev,
int[] maxLevel)
check level and add a levels members to list |
void |
addMemberChildren(java.util.List list,
Member m,
int[] maxLevel)
check level and add a member to list |
void |
addMemberDescendants(java.util.List list,
Member m,
Level lev,
int[] maxLevel)
check level and add a members descendatns to list |
void |
addMemberSiblings(java.util.List list,
Member m,
int[] maxLevel)
check level and add a member's parents children to list |
void |
addMemberUncles(java.util.List list,
Member m,
int[] maxLevel)
check level and add a member's uncles to list |
boolean |
canHandle(java.lang.Object oExp)
check an expression whether we can handle it (expand, collapse) currently we can basically handle following FunCalls member.children, member.descendants, level.members |
boolean |
checkChild(Member cMember,
java.lang.Object pMemObj)
check, whether member is child of other member |
boolean |
checkDescendantM(Member aMember,
Member dMember)
check, whether member is descendant of other member |
boolean |
checkDescendantO(Member aMember,
java.lang.Object oMember)
check, whether member object is descendant of member |
boolean |
checkParent(Member pMember,
java.lang.Object cMemObj)
check, whether member is parent of other member |
java.lang.Object |
createFunCall(java.lang.String function,
java.lang.Object[] args,
int funType)
create FunCall |
java.lang.Object |
createMemberSet(java.util.List mList)
generate an object for a list of members |
Dimension |
dimForMember(Member member)
return a members dimension |
boolean |
equalMember(java.lang.Object oExp,
Member member)
|
java.lang.Object |
funCallArg(java.lang.Object oExp,
int index)
return a FunCalls argument of given index |
int |
funCallArgCount(java.lang.Object oFun)
get number of funCall arguments |
java.lang.Object |
funCallChildren(Member member)
create Children FunCall |
java.lang.String |
funCallName(java.lang.Object oFun)
get funcall name |
java.lang.StringBuffer |
funString(java.lang.Object oFun)
create String representation for FunCall |
java.lang.Object[] |
getChildren(java.lang.Object oMember)
determine the children of a member object |
java.lang.Object[] |
getLevelMembers(Level level)
get the members of a level |
java.lang.String |
getMemberUniqueName(java.lang.Object oExp)
|
Level |
getParentLevel(Level level)
|
Member |
getParentMember(java.lang.Object oExp)
|
Hierarchy |
hierForExp(java.lang.Object oExp)
determine hierarchy for Exp |
Hierarchy |
hierForMember(Member member)
|
boolean |
isChildOfMemberInFunCall(java.lang.Object oFun,
Member m)
check, whether a funcall set contains any child of a specific member |
boolean |
isDescendantOfMemberInFunCall(java.lang.Object oExp,
Member member)
check, whether funcall set contains descendant of a specific member |
boolean |
isFunCall(java.lang.Object oExp)
|
boolean |
isFunCallNotTopLevel(java.lang.Object oExp)
check whether a Funcall does NOT resolve to top level of hierarchy |
boolean |
isFunCallTo(java.lang.Object oExp,
java.lang.String function)
|
boolean |
isMember(java.lang.Object oExp)
|
boolean |
isMemberInFunCall(java.lang.Object oExp,
Member m)
check, whether funcall set contains member |
boolean |
isMemberOnToplevel(java.lang.Object oMem)
check, whether a member is on top level (has no parent); |
int |
levelDepthForMember(java.lang.Object oExp)
level depth for member |
Level |
LevelForObj(java.lang.Object oLevel)
|
Member |
memberForObj(java.lang.Object oExp)
return member for exp object |
java.lang.String |
memberString(Member[] mPath)
display member array for debugging purposes |
java.lang.Object |
objForDim(Dimension dim)
Expression Object for Dimension |
java.lang.Object |
objForMember(Member member)
Expression Object for member |
mondrian.olap.Exp |
toExp(java.lang.Object o)
Converts an object to an expression. |
java.lang.Object |
topLevelMembers(Hierarchy hier,
boolean expandAllMember)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLA_QuaxUti()
Method Detail |
---|
public boolean isMemberInFunCall(java.lang.Object oExp, Member m) throws Quax.CannotHandleException
QuaxUti
isMemberInFunCall
in interface QuaxUti
f
- m
-
Quax.CannotHandleException
public boolean isChildOfMemberInFunCall(java.lang.Object oFun, Member m) throws Quax.CannotHandleException
QuaxUti
isChildOfMemberInFunCall
in interface QuaxUti
f
- m
-
Quax.CannotHandleException
public boolean isDescendantOfMemberInFunCall(java.lang.Object oExp, Member member) throws Quax.CannotHandleException
QuaxUti
isDescendantOfMemberInFunCall
in interface QuaxUti
f
- m
-
Quax.CannotHandleException
public void addMemberUncles(java.util.List list, Member m, int[] maxLevel)
addMemberUncles
in interface QuaxUti
m
- public void addMemberSiblings(java.util.List list, Member m, int[] maxLevel)
addMemberSiblings
in interface QuaxUti
m
- public void addMemberChildren(java.util.List list, Member m, int[] maxLevel)
addMemberChildren
in interface QuaxUti
m
- public void addMemberDescendants(java.util.List list, Member m, Level lev, int[] maxLevel)
addMemberDescendants
in interface QuaxUti
m
- public void addLevelMembers(java.util.List list, Level lev, int[] maxLevel)
addLevelMembers
in interface QuaxUti
m
- public java.lang.StringBuffer funString(java.lang.Object oFun)
funString
in interface QuaxUti
f
-
public Hierarchy hierForExp(java.lang.Object oExp) throws Quax.CannotHandleException
hierForExp
in interface QuaxUti
exp
-
Quax.CannotHandleException
public boolean isMember(java.lang.Object oExp)
isMember
in interface QuaxUti
oExp
- expression
QuaxUti.isMember(java.lang.Object)
public boolean isFunCall(java.lang.Object oExp)
isFunCall
in interface QuaxUti
QuaxUti.isFunCall(java.lang.Object)
public boolean equalMember(java.lang.Object oExp, Member member)
equalMember
in interface QuaxUti
oExp
- expression
QuaxUti.equalMember(java.lang.Object, com.tonbeller.jpivot.olap.model.Member)
public Member getParentMember(java.lang.Object oExp)
getParentMember
in interface QuaxUti
QuaxUti.getParentMember(java.lang.Object)
public java.lang.Object funCallChildren(Member member)
QuaxUti#funChildren(com.tonbeller.jpivot.olap.model.Member)
public Hierarchy hierForMember(Member member)
hierForMember
in interface QuaxUti
QuaxUti.hierForMember(com.tonbeller.jpivot.olap.model.Member)
public Dimension dimForMember(Member member)
dimForMember
in interface QuaxUti
QuaxUti.dimForMember(com.tonbeller.jpivot.olap.model.Member)
public java.lang.String getMemberUniqueName(java.lang.Object oExp)
getMemberUniqueName
in interface QuaxUti
QuaxUti.getMemberUniqueName(java.lang.Object)
public boolean isFunCallTo(java.lang.Object oExp, java.lang.String function)
isFunCallTo
in interface QuaxUti
QuaxUti#funCallTo(java.lang.Object, java.lang.String)
public java.lang.Object funCallArg(java.lang.Object oExp, int index)
funCallArg
in interface QuaxUti
QuaxUti.funCallArg(java.lang.Object, int)
public java.lang.String funCallName(java.lang.Object oFun)
QuaxUti
funCallName
in interface QuaxUti
oFun
- funcall expression
QuaxUti.funCallName(java.lang.Object)
public boolean checkParent(Member pMember, java.lang.Object cMemObj)
QuaxUti
checkParent
in interface QuaxUti
pMember
- (parent)
QuaxUti.checkParent(com.tonbeller.jpivot.olap.model.Member, java.lang.Object)
public boolean checkChild(Member cMember, java.lang.Object pMemObj)
QuaxUti
checkChild
in interface QuaxUti
cMember
- (parent)
QuaxUti.checkParent(com.tonbeller.jpivot.olap.model.Member, java.lang.Object)
public boolean checkDescendantM(Member aMember, Member dMember)
QuaxUti
checkDescendantM
in interface QuaxUti
aMember
- (ancestor)dMember
- (descendant)
QuaxUti.checkDescendant
public boolean checkDescendantO(Member aMember, java.lang.Object oMember)
QuaxUti
checkDescendantO
in interface QuaxUti
aMember
- (ancestor)oMember
- (descendant member object)
QuaxUti.checkDescendantO
public java.lang.Object objForMember(Member member)
QuaxUti
objForMember
in interface QuaxUti
QuaxUti.objForMember(com.tonbeller.jpivot.olap.model.Member)
public java.lang.Object objForDim(Dimension dim)
QuaxUti
objForDim
in interface QuaxUti
QuaxUti.objForDim(com.tonbeller.jpivot.olap.model.Dimension)
public Member memberForObj(java.lang.Object oExp)
memberForObj
in interface QuaxUti
QuaxUti.memberForObj(java.lang.Object)
public java.lang.String memberString(Member[] mPath)
memberString
in interface QuaxUti
member
-
public java.lang.Object createMemberSet(java.util.List mList)
createMemberSet
in interface QuaxUti
mList
- list of members
QuaxUti.createMemberSet(java.util.List)
public boolean isFunCallNotTopLevel(java.lang.Object oExp) throws Quax.CannotHandleException
isFunCallNotTopLevel
in interface QuaxUti
f
-
Quax.CannotHandleException
public boolean isMemberOnToplevel(java.lang.Object oMem)
QuaxUti
isMemberOnToplevel
in interface QuaxUti
QuaxUti.isMemberOnToplevel(java.lang.Object)
public int levelDepthForMember(java.lang.Object oExp)
QuaxUti
levelDepthForMember
in interface QuaxUti
oExp
- - member
QuaxUti.levelDepthForMember(java.lang.Object)
public java.lang.Object topLevelMembers(Hierarchy hier, boolean expandAllMember)
topLevelMembers
in interface QuaxUti
hier
- - the HierarchyexpandAllMember
- - if true, an "All" member will be expanded
QuaxUti#topLevelMembers(com.tonbeller.jpivot.olap.model.Hierarchy)
public int funCallArgCount(java.lang.Object oFun)
QuaxUti
funCallArgCount
in interface QuaxUti
oFun
- funcall expression
QuaxUti.funCallArgCount(java.lang.Object)
public Level LevelForObj(java.lang.Object oLevel)
LevelForObj
in interface QuaxUti
oLevel
- expression object representing level
QuaxUti.LevelForObj(java.lang.Object)
public Level getParentLevel(Level level)
getParentLevel
in interface QuaxUti
QuaxUti.getParentLevel(com.tonbeller.jpivot.olap.model.Level)
public mondrian.olap.Exp toExp(java.lang.Object o)
QuaxUti
MemberExpr
,
etc.) to olap elements (Member
, etc.).
toExp
in interface QuaxUti
o
- Object, which may or may not be an expression
public java.lang.Object createFunCall(java.lang.String function, java.lang.Object[] args, int funType)
createFunCall
in interface QuaxUti
function
- nameargs
- argumentsfunType
- FUNTYPE
QuaxUti.createFunCall(java.lang.String, java.lang.Object[], int)
public boolean canHandle(java.lang.Object oExp)
canHandle
in interface QuaxUti
QuaxUti.canHandle(java.lang.Object)
public java.lang.Object[] getChildren(java.lang.Object oMember)
QuaxUti
getChildren
in interface QuaxUti
QuaxUti.getChildren(java.lang.Object)
public java.lang.Object[] getLevelMembers(Level level)
getLevelMembers
in interface QuaxUti
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |