public static TextNode valueOf(String v){
  if (v == null) {
    return null;
  }
  if (v.length() == 0) {
    return EMPTY_STRING_NODE;
  }
  return new TextNode(v);
}

public static TextNode valueOf ( String v ) { if ( v == null ) { return null ; } if ( v . length ( ) == 0 ) { return EMPTY_STRING_NODE ; } return new TextNode ( v ) ; }
factory method that should be used to construct instances . for some common cases , can reuse canonical instances : currently this is the case for empty strings , in future possible for others as well . if null is passed , will return null .
