Here you can find the source of quotedName(String name)
Parameter | Description |
---|---|
name | DOCUMENTME |
public static String quotedName(String name)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www . j ava 2s.c om * DOCUMENTME. * * @param name DOCUMENTME * @return DOCUMENTME */ public static String quotedName(String name) { if (name == null) return "<null>"; if ((name.indexOf(' ') >= 0) || (name.indexOf('.') >= 0) || (name.indexOf('-') >= 0)) { return '"' + name + '"'; } else { return name; } } }