Package com.atlassian.plugin.remotable.spi.util

Examples of com.atlassian.plugin.remotable.spi.util.RemoteName


        }
    }

    static Object getEnumRemoteName(Enum arg) throws NoSuchFieldException
    {
        RemoteName remoteName = arg.getClass().getField(arg.name()).getAnnotation(RemoteName
                .class);
        return remoteName != null ? remoteName.value() : arg.name();
    }
View Full Code Here


        }
        else if (immediateType.isEnum())
        {
            for (Field field : immediateType.getFields())
            {
                RemoteName remoteName = field.getAnnotation(RemoteName.class);
                if (remoteName != null && remoteName.value().equals(returnValue))
                {
                    try
                    {
                        returnValue = field.get(null);
                    }
View Full Code Here

        for (PropertyDescriptor descriptor : PropertyUtils.getPropertyDescriptors(beanClass))
        {
            Method readMethod = descriptor.getReadMethod();
            if (readMethod != null)
            {
                RemoteName beanField = readMethod.getAnnotation(RemoteName.class);
                if (beanField != null && beanField.value() != null && !beanField.value().equals(""))
                {
                    props.put(beanField.value(), readMethod);
                }
                else
                {
                    props.put(descriptor.getName(), readMethod);
                }
View Full Code Here

TOP

Related Classes of com.atlassian.plugin.remotable.spi.util.RemoteName

Copyright © 2018 www.massapicom. 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.