Class SchemaNodeDefaults
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.api.SchemaNodeDefaults
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaPath
extractPath(Object impl, Immutable path)
ExtractSchemaPath
from a path object.static QName
extractQName(Immutable path)
ExtractQName
from a path object.static SchemaPath
throwUnsupported(Object impl)
Report unsupportedSchemaNode.getPath()
implementation.static SchemaPath
throwUnsupportedIfNull(Object impl, @Nullable SchemaPath path)
Report unsupportedSchemaNode.getPath()
implementation if provided path is null.
-
-
-
Method Detail
-
throwUnsupported
public static SchemaPath throwUnsupported(Object impl)
Report unsupportedSchemaNode.getPath()
implementation. This method is guaranteed to throw anUnsupportedOperationException
.- Parameters:
impl
-this
object of invoking implementation- Returns:
- Nothing
- Throws:
NullPointerException
- ifimpl
is nullUnsupportedOperationException
- always- See Also:
SchemaNode.getPath()
-
throwUnsupportedIfNull
public static SchemaPath throwUnsupportedIfNull(Object impl, @Nullable SchemaPath path)
Report unsupportedSchemaNode.getPath()
implementation if provided path is null.- Parameters:
impl
-this
object of invoking implementationpath
- A schema path- Returns:
path
if non-null- Throws:
NullPointerException
- ifimpl
is nullUnsupportedOperationException
- if @{code path} is null- See Also:
SchemaNode.getPath()
-
extractQName
public static QName extractQName(Immutable path)
ExtractQName
from a path object.- Parameters:
path
- Path handle- Returns:
- Extracted QName
- Throws:
NullPointerException
- ifpath
is nullIllegalArgumentException
- ifpath
is not supported
-
extractPath
public static SchemaPath extractPath(Object impl, Immutable path)
ExtractSchemaPath
from a path object.- Parameters:
impl
- Implementation objectpath
- Path handle- Returns:
- Extracted SchemaPath
- Throws:
UnsupportedOperationException
- ifpath
does not hold a SchemaPath
-
-