Fields Summary |
---|
public static final String | PUBLIC_DTD_IDThe public ID. |
public static final String | PUBLIC_DTD_ID_12 |
public static final String | SYSTEM_IDThe system ID. |
public static final String | SYSTEM_ID_12 |
public static final String | SCHEMA_ID_14 |
public static final String | SCHEMA_ID |
public static final String | SPEC_VERSION |
private static final List | systemIDs |
public static final XMLElement | tag |
private com.sun.enterprise.deployment.Application | descriptor |
Methods Summary |
---|
public void | addDescriptor(java.lang.Object newDescriptor)Adds a new DOL descriptor instance to the descriptor instance associated with
this XMLNode
if (newDescriptor instanceof EjbBundleDescriptor) {
if(DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) {
DOLUtils.getDefaultLogger().fine("In " + toString() +
" adding descriptor " + newDescriptor);
}
descriptor.addEjbBundleDescriptor((EjbBundleDescriptor) newDescriptor);
} else if (newDescriptor instanceof WebBundleDescriptor) {
DOLUtils.getDefaultLogger().fine("In " + toString() + " adding web descriptor " + newDescriptor);
descriptor.addWebBundleDescriptor((WebBundleDescriptor) newDescriptor);
}
|
public java.lang.Object | getDescriptor()
if (descriptor==null) {
descriptor = (Application) DescriptorFactory.getDescriptor(getXMLPath());
}
return descriptor;
|
public java.lang.String | getDocType()
return null;
|
public java.lang.String | getSpecVersion()
return SPEC_VERSION;
|
public java.lang.String | getSystemID()
return SCHEMA_ID;
|
public java.util.List | getSystemIDs()
return systemIDs;
|
protected XMLElement | getXMLRootTag()
return tag;
|
private static final java.util.List | initSystemIDs()
List<String> systemIDs = new ArrayList<String>();
systemIDs.add(SCHEMA_ID);
systemIDs.add(SCHEMA_ID_14);
return Collections.unmodifiableList(systemIDs);
|
public static java.lang.String | registerBundle(java.util.Map publicIDToDTD)register this node as a root node capable of loading entire DD files
publicIDToDTD.put(PUBLIC_DTD_ID, SYSTEM_ID);
publicIDToDTD.put(PUBLIC_DTD_ID_12, SYSTEM_ID_12);
return tag.getQName();
|
public void | setElementValue(XMLElement element, java.lang.String value)receives notiification of the value for a particular tag
Application application = (Application)getDescriptor();
if (element.getQName().equals(
ApplicationTagNames.LIBRARY_DIRECTORY)) {
application.setLibraryDirectory(value);
} else super.setElementValue(element, value);
|
public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, com.sun.enterprise.deployment.Descriptor descriptor)write the descriptor class to a DOM tree and return it
if (! (descriptor instanceof Application)) {
throw new IllegalArgumentException(getClass() + " cannot handles descriptors of type " + descriptor.getClass());
}
Application application = (Application) descriptor;
Node appNode = super.writeDescriptor(parent, application);
// module
ModuleNode moduleNode = new ModuleNode();
for (Iterator modules = application.getModules();modules.hasNext();) {
ModuleDescriptor next = (ModuleDescriptor) modules.next();
moduleNode.writeDescriptor(appNode, ApplicationTagNames.MODULE, next);
}
// security-role*
// this information is not written out since it's already included
// in the sub module deployment descriptors
// library-directory
if (application.getLibraryDirectoryRawValue() != null) {
appendTextChild(appNode, ApplicationTagNames.LIBRARY_DIRECTORY,
application.getLibraryDirectoryRawValue());
}
return appNode;
|