public class DefaultMetadataPrinter extends java.lang.Object implements MetadataPrinter
Constructor and Description |
---|
DefaultMetadataPrinter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeType()
Return the type string for attribute objects
|
java.lang.String |
getDimensionType()
Return the type string for dimension objects
|
java.lang.String |
getHierarchyType()
Return the type string for hierarchy objects
|
java.lang.String |
getLevelType()
Return the type string for level objects
|
java.lang.String |
getMeasureType()
Return the type string for measure objects
|
java.lang.String |
getMetadataName(java.lang.String dbName, java.lang.String type)
Return the name the implementer wishes to have printed when given the OLAPI name from the Selection, Query, cursor, etc.
|
java.lang.String |
getValueType()
Return the type string for dimension value objects
|
boolean |
outputAsNA(java.lang.Object value)
Return if this value should be output as NA
|
public java.lang.String getMetadataName(java.lang.String dbName, java.lang.String type)
getMetadataName
in interface MetadataPrinter
dbName
- name from a connection or connection mode specific database operationMM
- type from MetadataManager of object being queried (dimension, measure, hierarchy, etc.)public java.lang.String getDimensionType()
getDimensionType
in interface MetadataPrinter
public java.lang.String getHierarchyType()
getHierarchyType
in interface MetadataPrinter
public java.lang.String getLevelType()
getLevelType
in interface MetadataPrinter
public java.lang.String getMeasureType()
getMeasureType
in interface MetadataPrinter
public java.lang.String getAttributeType()
getAttributeType
in interface MetadataPrinter
public java.lang.String getValueType()
getValueType
in interface MetadataPrinter
public boolean outputAsNA(java.lang.Object value)
MetadataPrinter
outputAsNA
in interface MetadataPrinter
true
if this value should be output as NA