Class FileYinTextSource
java.lang.Object
com.google.common.io.ByteSource
org.opendaylight.yangtools.yang.model.api.source.YinTextSource
org.opendaylight.yangtools.yang.model.spi.source.FileYinTextSource
- All Implemented Interfaces:
Delegator<Path>,Immutable,SourceRepresentation,YinSourceRepresentation
A
AbstractYinTextSource backed by a file.-
Constructor Summary
ConstructorsConstructorDescriptionFileYinTextSource(Path path) FileYinTextSource(SourceIdentifier sourceId, Path path) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add subclass-specific attributes to the outputYinTextSource.toString()output.final PathReturn underlying delegate.final InputStreamfinal SourceIdentifiersourceId()TheSourceIdentifierof this source.final @NonNull StringReturn the symbolic name, if available.Methods inherited from class org.opendaylight.yangtools.yang.model.api.source.YinTextSource
getType, toStringMethods 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
-
FileYinTextSource
-
FileYinTextSource
-
-
Method Details
-
openStream
- Specified by:
openStreamin classByteSource- Throws:
IOException
-
symbolicName
Description copied from interface:SourceRepresentationReturn 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:YinTextSourceAdd 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:
addToStringAttributesin classYinTextSource- Parameters:
toStringHelper- ToStringHelper onto the attributes can be added- Returns:
- ToStringHelper supplied as input argument.
-
sourceId
Description copied from interface:SourceRepresentationTheSourceIdentifierof this source.- Specified by:
sourceIdin interfaceSourceRepresentation- Returns:
SourceIdentifierof this source
-
getDelegate
Description copied from interface:DelegatorReturn underlying delegate.- Specified by:
getDelegatein interfaceDelegator<T>- Returns:
- underlying delegate.
-