Java Code Examples for com.sun.xml.internal.ws.util.StringUtils
The following examples show how to use
com.sun.xml.internal.ws.util.StringUtils. These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: TencentKona-8 Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 2
Source Project: TencentKona-8 Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 3
Source Project: jdk8u60 Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 4
Source Project: jdk8u60 Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 5
Source Project: openjdk-jdk8u Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 6
Source Project: openjdk-jdk8u Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 7
Source Project: openjdk-jdk8u-backup Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 8
Source Project: openjdk-jdk8u-backup Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 9
Source Project: openjdk-jdk9 Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 10
Source Project: openjdk-jdk9 Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 11
Source Project: hottub Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 12
Source Project: hottub Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 13
Source Project: openjdk-8-source Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 14
Source Project: openjdk-8-source Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 15
Source Project: openjdk-8 Source File: AbstractWrapperBeanGenerator.java License: GNU General Public License v2.0 | 5 votes |
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
Example 16
Source Project: openjdk-8 Source File: Names.java License: GNU General Public License v2.0 | 5 votes |
public static String getJavaMemberReadMethod(JavaStructureMember member) { String return_value; if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) { return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName()); } else { return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName()); } return (return_value); }
Example 17
Source Project: TencentKona-8 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 18
Source Project: TencentKona-8 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 19
Source Project: jdk8u60 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 20
Source Project: jdk8u60 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 21
Source Project: openjdk-jdk8u Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 22
Source Project: openjdk-jdk8u Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 23
Source Project: openjdk-jdk8u-backup Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 24
Source Project: openjdk-jdk8u-backup Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 25
Source Project: openjdk-jdk9 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 26
Source Project: openjdk-jdk9 Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 27
Source Project: hottub Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 28
Source Project: hottub Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }
Example 29
Source Project: openjdk-8-source Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getWriteMethod(Field f) { return "set" + StringUtils.capitalize(f.getName()); }
Example 30
Source Project: openjdk-8-source Source File: SOAPFaultBuilder.java License: GNU General Public License v2.0 | 4 votes |
private static String getReadMethod(Field f) { if (f.getType().isAssignableFrom(boolean.class)) return "is" + StringUtils.capitalize(f.getName()); return "get" + StringUtils.capitalize(f.getName()); }