org.objectweb.jonas_lib.deployment.api
Class AbsDeploymentDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
All Implemented Interfaces:
DeploymentDesc
Direct Known Subclasses:
ClusterDaemonConfiguration, DomainMap, EarDeploymentDesc, RarDeploymentDesc, WSDeploymentDesc

public abstract class AbsDeploymentDesc
extends java.lang.Object
implements DeploymentDesc

This class provides an abstract implementation of the DeploymentDescriptor interface of JOnAS

Author:
Ludovic Bert, Florent Benoit

Field Summary
protected  java.lang.String displayName
          The displayName field
 
Constructor Summary
AbsDeploymentDesc()
           
 
Method Summary
 java.lang.String getDisplayName()
          Get the display name of the deployment descriptor.
protected static java.lang.String getSAXMsg(java.lang.String fileName, org.xml.sax.SAXParseException exception, java.lang.String msg)
          build a message from SAX Exception in a consistent style, consistent with emacs compile mode (same as grep, cc, javac, etc).
abstract  java.lang.String toString()
          Return a String representation of the DeploymentDesc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

displayName

protected java.lang.String displayName
The displayName field

Constructor Detail

AbsDeploymentDesc

public AbsDeploymentDesc()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Get the display name of the deployment descriptor.

Specified by:
getDisplayName in interface DeploymentDesc
Returns:
the display name of the deployment descriptor.

toString

public abstract java.lang.String toString()
Return a String representation of the DeploymentDesc.

Specified by:
toString in interface DeploymentDesc
Overrides:
toString in class java.lang.Object
Returns:
a String representation of the DeploymentDesc.

getSAXMsg

protected static java.lang.String getSAXMsg(java.lang.String fileName,
                                            org.xml.sax.SAXParseException exception,
                                            java.lang.String msg)
build a message from SAX Exception in a consistent style, consistent with emacs compile mode (same as grep, cc, javac, etc).

Parameters:
fileName - name of the file
exception - the SAX exception
msg - the string message
Returns:
a message which is in a consistent style