com.tonbeller.jpivot.test.olap
Class TestMemberProperties
java.lang.Object
com.tonbeller.jpivot.core.ExtensionSupport
com.tonbeller.jpivot.test.olap.TestExtensionSupport
com.tonbeller.jpivot.test.olap.TestMemberProperties
- All Implemented Interfaces:
- Extension, MemberProperties
public class TestMemberProperties
- extends TestExtensionSupport
- implements MemberProperties
- Author:
- av
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestMemberProperties
public TestMemberProperties()
getId
public java.lang.String getId()
- Description copied from class:
ExtensionSupport
- Returns the id.
- Specified by:
getId
in interface Extension
- Overrides:
getId
in class ExtensionSupport
- Returns:
- String
getMemberPropertyMetas
public MemberPropertyMeta[] getMemberPropertyMetas(Level level)
- Specified by:
getMemberPropertyMetas
in interface MemberProperties
getPropertyScope
public java.lang.String getPropertyScope(Member m)
- Description copied from interface:
MemberProperties
- returns a string
scope
that represents the scope of Member m.
The returned String scope
ensures that scope.equals(MemberPropertyMeta.getScope())
is
true if the property belongs to member m.
- Specified by:
getPropertyScope
in interface MemberProperties
isLevelScope
public boolean isLevelScope()
- Description copied from interface:
MemberProperties
- Properties are either Level scope or Dimension scope.
Properties are unique within their scope. If scope is level, then
properties with same name in different levels are treated
as different Properties.
If false, the scope will be Dimension.
- Specified by:
isLevelScope
in interface MemberProperties
- Returns:
setLevelScope
public void setLevelScope(boolean b)
- Parameters:
b
-
setVisibleProperties
public void setVisibleProperties(MemberPropertyMeta[] props)
- Description copied from interface:
MemberProperties
- sets the visible properties. Optimizing implementations of
PropertyHolder may only return these properties.
- Specified by:
setVisibleProperties
in interface MemberProperties
- See Also:
PropertyHolder