|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.jbuilder.enterprise.ejb.DeploymentDescriptor
This class represents a single EJB deployment descriptor containing its name (e.g., "ejb-jar.xml"), the timestamp given it when last written to an EJB Group, and it content recorded as an array of bytes.
Field Summary | |
protected byte[] |
bytes
Array of bytes containing descriptor content. |
protected java.lang.String |
name
Name of this descriptor (e.g., "ejb-jar.xml"). |
protected long |
timestamp
Timestamp of this descriptor, -1 if none yet known. |
Constructor Summary | |
DeploymentDescriptor()
DeploymentDescriptor default constructor. |
|
DeploymentDescriptor(java.lang.String name)
DeploymentDescriptor constructor. |
|
DeploymentDescriptor(java.lang.String name,
long timestamp)
DeploymentDescriptor constructor. |
|
DeploymentDescriptor(java.lang.String name,
long timestamp,
byte[] bytes)
DeploymentDescriptor constructor. |
Method Summary | |
byte[] |
getBytes()
Fetches content for this deployment descriptor. |
static DeploymentDescriptor[] |
getDeploymentDescriptors(EJBGRPFileNode ejbGrpNode)
Returns all deployment descriptors in the given EJB Group file. |
java.lang.String |
getName()
Fetches name for this deployment descriptor. |
long |
getTimestamp()
Fetches timestamp for this deployment descriptor. |
void |
setBytes(byte[] newBytes)
Updates content of this deployment descriptor. |
void |
setName(java.lang.String newName)
Updates name of this deployment descriptor. |
void |
setTimestamp(long newTimestamp)
Updates timestamp on this deployment descriptor. |
java.lang.String |
toString()
Converts any content into a string, translating bytes into characters according to the platform default character encoding. |
java.lang.String |
toString(java.lang.String enc)
Converts any content into a string, translating bytes into characters according to the specified character encoding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected long timestamp
protected byte[] bytes
Constructor Detail |
public DeploymentDescriptor()
public DeploymentDescriptor(java.lang.String name)
name
- Name of this descriptor (e.g., "ejb-jar.xml").public DeploymentDescriptor(java.lang.String name, long timestamp)
name
- Name of this descriptor (e.g., "ejb-jar.xml").timestamp
- Timestamp of this descriptor, -1 if none yet known.public DeploymentDescriptor(java.lang.String name, long timestamp, byte[] bytes)
name
- Name of this descriptor (e.g., "ejb-jar.xml").timestamp
- Timestamp of this descriptor, -1 if none yet known.bytes
- Array of bytes containing descriptor content.Method Detail |
public void setTimestamp(long newTimestamp)
newTimestamp
- Updated timestamp.public long getTimestamp()
public void setName(java.lang.String newName)
newName
- Updated name.public java.lang.String getName()
public void setBytes(byte[] newBytes)
newBytes
- Updated content.public byte[] getBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String enc) throws java.io.UnsupportedEncodingException
enc
- a character-encoding name.java.io.UnsupportedEncodingException
- If given encoding is not supported.public static DeploymentDescriptor[] getDeploymentDescriptors(EJBGRPFileNode ejbGrpNode)
ejbGrpNode
- The EJB Group file node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |