public class BlueprintConverter
extends java.lang.Object
implements org.apache.felix.service.command.Converter
| Constructor and Description |
|---|
BlueprintConverter(org.osgi.service.blueprint.container.Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(java.lang.Class<?> desiredType,
java.lang.Object in)
Convert an object to the desired type.
|
java.lang.CharSequence |
format(java.lang.Object target,
int level,
org.apache.felix.service.command.Converter escape)
Convert an object to a CharSequence object in the requested format.
|
public BlueprintConverter(org.osgi.service.blueprint.container.Converter converter)
public java.lang.Object convert(java.lang.Class<?> desiredType,
java.lang.Object in)
throws java.lang.Exception
convert in interface org.apache.felix.service.command.ConverterdesiredType - The type that the returned object can be assigned toin - The object that must be convertedjava.lang.Exceptionpublic java.lang.CharSequence format(java.lang.Object target,
int level,
org.apache.felix.service.command.Converter escape)
throws java.lang.Exception
format in interface org.apache.felix.service.command.Convertertarget - The object to be converted to a Stringlevel - One of INSPECT, LINE, or PART.escape - Use this object to format sub ordinate objects.java.lang.ExceptionCopyright © 2012 OW2 Consortium. All Rights Reserved.