public void add(PortType p) { _document.define(p); _portTypes.add(p); }
public GloballyKnown resolve() { return _document.find(_kind, _name); }
public Map resolveBindings() { return _document.getMap(Kinds.BINDING); }
private void processImports(TWSDLParserContextImpl context) { for(String location : forest.getExternalReferences()){ if (!context.getDocument().isImportedDocument(location)){ Document doc = forest.get(location); if(doc == null) continue; Definitions importedDefinitions = parseDefinitionsNoImport(context, doc); if(importedDefinitions == null) continue; context.getDocument().addImportedEntity(importedDefinitions); context.getDocument().addImportedDocument(location); } } }
public void validateLocally() { LocallyValidatingAction action = new LocallyValidatingAction(); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
public void withAllSubEntitiesDo(EntityAction action) { if (getRoot() != null) { action.perform(getRoot()); } for (Iterator iter = importedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } for (Iterator iter = includedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } }
private Definitions parseDefinitions(TWSDLParserContextImpl context, Document root) { context.pushWSDLLocation(); context.setWSDLLocation(context.getDocument().getSystemId()); new Internalizer(forest, options, errReceiver).transform(); Definitions definitions = parseDefinitionsNoImport(context, root); if(definitions == null){ Locator locator = forest.locatorTable.getStartLocation(root.getDocumentElement()); errReceiver.error(locator, WsdlMessages.PARSING_NOT_AWSDL(locator.getSystemId())); } processImports(context); context.popWSDLLocation(); return definitions; }
private void processImports(TWSDLParserContextImpl context) { for(String location : forest.getExternalReferences()){ if (!context.getDocument().isImportedDocument(location)){ Document doc = forest.get(location); if(doc == null) continue; Definitions importedDefinitions = parseDefinitionsNoImport(context, doc); if(importedDefinitions == null) continue; context.getDocument().addImportedEntity(importedDefinitions); context.getDocument().addImportedDocument(location); } } }
public void validateLocally() { LocallyValidatingAction action = new LocallyValidatingAction(); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
public void withAllSubEntitiesDo(EntityAction action) { if (getRoot() != null) { action.perform(getRoot()); } for (Iterator iter = importedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } for (Iterator iter = includedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } }
private Definitions parseDefinitions(TWSDLParserContextImpl context, Document root) { context.pushWSDLLocation(); context.setWSDLLocation(context.getDocument().getSystemId()); new Internalizer(forest, options, errReceiver).transform(); Definitions definitions = parseDefinitionsNoImport(context, root); if(definitions == null){ Locator locator = forest.locatorTable.getStartLocation(root.getDocumentElement()); errReceiver.error(locator, WsdlMessages.PARSING_NOT_AWSDL(locator.getSystemId())); } processImports(context); context.popWSDLLocation(); return definitions; }
private void processImports(TWSDLParserContextImpl context) { for(String location : forest.getExternalReferences()){ if (!context.getDocument().isImportedDocument(location)){ Document doc = forest.get(location); if(doc == null) continue; Definitions importedDefinitions = parseDefinitionsNoImport(context, doc); if(importedDefinitions == null) continue; context.getDocument().addImportedEntity(importedDefinitions); context.getDocument().addImportedDocument(location); } } }
public Message resolveMessage(AbstractDocument document) { return (Message) document.find(Kinds.MESSAGE, _message); }
public void add(PortType p) { _document.define(p); _portTypes.add(p); }
public Map resolveBindings() { return _document.getMap(Kinds.BINDING); }
public void validateLocally() { LocallyValidatingAction action = new LocallyValidatingAction(); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
public void withAllSubEntitiesDo(EntityAction action) { if (getRoot() != null) { action.perform(getRoot()); } for (Iterator iter = importedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } for (Iterator iter = includedEntities.iterator(); iter.hasNext();) { action.perform((Entity) iter.next()); } }
private Definitions parseDefinitions(TWSDLParserContextImpl context, Document root) { context.pushWSDLLocation(); context.setWSDLLocation(context.getDocument().getSystemId()); new Internalizer(forest, options, errReceiver).transform(); Definitions definitions = parseDefinitionsNoImport(context, root); if(definitions == null){ Locator locator = forest.locatorTable.getStartLocation(root.getDocumentElement()); errReceiver.error(locator, WsdlMessages.PARSING_NOT_AWSDL(locator.getSystemId())); } processImports(context); context.popWSDLLocation(); return definitions; }
private void processImports(TWSDLParserContextImpl context) { for(String location : forest.getExternalReferences()){ if (!context.getDocument().isImportedDocument(location)){ Document doc = forest.get(location); if(doc == null) continue; Definitions importedDefinitions = parseDefinitionsNoImport(context, doc); if(importedDefinitions == null) continue; context.getDocument().addImportedEntity(importedDefinitions); context.getDocument().addImportedDocument(location); } } }
public Message resolveMessage(AbstractDocument document) { return (Message) document.find(Kinds.MESSAGE, _message); }