org.jboss.osgi.metadata.internal
Class AbstractPackageAttribute

java.lang.Object
  extended by org.jboss.osgi.metadata.internal.AbstractAttributeAware
      extended by org.jboss.osgi.metadata.internal.AbstractParameterizedAttribute
          extended by org.jboss.osgi.metadata.internal.AbstractPackageAttribute
All Implemented Interfaces:
Serializable, AttributeAware, PackageAttribute, ParameterizedAttribute, VersionRangeAttribute

public class AbstractPackageAttribute
extends AbstractParameterizedAttribute
implements PackageAttribute, Serializable

Package attribute impl.

Author:
Ales Justin, Thomas.Diesler@jboss.com
See Also:
Serialized Form

Field Summary
protected  VersionRange versionRange
           
 
Fields inherited from class org.jboss.osgi.metadata.internal.AbstractParameterizedAttribute
attributes, directives
 
Fields inherited from class org.jboss.osgi.metadata.internal.AbstractAttributeAware
attribute
 
Constructor Summary
AbstractPackageAttribute(String packageName, Map<String,Parameter> attributes, Map<String,Parameter> directives)
           
 
Method Summary
 String getPackageName()
          Get the package name.
 VersionRange getVersion()
          Get the version range.
 
Methods inherited from class org.jboss.osgi.metadata.internal.AbstractParameterizedAttribute
getAttribute, getAttributes, getAttributeValue, getAttributeValue, getDirective, getDirectives, getDirectiveValue, getDirectiveValue, toString
 
Methods inherited from class org.jboss.osgi.metadata.internal.AbstractAttributeAware
getAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.osgi.metadata.ParameterizedAttribute
getAttribute, getAttributes, getAttributeValue, getAttributeValue, getDirective, getDirectives, getDirectiveValue, getDirectiveValue
 
Methods inherited from interface org.jboss.osgi.metadata.AttributeAware
getAttribute
 

Field Detail

versionRange

protected VersionRange versionRange
Constructor Detail

AbstractPackageAttribute

public AbstractPackageAttribute(String packageName,
                                Map<String,Parameter> attributes,
                                Map<String,Parameter> directives)
Method Detail

getPackageName

public String getPackageName()
Description copied from interface: PackageAttribute
Get the package name.

Specified by:
getPackageName in interface PackageAttribute

getVersion

public VersionRange getVersion()
Description copied from interface: VersionRangeAttribute
Get the version range.

Specified by:
getVersion in interface VersionRangeAttribute
Returns:
version range for this attribute


Copyright © 2012 JBoss by Red Hat. All Rights Reserved.