public final class ServiceDefinitionImpl extends Object implements ServiceDefinition, SDDocumentResolver
ServiceDefinition
implementation.
You construct a ServiceDefinitionImpl
by first constructing
a list of SDDocumentImpl
s.
Constructor and Description |
---|
ServiceDefinitionImpl(Collection<SDDocumentImpl> docs,
SDDocumentImpl primaryWsdl) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(SDDocumentFilter filter)
Adds a filter that is called while writing
SDDocument 's infoset. |
SDDocument |
getPrimary()
Gets the "primary"
SDDocument that represents a WSDL. |
Iterator<SDDocument> |
iterator() |
SDDocument |
resolve(String systemId)
Gets the
SDDocumentImpl whose SDDocumentImpl.getURL()
returns the specified value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ServiceDefinitionImpl(Collection<SDDocumentImpl> docs, @NotNull SDDocumentImpl primaryWsdl)
docs
- List of SDDocumentImpl
s to form the description.
There must be at least one entry.
The first document is considered primary
.@NotNull public SDDocument getPrimary()
ServiceDefinition
SDDocument
that represents a WSDL.
This WSDL eventually refers to all the other SDDocument
s.
getPrimary
in interface ServiceDefinition
public void addFilter(SDDocumentFilter filter)
ServiceDefinition
SDDocument
's infoset. This
filter is applied to the all the other reachable SDDocument
s.addFilter
in interface ServiceDefinition
filter
- that is called while writing the documentpublic Iterator<SDDocument> iterator()
iterator
in interface Iterable<SDDocument>
public SDDocument resolve(String systemId)
SDDocumentImpl
whose SDDocumentImpl.getURL()
returns the specified value.resolve
in interface SDDocumentResolver
systemId
- document's systemIdCopyright © 2015 Oracle Corporation. All rights reserved.