Java String Quote quotedName(String name)

Here you can find the source of quotedName(String name)

Description

quoted Name

License

Open Source License

Declaration

public static String quotedName(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String quotedName(String name) {
        if (name.indexOf(' ') >= 0 || name.indexOf('.') >= 0)
            return '"' + name + '"';
        else/*from   w ww. java2  s . c  o m*/
            return name;
    }
}

Related

  1. quotedEscape(final String string)
  2. quotedIndexOf(String text, int start, int limit, String setOfChars)
  3. quotedJavaChar(char c, StringBuilder b)
  4. quotedName(String name)
  5. quotedName(String name)
  6. quotedOrNULL(String str)
  7. quotedString(String in, boolean backslashIsEscape)
  8. quotedString(String str)
  9. quotedString(String string)