org.jboss.deployers.vfs.spi.deployer.helpers
Class AbstractManifestMetaData

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.deployer.helpers.AbstractManifestMetaData
All Implemented Interfaces:
Externalizable, Serializable, ManifestMetaData

public class AbstractManifestMetaData
extends Object
implements ManifestMetaData, Externalizable

Abstract manifest meta data.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
protected  Manifest manifest
           
 
Constructor Summary
AbstractManifestMetaData()
           
AbstractManifestMetaData(Manifest manifest)
           
 
Method Summary
protected  String get(Attributes attributes, String name)
           
 String getAttribute(String attributesName, String name)
          Get attribute value from specific attrbiutes.
 String getEntry(String entryName, String name)
          Get attribute value from specific attrbiutes.
 String getMainAttribute(String name)
          Get the manifest attribute value.
protected  Manifest getManifest()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manifest

protected transient Manifest manifest
Constructor Detail

AbstractManifestMetaData

public AbstractManifestMetaData()

AbstractManifestMetaData

public AbstractManifestMetaData(Manifest manifest)
Method Detail

getManifest

protected Manifest getManifest()

get

protected String get(Attributes attributes,
                     String name)

getMainAttribute

public String getMainAttribute(String name)
Description copied from interface: ManifestMetaData
Get the manifest attribute value.

Specified by:
getMainAttribute in interface ManifestMetaData
Parameters:
name - the name
Returns:
attribute value or null if attribute doesn't exist

getAttribute

public String getAttribute(String attributesName,
                           String name)
Description copied from interface: ManifestMetaData
Get attribute value from specific attrbiutes.

Specified by:
getAttribute in interface ManifestMetaData
Parameters:
attributesName - attribute group name
name - string key for accessing specific attribute
Returns:
attribute value or null if attribute doesn't exist

getEntry

public String getEntry(String entryName,
                       String name)
Description copied from interface: ManifestMetaData
Get attribute value from specific attrbiutes.

Specified by:
getEntry in interface ManifestMetaData
Parameters:
entryName - entry name
name - string key for accessing specific attribute
Returns:
attribute value or null if attribute doesn't exist

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.