@Beta public interface SchemaSourceRepresentation extends Identifiable<SourceIdentifier>, Immutable
A schema source can exist in various forms, which we call representations. Again, in YANG terms, each representation is semantically equivalent, but from implementation perspective certain operations on a schema source may require it to be first transformed into a particular representation before they can be applied. Such transformations are affected via instances of SchemaSourceTransformation.
Typical examples of a schema source representation include:
String
- textual representation of source code
InputStream
- input stream containing source code
ByteSource
- source for input streams
containing source code
Implementations of this interface expected to comply with the Immutable
contract.
Modifier and Type | Method and Description |
---|---|
SourceIdentifier |
getIdentifier()
Return this objects Identifier.
|
default Optional<String> |
getSymbolicName()
Return the symbolic name, if available.
|
@NonNull Class<? extends SchemaSourceRepresentation> |
getType()
Return the concrete representation type.
|
SourceIdentifier getIdentifier()
Identifiable
getIdentifier
in interface Identifiable<SourceIdentifier>
@NonNull Class<? extends SchemaSourceRepresentation> getType()
Copyright © 2020 OpenDaylight. All rights reserved.