package org.opendaylight.yangtools.yang.data.impl.schema.transform.base;
import com.google.common.base.Optional;
-import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import java.util.HashMap;
@Override
public DataSchemaNode getDataChildByName(final QName name) {
- final DataSchemaNode ret = mappedChildSchemas.get(name);
- Preconditions.checkArgument(ret != null, "Unknown child: %s in: %s", name, delegate);
- return ret;
+ return mappedChildSchemas.get(name);
}
@Override
*/
package org.opendaylight.yangtools.yang.model.api;
-import java.util.List;
-
import com.google.common.base.Optional;
+import java.util.List;
+
/**
* AugmentationSchema represents augment definition. The "augment" statement
* allows a module or submodule to add to the schema tree defined in an external
public interface AugmentationSchema extends DataNodeContainer {
/**
- *
* Returns when statement
*
* If when condition is present node defined by the parent data definition
* Returns Augmentation Definition from which this augmentation is derived
* if augmentation was added transitively via augmented uses.
*
- * @return ugmentation Definition from which this augmentation is derived
+ * @return Augmentation Definition from which this augmentation is derived
* if augmentation was added transitively via augmented uses.
*/
Optional<AugmentationSchema> getOriginalDefinition();