1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package com.sun.star.report.function.metadata;
24 
25 import org.pentaho.reporting.libraries.formula.function.AbstractFunctionDescription;
26 import org.pentaho.reporting.libraries.formula.function.FunctionCategory;
27 import org.pentaho.reporting.libraries.formula.typing.Type;
28 import org.pentaho.reporting.libraries.formula.typing.coretypes.TextType;
29 
30 /**
31  *
32  * @author Ocke Janssen
33  */
34 public class TitleFunctionDescription extends AbstractFunctionDescription
35 {
36 
TitleFunctionDescription()37     public TitleFunctionDescription()
38     {
39         super("TITLE", "com.sun.star.report.function.metadata.Title-Function");
40     }
41 
getCategory()42     public FunctionCategory getCategory()
43     {
44         return MetaDataFunctionCategory.CATEGORY;
45     }
46 
getParameterCount()47     public int getParameterCount()
48     {
49         return 0;
50     }
51 
getParameterType(final int position)52     public Type getParameterType(final int position)
53     {
54         return null;
55     }
56 
getValueType()57     public Type getValueType()
58     {
59         return TextType.TYPE;
60     }
61 
isParameterMandatory(final int position)62     public boolean isParameterMandatory(final int position)
63     {
64         return false;
65     }
66 }
67