private boolean isAnnotationNamespace(String nsUri) { if (nsUri.equals(Annotations.getNamespace())) return true; else return false; }
public Map<String,String> getNormalizedPrefixes() { if (normalizedPrefixes1 == null) { normalizedPrefixes1 = new java.util.HashMap<String,String>(); normalizedPrefixes1.put(XML.xmlNamespace, "xml"); normalizedPrefixes1.put(XML.xmlnsNamespace, "xmlns"); normalizedPrefixes1.put(XML.xsiNamespace, "xsi"); normalizedPrefixes1.put(Constants.NAMESPACE_TT, ""); normalizedPrefixes1.put(Constants.NAMESPACE_TT_METADATA, "ttm"); normalizedPrefixes1.put(Constants.NAMESPACE_TT_PARAMETER, "ttp"); normalizedPrefixes1.put(Constants.NAMESPACE_TT_STYLE, "tts"); normalizedPrefixes1.put(Constants.NAMESPACE_TT_ISD, "isd"); normalizedPrefixes1.put(Annotations.getNamespace(), Annotations.getNamespacePrefix()); } return normalizedPrefixes1; }
public static final boolean isParameterDefaulted(Object content, QName name) { Map<QName,String> otherAttributes = Annotations.getOtherAttributes(content); Set<ComparableQName> defaulted = ComparableQName.parseNames(otherAttributes.get(defaultedParametersAttributeName)); return defaulted.contains(name); }
private void populateNamespaceURIs() { List<URI> namespaceUris = new java.util.ArrayList<>(); try { namespaceUris.add(new URI(Constants.NAMESPACE_TT)); namespaceUris.add(new URI(Constants.NAMESPACE_TT_METADATA)); namespaceUris.add(new URI(Constants.NAMESPACE_TT_PARAMETER)); namespaceUris.add(new URI(Constants.NAMESPACE_TT_STYLE)); namespaceUris.add(new URI(Constants.NAMESPACE_EBUTTD_METADATA)); namespaceUris.add(new URI(Constants.NAMESPACE_EBUTTD_DATATYPES)); namespaceUris.add(new URI(Constants.NAMESPACE_EBUTTD_STYLING)); namespaceUris.add(new URI(XML.xmlNamespace)); namespaceUris.add(new URI(XML.xmlnsNamespace)); namespaceUris.add(new URI(XML.xsiNamespace)); namespaceUris.add(new URI(Annotations.getNamespace())); this.namespaceURIs = namespaceUris.toArray(new URI[namespaceUris.size()]); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
private static void recordDefaultedParameter(Model model, Object content, QName parameterName, Locator locator, VerifierContext context) { Map<QName,String> otherAttributes = Annotations.getOtherAttributes(content); Set<ComparableQName> defaulted = ComparableQName.parseNames(otherAttributes.get(defaultedParametersAttributeName)); ComparableQName pn = new ComparableQName(parameterName); if (!defaulted.contains(pn)) { defaulted.add(pn); otherAttributes.put(defaultedParametersAttributeName, ComparableQName.toString(defaulted)); } }
if (localName.equals("css")) aNew = a; } else if (nsUri.equals(Annotations.getNamespace())) { if (retainLocations) { if (localName.equals("loc"))
private static String getLocatorAttribute(Object content) { Map<QName,String> attrs = Annotations.getOtherAttributes(content); if ((attrs != null) && attrs.containsKey(getLocatorAttributeQName())) return attrs.get(getLocatorAttributeQName()); else if (content instanceof Element) return getLocatorAttribute((Element) content); else return null; }
if (!localName.equals("css")) exclusions.add(a); } else if (nsUri.equals(Annotations.getNamespace())) { if (!retainLocations) exclusions.add(a); else if (value.equals(TTMLHelper.NAMESPACE_TT_METADATA)) exclusions.add(a); else if (value.equals(Annotations.getNamespace())) exclusions.add(a);
boolean configureReporter = false; if (attributes != null) { String annotationsNamespace = Annotations.getNamespace(); String parameterNamespace = TTML.Constants.NAMESPACE_TT_PARAMETER;