BundleName

public class BundleName

A wrapper for a bundle symbolic name. Provides a convenience method for converting the name to a form that can be used as a system variable name by replacing dashes and dots with underscores.

Constructors

BundleName

public BundleName(String bundleSymbolicName)

Methods

equals

public boolean equals(Object bundle)

hashCode

public int hashCode()

underscore

public String underscore()

Converts the symbolic name represented by this object to a form that can be used as a system variable name. It will replace dots and dashes with underscores. For example org.motechproject.cms-lite will will be converted to org_motechproject_cms_lite.

Returns:the symbolic name in a form that can be used as a system variable name