KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > j2ee > deploytool > DeployableObjectImpl


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  * Free SoftwareFoundation, Inc.
23  * 59 Temple Place, Suite 330
24  * Boston, MA 02111-1307 USA
25  *
26  * @author Scott Ferguson
27  */

28
29 package com.caucho.j2ee.deploytool;
30
31 import javax.enterprise.deploy.model.DDBean JavaDoc;
32 import javax.enterprise.deploy.model.DDBeanRoot JavaDoc;
33 import javax.enterprise.deploy.model.DeployableObject JavaDoc;
34 import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
35 import javax.enterprise.deploy.shared.ModuleType JavaDoc;
36 import java.io.FileNotFoundException JavaDoc;
37 import java.io.InputStream JavaDoc;
38 import java.util.Enumeration JavaDoc;
39
40 /**
41  * Represents a deployable object
42  */

43 public class DeployableObjectImpl implements DeployableObject JavaDoc {
44   /**
45    * Returns the module type.
46    */

47   public ModuleType JavaDoc getType()
48   {
49     throw new UnsupportedOperationException JavaDoc();
50   }
51
52   /**
53    * Returns the deployment descriptor root.
54    */

55   public DDBeanRoot JavaDoc getDDBeanRoot()
56   {
57     throw new UnsupportedOperationException JavaDoc();
58   }
59
60   /**
61    * Returns the array of standard beans for the XML content based
62    * on the XPath.
63    */

64   public DDBean JavaDoc []getChildBean(String JavaDoc xpath)
65   {
66     throw new UnsupportedOperationException JavaDoc();
67   }
68
69   /**
70    * Returns the XML content matching the xpath.
71    */

72   public String JavaDoc []getText(String JavaDoc xpath)
73   {
74     throw new UnsupportedOperationException JavaDoc();
75   }
76
77   /**
78    * Returns the class from the module.
79    */

80   public Class JavaDoc getClassFromScope(String JavaDoc className)
81   {
82     throw new UnsupportedOperationException JavaDoc();
83   }
84
85   /**
86    * Deprecated method to get the version.
87    */

88   public String JavaDoc getModuleDTDVersion()
89   {
90     throw new UnsupportedOperationException JavaDoc();
91   }
92
93   /**
94    * Returns the Deployment descriptor root.
95    */

96   public DDBeanRoot JavaDoc getDDBeanRoot(String JavaDoc filename)
97     throws FileNotFoundException JavaDoc, DDBeanCreateException
98   {
99     throw new UnsupportedOperationException JavaDoc();
100   }
101
102   /**
103    * Returns an enumeration of the entries, which are filenames relative
104    * to the module root.
105    */

106   public Enumeration JavaDoc entries()
107   {
108     throw new UnsupportedOperationException JavaDoc();
109   }
110
111   /**
112    * Returns the InputStream for a given entry. The filename is relative
113    * to the module root.
114    */

115   public InputStream JavaDoc getEntry(String JavaDoc name)
116   {
117     throw new UnsupportedOperationException JavaDoc();
118   }
119 }
120
121
Popular Tags