Home
last modified time | relevance | path

Searched refs:elementName (Results 1 – 25 of 70) sorted by relevance

123

/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestDtdData.java432 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld() argument
446 || attribute.equals("value") && !elementName.equals("rbnfrule") in isDistinguishingOld()
450 || elementName.equals("annotation") && attribute.equals("cp") in isDistinguishingOld()
452 && !elementName.equals("default") in isDistinguishingOld()
453 && !elementName.equals("measurementSystem") in isDistinguishingOld()
454 && !elementName.equals("mapping") in isDistinguishingOld()
455 && !elementName.equals("abbreviationFallback") in isDistinguishingOld()
456 && !elementName.equals("preferenceOrdering")) in isDistinguishingOld()
457 …|| (elementName.equals("parseLenients") && (attribute.equals("scope") || attribute.equals("level")… in isDistinguishingOld()
458 || (elementName.equals("parseLenient") && attribute.equals("sample")) in isDistinguishingOld()
[all …]
DTestPaths.java258 String elementName = parts.getElement(i); in check() local
259 if (dtdData.isDeprecated(elementName, "*", "*")) { in check()
260 if (ALLOWED.contains(elementName)) { in check()
265 + ":" + elementName in check()
269 data.put(dtdData.dtdType, elementName, "*", "*", true); in check()
272 if (dtdData.isDeprecated(elementName, attributeName, "*")) { in check()
275 + ":" + elementName in check()
281 if (dtdData.isDeprecated(elementName, attributeName, attributeValue)) { in check()
284 + ":" + elementName in check()
290 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check()
[all …]
/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlStreamRenderer.java141 public final void openTag(String elementName, List<String> attrs) { in openTag() argument
143 writeOpenTag(elementName, attrs); in openTag()
149 private void writeOpenTag(String elementName, List<? extends String> attrs) in writeOpenTag() argument
152 elementName = safeName(elementName); in writeOpenTag()
153 if (!isValidHtmlName(elementName)) { in writeOpenTag()
154 error("Invalid element name", elementName); in writeOpenTag()
158 error("Tag content cannot appear inside CDATA element", elementName); in writeOpenTag()
162 switch (HtmlTextEscapingMode.getModeForTag(elementName)) { in writeOpenTag()
166 lastTagOpened = elementName; in writeOpenTag()
172 output.append('<').append(elementName); in writeOpenTag()
[all …]
DHtmlPolicyBuilder.java202 for (String elementName : elementNames) { in allowElements()
203 elementName = HtmlLexer.canonicalName(elementName); in allowElements()
205 elPolicies.get(elementName), policy); in allowElements()
209 elPolicies.put(elementName, newPolicy); in allowElements()
210 if (!textContainers.containsKey(elementName) in allowElements()
212 .allowsPlainTextualContent(elementName)) { in allowElements()
213 textContainers.put(elementName, true); in allowElements()
250 for (String elementName : elementNames) { in allowTextIn()
251 elementName = HtmlLexer.canonicalName(elementName); in allowTextIn()
252 textContainers.put(elementName, true); in allowTextIn()
[all …]
DElementAndAttributePolicyBasedSanitizerPolicy.java100 public void openTag(String elementName, List<String> attrs) { in openTag() argument
104 ElementAndAttributePolicies policies = elAndAttrPolicies.get(elementName); in openTag()
105 String adjustedElementName = applyPolicies(elementName, attrs, policies); in openTag()
111 deferOpenTag(elementName); in openTag()
115 String elementName, List<String> attrs, in applyPolicies() argument
130 String adjustedValue = attrPolicy.apply(elementName, name, value); in applyPolicies()
140 adjustedElementName = policies.elPolicy.apply(elementName, attrs); in applyPolicies()
147 public void closeTag(String elementName) { in closeTag() argument
152 if (elementName.equals(openElementName)) { in closeTag()
177 openElementStack.add(policies.elementName); in writeOpenTag()
[all …]
DElementAndAttributePolicies.java43 final String elementName; field in ElementAndAttributePolicies
50 String elementName, in ElementAndAttributePolicies() argument
55 this.elementName = elementName; in ElementAndAttributePolicies()
56 this.isVoid = HtmlTextEscapingMode.isVoidElement(elementName); in ElementAndAttributePolicies()
63 assert elementName.equals(p.elementName): in and()
64 elementName + " != " + p.elementName; in and()
88 if (HtmlPolicyBuilder.DEFAULT_SKIP_IF_EMPTY.contains(elementName)) { in and()
97 elementName, in and()
135 elementName, elPolicy, anded, skipIfEmpty); in andGlobals()
DHtmlChangeReporter.java99 public void openTag(String elementName, List<String> attrs) { in openTag() argument
100 output.expectedElementName = elementName; in openTag()
105 policy.openTag(elementName, attrs); in openTag()
124 context, elementName, discardedAttrNames); in openTag()
129 public void closeTag(String elementName) { in closeTag() argument
130 policy.closeTag(elementName); in closeTag()
155 public void openTag(String elementName, List<String> attrs) { in openTag() argument
156 if (elementName.equals(expectedElementName)) { in openTag()
162 renderer.openTag(elementName, attrs); in openTag()
165 public void closeTag(String elementName) { in closeTag() argument
[all …]
DElementPolicy.java56 public @Nullable String apply(String elementName, List<String> attrs); in apply() argument
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) { in apply() argument
129 elementName = first.apply(elementName, attrs); in apply()
130 return elementName != null ? second.apply(elementName, attrs) : null; in apply()
DTagBalancingHtmlStreamEventReceiver.java72 underlying.closeTag(openElements.get(i).elementName); in closeDocument()
78 public void openTag(String elementName, List<String> attrs) { in openTag() argument
79 String canonElementName = HtmlLexer.canonicalName(elementName); in openTag()
85 underlying.openTag(elementName, attrs); in openTag()
93 underlying.openTag(elInfo.elementName, attrs); in openTag()
110 blockContainerChild.elementName, Lists.<String>newArrayList()); in prepareForContent()
122 underlying.closeTag(top.elementName); in prepareForContent()
141 public void closeTag(String elementName) { in closeTag() argument
142 String canonElementName = HtmlLexer.canonicalName(elementName); in closeTag()
147 underlying.closeTag(elementName); in closeTag()
[all …]
DAttributePolicy.java58 String elementName, String attributeName, String value); in apply() argument
95 String elementName, String attributeName, String value) {
103 String elementName, String attributeName, String value) {
119 String elementName, String attributeName, @Nullable String value) { in apply() argument
122 value = p.apply(elementName, attributeName, value); in apply()
/external/cldr/tools/java/org/unicode/cldr/api/
DCldrPaths.java146 String elementName = lhs.getName(); in compareCurrentElement() local
147 int signum = signum(elementNameComparator.compare(elementName, rhs.getName())); in compareCurrentElement()
179 DtdData.getAttributeValueComparator(elementName, attributeName) in compareCurrentElement()
207 static boolean isOrdered(CldrDataType dtdType, String elementName) { in isOrdered() argument
209 if (elementName.indexOf(':') != -1) { in isOrdered()
214 return ORDERED_ELEMENTS_MAP.get(dtdType).contains(elementName); in isOrdered()
305 String elementName = pathParts.getElement(n); in processXPath() local
313 int nameEnd = elementName.indexOf('#'); in processXPath()
315 sortIndex = Integer.parseUnsignedInt(elementName.substring(nameEnd + 1)); in processXPath()
316 elementName = elementName.substring(0, nameEnd); in processXPath()
[all …]
DAttributeKey.java90 public static AttributeKey keyOf(String elementName, String attributeName) { in keyOf() argument
94 if (elementName.indexOf(':') == -1) { in keyOf()
98 elementName, attributeName); in keyOf()
99 return checkNotNull(KNOWN_KEYS.get(elementName, attributeName), in keyOf()
101 elementName, attributeName); in keyOf()
105 return new AttributeKey(elementName, attributeName); in keyOf()
108 private final String elementName; field in AttributeKey
111 private AttributeKey(String elementName, String attributeName) { in AttributeKey() argument
112 this.elementName = checkValidLabel(elementName, "element name"); in AttributeKey()
118 return elementName; in getElementName()
[all …]
DCldrPath.java122 private final String elementName;
150 this.elementName = checkValidName(name, "element"); in CldrPath()
154 if (CldrPaths.isOrdered(dtdType, elementName)) { in CldrPath()
156 "missing or invalid sort index '%s' for element: %s", sortIndex, elementName); in CldrPath()
159 "unexpected sort index '%s' for element: %s", sortIndex, elementName); in CldrPath()
195 return this.elementName.equals(name) in matchesContent()
245 return elementName; in getName()
304 boolean containsElement(String elementName) { in containsElement() argument
305 return getName().equals(elementName) in containsElement()
306 || (parent != null && parent.containsElement(elementName)); in containsElement()
[all …]
DCldrDataType.java118 Attribute getAttribute(String elementName, String attributeName) { in getAttribute() argument
119 Attribute attr = DtdData.getInstance(mainType).getAttribute(elementName, attributeName); in getAttribute()
122 attr = DtdData.getInstance(t).getAttribute(elementName, attributeName); in getAttribute()
161 boolean isDistinguishingAttribute(String elementName, String attributeName) {
162 Attribute attribute = getAttribute(elementName, attributeName);
172 boolean isValueAttribute(String elementName, String attributeName) {
173 Attribute attribute = getAttribute(elementName, attributeName);
/external/owasp/sanitizer/src/main/org/owasp/html/examples/
DUrlTextExample.java65 public void openTag(String elementName, List<String> attribs) { in openTag() argument
66 underlying.openTag(elementName, attribs); in openTag()
73 if ("a".equals(elementName)) { in openTag()
75 } else if ("img".equals(elementName)) { in openTag()
92 if (HtmlTextEscapingMode.isVoidElement(elementName)) { in openTag()
104 public void closeTag(String elementName) { in closeTag() argument
105 underlying.closeTag(elementName); in closeTag()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DNodeHandler.java54 String elementName = attrMatcher.group(1); in addHandler() local
58 if (elementName == null || elementName.isEmpty()) { in addHandler()
59 elementName = "*"; in addHandler()
62 ElementHandler elementHandler = subElementHandlers.get(elementName); in addHandler()
65 subElementHandlers.put(elementName, elementHandler); in addHandler()
/external/smali/util/src/main/java/org/jf/util/
DClassFileNameHandler.java253 String elementName = logicalName; in getNormalizedName() local
255 elementName = elementName.toLowerCase(); in getNormalizedName()
258 if (modifyWindowsReservedFilenames && isReservedFileName(elementName)) { in getNormalizedName()
259 elementName = addSuffixBeforeExtension(elementName, "#"); in getNormalizedName()
262 int utf8Length = utf8Length(elementName); in getNormalizedName()
264elementName = shortenPathComponent(elementName, utf8Length - getMaxFilenameLength()); in getNormalizedName()
266 return elementName; in getNormalizedName()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DBenchmark.java157 public void openTag(String elementName, List<String> attrs) { in sanitize()
158 if ("a".equals(elementName)) { in sanitize()
169 renderer.openTag(elementName, attrs); in sanitize()
173 public void closeTag(String elementName) { in sanitize()
174 if ("a".equals(elementName)) { in sanitize()
175 renderer.closeTag(elementName); in sanitize()
/external/testng/src/main/java/org/testng/reporters/
DXMLUtils.java61 String elementName, Boolean value, Properties attributes) { in xmlOptional() argument
63 xmlRequired(result, sp, elementName, value.toString(), attributes); in xmlOptional()
68 String elementName, @Nullable String value, Properties attributes) { in xmlOptional() argument
70 xmlRequired(result, sp, elementName, value, attributes); in xmlOptional()
75 String elementName, @Nullable String value, @Nullable Properties attributes) { in xmlRequired() argument
76 result.append(xml(sp, elementName, value, attributes)); in xmlRequired()
/external/deqp/framework/qphelper/
DqpXmlWriter.c199 deBool qpXmlWriter_startElement(qpXmlWriter* writer, const char* elementName, int numAttribs, const… in qpXmlWriter_startElement() argument
205 fprintf(writer->outputFile, "%s<%s", getIndentStr(writer->xmlElementDepth), elementName); in qpXmlWriter_startElement()
240 deBool qpXmlWriter_endElement (qpXmlWriter* writer, const char* elementName) in qpXmlWriter_endElement() argument
251 fprintf(writer->outputFile, "</%s>\n", /*getIndentStr(writer->xmlElementDepth),*/ elementName); in qpXmlWriter_endElement()
327 deBool qpXmlWriter_writeStringElement (qpXmlWriter* writer, const char* elementName, const char* el… in qpXmlWriter_writeStringElement() argument
329 if (!qpXmlWriter_startElement(writer, elementName, 0, DE_NULL) || in qpXmlWriter_writeStringElement()
331 !qpXmlWriter_endElement(writer, elementName)) in qpXmlWriter_writeStringElement()
DqpXmlWriter.h125 deBool qpXmlWriter_startElement (qpXmlWriter* writer, const char* elementName, int numAttribs, co…
133 deBool qpXmlWriter_endElement (qpXmlWriter* writer, const char* elementName);
159 deBool qpXmlWriter_writeStringElement (qpXmlWriter* writer, const char* elementName, const char* …
/external/cldr/tools/java/org/unicode/cldr/util/
DDtdData.java1118 public boolean isDistinguishing(String elementName, String attribute) { in isDistinguishing() argument
1119 return getAttributeStatus(elementName, attribute) == AttributeStatus.distinguished; in isDistinguishing()
1136 public final String elementName; field in DtdData.IllegalByDtdException
1140 … public IllegalByDtdException(String elementName, String attributeName, String attributeValue) { in IllegalByDtdException() argument
1141 this.elementName = elementName; in IllegalByDtdException()
1150 + "element=" + elementName in getMessage()
1157 public boolean isDeprecated(String elementName, String attributeName, String attributeValue) { in isDeprecated() argument
1158 Element element = nameToElement.get(elementName); in isDeprecated()
1160 throw new IllegalByDtdException(elementName, attributeName, attributeValue); in isDeprecated()
1169 throw new IllegalByDtdException(elementName, attributeName, attributeValue); in isDeprecated()
[all …]
/external/catch2/include/reporters/
Dcatch_reporter_junit.cpp218 std::string elementName; in writeAssertion() local
222 elementName = "error"; in writeAssertion()
225 elementName = "failure"; in writeAssertion()
228 elementName = "failure"; in writeAssertion()
231 elementName = "failure"; in writeAssertion()
241 elementName = "internalError"; in writeAssertion()
245 XmlWriter::ScopedElement e = xml.scopedElement( elementName ); in writeAssertion()
/external/dagger2/java/dagger/internal/codegen/
DMoreAnnotationValues.java42 List<? extends AnnotationValue> vals, String elementName) {
47 protected ImmutableList<AnnotationValue> defaultAction(Object o, String elementName) {
48 throw new IllegalArgumentException(elementName + " is not an array: " + o);
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DToUnknownStream.java332 public void endElement(String elementName) throws SAXException in endElement() argument
338 m_handler.endElement(elementName); in endElement()
459 String elementName, in startElement() argument
473 m_handler.startElement(namespaceURI, localName, elementName, atts); in startElement()
483 m_firstElementName = elementName; in startElement()
486 m_firstElementPrefix = getPrefixPartUnknown(elementName); in startElement()
495 firePseudoElement(elementName); in startElement()
519 m_handler.startElement(namespaceURI, localName, elementName, atts); in startElement()
1288 protected void firePseudoElement(String elementName) in firePseudoElement() argument
1295 sb.append(elementName); in firePseudoElement()

123