01: /**
02: * $Id: ParsedTagElement.java,v 1.6 2005/03/18 05:58:40 sc135395 Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.desktop.template;
14:
15: public class ParsedTagElement {
16:
17: static public final int STRING = 0;
18: static public final int TAG = 1;
19: static public final int URL = 2;
20: static public final int SURL = 3;
21: static public final int DTURL = 4;
22: static public final int DTAG = 5;
23: static public final int MSG = 6;
24:
25: private int type;
26: private String key;
27: private ParsedTagElement defaultPTE;
28:
29: public ParsedTagElement(int type, String key) {
30: this .type = type;
31: this .key = key;
32: }
33:
34: public void setDefault(ParsedTagElement def) {
35: this .defaultPTE = def;
36: }
37:
38: public int getType() {
39: return type;
40: }
41:
42: public String getKey() {
43: return key;
44: }
45:
46: public ParsedTagElement getDefault() {
47: return defaultPTE;
48: }
49:
50: }
|