org.ow2.util.archive.impl
Class ArchiveMetadataImpl

java.lang.Object
  extended by org.ow2.util.archive.impl.ArchiveMetadataImpl
All Implemented Interfaces:
IArchiveMetadata

public class ArchiveMetadataImpl
extends Object
implements IArchiveMetadata

Implementation of the metadata interface of an archive.
The keys are all in tolower case. This is because the attributes in a manifest are case-insensitive

Author:
Florent BENOIT
See Also:
class

Constructor Summary
ArchiveMetadataImpl()
          Default constructor.
 
Method Summary
 String get(String name)
          Gets the value of an entry for the given name.
 String getImplementationVersion()
           
 void put(String name, String value)
          Adds an entry into this metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveMetadataImpl

public ArchiveMetadataImpl()
Default constructor.

Method Detail

get

public String get(String name)
Gets the value of an entry for the given name.

Specified by:
get in interface IArchiveMetadata
Parameters:
name - the name of the key to use.
Returns:
the value

getImplementationVersion

public String getImplementationVersion()
Specified by:
getImplementationVersion in interface IArchiveMetadata
Returns:
the value of the implementation version of this archive.

put

public void put(String name,
                String value)
Adds an entry into this metadata.

Specified by:
put in interface IArchiveMetadata
Parameters:
name - the name of the key to add
value - the value of the given key


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.