001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: package org.netbeans.tax.io;
042:
043: /**
044: *
045: * @author Libor Kramolis
046: * @version 0.1
047: */
048: public final class TreeEntityManager extends TreeEntityResolver {
049:
050: /** Creates new TreeEntityManager */
051: public TreeEntityManager() {
052: }
053:
054: /** Resolve entity.
055: * @param publicId Public Identifier.
056: * @param systemId System Identifier.
057: * @param baseSystemId Base System Identifier
058: * @return Resolved entity or <CODE>null</CODE>.
059: */
060: public TreeInputSource resolveEntity(String publicId,
061: String systemId, String baseSystemId) {
062: if (Util.THIS.isLoggable()) /* then */
063: Util.THIS
064: .debug("[PENDING]: TreeEntityManager.resolveEntity ( "
065: + publicId
066: + " , "
067: + systemId
068: + " , "
069: + baseSystemId + " ) : null"); // NOI18N
070: return null;
071: }
072:
073: /** Add entity resolver to list of used resolvers.
074: * @param entityResolver entity resolver to add
075: */
076: public void addEntityResolver(TreeEntityResolver entityResolver) {
077: if (Util.THIS.isLoggable()) /* then */
078: Util.THIS
079: .debug("[PENDING]: TreeEntityManager.addEntityResolver ( "
080: + entityResolver.getClass().getName()
081: + " )"); // NOI18N
082: }
083:
084: /** Remove entity resolver from list of used.
085: * @param entityResolver entity resolver to remove
086: */
087: public void removeEntityResolver(TreeEntityResolver entityResolver) {
088: if (Util.THIS.isLoggable()) /* then */
089: Util.THIS
090: .debug("[PENDING]: TreeEntityManager.removeEntityResolver ( "
091: + entityResolver.getClass().getName()
092: + " )"); // NOI18N
093: }
094:
095: /** Resolve entity.
096: * @param publicId Public Identifier.
097: * @param systemId System Identifier.
098: * @return Resolved entity or <CODE>null</CODE>.
099: */
100: public TreeInputSource resolveEntity(String publicId,
101: String systemId) {
102: TreeInputSource retValue;
103:
104: retValue = super .resolveEntity(publicId, systemId);
105: return retValue;
106: }
107:
108: /** Expand system identifier.
109: * @param systemId System Identifier.
110: * @param baseSystemId Base System Identifier.
111: * @return Resolver system identifier.
112: */
113: public String expandSystemId(String systemId, String baseSystemId) {
114: String retValue;
115:
116: retValue = super .expandSystemId(systemId, baseSystemId);
117: return retValue;
118: }
119:
120: /** Expand system identifier.
121: * @param systemId System Identifier.
122: * @return Expanded system identifier.
123: */
124: public String expandSystemId(String systemId) {
125: String retValue;
126:
127: retValue = super.expandSystemId(systemId);
128: return retValue;
129: }
130:
131: }
|