X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fbinding-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fmodel%2Fapi%2FGeneratedType.java;h=7a1a8f4f27d948ec5428445e0c61cc5fdfc1bc33;hb=97d2f10bea5bdd773453bc7202b9dd04f4b70c3b;hp=82d1720714eaeee707a7ebf8b7fe2e809decb653;hpb=0b33d4dc79b1a60b3a62e1bfc848c352cf5acdb9;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/binding-model-api/src/main/java/org/opendaylight/controller/sal/binding/model/api/GeneratedType.java b/opendaylight/sal/yang-prototype/code-generator/binding-model-api/src/main/java/org/opendaylight/controller/sal/binding/model/api/GeneratedType.java index 82d1720714..7a1a8f4f27 100644 --- a/opendaylight/sal/yang-prototype/code-generator/binding-model-api/src/main/java/org/opendaylight/controller/sal/binding/model/api/GeneratedType.java +++ b/opendaylight/sal/yang-prototype/code-generator/binding-model-api/src/main/java/org/opendaylight/controller/sal/binding/model/api/GeneratedType.java @@ -16,6 +16,12 @@ import java.util.List; *
  • interface name (with commentary that SHOULD be * present to proper define interface and base contracts specified for * interface)
  • + *
  • Each Generated Type can define list of types that Generated Type + * can implement to extend it's definition (i.e. interface extends list of + * interfaces or java class implements list of interfaces)
  • + *
  • Each Generated Type can contain multiple enclosed definitions of + * Generated Types (i.e. interface can contain N enclosed interface + * definitions or enclosed classes)
  • *
  • enum and constant definitions (i.e. each * constant definition is by default defined as public static final * + type (either primitive or object) and constant name
  • @@ -23,40 +29,76 @@ import java.util.List; * types) and return values * * - * By the definition of the interface constant, enum and method definitions MUST + * By the definition of the interface constant, enum, + * enclosed types and method definitions MUST * be public, so there is no need to specify the scope of visibility. - * - * */ public interface GeneratedType extends Type { + /** + * Returns the parent type if Generated Type is defined as enclosing type, + * otherwise returns null + * + * @return the parent type if Generated Type is defined as enclosing type, + * otherwise returns null + */ public Type getParentType(); - + + /** + * Returns comment string associated with Generated Type. + * + * @return comment string associated with Generated Type. + */ public String getComment(); - + + /** + * Returns List of annotation definitions associated with generated type. + * + * @return List of annotation definitions associated with generated type. + */ public List getAnnotations(); - + + /** + * Returns true if The Generated Type is defined as abstract. + * + * @return true if The Generated Type is defined as abstract. + */ + public boolean isAbstract(); + + /** + * Returns List of Types that Generated Type will implement. + * + * @return List of Types that Generated Type will implement. + */ public List getImplements(); - + /** - * Returns Set of all Enumerator definitions associated with interface. - * - * @return Set of all Enumerator definitions associated with interface. + * Returns List of enclosing Generated Types. + * + * @return List of enclosing Generated Types. */ - public List getEnumDefintions(); + public List getEnclosedTypes(); /** + * Returns List of all Enumerator definitions associated with Generated + * Type. * - * - * @return + * @return List of all Enumerator definitions associated with Generated + * Type. + */ + public List getEnumerations(); + + /** + * Returns List of Constant definitions associated with Generated Type. + * + * @return List of Constant definitions associated with Generated Type. */ public List getConstantDefinitions(); /** + * Returns List of Method Definitions associated with Generated Type. * - * - * @return + * @return List of Method Definitions associated with Generated Type. */ public List getMethodDefinitions(); - }