import com.google.common.annotations.Beta;
import java.util.List;
+import java.util.Optional;
/**
* Every Java interface has to be specified with:
*
* @return comment string associated with Generated Type.
*/
- String getComment();
+ TypeComment getComment();
/**
* Returns List of annotation definitions associated with generated type.
* Returns parent type for data schema node builder
*/
Type getParentTypeForBuilder();
+
+ /**
+ * Returns the YANG definition of this type, if available.
+ *
+ * @return YANG source definition, or empty when unavailable.
+ */
+ Optional<YangSourceDefinition> getYangSourceDefinition();
}