/** * Returns the name of the attribute aliased to. * * @return the name of the attribute aliased to. */ public String getAliasedToAttributeField() { return EscapeStrings.id2www(aliasedToAttributeNamed); }
/** * Constructs a new <code>DAPNode</code> with name <code>n</code>. * * @param n the name of the variable. * @param decodeName true if the name is www encoded */ public DAPNode(String n, boolean decodeName) { _myParent = null; if (decodeName) _name = EscapeStrings.www2id(n); else _name = n; _nameEncoded = EscapeStrings.id2www(_name); }
public static void main(String[] args) throws Exception { if (args.length > 0) { for (String s : args) { System.out.println("id2www - Input: \"" + s + "\" Output: \"" + id2www(s) + "\" recaptured: " + www2id(id2www(s))); } for (String s : args) { String out = id2www(s); System.out.println("www2id - Input: \"" + out + "\" Output: \"" + www2id(out) + "\" recaptured: " + id2www(www2id(out))); } } else { char[] allBytes = new char[256]; for (int b = 0; b < 256; b++) allBytes[b] = (char) b; String allChars = new String(allBytes); System.out.println("id2www All Characters"); System.out.println("Input String: \"" + allChars + "\""); System.out.println("Output String: \"" + id2www(allChars) + "\""); System.out.println("Recaptured String: \"" + www2id(id2www(allChars)) + "\" "); } }
/** * Sets the unencoded name of the class instance. * * @param n the unencoded name of the class instance. */ public void setClearName(String n) { _name = n; _nameEncoded = EscapeStrings.id2www(n); if(_attr != null) _attr.setClearName(n); if(_attrTbl != null) _attrTbl.setClearName(n); }