/libcore/luni/src/main/java/java/lang/annotation/ |
IncompleteAnnotationException.java | 33 private String elementName; 41 * @param elementName 45 String elementName) { 46 super("The element " + elementName + " is not complete for the annotation " + 49 this.elementName = elementName; 66 public String elementName() { 67 return elementName;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
IncompleteAnnotationExceptionTest.java | 51 String elementName = "some element"; 53 clazz, elementName); 56 assertSame("wrong element name", elementName, e.elementName());
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
HtmlStreamEventReceiver.java | 45 public void openTag(String elementName, List<String> attrs); 47 public void closeTag(String elementName);
|
HtmlStreamRenderer.java | 141 public final void openTag(String elementName, List<String> attrs) { 143 writeOpenTag(elementName, attrs); 149 private void writeOpenTag(String elementName, List<? extends String> attrs) 152 elementName = safeName(elementName); 153 if (!isValidHtmlName(elementName)) { 154 error("Invalid element name", elementName); 158 error("Tag content cannot appear inside CDATA element", elementName); 162 switch (HtmlTextEscapingMode.getModeForTag(elementName)) { 166 lastTagOpened = elementName; [all...] |
ElementPolicy.java | 49 * @param elementName the lower-case element name. 56 public @Nullable String apply(String elementName, List<String> attrs); 105 public String apply(String elementName, List<String> attrs) { 106 return elementName; 112 public @Nullable String apply(String elementName, List<String> attrs) { 128 public @Nullable String apply(String elementName, List<String> attrs) { 129 elementName = first.apply(elementName, attrs); 130 return elementName != null ? second.apply(elementName, attrs) : null [all...] |
HtmlPolicyBuilder.java | 106 * public String apply(String elementName, List<String> attributes) { 108 * attributes.add("header-" + elementName); 202 for (String elementName : elementNames) { 203 elementName = HtmlLexer.canonicalName(elementName); 205 elPolicies.get(elementName), policy); 209 elPolicies.put(elementName, newPolicy); 210 if (!textContainers.containsKey(elementName) 212 .allowsPlainTextualContent(elementName)) { 213 textContainers.put(elementName, true) [all...] |
ElementAndAttributePolicyBasedSanitizerPolicy.java | 100 public void openTag(String elementName, List<String> attrs) { 104 ElementAndAttributePolicies policies = elAndAttrPolicies.get(elementName); 105 String adjustedElementName = applyPolicies(elementName, attrs, policies); 111 deferOpenTag(elementName); 115 String elementName, List<String> attrs, 130 String adjustedValue = attrPolicy.apply(elementName, name, value); 140 adjustedElementName = policies.elPolicy.apply(elementName, attrs); 147 public void closeTag(String elementName) { 152 if (elementName.equals(openElementName)) { 177 openElementStack.add(policies.elementName); [all...] |
ElementAndAttributePolicies.java | 43 final String elementName; 50 String elementName, 55 this.elementName = elementName; 56 this.isVoid = HtmlTextEscapingMode.isVoidElement(elementName); 63 assert elementName.equals(p.elementName): 64 elementName + " != " + p.elementName; 88 if (HtmlPolicyBuilder.DEFAULT_SKIP_IF_EMPTY.contains(elementName)) { [all...] |
HtmlChangeReporter.java | 99 public void openTag(String elementName, List<String> attrs) { 100 output.expectedElementName = elementName; 105 policy.openTag(elementName, attrs); 124 context, elementName, discardedAttrNames); 129 public void closeTag(String elementName) { 130 policy.closeTag(elementName); 155 public void openTag(String elementName, List<String> attrs) { 156 if (elementName.equals(expectedElementName)) { 162 renderer.openTag(elementName, attrs); 165 public void closeTag(String elementName) { [all...] |
HtmlChangeListener.java | 41 public void discardedTag(@Nullable T context, String elementName);
|
AttributePolicy.java | 49 * @param elementName the lower-case element name. 58 String elementName, String attributeName, String value); 95 String elementName, String attributeName, String value) { 103 String elementName, String attributeName, String value) { 119 String elementName, String attributeName, @Nullable String value) { 122 value = p.apply(elementName, attributeName, value);
|
StandardUrlAttributePolicy.java | 43 public String apply(String elementName, String attributeName, String s) {
|
TagBalancingHtmlStreamEventReceiver.java | 72 underlying.closeTag(openElements.get(i).elementName); 78 public void openTag(String elementName, List<String> attrs) { 79 String canonElementName = HtmlLexer.canonicalName(elementName); 85 underlying.openTag(elementName, attrs); 93 underlying.openTag(elInfo.elementName, attrs); 110 blockContainerChild.elementName, Lists.<String>newArrayList()); 122 underlying.closeTag(top.elementName); 141 public void closeTag(String elementName) { 142 String canonElementName = HtmlLexer.canonicalName(elementName); 147 underlying.closeTag(elementName); [all...] |
Sanitizers.java | 84 String elementName, String attributeName, String value) {
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
hc_nodeelementnodename.java | 63 String elementName; 66 elementName = elementNode.getNodeName(); 69 assertEquals("svgNodeName", "svg", elementName); 71 assertEqualsAutoCase("element", "nodeName", "html", elementName);
|
hc_nodegetownerdocument.java | 63 String elementName; 69 elementName = docElement.getNodeName(); 72 assertEquals("svgNodeName", "svg", elementName); 74 assertEqualsAutoCase("element", "ownerDocElemTagName", "html", elementName);
|
nodeelementnodename.java | 67 String elementName; 70 elementName = elementNode.getNodeName(); 73 assertEquals("svgNodeName", "svg", elementName); 75 assertEquals("nodeElementNodeNameAssert1", "staff", elementName);
|
nodegetownerdocument.java | 70 String elementName; 76 elementName = docElement.getNodeName(); 79 assertEquals("svgTagName", "svg", elementName); 81 assertEquals("nodeGetOwnerDocumentAssert1", "staff", elementName);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
createElementNS05.java | 71 String elementName; 74 elementName = newElement.getTagName(); 75 assertEquals("throw_Equals", qualifiedName, elementName);
|
/external/owasp/sanitizer/src/main/org/owasp/html/examples/ |
UrlTextExample.java | 65 public void openTag(String elementName, List<String> attribs) { 66 underlying.openTag(elementName, attribs); 73 if ("a".equals(elementName)) { 75 } else if ("img".equals(elementName)) { 92 if (HtmlTextEscapingMode.isVoidElement(elementName)) { 104 public void closeTag(String elementName) { 105 underlying.closeTag(elementName);
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
Benchmark.java | 157 public void openTag(String elementName, List<String> attrs) { 158 if ("a".equals(elementName)) { 169 renderer.openTag(elementName, attrs); 173 public void closeTag(String elementName) { 174 if ("a".equals(elementName)) { 175 renderer.closeTag(elementName);
|
HtmlChangeReporterTest.java | 50 public void discardedTag(Context context, String elementName) { 52 log.append('<').append(elementName).append("> ");
|
ElementPolicyTest.java | 29 String apply(String elementName, List<String> attrs) { 31 return elementName.indexOf(ch) >= 0 ? elementName : null;
|
/external/deqp/framework/qphelper/ |
qpXmlWriter.h | 121 * \param elementName Name of the element 124 deBool qpXmlWriter_startElement (qpXmlWriter* writer, const char* elementName, int numAttribs, const qpXmlAttribute* attribs); 129 * \param elementName Name of the element 132 deBool qpXmlWriter_endElement (qpXmlWriter* writer, const char* elementName); 154 * \param elementName Name of the element 158 deBool qpXmlWriter_writeStringElement (qpXmlWriter* writer, const char* elementName, const char* elementContent);
|
qpXmlWriter.c | 196 deBool qpXmlWriter_startElement(qpXmlWriter* writer, const char* elementName, int numAttribs, const qpXmlAttribute* attribs) 202 fprintf(writer->outputFile, "%s<%s", getIndentStr(writer->xmlElementDepth), elementName); 237 deBool qpXmlWriter_endElement (qpXmlWriter* writer, const char* elementName) 248 fprintf(writer->outputFile, "</%s>\n", /*getIndentStr(writer->xmlElementDepth),*/ elementName); 324 deBool qpXmlWriter_writeStringElement (qpXmlWriter* writer, const char* elementName, const char* elementContent) 326 if (!qpXmlWriter_startElement(writer, elementName, 0, DE_NULL) || 328 !qpXmlWriter_endElement(writer, elementName))
|