Source Code Cross Referenced for TagVariableInfo.java in  » 6.0-JDK-Core » Servlet-API-by-tomcat » javax » servlet » jsp » tagext » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » Servlet API by tomcat » javax.servlet.jsp.tagext 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001        /*
002         * Copyright 2004 The Apache Software Foundation
003         *
004         * Licensed under the Apache License, Version 2.0 (the "License");
005         * you may not use this file except in compliance with the License.
006         * You may obtain a copy of the License at
007         *
008         *     http://www.apache.org/licenses/LICENSE-2.0
009         *
010         * Unless required by applicable law or agreed to in writing, software
011         * distributed under the License is distributed on an "AS IS" BASIS,
012         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013         * See the License for the specific language governing permissions and
014         * limitations under the License.
015         */
016
017        package javax.servlet.jsp.tagext;
018
019        /**
020         * Variable information for a tag in a Tag Library;
021         * This class is instantiated from the Tag Library Descriptor file (TLD)
022         * and is available only at translation time.
023         *
024         * This object should be immutable.
025         *
026         * This information is only available in JSP 1.2 format TLDs or above.
027         */
028
029        public class TagVariableInfo {
030
031            /**
032             * Constructor for TagVariableInfo.
033             *
034             * @param nameGiven value of <name-given>
035             * @param nameFromAttribute value of <name-from-attribute>
036             * @param className value of <variable-class>
037             * @param declare value of <declare>
038             * @param scope value of <scope>
039             */
040            public TagVariableInfo(String nameGiven, String nameFromAttribute,
041                    String className, boolean declare, int scope) {
042                this .nameGiven = nameGiven;
043                this .nameFromAttribute = nameFromAttribute;
044                this .className = className;
045                this .declare = declare;
046                this .scope = scope;
047            }
048
049            /**
050             * The body of the <name-given> element.
051             *
052             * @return The variable name as a constant
053             */
054
055            public String getNameGiven() {
056                return nameGiven;
057            }
058
059            /**
060             * The body of the <name-from-attribute> element.
061             * This is the name of an attribute whose (translation-time)
062             * value will give the name of the variable.  One of
063             * <name-given> or <name-from-attribute> is required.
064             *
065             * @return The attribute whose value defines the variable name
066             */
067
068            public String getNameFromAttribute() {
069                return nameFromAttribute;
070            }
071
072            /**
073             * The body of the <variable-class> element.  
074             *
075             * @return The name of the class of the variable or
076             *         'java.lang.String' if not defined in the TLD.
077             */
078
079            public String getClassName() {
080                return className;
081            }
082
083            /**
084             * The body of the <declare> element.
085             *
086             * @return Whether the variable is to be declared or not.
087             *         If not defined in the TLD, 'true' will be returned.
088             */
089
090            public boolean getDeclare() {
091                return declare;
092            }
093
094            /**
095             * The body of the <scope> element.
096             *
097             * @return The scope to give the variable.  NESTED
098             *         scope will be returned if not defined in 
099             *         the TLD.
100             */
101
102            public int getScope() {
103                return scope;
104            }
105
106            /*
107             * private fields
108             */
109            private String nameGiven; // <name-given>
110            private String nameFromAttribute; // <name-from-attribute>
111            private String className; // <class>
112            private boolean declare; // <declare>
113            private int scope; // <scope>
114        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.