Package org.apache.felix.service.command

Examples of org.apache.felix.service.command.Parameter.presentValue()


                {
                    Parameter p = findAnnotation(anns[paramIdx], Parameter.class);
                    d = findAnnotation(anns[paramIdx], Descriptor.class);
                    if (p != null)
                    {
                        if (p.presentValue().equals(Parameter.UNSPECIFIED))
                        {
                            options.put(p.names()[0], p);
                            if (d != null)
                            {
                                optionDescs.put(p.names()[0], d.value());
View Full Code Here


                    if (i >= 0)
                    {
                        // parameter present
                        parms.remove(i);
                        Object value = p.presentValue();
                        if (Parameter.UNSPECIFIED.equals(value))
                        {
                            if (i >= parms.size())
                                return null; // missing parameter, so try other methods
                            value = parms.remove(i);
View Full Code Here

                                Parameter param = (Parameter) as[a];
                                for (String name : param.names())
                                {
                                    if (name.equals(item))
                                    {
                                        if (param.presentValue() == null || param.presentValue().equals(Parameter.UNSPECIFIED))
                                        {
                                            itArgs.remove(); // parameter name
                                            assert itArgs.hasNext();
                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
View Full Code Here

                                Parameter param = (Parameter) as[a];
                                for (String name : param.names())
                                {
                                    if (name.equals(item))
                                    {
                                        if (param.presentValue() == null || param.presentValue().equals(Parameter.UNSPECIFIED))
                                        {
                                            itArgs.remove(); // parameter name
                                            assert itArgs.hasNext();
                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
View Full Code Here

                                            Object value = itArgs.next(); // the value
                                            itArgs.remove(); // remove it
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], value);
                                        }
                                        else if (param.presentValue() != null)
                                        {
                                            itArgs.remove();
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], param.presentValue());
                                        }
View Full Code Here

                                        }
                                        else if (param.presentValue() != null)
                                        {
                                            itArgs.remove();
                                            out[argIndex] = coerce(session, target,
                                                types[argIndex], param.presentValue());
                                        }
                                        break;
                                    }
                                }
                            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.