|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.io.DeploymentDescriptorFile<T>
public abstract class DeploymentDescriptorFile<T extends Descriptor>
This abstract class defines common behaviour for classes responsibles for loading/saving XML deployment descriptors
| Field Summary | |
|---|---|
static java.lang.String |
FULL_VALIDATION
|
static java.lang.String |
PARSING_VALIDATION
|
| Constructor Summary | |
|---|---|
DeploymentDescriptorFile()
Creates a new instance of DeploymentDescriptorFile |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getDefaultSchemaSource()
|
abstract java.lang.String |
getDeploymentDescriptorPath()
|
org.w3c.dom.Document |
getDocument(T descriptor)
|
javax.xml.parsers.DocumentBuilder |
getDocumentBuilder(boolean validating)
|
abstract RootXMLNode<T> |
getRootXMLNode(T descriptor)
|
javax.xml.parsers.SAXParser |
getSAXParser()
|
javax.xml.parsers.SAXParser |
getSAXParser(boolean validating)
|
protected boolean |
getXMLValidation()
|
java.lang.String |
getXMLValidationLevel()
|
T |
read(java.io.InputStream is)
read and parse a J2EE Deployment Descriptor input file and return the constructed DOL descriptors for the J2EE Module |
T |
read(T descriptor,
java.io.File in)
read and parse a J2EE Deployment Descriptor input file and return the constructed DOL descriptors for the J2EE Module |
T |
read(T descriptor,
java.io.InputStream is)
read and parse a J2EE Deployment Descriptor input file and return the constructed DOL descriptors for the J2EE Module |
T |
read(T descriptor,
ReadableArchive in)
read and parse a J2EE Deployment Descriptor input file and return the constructed DOL descriptors for the J2EE Module |
void |
setErrorReportingString(java.lang.String s)
Sets the error reporting string |
void |
setXMLValidation(boolean validate)
sets wether XML validation should be performed at load time |
void |
setXMLValidationLevel(java.lang.String level)
Sets the xml validation error reporting/recovering level. |
void |
write(T descriptor,
java.io.File out)
writes the descriptor classes into a new XML file |
void |
write(T descriptor,
java.io.OutputStream os)
writes the descriptor to an output stream |
void |
write(T descriptor,
java.lang.String path)
writes the descriptor classes into a new XML file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FULL_VALIDATION
public static final java.lang.String PARSING_VALIDATION
| Constructor Detail |
|---|
public DeploymentDescriptorFile()
| Method Detail |
|---|
public javax.xml.parsers.SAXParser getSAXParser()
public javax.xml.parsers.SAXParser getSAXParser(boolean validating)
validating - true if the parser should excercise DTD validation
public javax.xml.parsers.DocumentBuilder getDocumentBuilder(boolean validating)
validating - true if validation should happen
public T read(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXParseException
is - the input stream for the XML file
java.io.IOException
org.xml.sax.SAXParseException
public T read(T descriptor,
java.io.File in)
throws java.io.IOException,
org.xml.sax.SAXParseException
descriptor - the read is incremental, the descriptor to apply the DDs toin - the input stream for the XML file
java.io.IOException
org.xml.sax.SAXParseException
public T read(T descriptor,
ReadableArchive in)
throws java.io.IOException,
org.xml.sax.SAXParseException
descriptor - the read is incremental, the descriptor to apply the DDs toin - the input archive abstraction for the XML file
java.io.IOException
org.xml.sax.SAXParseException
public T read(T descriptor,
java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXParseException
descriptor - if the read is incremental, the descriptor to apply the DDs tois - the input stream for the XML file
java.io.IOException
org.xml.sax.SAXParseExceptionpublic org.w3c.dom.Document getDocument(T descriptor)
descriptor -
public void write(T descriptor,
java.io.OutputStream os)
throws java.io.IOException
descriptor - the descriptoros - the output stream
java.io.IOException
public void write(T descriptor,
java.lang.String path)
throws java.io.IOException
descriptor - the DOL descriptor to writepath - the file to use
java.io.IOException
public void write(T descriptor,
java.io.File out)
throws java.io.IOException
descriptor - the DOL descriptor to writeout - the file to use
java.io.IOExceptionpublic abstract java.lang.String getDeploymentDescriptorPath()
public abstract RootXMLNode<T> getRootXMLNode(T descriptor)
descriptor - the descriptor for which we need the node
protected boolean getXMLValidation()
public void setXMLValidation(boolean validate)
validate - true to validatepublic void setXMLValidationLevel(java.lang.String level)
public java.lang.String getXMLValidationLevel()
protected java.lang.String getDefaultSchemaSource()
public void setErrorReportingString(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||