001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028:
029: package com.caucho.j2ee.deploytool;
030:
031: import javax.enterprise.deploy.model.DDBean;
032: import javax.enterprise.deploy.model.DDBeanRoot;
033: import javax.enterprise.deploy.model.DeployableObject;
034: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
035: import javax.enterprise.deploy.shared.ModuleType;
036: import java.io.FileNotFoundException;
037: import java.io.InputStream;
038: import java.util.Enumeration;
039:
040: /**
041: * Represents a deployable object
042: */
043: public class DeployableObjectImpl implements DeployableObject {
044: /**
045: * Returns the module type.
046: */
047: public ModuleType getType() {
048: throw new UnsupportedOperationException();
049: }
050:
051: /**
052: * Returns the deployment descriptor root.
053: */
054: public DDBeanRoot getDDBeanRoot() {
055: throw new UnsupportedOperationException();
056: }
057:
058: /**
059: * Returns the array of standard beans for the XML content based
060: * on the XPath.
061: */
062: public DDBean[] getChildBean(String xpath) {
063: throw new UnsupportedOperationException();
064: }
065:
066: /**
067: * Returns the XML content matching the xpath.
068: */
069: public String[] getText(String xpath) {
070: throw new UnsupportedOperationException();
071: }
072:
073: /**
074: * Returns the class from the module.
075: */
076: public Class getClassFromScope(String className) {
077: throw new UnsupportedOperationException();
078: }
079:
080: /**
081: * Deprecated method to get the version.
082: */
083: public String getModuleDTDVersion() {
084: throw new UnsupportedOperationException();
085: }
086:
087: /**
088: * Returns the Deployment descriptor root.
089: */
090: public DDBeanRoot getDDBeanRoot(String filename)
091: throws FileNotFoundException, DDBeanCreateException {
092: throw new UnsupportedOperationException();
093: }
094:
095: /**
096: * Returns an enumeration of the entries, which are filenames relative
097: * to the module root.
098: */
099: public Enumeration entries() {
100: throw new UnsupportedOperationException();
101: }
102:
103: /**
104: * Returns the InputStream for a given entry. The filename is relative
105: * to the module root.
106: */
107: public InputStream getEntry(String name) {
108: throw new UnsupportedOperationException();
109: }
110: }
|