Class BundleInfoType

java.lang.Object
org.apache.felix.webconsole.bundleinfo.BundleInfoType

public final class BundleInfoType extends Object
This pre-java 5 enum defines all valid bundle information value types.
Author:
Valentin Valchev
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BundleInfoType
    Specifies that the value is String and is either a link to a local Servlet, or link to external HTTP server.
    static final BundleInfoType
    This information type, specifies that the value of the information is URL object, that points to a resource.
    static final BundleInfoType
    That information type is for normal information keys, that provide a normal (not link) value as information.
  • Method Summary

    Modifier and Type
    Method
    Description
    final String
    Returns the name of the type.
    final void
    That method is used to validate if the object is correct for the specified type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RESOURCE

      public static final BundleInfoType RESOURCE
      This information type, specifies that the value of the information is URL object, that points to a resource. In that case the UI could consider that as a download link.
    • VALUE

      public static final BundleInfoType VALUE
      That information type is for normal information keys, that provide a normal (not link) value as information. The type of the value is Object and UI will visualize it by using it's Object.toString() method.
  • Method Details

    • getName

      public final String getName()
      Returns the name of the type.
      Returns:
      the type name
    • validate

      public final void validate(Object value)
      That method is used to validate if the object is correct for the specified type.
      Parameters:
      value - the value that will be validated.