/* * (non-Javadoc) * * @see com.tailf.jnc.YangType#setValue(T) */ @Override public void setValue(T value) throws YangException { assert !(value instanceof YangType) : "Avoid circular value chain"; YangException.throwException(value == null, new NullPointerException()); this.value = value; check(); }
/* * (non-Javadoc) * * @see com.tailf.jnc.YangType#check() */ @Override public void check() throws YangException { YangException.throwException(value == null, new NullPointerException()); }