com.sun.xml.internal.rngom.util.Uri Java Examples
The following examples show how to use
com.sun.xml.internal.rngom.util.Uri.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SchemaParser.java From hottub with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #2
Source File: SchemaParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #3
Source File: XmlBaseHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #4
Source File: XmlBaseHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #5
Source File: SchemaParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #6
Source File: SchemaParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #7
Source File: XmlBaseHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #8
Source File: XmlBaseHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #9
Source File: SchemaParser.java From hottub with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #10
Source File: XmlBaseHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #11
Source File: XmlBaseHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #12
Source File: XmlBaseHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #13
Source File: SchemaParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #14
Source File: SchemaParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #15
Source File: XmlBaseHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #16
Source File: XmlBaseHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #17
Source File: SchemaParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #18
Source File: SchemaParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #19
Source File: XmlBaseHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #20
Source File: XmlBaseHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #21
Source File: XmlBaseHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #22
Source File: SchemaParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #23
Source File: SchemaParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #24
Source File: SchemaParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #25
Source File: XmlBaseHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static String getBaseUri1(String baseUri, Entry stack) { if (stack == null || (baseUri != null && !baseUri.equals(stack.systemId))) return baseUri; baseUri = stack.attValue; if (Uri.isAbsolute(baseUri)) return baseUri; return Uri.resolve(getBaseUri1(stack.systemId, stack.parent), baseUri); }
Example #26
Source File: XmlBaseHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void xmlBaseAttribute(String value) { Entry entry = new Entry(); entry.parent = stack; stack = entry; entry.attValue = Uri.escapeDisallowedChars(value); entry.systemId = getSystemId(); entry.depth = depth; }
Example #27
Source File: SchemaParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #28
Source File: SchemaParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }
Example #29
Source File: SchemaParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private String resolve(String systemId) throws SAXException { if (Uri.hasFragmentId(systemId)) { error("href_fragment_id"); } systemId = Uri.escapeDisallowedChars(systemId); return Uri.resolve(xmlBaseHandler.getBaseUri(), systemId); }
Example #30
Source File: SchemaParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
void attributes(Attributes atts) throws SAXException { int len = atts.getLength(); for (int i = 0; i < len; i++) { String uri = atts.getURI(i); if (uri.length() == 0) { String name = atts.getLocalName(i); if (name.equals("name")) { setName(atts.getValue(i).trim()); } else if (name.equals("ns")) { ns = atts.getValue(i); } else if (name.equals("datatypeLibrary")) { datatypeLibrary = atts.getValue(i); checkUri(datatypeLibrary); if (!datatypeLibrary.equals("") && !Uri.isAbsolute(datatypeLibrary)) { error("relative_datatype_library"); } if (Uri.hasFragmentId(datatypeLibrary)) { error("fragment_identifier_datatype_library"); } datatypeLibrary = Uri.escapeDisallowedChars(datatypeLibrary); } else { setOtherAttribute(name, atts.getValue(i)); } } else if (uri.equals(relaxngURI)) { error("qualified_attribute", atts.getLocalName(i)); } else if (uri.equals(WellKnownNamespaces.XML) && atts.getLocalName(i).equals("base")) { xmlBaseHandler.xmlBaseAttribute(atts.getValue(i)); } else { if (annotations == null) { annotations = schemaBuilder.makeAnnotations(null, getContext()); } annotations.addAttribute(uri, atts.getLocalName(i), findPrefix(atts.getQName(i), uri), atts.getValue(i), startLocation); } } endAttributes(); }