public abstract class YinDomSchemaSource extends Object implements YinXmlSchemaSource
YinXmlSchemaSource
exposing a W3C DOMSource
representation of YIN model.Modifier and Type | Method and Description |
---|---|
protected abstract com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Add subclass-specific attributes to the output
toString() output. |
static @NonNull YinDomSchemaSource |
create(@NonNull SourceIdentifier identifier,
@NonNull DOMSource source)
Create a new
YinDomSchemaSource using an identifier and a source. |
abstract DOMSource |
getSource()
Return an XML
Source of the YIN document. |
Class<? extends YinXmlSchemaSource> |
getType()
Return the concrete representation type.
|
static @NonNull YinDomSchemaSource |
lazyTransform(YinXmlSchemaSource xmlSchemaSource)
Create a
YinDomSchemaSource from a YinXmlSchemaSource . |
String |
toString() |
static @NonNull YinDomSchemaSource |
transform(YinXmlSchemaSource xmlSchemaSource)
Create a
YinDomSchemaSource from a YinXmlSchemaSource . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, getSymbolicName
public static @NonNull YinDomSchemaSource create(@NonNull SourceIdentifier identifier, @NonNull DOMSource source)
YinDomSchemaSource
using an identifier and a source.identifier
- Schema source identifiersource
- W3C DOM sourceYinDomSchemaSource
instance.public static @NonNull YinDomSchemaSource lazyTransform(YinXmlSchemaSource xmlSchemaSource)
YinDomSchemaSource
from a YinXmlSchemaSource
. If the argument is already a
YinDomSchemaSource, this method returns the same instance. The source will be translated on first access,
at which point an IllegalStateException
may be raised.xmlSchemaSource
- Backing schema sourceYinDomSchemaSource
instancepublic static @NonNull YinDomSchemaSource transform(YinXmlSchemaSource xmlSchemaSource) throws TransformerException
YinDomSchemaSource
from a YinXmlSchemaSource
. If the argument is already a
YinDomSchemaSource, this method returns the same instance. The source will be translated immediately.xmlSchemaSource
- Backing schema sourceYinDomSchemaSource
instanceTransformerException
- when the provided source fails to transformpublic abstract DOMSource getSource()
YinXmlSchemaSource
Source
of the YIN document.getSource
in interface YinXmlSchemaSource
Source
instance.public final Class<? extends YinXmlSchemaSource> getType()
SchemaSourceRepresentation
getType
in interface SchemaSourceRepresentation
getType
in interface YinSchemaSourceRepresentation
getType
in interface YinXmlSchemaSource
protected abstract com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
toString()
output. Since
subclasses are prevented from overriding toString()
for consistency
reasons, they can add their specific attributes to the resulting string by attaching
attributes to the supplied MoreObjects.ToStringHelper
.toStringHelper
- ToStringHelper onto the attributes can be addedCopyright © 2019 OpenDaylight. All rights reserved.