01: /* ====================================================================
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: http://www.apache.org/licenses/LICENSE-2.0
10:
11: Unless required by applicable law or agreed to in writing, software
12: distributed under the License is distributed on an "AS IS" BASIS,
13: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: See the License for the specific language governing permissions and
15: limitations under the License.
16: ==================================================================== */
17:
18: package org.apache.poi.ddf;
19:
20: /**
21: * This class stores the type and description of an escher property.
22: *
23: * @author Glen Stampoultzis (glens at apache.org)
24: */
25: public class EscherPropertyMetaData {
26: // Escher property types.
27: public final static byte TYPE_UNKNOWN = (byte) 0;
28: public final static byte TYPE_BOOLEAN = (byte) 1;
29: public final static byte TYPE_RGB = (byte) 2;
30: public final static byte TYPE_SHAPEPATH = (byte) 3;
31: public final static byte TYPE_SIMPLE = (byte) 4;
32: public final static byte TYPE_ARRAY = (byte) 5;;
33:
34: private String description;
35: private byte type;
36:
37: /**
38: * @param description The description of the escher property.
39: */
40: public EscherPropertyMetaData(String description) {
41: this .description = description;
42: }
43:
44: /**
45: *
46: * @param description The description of the escher property.
47: * @param type The type of the property.
48: */
49: public EscherPropertyMetaData(String description, byte type) {
50: this .description = description;
51: this .type = type;
52: }
53:
54: public String getDescription() {
55: return description;
56: }
57:
58: public byte getType() {
59: return type;
60: }
61:
62: }
|