Class URLYinTextSource
java.lang.Object
com.google.common.io.ByteSource
org.opendaylight.yangtools.yang.model.api.source.YinTextSource
org.opendaylight.yangtools.yang.model.spi.source.URLYinTextSource
- All Implemented Interfaces:
Delegator<URL>
,Immutable
,SourceRepresentation
,YinSourceRepresentation
A
AbstractYinTextSource
.backed by a URL
.-
Constructor Summary
ConstructorsConstructorDescriptionURLYinTextSource
(URL url) URLYinTextSource
(SourceIdentifier sourceId, URL url) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
addToStringAttributes
(MoreObjects.ToStringHelper toStringHelper) Add subclass-specific attributes to the outputYinTextSource.toString()
output.final URL
Return underlying delegate.final InputStream
final SourceIdentifier
sourceId()
TheSourceIdentifier
of this source.final @NonNull String
Return the symbolic name, if available.Methods inherited from class org.opendaylight.yangtools.yang.model.api.source.YinTextSource
getType, toString
Methods inherited from class com.google.common.io.ByteSource
asCharSource, concat, concat, concat, contentEquals, copyTo, copyTo, empty, hash, isEmpty, openBufferedStream, read, read, size, sizeIfKnown, slice, wrap
-
Constructor Details
-
URLYinTextSource
-
URLYinTextSource
-
-
Method Details
-
openStream
- Specified by:
openStream
in classByteSource
- Throws:
IOException
-
symbolicName
Description copied from interface:SourceRepresentation
Return the symbolic name, if available. This name has no semantic meaning beyond being useful for debugging by humans.- Returns:
- Symbolic name, if available
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Description copied from class:YinTextSource
Add subclass-specific attributes to the outputYinTextSource.toString()
output. Since subclasses are prevented from overridingYinTextSource.toString()
for consistency reasons, they can add their specific attributes to the resulting string by attaching attributes to the suppliedMoreObjects.ToStringHelper
.- Overrides:
addToStringAttributes
in classYinTextSource
- Parameters:
toStringHelper
- ToStringHelper onto the attributes can be added- Returns:
- ToStringHelper supplied as input argument.
-
sourceId
Description copied from interface:SourceRepresentation
TheSourceIdentifier
of this source.- Specified by:
sourceId
in interfaceSourceRepresentation
- Returns:
SourceIdentifier
of this source
-
getDelegate
Description copied from interface:Delegator
Return underlying delegate.- Specified by:
getDelegate
in interfaceDelegator<T>
- Returns:
- underlying delegate.
-