/** * Constructs a new <code>SDSequence</code>. */ public SDSequence() { super(); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Create a new empty <code>AttributeTable</code>. * * @deprecated Use constructor that takes the name of the table. */ public AttributeTable() { _attr = new SortedTable(); }
/** * Delete the attribute named <code>name</code>. * * @param clearname The name of the attribute to delete. This can be an * attribute of any type, including containers. */ public final void delAttribute(String clearname) { _attr.remove(clearname); }
/** * Returns the <code>Attribute</code> which matches name. * * @param clearname the name of the <code>Attribute</code> to return. * @return the <code>Attribute</code> with the specified name, or null * if there is no matching <code>Attribute</code>. * @see Attribute */ public final Attribute getAttribute(String clearname) { //throws NoSuchAttributeException { Attribute a = (Attribute) _attr.get(clearname); return (a); }
/** * Returns an <code>Enumeration</code> of the attribute names in this * <code>AttributeTable</code>. * Use the <code>getAttribute</code> method to get the * <code>Attribute</code> for a given name. * * @return an <code>Enumeration</code> of <code>String</code>. * @see AttributeTable#getAttribute(String) */ public final Enumeration getNames() { return _attr.keys(); }
/** * * @return the # of contained attributes */ public int size() { return (_attr == null ? 0 : _attr.size()); }
/** * 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); }
/** * Given a string that contains WWW escape sequences, translate those escape * sequences back into ASCII characters. Escape sequences are indicted by a * leading "%" character followed by 2 characters indicating the hexidecimal * value of the character that was escaped. * * @param in The string to modify. * @return The modified string. */ public static String www2id(String in) { return unescapeString(in, _URIEscape, ""); }
/** * 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>SDSequence</code> with name <code>n</code>. * * @param n the name of the variable. */ public SDSequence(String n) { super(n); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Create a new empty <code>AttributeTable</code>. */ public AttributeTable(String clearname) { super(clearname); _attr = new SortedTable(); }
/** * Returns the <code>Attribute</code> which matches name. * * @param name the name of the <code>Attribute</code> to return. * @return True if an Attribute with named 'name' exists, False otherwise. * @see Attribute */ public final boolean hasAttribute(String name) { Attribute a = (Attribute) _attr.get(name); if (a == null) { return (false); } return (true); }
/** * Delete the attribute named <code>name</code>. * * @param name The name of the attribute to delete. This can be an * attribute of any type, including containers. */ public final void delAttribute(String name) { _attr.remove(name); }
/** * Returns an <code>Enumeration</code> of the attribute names in this * <code>AttributeTable</code>. * Use the <code>getAttribute</code> method to get the * <code>Attribute</code> for a given name. * * @return an <code>Enumeration</code> of <code>String</code>. * @see AttributeTable#getAttribute(String) */ public final Enumeration getNames() { return _attr.keys(); }
/** * Given a string that contains WWW escape sequences, translate those escape * sequences back into ASCII characters, with the exception of the escaped * space (0x20) character which appears as "%20". THe Constraint Expression * Parser will break if there are spaces in the CE. Escape sequences are * indicted by a leading "%" character followed by 2 characters indicating * the hexidecimal value of the character that was escaped. * * @param in The string to modify. * @return The modified string. */ public static String www2ce(String in) { return unescapeString(in, _URIEscape, "%20"); }
/** * Constructs a new <code>SDSequence</code>. */ public SDSequence() { super(); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Create a new empty <code>AttributeTable</code>. * * @deprecated Use constructor that takes the name of the table. */ public AttributeTable() { _attr = new SortedTable(); }
/** * Returns the <code>Attribute</code> which matches name. * * @param clearname the name of the <code>Attribute</code> to return. * @return True if an Attribute with named 'name' exists, False otherwise. * @see Attribute */ public final boolean hasAttribute(String clearname) { Attribute a = (Attribute) _attr.get(clearname); if (a == null) { return (false); } return (true); }
/** * Constructs a new <code>SDSequence</code> with name <code>n</code>. * * @param n the name of the variable. */ public SDSequence(String n) { super(n); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Create a new empty <code>AttributeTable</code>. */ public AttributeTable(String name) { super(name); _attr = new SortedTable(); }