📄 mondrian.dtd
字号:
<!-- This dtd file was automatically generated from XOM model mondrian. Do not edit this file by hand. --><!-- This is the XML model for Mondrian schemas. Revision is $Id: //open/mondrian-release/3.0/src/main/mondrian/olap/Mondrian.xml#3 $ --><!-- A CubeDimension is either a usage of a Dimension ('shared dimension', in MSOLAP parlance), or a 'private dimension'. --><!ENTITY % CubeDimension "VirtualCubeDimension|DimensionUsage|Dimension"><!-- A table or a join --><!ENTITY % RelationOrJoin "View|Join|Table|InlineTable"><!-- A table, inline table or view --><!ENTITY % Relation "View|Table|InlineTable"><!-- A definition of an aggregate table for a base fact table. This aggregate table must be in the same schema as the base fact table. --><!ENTITY % AggTable "AggName|AggPattern"><!ENTITY % AggColumnName "AggFactCount|AggIgnoreColumn"><!ENTITY % Expression "Column|KeyExpression|ParentExpression|OrdinalExpression|NameExpression|CaptionExpression|MeasureExpression"><!-- A collection of SQL expressions, one per dialect. --><!ENTITY % ExpressionView "KeyExpression|ParentExpression|OrdinalExpression|NameExpression|CaptionExpression|MeasureExpression"><!ENTITY % Grant "SchemaGrant|CubeGrant|DimensionGrant|HierarchyGrant"><!-- A schema is a collection of cubes and virtual cubes. It can also contain shared dimensions (for use by those cubes), named sets, roles, and declarations of user-defined functions. --><!ELEMENT Schema ((Parameter)*,(Dimension)*,(Cube)*,(VirtualCube)*,(NamedSet)*,(Role)*,(UserDefinedFunction)*)><!ATTLIST Schemaname CDATA #REQUIREDmeasuresCaption CDATA #IMPLIEDdefaultRole CDATA #IMPLIED><!-- Definition of a cube. --><!ELEMENT Cube ((%Relation;),((%CubeDimension;))*,(Measure)*,(CalculatedMember)*,(NamedSet)*)><!ATTLIST Cubename CDATA #REQUIREDcaption CDATA #IMPLIEDdefaultMeasure CDATA #IMPLIEDcache (true|false) "true"enabled (true|false) "true"><!-- A VirtualCube is a set of dimensions and measures gleaned from other cubes. --><!ELEMENT VirtualCube (CubeUsages?,(VirtualCubeDimension)*,(VirtualCubeMeasure)*,(CalculatedMember)*,(NamedSet)*)><!ATTLIST VirtualCubeenabled (true|false) "true"name CDATA #IMPLIEDdefaultMeasure CDATA #IMPLIEDcaption CDATA #IMPLIED><!-- List of base cubes used by the virtual cube. --><!ELEMENT CubeUsages ((CubeUsage)+)><!ELEMENT CubeUsage EMPTY><!ATTLIST CubeUsagecubeName CDATA #REQUIREDignoreUnrelatedDimensions (true|false) "false"><!-- A VirtualCubeDimension is a usage of a Dimension in a VirtualCube. --><!ELEMENT VirtualCubeDimension EMPTY><!ATTLIST VirtualCubeDimensioncubeName CDATA #IMPLIEDcaption CDATA #IMPLIEDforeignKey CDATA #IMPLIEDname CDATA #IMPLIED><!-- A VirtualCubeMeasure is a usage of a Measure in a VirtualCube. --><!ELEMENT VirtualCubeMeasure EMPTY><!ATTLIST VirtualCubeMeasurecubeName CDATA #IMPLIEDname CDATA #IMPLIEDvisible (true|false) #IMPLIED><!-- A DimensionUsage is usage of a shared Dimension within the context of a cube. --><!ELEMENT DimensionUsage EMPTY><!ATTLIST DimensionUsagesource CDATA #REQUIREDlevel CDATA #IMPLIEDusagePrefix CDATA #IMPLIEDname CDATA #REQUIREDcaption CDATA #IMPLIEDforeignKey CDATA #IMPLIED><!-- A Dimension is a collection of hierarchies. There are two kinds: a public dimension belongs to a Schema, and be used by several cubes; a private dimension belongs to a Cube. The foreignKey field is only applicable to private dimensions. --><!ELEMENT Dimension ((Hierarchy)*)><!ATTLIST Dimensiontype (StandardDimension|TimeDimension) #IMPLIEDusagePrefix CDATA #IMPLIEDforeignKey CDATA #IMPLIEDname CDATA #REQUIREDcaption CDATA #IMPLIED><!-- Defines a hierarchy. You must specify at most one <Relation> or memberReaderClass. If you specify none, the hierarchy is assumed to come from the same fact table of the current cube. --><!ELEMENT Hierarchy ((%RelationOrJoin;)?,(Level)*,(MemberReaderParameter)*)><!ATTLIST Hierarchyname CDATA #IMPLIEDhasAll (true|false) #REQUIREDallMemberName CDATA #IMPLIEDallMemberCaption CDATA #IMPLIEDallLevelName CDATA #IMPLIEDprimaryKey CDATA #IMPLIEDprimaryKeyTable CDATA #IMPLIEDdefaultMember CDATA #IMPLIEDmemberReaderClass CDATA #IMPLIEDcaption CDATA #IMPLIED><!ELEMENT Level (KeyExpression?,NameExpression?,OrdinalExpression?,ParentExpression?,Closure?,(Property)*)><!ATTLIST LevelapproxRowCount CDATA #IMPLIEDname CDATA #IMPLIEDtable CDATA #IMPLIEDcolumn CDATA #IMPLIEDnameColumn CDATA #IMPLIEDordinalColumn CDATA #IMPLIEDparentColumn CDATA #IMPLIEDnullParentValue CDATA #IMPLIEDtype (String|Numeric|Integer|Boolean|Date|Time|Timestamp) "String"uniqueMembers (true|false) "false"levelType (Regular|TimeYears|TimeQuarters|TimeMonths|TimeWeeks|TimeDays) "Regular"hideMemberIf (Never|IfBlankName|IfParentsName) "Never"formatter CDATA #IMPLIEDcaption CDATA #IMPLIEDcaptionColumn CDATA #IMPLIED><!-- Specifies the transitive closure of a parent-child hierarchy. Optional, but recommended for better performance. The closure is provided as a set of (parent/child) pairs: since it is the transitive closure these are actually (ancestor/descendant) pairs. --><!ELEMENT Closure (Table)><!ATTLIST ClosureparentColumn CDATA #REQUIREDchildColumn CDATA #REQUIRED><!-- Member property. --><!ELEMENT Property EMPTY><!ATTLIST Propertyname CDATA #IMPLIEDcolumn CDATA #IMPLIEDtype (String|Numeric|Integer|Boolean|Date|Time|Timestamp) "String"formatter CDATA #IMPLIEDcaption CDATA #IMPLIED><!ELEMENT Measure (MeasureExpression?,(CalculatedMemberProperty)*)><!ATTLIST Measurename CDATA #REQUIREDcolumn CDATA #IMPLIEDdatatype (String|Numeric|Integer|Boolean|Date|Time|Timestamp) #IMPLIEDformatString CDATA #IMPLIEDaggregator CDATA #REQUIREDformatter CDATA #IMPLIEDcaption CDATA #IMPLIEDvisible (true|false) #IMPLIED><!ELEMENT CalculatedMember (Formula?,(CalculatedMemberProperty)*)><!ATTLIST CalculatedMembername CDATA #REQUIREDformatString CDATA #IMPLIEDcaption CDATA #IMPLIEDformula CDATA #IMPLIEDdimension CDATA #REQUIREDvisible (true|false) #IMPLIED><!-- Property of a calculated member defined against a cube. It must have either an expression or a value. --><!ELEMENT CalculatedMemberProperty EMPTY><!ATTLIST CalculatedMemberPropertyname CDATA #REQUIREDcaption CDATA #IMPLIEDexpression CDATA #IMPLIEDvalue CDATA #IMPLIED><!-- <p>Defines a named set which can be used in queries in the same way as a set defined using a WITH SET clause.</p> <p>A named set can be defined against a particular cube, or can be global to a schema. If it is defined against a cube, it is only available to queries which use that cube.</p> <p>A named set defined against a cube is not inherited by a virtual cubes defined against that cube. (But you can define a named set against a virtual cube.)</p> <p>A named set defined against a schema is available in all cubes and virtual cubes in that schema. However, it is only valid if the cube contains dimensions with the names required to make the formula valid.</p> --><!ELEMENT NamedSet (Formula?)><!ATTLIST NamedSetname CDATA #REQUIREDformula CDATA #IMPLIED><!ELEMENT Formula (#PCDATA)><!-- Not used --><!ELEMENT MemberReaderParameter EMPTY><!ATTLIST MemberReaderParametername CDATA #IMPLIEDvalue CDATA #IMPLIED><!-- A collection of SQL statements, one per dialect. --><!ELEMENT View ((SQL)+)><!ATTLIST Viewalias CDATA #REQUIRED><!ELEMENT SQL (#PCDATA)><!ATTLIST SQLdialect (generic|access|db2|derby|firebird|hsqldb|mssql|mysql|oracle|postgres|sybase|teradata|ingres|luciddb) "generic"><!ELEMENT Join ((%RelationOrJoin;),(%RelationOrJoin;))><!ATTLIST JoinleftAlias CDATA #IMPLIEDleftKey CDATA #REQUIREDrightAlias CDATA #IMPLIEDrightKey CDATA #REQUIRED><!ELEMENT Table (SQL?,(AggExclude)*,((%AggTable;))*)><!ATTLIST Tablename CDATA #REQUIREDschema CDATA #IMPLIEDalias CDATA #IMPLIED><!ELEMENT InlineTable (ColumnDefs,Rows)><!ATTLIST InlineTablealias CDATA #IMPLIED><!-- Holder for an array of ColumnDef elements --><!ELEMENT ColumnDefs ((ColumnDef)*)><!-- Column definition for an inline table. --><!ELEMENT ColumnDef EMPTY><!ATTLIST ColumnDefname CDATA #REQUIREDtype (String|Numeric|Integer|Boolean|Date|Time|Timestamp) #REQUIRED><!-- Holder for an array of Row elements --><!ELEMENT Rows ((Row)*)><!-- Row definition for an inline table. Must have one Column for each ColumnDef in the InlineTable. --><!ELEMENT Row ((Value)*)><!-- Column value for an inline table. The CDATA holds the value of the column. --><!ELEMENT Value (#PCDATA)><!ATTLIST Valuecolumn CDATA #REQUIRED><!ELEMENT AggName (AggFactCount,(AggIgnoreColumn)*,(AggForeignKey)*,(AggMeasure)*,(AggLevel)*)><!ATTLIST AggNamename CDATA #REQUIREDignorecase (true|false) "true"><!ELEMENT AggPattern (AggFactCount,(AggIgnoreColumn)*,(AggForeignKey)*,(AggMeasure)*,(AggLevel)*,(AggExclude)*)><!ATTLIST AggPatternpattern CDATA #REQUIREDignorecase (true|false) "true"><!ELEMENT AggExclude EMPTY><!ATTLIST AggExcludepattern CDATA #IMPLIEDname CDATA #IMPLIEDignorecase (true|false) "true"><!ELEMENT AggFactCount EMPTY><!ATTLIST AggFactCountcolumn CDATA #REQUIRED><!ELEMENT AggIgnoreColumn EMPTY><!ATTLIST AggIgnoreColumncolumn CDATA #REQUIRED><!-- The name of the column mapping from base fact table foreign key to aggregate table foreign key. --><!ELEMENT AggForeignKey EMPTY><!ATTLIST AggForeignKeyfactColumn CDATA #REQUIREDaggColumn CDATA #REQUIRED><!ELEMENT AggLevel EMPTY><!ATTLIST AggLevelcolumn CDATA #REQUIREDname CDATA #REQUIRED><!ELEMENT AggMeasure EMPTY><!ATTLIST AggMeasurecolumn CDATA #REQUIREDname CDATA #REQUIRED><!ELEMENT Column EMPTY><!ATTLIST Columntable CDATA #IMPLIEDname CDATA #REQUIRED><!ELEMENT KeyExpression ((SQL)+)><!ELEMENT ParentExpression ((SQL)+)><!ELEMENT OrdinalExpression ((SQL)+)><!ELEMENT NameExpression ((SQL)+)><!ELEMENT CaptionExpression ((SQL)+)><!ELEMENT MeasureExpression ((SQL)+)><!-- A role defines an access-control profile. It has a series of grants (or denials) for schema elements. --><!ELEMENT Role ((SchemaGrant)*,Union?)><!ATTLIST Rolename CDATA #REQUIRED><!-- Grants (or denies) this role access to this schema. access may be "all", "all_dimensions", or "none". If access is "all_dimensions", the role has access to all dimensions but still needs explicit access to cubes. See mondrian.olap.Role#grant(mondrian.olap.Schema,int). --><!ELEMENT SchemaGrant ((CubeGrant)*)><!ATTLIST SchemaGrantaccess (all|custom|none|all_dimensions) #REQUIRED><!-- Grants (or denies) this role access to a cube. access may be "all" or "none". See mondrian.olap.Role#grant(mondrian.olap.Cube,int). --><!ELEMENT CubeGrant ((DimensionGrant)*,(HierarchyGrant)*)><!ATTLIST CubeGrantcube CDATA #REQUIREDaccess (all|custom|none|all_dimensions) #REQUIRED><!-- Grants (or denies) this role access to a dimension. access may be "all" or "none". Note that a role is implicitly given access to a dimension when it is given acess to a cube. See also the "all_dimensions" option of the "SchemaGrant" element. See mondrian.olap.Role#grant(mondrian.olap.Dimension,int). --><!ELEMENT DimensionGrant EMPTY><!ATTLIST DimensionGrantdimension CDATA #REQUIREDaccess (all|custom|none|all_dimensions) #REQUIRED><!-- Grants (or denies) this role access to a hierarchy. access may be "all", "custom" or "none". If access is "custom", you may also specify the attributes topLevel, bottomLevel, and the member grants. See mondrian.olap.Role#grant(mondrian.olap.Hierarchy, int, mondrian.olap.Level). --><!ELEMENT HierarchyGrant ((MemberGrant)*)><!ATTLIST HierarchyGranthierarchy CDATA #REQUIREDtopLevel CDATA #IMPLIEDbottomLevel CDATA #IMPLIEDrollupPolicy CDATA #IMPLIEDaccess (all|custom|none|all_dimensions) #REQUIRED><!-- Grants (or denies) this role access to a member. The children of this member inherit that access. You can implicitly see a member if you can see any of its children. See mondrian.olap.Role#grant(mondrian.olap.Member,int). --><!ELEMENT MemberGrant EMPTY><!ATTLIST MemberGrantmember CDATA #REQUIREDaccess (all|none) #REQUIRED><!-- Body of a Role definition which defines a Role to be the union of several Roles. The RoleUsage elements must refer to Roles that have been declared earlier in this schema file. --><!ELEMENT Union ((RoleUsage)*)><!-- Usage of a Role in a union Role. --><!ELEMENT RoleUsage EMPTY><!ATTLIST RoleUsageroleName CDATA #REQUIRED><!-- A UserDefinedFunction is a function which extends the MDX language. It must be implemented by a Java class which implements the interface mondrian.spi.UserDefinedFunction. --><!ELEMENT UserDefinedFunction EMPTY><!ATTLIST UserDefinedFunctionname CDATA #REQUIREDclassName CDATA #REQUIRED><!-- A Parameter defines a schema parameter. It can be referenced from an MDX statement using the ParamRef function and, if not final, its value can be overridden. --><!ELEMENT Parameter EMPTY><!ATTLIST Parametername CDATA #REQUIREDdescription CDATA #IMPLIEDtype (String|Numeric|Integer|Boolean|Date|Time|Timestamp|Member) "String"modifiable (true|false) "true"defaultValue CDATA #IMPLIED>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -