reader = new LocationFilterReader(reader, catalog); InputSource is = new InputSource(key); opts.addGrammar(is);
public int nextTag() throws XMLStreamException { int i = super.nextTag(); if (i == XMLStreamConstants.START_ELEMENT) { QName qn = super.getName(); isInclude = qn.equals(WSDLConstants.QNAME_SCHEMA_INCLUDE); isImport = qn.equals(WSDLConstants.QNAME_SCHEMA_IMPORT); if (isImport) { findLocation(); } else { locIdx = -1; } } else { isImport = false; locIdx = -1; } return i; } private void findLocation() {
public String getAttributeValue(int index) { if (isInclude) { String n = getAttributeLocalName(index); if ("schemaLocation".equals(n)) { return mapSchemaLocation(super.getAttributeValue(index)); } } return super.getAttributeValue(mapIdx(index)); }
reader = new LocationFilterReader(reader, catalog); InputSource is = new InputSource(key); opts.addGrammar(is);
public int next() throws XMLStreamException { int i = super.next(); if (i == XMLStreamConstants.START_ELEMENT) { QName qn = super.getName(); isInclude = qn.equals(WSDLConstants.QNAME_SCHEMA_INCLUDE); isImport = qn.equals(WSDLConstants.QNAME_SCHEMA_IMPORT); if (isImport) { findLocation(); } else { locIdx = -1; } } else { isImport = false; locIdx = -1; } return i; }
public int nextTag() throws XMLStreamException { int i = super.nextTag(); if (i == XMLStreamConstants.START_ELEMENT) { QName qn = super.getName(); isInclude = qn.equals(WSDLConstants.QNAME_SCHEMA_INCLUDE); isImport = qn.equals(WSDLConstants.QNAME_SCHEMA_IMPORT); if (isImport) { findLocation(); } else { locIdx = -1; } } else { isImport = false; locIdx = -1; } return i; } private void findLocation() {
public String getAttributeLocalName(int index) { return super.getAttributeLocalName(mapIdx(index)); }
public String getAttributePrefix(int index) { return super.getAttributePrefix(mapIdx(index)); }
public String getAttributeType(int index) { return super.getAttributeType(mapIdx(index)); }
private String mapSchemaLocation(String target) { return DynamicClientFactory.mapSchemaLocation(target, this.getLocation().getSystemId(), catalog); }
public int next() throws XMLStreamException { int i = super.next(); if (i == XMLStreamConstants.START_ELEMENT) { QName qn = super.getName(); isInclude = qn.equals(WSDLConstants.QNAME_SCHEMA_INCLUDE); isImport = qn.equals(WSDLConstants.QNAME_SCHEMA_IMPORT); if (isImport) { findLocation(); } else { locIdx = -1; } } else { isImport = false; locIdx = -1; } return i; }
public String getAttributeLocalName(int index) { return super.getAttributeLocalName(mapIdx(index)); }
public String getAttributePrefix(int index) { return super.getAttributePrefix(mapIdx(index)); }
public String getAttributeNamespace(int index) { return super.getAttributeNamespace(mapIdx(index)); }
public QName getAttributeName(int index) { return super.getAttributeName(mapIdx(index)); }
public QName getAttributeName(int index) { return super.getAttributeName(mapIdx(index)); }
private String mapSchemaLocation(String target) { return DynamicClientFactory.mapSchemaLocation(target, this.getLocation().getSystemId(), catalog); }
public boolean isAttributeSpecified(int index) { return super.isAttributeSpecified(mapIdx(index)); } }
public String getAttributeType(int index) { return super.getAttributeType(mapIdx(index)); }
public String getAttributeNamespace(int index) { return super.getAttributeNamespace(mapIdx(index)); }