Source Code Cross Referenced for XMLEntityDescriptionImpl.java in  » XML » xerces-2_9_1 » org » apache » xerces » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.util 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one or more
003:         * contributor license agreements.  See the NOTICE file distributed with
004:         * this work for additional information regarding copyright ownership.
005:         * The ASF licenses this file to You under the Apache License, Version 2.0
006:         * (the "License"); you may not use this file except in compliance with
007:         * the License.  You may obtain a copy of the License at
008:         * 
009:         *      http://www.apache.org/licenses/LICENSE-2.0
010:         * 
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         */
017:
018:        package org.apache.xerces.util;
019:
020:        import org.apache.xerces.impl.XMLEntityDescription;
021:
022:        /**
023:         * <p>This class is an implementation of the XMLEntityDescription 
024:         * interface which describes the properties of an entity.</p>
025:         *
026:         * @author Michael Glavassevich, IBM
027:         * 
028:         * @version $Id: XMLEntityDescriptionImpl.java 447241 2006-09-18 05:12:57Z mrglavas $
029:         */
030:        public class XMLEntityDescriptionImpl extends XMLResourceIdentifierImpl
031:                implements  XMLEntityDescription {
032:
033:            //
034:            // Constructors
035:            //
036:
037:            /** Constructs an empty entity description. */
038:            public XMLEntityDescriptionImpl() {
039:            } // <init>()
040:
041:            /**
042:             * Constructs an entity description.
043:             *
044:             * @param entityName The name of the entity.
045:             * @param publicId The public identifier.
046:             * @param literalSystemId The literal system identifier.
047:             * @param baseSystemId The base system identifier.
048:             * @param expandedSystemId The expanded system identifier.
049:             */
050:            public XMLEntityDescriptionImpl(String entityName, String publicId,
051:                    String literalSystemId, String baseSystemId,
052:                    String expandedSystemId) {
053:                setDescription(entityName, publicId, literalSystemId,
054:                        baseSystemId, expandedSystemId);
055:            } // <init>(String,String,String,String,String)
056:
057:            /**
058:             * Constructs a resource identifier.
059:             *
060:             * @param entityName The name of the entity.
061:             * @param publicId The public identifier.
062:             * @param literalSystemId The literal system identifier.
063:             * @param baseSystemId The base system identifier.
064:             * @param expandedSystemId The expanded system identifier.
065:             * @param namespace The namespace.
066:             */
067:            public XMLEntityDescriptionImpl(String entityName, String publicId,
068:                    String literalSystemId, String baseSystemId,
069:                    String expandedSystemId, String namespace) {
070:                setDescription(entityName, publicId, literalSystemId,
071:                        baseSystemId, expandedSystemId, namespace);
072:            } // <init>(String,String,String,String,String,String)
073:
074:            //
075:            // Data
076:            //
077:
078:            /** The name of the entity. */
079:            protected String fEntityName;
080:
081:            //
082:            // Public methods
083:            //
084:
085:            /** 
086:             * Sets the name of the entity.
087:             * 
088:             * @param name the name of the entity
089:             */
090:            public void setEntityName(String name) {
091:                fEntityName = name;
092:            } // setEntityName(String)
093:
094:            /** 
095:             * Returns the name of the entity. 
096:             *
097:             * @return the name of the entity 
098:             */
099:            public String getEntityName() {
100:                return fEntityName;
101:            } // getEntityName():String
102:
103:            /** 
104:             * <p>Sets the values of this entity description.</p>
105:             * 
106:             * @param entityName The name of the entity.
107:             * @param publicId The public identifier.
108:             * @param literalSystemId The literal system identifier.
109:             * @param baseSystemId The base system identifier.
110:             * @param expandedSystemId The expanded system identifier.
111:             */
112:            public void setDescription(String entityName, String publicId,
113:                    String literalSystemId, String baseSystemId,
114:                    String expandedSystemId) {
115:                setDescription(entityName, publicId, literalSystemId,
116:                        baseSystemId, expandedSystemId, null);
117:            } // setDescription(String,String,String,String,String)
118:
119:            /** 
120:             * <p>Sets the values of this entity description.</p>
121:             * 
122:             * @param entityName The name of the entity.
123:             * @param publicId The public identifier.
124:             * @param literalSystemId The literal system identifier.
125:             * @param baseSystemId The base system identifier.
126:             * @param expandedSystemId The expanded system identifier.
127:             * @param namespace The namespace.
128:             */
129:            public void setDescription(String entityName, String publicId,
130:                    String literalSystemId, String baseSystemId,
131:                    String expandedSystemId, String namespace) {
132:                fEntityName = entityName;
133:                setValues(publicId, literalSystemId, baseSystemId,
134:                        expandedSystemId, namespace);
135:            } // setDescription(String,String,String,String,String,String)
136:
137:            /** 
138:             * <p>Clears the values.</p>
139:             */
140:            public void clear() {
141:                super .clear();
142:                fEntityName = null;
143:            } // clear()
144:
145:            //
146:            // Object methods
147:            //
148:
149:            /** Returns a hash code for this object. */
150:            public int hashCode() {
151:                int code = super .hashCode();
152:                if (fEntityName != null) {
153:                    code += fEntityName.hashCode();
154:                }
155:                return code;
156:            } // hashCode():int
157:
158:            /** Returns a string representation of this object. */
159:            public String toString() {
160:                StringBuffer str = new StringBuffer();
161:                if (fEntityName != null) {
162:                    str.append(fEntityName);
163:                }
164:                str.append(':');
165:                if (fPublicId != null) {
166:                    str.append(fPublicId);
167:                }
168:                str.append(':');
169:                if (fLiteralSystemId != null) {
170:                    str.append(fLiteralSystemId);
171:                }
172:                str.append(':');
173:                if (fBaseSystemId != null) {
174:                    str.append(fBaseSystemId);
175:                }
176:                str.append(':');
177:                if (fExpandedSystemId != null) {
178:                    str.append(fExpandedSystemId);
179:                }
180:                str.append(':');
181:                if (fNamespace != null) {
182:                    str.append(fNamespace);
183:                }
184:                return str.toString();
185:            } // toString():String
186:
187:        } // XMLEntityDescriptionImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.