MCPcopy Index your code
hub / github.com/benfry/processing4 / hasAttribute

Method hasAttribute

core/src/processing/data/XML.java:730–732  ·  view source on GitHub ↗

Checks whether or not an element has the specified attribute. The attribute must be specified as a String , and a boolean is returned. @webref xml:method @webBrief Checks whether or not an element has the specified attribute

(String name)

Source from the content-addressed store, hash-verified

728 * @webBrief Checks whether or not an element has the specified attribute
729 */
730 public boolean hasAttribute(String name) {
731 return (node.getAttributes().getNamedItem(name) != null);
732 }
733
734
735 /**

Callers 3

parseColorsMethod · 0.80
parseFontMethod · 0.80
FontGlyphMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected