@@ -346,6 +395,12 @@ void populateUidValues(ListpackageMetadataFiles, List { Optional.ofNullable(syntax.getParameters()).ifPresent( methodParams -> methodParams.forEach( diff --git a/src/main/java/com/microsoft/lookup/BaseLookup.java b/src/main/java/com/microsoft/lookup/BaseLookup.java index 68b6fdd..9619d04 100644 --- a/src/main/java/com/microsoft/lookup/BaseLookup.java +++ b/src/main/java/com/microsoft/lookup/BaseLookup.java @@ -45,6 +45,10 @@ protected BaseLookup(DocletEnvironment environment) { this.environment = environment; } + public ExtendedMetadataFileItem extractItem(T key) { + return resolve(key); + } + protected ExtendedMetadataFileItem resolve(T key) { ExtendedMetadataFileItem value = map.get(key); if (value == null) { diff --git a/src/main/java/com/microsoft/lookup/ClassItemsLookup.java b/src/main/java/com/microsoft/lookup/ClassItemsLookup.java index 18436b9..c99bc3e 100644 --- a/src/main/java/com/microsoft/lookup/ClassItemsLookup.java +++ b/src/main/java/com/microsoft/lookup/ClassItemsLookup.java @@ -4,6 +4,7 @@ import com.microsoft.model.ExceptionItem; import com.microsoft.model.MethodParameter; +import com.microsoft.model.Field; import com.microsoft.model.Return; import com.microsoft.util.CommentHelper; @@ -81,7 +82,7 @@ protected ExtendedMetadataFileItem buildMetadataFileItem(Element element) { if (element instanceof VariableElement) { String type = makeTypeShort(String.valueOf(element.asType())); result.setFieldContent(String.format("%s %s %s", modifiers, type, elementQName)); - result.setReturn(extractReturn((VariableElement) element)); + result.setField(extractField((VariableElement) element)); } return result; } @@ -154,6 +155,11 @@ String extractOverriddenUid(ExecutableElement ovr) { return ""; } + public Field extractField(VariableElement fieldElement) { + var constantValue = (null == fieldElement.getConstantValue()) ? null : fieldElement.getConstantValue().toString(); + return new Field(String.valueOf(fieldElement.asType()), constantValue); + } + /** * If the item being inherited from is declared from external compiled package, * or is declared in the packages like java.lang.Object, diff --git a/src/main/java/com/microsoft/lookup/model/ExtendedMetadataFileItem.java b/src/main/java/com/microsoft/lookup/model/ExtendedMetadataFileItem.java index dea5e61..c185158 100644 --- a/src/main/java/com/microsoft/lookup/model/ExtendedMetadataFileItem.java +++ b/src/main/java/com/microsoft/lookup/model/ExtendedMetadataFileItem.java @@ -116,4 +116,20 @@ public void addReferences(Set references) { public Set getReferences() { return references; } + + public String getSyntaxContent() { + String content = ""; + switch (this.getType().toLowerCase()) { + case "constructor": + content = getConstructorContent(); + break; + case "field": + content = getFieldContent(); + break; + case "method": + content = getMethodContent(); + break; + } + return content; + } } diff --git a/src/main/java/com/microsoft/model/ExceptionItem.java b/src/main/java/com/microsoft/model/ExceptionItem.java index b833f6b..a5db62c 100644 --- a/src/main/java/com/microsoft/model/ExceptionItem.java +++ b/src/main/java/com/microsoft/model/ExceptionItem.java @@ -1,13 +1,22 @@ package com.microsoft.model; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import com.microsoft.util.XrefHelper; + public class ExceptionItem { + @JsonIgnore private final String type; + @JsonProperty("type") + private String exceptionXrefString; private final String description; public ExceptionItem(String type, String description) { this.type = type; this.description = description; + this.exceptionXrefString = XrefHelper.generateXrefString(type, XrefHelper.XrefOption.SHORTNAME); } public String getType() { @@ -17,4 +26,8 @@ public String getType() { public String getDescription() { return description; } + + public String getExceptionXrefString() { + return exceptionXrefString; + } } diff --git a/src/main/java/com/microsoft/model/Field.java b/src/main/java/com/microsoft/model/Field.java new file mode 100644 index 0000000..ddf1de9 --- /dev/null +++ b/src/main/java/com/microsoft/model/Field.java @@ -0,0 +1,34 @@ +package com.microsoft.model; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.util.XrefHelper; + +public class Field { + + @JsonIgnore + private final String fieldType; + @JsonProperty("description") + private String fieldDescription; + @JsonProperty("type") + private String fieldXrefString; + private String value; + + public String getFieldDescription() { + return fieldDescription; + } + + public String getFieldXrefString() { + return fieldXrefString; + } + + public String getValue() { + return value; + } + + public Field(String fieldType, String value) { + this.fieldType = fieldType; + this.value = value ; + this.fieldXrefString = XrefHelper.generateXrefString(fieldType, XrefHelper.XrefOption.SHORTNAME); + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/model/MetadataFile.java b/src/main/java/com/microsoft/model/MetadataFile.java index 7676dd2..812a6ee 100644 --- a/src/main/java/com/microsoft/model/MetadataFile.java +++ b/src/main/java/com/microsoft/model/MetadataFile.java @@ -32,7 +32,7 @@ public Set getReferences() { public String getFileContent() { Set sortedSet = new TreeSet<>(this.items); this.items = sortedSet; - return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this); + return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this, this.fileName); } @JsonIgnore diff --git a/src/main/java/com/microsoft/model/MetadataFileItem.java b/src/main/java/com/microsoft/model/MetadataFileItem.java index d953ea7..d219abb 100644 --- a/src/main/java/com/microsoft/model/MetadataFileItem.java +++ b/src/main/java/com/microsoft/model/MetadataFileItem.java @@ -1,5 +1,6 @@ package com.microsoft.model; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -18,12 +19,13 @@ public class MetadataFileItem implements Comparable { private final String uid; private String id; private String parent; - private List children = new ArrayList<>(); + private List children = new ArrayList<>(); private String href; private String[] langs; private String name; private String nameWithType; private String fullName; + private Field field; private String overload; private String overridden; private String type; @@ -31,10 +33,10 @@ public class MetadataFileItem implements Comparable { private String packageName; private String summary; private Syntax syntax; - private List inheritance; + private List inheritance = new ArrayList<>(); @JsonProperty("implements") - private List interfaces; - private List exceptions; + private List interfaces = new ArrayList<>(); + private List exceptions = new ArrayList<>(); private boolean isExternal; @JsonProperty("spec.java") private List specForJava = new ArrayList<>(); @@ -88,7 +90,7 @@ public void setParent(String parent) { this.parent = parent; } - public List getChildren() { + public List getChildren() { Collections.sort(children); return children; } @@ -138,7 +140,7 @@ public void setOverload(String overload) { } public String getType() { - return type; + return type.toLowerCase(); } public void setType(String type) { @@ -237,10 +239,23 @@ public void setOverridden(String overridden) { this.overridden = overridden; } + public Field getField() { + return field; + } + + public void setField(Field field) { + this.field = field; + } + public String getOverridden() { return overridden; } + @JsonIgnore + public String getShortName(){ + return name.replaceAll("\\(.*\\)", ""); + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/com/microsoft/model/MethodParameter.java b/src/main/java/com/microsoft/model/MethodParameter.java index 2c6d5c0..ed78136 100644 --- a/src/main/java/com/microsoft/model/MethodParameter.java +++ b/src/main/java/com/microsoft/model/MethodParameter.java @@ -1,15 +1,25 @@ package com.microsoft.model; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import com.microsoft.util.XrefHelper; + public class MethodParameter { + @JsonProperty("name") private final String id; + @JsonIgnore private final String type; private String description; + @JsonProperty("type") + private String typeXrefSting; public MethodParameter(String id, String type, String description) { this.id = id; this.type = type; this.description = description; + this.typeXrefSting = XrefHelper.generateXrefString(type, XrefHelper.XrefOption.SHORTNAME); } public String getId() { diff --git a/src/main/java/com/microsoft/model/Return.java b/src/main/java/com/microsoft/model/Return.java index 712c282..2ac9daf 100644 --- a/src/main/java/com/microsoft/model/Return.java +++ b/src/main/java/com/microsoft/model/Return.java @@ -1,21 +1,28 @@ package com.microsoft.model; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.util.XrefHelper; + public class Return { - @JsonProperty("type") + @JsonIgnore private final String returnType; @JsonProperty("description") private String returnDescription; + @JsonProperty("type") + private String returnXrefString; public Return(String returnType, String returnDescription) { this.returnType = returnType; this.returnDescription = returnDescription; + this.returnXrefString = XrefHelper.generateXrefString(returnType, XrefHelper.XrefOption.SHORTNAME); } public Return(String returnType) { this.returnType = returnType; + this.returnXrefString = XrefHelper.generateXrefString(returnType, XrefHelper.XrefOption.SHORTNAME); } public String getReturnType() { @@ -29,4 +36,8 @@ public String getReturnDescription() { public void setReturnDescription(String returnDescription) { this.returnDescription = returnDescription; } + + public String getReturnXrefString() { + return returnXrefString; + } } diff --git a/src/main/java/com/microsoft/model/Syntax.java b/src/main/java/com/microsoft/model/Syntax.java index 3320d69..2f72151 100644 --- a/src/main/java/com/microsoft/model/Syntax.java +++ b/src/main/java/com/microsoft/model/Syntax.java @@ -10,7 +10,7 @@ public class Syntax { private List parameters; @JsonProperty("return") private Return returnValue; - private List typeParameters; + private List typeParameters = new ArrayList<>(); public String getContent() { return content; diff --git a/src/main/java/com/microsoft/model/TocFile.java b/src/main/java/com/microsoft/model/TocFile.java index d0bb545..a885276 100644 --- a/src/main/java/com/microsoft/model/TocFile.java +++ b/src/main/java/com/microsoft/model/TocFile.java @@ -2,13 +2,14 @@ import com.microsoft.util.YamlUtil; import java.io.File; -import java.util.ArrayList; +import java.util.*; public class TocFile extends ArrayList implements YmlFile { private final static String TOC_FILE_HEADER = "### YamlMime:TableOfContent\n"; private final static String TOC_FILE_NAME = "toc.yml"; private final String outputPath; + private ArrayList items = new ArrayList<>(); public TocFile(String outputPath) { this.outputPath = outputPath; @@ -18,9 +19,14 @@ public void addTocItem(TocItem packageTocItem) { add(packageTocItem); } + public ArrayList getItems() { + Collections.sort(items, Comparator.comparing(TocItem::getUid)); + return items; + } + @Override public String getFileContent() { - return TOC_FILE_HEADER + YamlUtil.objectToYamlString(this); + return TOC_FILE_HEADER + YamlUtil.objectToYamlString(this, TOC_FILE_NAME); } @Override diff --git a/src/main/java/com/microsoft/model/TocItem.java b/src/main/java/com/microsoft/model/TocItem.java index 66e5530..e1c8e47 100644 --- a/src/main/java/com/microsoft/model/TocItem.java +++ b/src/main/java/com/microsoft/model/TocItem.java @@ -1,19 +1,28 @@ package com.microsoft.model; -import java.util.ArrayList; -import java.util.List; +import java.util.*; -public class TocItem { +import com.fasterxml.jackson.annotation.JsonProperty; + +public class TocItem implements Comparable { private final String uid; private final String name; - private List items = new ArrayList<>(); + @JsonProperty("type") + private String type; + private Set items = new HashSet<>(); public TocItem(String uid, String name) { this.uid = uid; this.name = name; } + public TocItem(String uid, String name, String type) { + this.uid = uid; + this.name = name; + this.type = type.toLowerCase(); + } + public String getUid() { return uid; } @@ -22,7 +31,33 @@ public String getName() { return name; } - public List getItems() { + public Set getItems() { + Set sortedSet = new TreeSet<>(this.items); + this.items = sortedSet; return items; } + + @Override + public int hashCode() { + return uid.hashCode(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + + TocItem that = (TocItem) o; + + return uid.equals(that.uid); + } + + @Override + public int compareTo(TocItem item) { + return this.getUid().compareTo(item.getUid()); + } } diff --git a/src/main/java/com/microsoft/model/TypeParameter.java b/src/main/java/com/microsoft/model/TypeParameter.java index df2a5a3..c4f7bb6 100644 --- a/src/main/java/com/microsoft/model/TypeParameter.java +++ b/src/main/java/com/microsoft/model/TypeParameter.java @@ -1,8 +1,12 @@ package com.microsoft.model; -public class TypeParameter { +import com.fasterxml.jackson.annotation.JsonProperty; +public class TypeParameter implements Comparable { + + @JsonProperty("name") private final String id; + private String description; public TypeParameter(String id) { this.id = id; @@ -11,4 +15,17 @@ public TypeParameter(String id) { public String getId() { return id; } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public int compareTo(TypeParameter item) { + return this.getId().compareTo(item.getId()); + } } diff --git a/src/main/java/com/microsoft/model/sdp/BaseModel.java b/src/main/java/com/microsoft/model/sdp/BaseModel.java new file mode 100644 index 0000000..8dff16f --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/BaseModel.java @@ -0,0 +1,68 @@ +package com.microsoft.model.sdp; + +public class BaseModel { + + // + private String uid; + private String fullName; + private String name; + private String nameWithType; + private String summary; + // + + //+ public BaseModel(String uid, String name) { + this.uid = uid; + this.name = name; + } + + public BaseModel(String uid, String name, String fullName, String nameWithType) { + this.uid = uid; + this.fullName = fullName; + this.name = name; + this.nameWithType = nameWithType; + } + // + + //+ public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + + public String getFullName() { + return fullName; + } + + public void setFullName(String fullName) { + this.fullName = fullName; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getNameWithType() { + return nameWithType; + } + + public void setNameWithType(String nameWithType) { + this.nameWithType = nameWithType; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + // +} diff --git a/src/main/java/com/microsoft/model/sdp/ExecutableModel.java b/src/main/java/com/microsoft/model/sdp/ExecutableModel.java new file mode 100644 index 0000000..2101de9 --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/ExecutableModel.java @@ -0,0 +1,91 @@ +package com.microsoft.model.sdp; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import com.microsoft.lookup.model.ExtendedMetadataFileItem; +import com.microsoft.model.*; + +public class ExecutableModel extends BaseModel implements Comparable{ + + // + private String overridden; + private List + + //parameters; + @JsonProperty("returns") + private Return returnType; + private Field field; + private String syntax; + private List typeParameters = new ArrayList<>(); + private List exceptions = new ArrayList<>(); + // + public ExecutableModel(MetadataFileItem item) { + super(item.getUid(), item.getName(), item.getFullName(), item.getNameWithType()); + this.overridden = item.getOverridden(); + this.syntax = ((ExtendedMetadataFileItem) item).getSyntaxContent(); + if (item.getType().toLowerCase().equals("field")) { + this.field = item.getField(); + } else { + this.returnType = ((ExtendedMetadataFileItem) item).getReturn(); + this.parameters = ((ExtendedMetadataFileItem) item).getParameters(); + } + if (!(item.getSummary() == null || item.getSummary().isEmpty())) { + this.setSummary(item.getSummary()); + } + + this.exceptions.addAll(item.getExceptions()); + } + // + + //+ public List + + @Override + public int compareTo(ExecutableModel item) { + return this.getUid().compareTo(item.getUid()); + } +} diff --git a/src/main/java/com/microsoft/model/sdp/FieldModel.java b/src/main/java/com/microsoft/model/sdp/FieldModel.java new file mode 100644 index 0000000..09b0138 --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/FieldModel.java @@ -0,0 +1,28 @@ +package com.microsoft.model.sdp; + +import com.microsoft.model.MetadataFileItem; + +public class FieldModel extends BaseModel implements ComparablegetExceptions() { + return exceptions; + } + + public String getOverridden() { + return overridden; + } + + public void setOverridden(String overridden) { + this.overridden = overridden; + } + + public List getParameters() { + return parameters; + } + + public void setParameters(List parameters) { + this.parameters = parameters; + } + + public Return getReturnType() { + return returnType; + } + + public void setReturnType(Return returnType) { + this.returnType = returnType; + } + + public String getSyntax() { + return syntax; + } + + public void setSyntax(String syntax) { + this.syntax = syntax; + } + + public List getTypeParameters() { + Collections.sort(typeParameters); + return typeParameters; + } + // { + + // + private String syntax; + // + + //+ public FieldModel(MetadataFileItem item) { + super(item.getUid(), item.getName(), item.getFullName(), item.getNameWithType()); + if (!(item.getSummary() == null || item.getSummary().isEmpty())) { + this.setSummary(item.getSummary()); + } + if (!(item.getSyntax() == null || item.getSyntax().getContent().isEmpty())) { + this.syntax = item.getSyntax().getContent(); + } + + } + // + + @Override + public int compareTo(FieldModel item) { + return this.getUid().compareTo(item.getUid()); + } +} diff --git a/src/main/java/com/microsoft/model/sdp/TypeBaseModel.java b/src/main/java/com/microsoft/model/sdp/TypeBaseModel.java new file mode 100644 index 0000000..45ae446 --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/TypeBaseModel.java @@ -0,0 +1,63 @@ +package com.microsoft.model.sdp; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +public class TypeBaseModel extends BaseModel { + + //+ @JsonProperty("implements") + private List + + //implementedInterfaces = new ArrayList<>(); + private List inheritances = new ArrayList<>(); + private List inheritedMembers = new ArrayList<>(); + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonProperty("metadata") + private Object metadata = new Object(); + @JsonProperty("package") + private String packageName; + private String syntax; + // + public TypeBaseModel(String uid, String name) { + super(uid, name); + } + // + + //+ + public List + +} diff --git a/src/main/java/com/microsoft/model/sdp/file/EnumModel.java b/src/main/java/com/microsoft/model/sdp/file/EnumModel.java new file mode 100644 index 0000000..9573f8e --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/file/EnumModel.java @@ -0,0 +1,88 @@ +package com.microsoft.model.sdp.file; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.microsoft.model.MetadataFileItem; + +import com.microsoft.model.YmlFile; +import com.microsoft.model.sdp.ExecutableModel; +import com.microsoft.model.sdp.FieldModel; +import com.microsoft.model.sdp.TypeBaseModel; +import com.microsoft.util.XrefHelper; +import com.microsoft.util.YamlUtil; + +public class EnumModel extends TypeBaseModel implements YmlFile { + + //getImplementedInterfaces() { + Collections.sort(implementedInterfaces); + return implementedInterfaces; + } + + public List getInheritances() { + return inheritances; + } + + public List getInheritedMembers() { + return inheritedMembers; + } + + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getSyntax() { + return syntax; + } + + public void setSyntax(String syntax) { + this.syntax = syntax; + } + // + private final static String METADATA_FILE_HEADER = "### YamlMime:JavaEnum\n"; + private final String fileNameWithPath; + + private List + + //fields = new ArrayList<>(); + private List methods = new ArrayList<>(); + // + public EnumModel(MetadataFileItem item, String fileNameWithPath) { + super(item.getUid(), item.getName()); + this.fileNameWithPath = fileNameWithPath; + this.setFullName(item.getFullName()); + this.setNameWithType(item.getNameWithType()); + this.setPackageName(item.getPackageName()); + + if (!(item.getSummary() == null || item.getSummary().isEmpty())) { + this.setSummary(item.getSummary()); + } + + item.getInterfaces().forEach( + type -> this.getImplementedInterfaces().add(XrefHelper.generateXrefString(type, XrefHelper.XrefOption.SHORTNAME))); + item.getInheritance().forEach( + type -> this.getInheritances().add(XrefHelper.generateXrefString(type, XrefHelper.XrefOption.DEFAULT))); + + this.getInheritedMembers().addAll(item.getInheritedMethods()); + + if (item.getSyntax() != null) { + this.setSyntax(item.getSyntax().getContent()); + } + + for (var child : item.getChildren()) { + String type = child.getType(); + switch (type.toLowerCase()) { + case "field": + this.getFields().add(new FieldModel(child)); + break; + case "method": + this.getMethods().add(new ExecutableModel(child)); + break; + } + } + } + + // + + //+ public List + + @JsonIgnore + @Override + public String getFileContent() { + return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this, this.getFileNameWithPath()); + } + + @JsonIgnore + @Override + public String getFileNameWithPath() { + return fileNameWithPath; + } +} diff --git a/src/main/java/com/microsoft/model/sdp/file/MemberModel.java b/src/main/java/com/microsoft/model/sdp/file/MemberModel.java new file mode 100644 index 0000000..3d06355 --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/file/MemberModel.java @@ -0,0 +1,98 @@ +package com.microsoft.model.sdp.file; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import org.apache.commons.lang3.RegExUtils; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import com.microsoft.model.MetadataFileItem; +import com.microsoft.model.YmlFile; +import com.microsoft.model.sdp.BaseModel; +import com.microsoft.model.sdp.ExecutableModel; +import com.microsoft.util.YamlUtil; + +public class MemberModel extends BaseModel implements YmlFile { + + //getFields() { + Collections.sort(fields); + return fields; + } + + public List getMethods() { + Collections.sort(methods); + return methods; + } + // + private final static String METADATA_FILE_HEADER = "### YamlMime:JavaMember\n"; + private final String outputPath; + + private List + + //members = new ArrayList<>(); + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonProperty("metadata") + private Object metadata = new Object(); + @JsonProperty("package") + private String packageName; + private String type; + // + public MemberModel(String uid, MetadataFileItem item, String outputPath) { + super(uid, item.getName()); + this.outputPath = outputPath; + this.setFullName(RegExUtils.removeAll(item.getFullName(), "\\(.*\\)$")); + this.setName(RegExUtils.removeAll(item.getName(), "\\(.*\\)$")); + this.setNameWithType(RegExUtils.removeAll(item.getNameWithType(), "\\(.*\\)$")); + this.setPackageName(item.getPackageName()); + this.setType(item.getType()); + + members.add(new ExecutableModel(item)); + + } + + public MemberModel(MetadataFileItem item, String outputPath) { + super(item.getUid(), item.getName()); + this.outputPath = outputPath; + this.setFullName(item.getFullName()); + this.setNameWithType(item.getNameWithType()); + this.setPackageName(item.getPackageName()); + this.setType(item.getType()); + + members.add(new ExecutableModel(item)); + + } + // + + //+ public List + + @JsonIgnore + @Override + public String getFileContent() { + return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this, this.getFileNameWithPath()); + } + + @JsonIgnore + @Override + public String getFileNameWithPath() { + return this.outputPath + File.separator + this.getFileName(); + } + + private String getFileName() { + return this.getUid().replace("*", "") + ".yml"; + } +} diff --git a/src/main/java/com/microsoft/model/sdp/file/PackageModel.java b/src/main/java/com/microsoft/model/sdp/file/PackageModel.java new file mode 100644 index 0000000..908845b --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/file/PackageModel.java @@ -0,0 +1,97 @@ +package com.microsoft.model.sdp.file; + +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import com.microsoft.model.MetadataFileItem; +import com.microsoft.model.YmlFile; +import com.microsoft.model.sdp.BaseModel; +import com.microsoft.util.YamlUtil; + + +public class PackageModel extends BaseModel implements YmlFile { + + //getMembers() { + return members; + } + + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getType() { + return type.toLowerCase(); + } + + public void setType(String type) { + this.type = type; + } + // + private final static String METADATA_FILE_HEADER = "### YamlMime:JavaPackage\n"; + private final String fileNameWithPath; + + private List + + //classes = new ArrayList<>(); + private List enums = new ArrayList<>(); + private List interfaces = new ArrayList<>(); + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonProperty("metadata") + private Object metadata = new Object(); + @JsonProperty("package") + private String packageName; + // + public PackageModel(MetadataFileItem item, String fileNameWithPath) { + super(item.getUid(), item.getName()); + this.fileNameWithPath = fileNameWithPath; + this.setFullName(item.getFullName()); + this.setPackageName(item.getFullName()); + + if (!(item.getSummary() == null || item.getSummary().isEmpty())) { + this.setSummary(item.getSummary()); + } + + for (var child : item.getChildren()) { + String type = child.getType(); + switch (type.toLowerCase()) { + case "class": + this.getClasses().add(child.getUid()); + break; + case "enum": + this.getEnums().add(child.getUid()); + break; + case "interface": + this.getInterfaces().add(child.getUid()); + break; + } + } + } + // + + //+ public List + + @JsonIgnore + @Override + public String getFileContent() { + return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this, this.getFileNameWithPath()); + } + + @JsonIgnore + @Override + public String getFileNameWithPath() { + return fileNameWithPath; + } +} diff --git a/src/main/java/com/microsoft/model/sdp/file/TypeModel.java b/src/main/java/com/microsoft/model/sdp/file/TypeModel.java new file mode 100644 index 0000000..7ff078b --- /dev/null +++ b/src/main/java/com/microsoft/model/sdp/file/TypeModel.java @@ -0,0 +1,146 @@ +package com.microsoft.model.sdp.file; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.microsoft.model.MetadataFileItem; +import com.microsoft.model.TypeParameter; +import com.microsoft.model.YmlFile; +import com.microsoft.model.sdp.ExecutableModel; +import com.microsoft.model.sdp.TypeBaseModel; +import com.microsoft.model.sdp.file.MemberModel; +import com.microsoft.util.FileUtil; +import com.microsoft.util.XrefHelper; +import com.microsoft.util.YamlUtil; + +import java.io.File; +import java.util.*; + +public class TypeModel extends TypeBaseModel implements YmlFile { + + //getClasses() { + Collections.sort(classes); + return classes; + + } + + public List getEnums() { + Collections.sort(enums); + return enums; + } + + public List getInterfaces() { + + Collections.sort(interfaces); + return interfaces; + } + + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + // + private final static String METADATA_FILE_HEADER = "### YamlMime:JavaType\n"; + private final String fileNameWithPath; + private String outputPath; + + private List + + @JsonIgnore + //constructors = new ArrayList<>(); + private List fields = new ArrayList<>(); + private List methods = new ArrayList<>(); + private String type; + private List typeParameters = new ArrayList<>(); + + @JsonIgnore + private Map memberCache = new HashMap<>(); + // + public TypeModel(MetadataFileItem item, String fileNameWithPath, String outputPath) { + super(item.getUid(), item.getName()); + this.outputPath = outputPath; + this.fileNameWithPath = fileNameWithPath; + this.setFullName(item.getFullName()); + this.setNameWithType(item.getNameWithType()); + this.setPackageName(item.getPackageName()); + + if (!(item.getSummary() == null || item.getSummary().isEmpty())) { + this.setSummary(item.getSummary()); + } + + item.getInterfaces().forEach( + type -> this.getImplementedInterfaces().add(XrefHelper.generateXrefString(type, XrefHelper.XrefOption.SHORTNAME))); + + item.getInheritance().forEach( + type -> this.getInheritances().add(XrefHelper.generateXrefString(type, XrefHelper.XrefOption.DEFAULT))); + + this.getInheritedMembers().addAll(item.getInheritedMethods()); + this.setType(item.getType()); + + if (item.getSyntax() != null) { + this.setSyntax(item.getSyntax().getContent()); + this.getTypeParameters().addAll(item.getSyntax().getTypeParameters()); + } + + for (var child : item.getChildren()) { + String type = child.getType(); + switch (type.toLowerCase()) { + case "constructor": + if (this.type.toLowerCase().equals("class")) { + this.getConstructors().add(child.getUid()); + buildMember(child, memberCache); + } + break; + case "field": + this.getFields().add(child.getUid()); + buildField(child); + break; + case "method": + this.getMethods().add(child.getUid()); + buildMember(child, memberCache); + break; + } + + memberCache.forEach((k, v) -> FileUtil.dumpToFile(v)); + } + } + // + + //+ public List + + + private void buildMember(MetadataFileItem child, MapgetConstructors() { + Collections.sort(constructors); + return constructors; + } + + public List getFields() { + Collections.sort(fields); + return fields; + } + + public List getMethods() { + Collections.sort(methods); + return methods; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getTypeParameters() { + return typeParameters; + } + + public void setTypeParameters(List typeParameters) { + this.typeParameters = typeParameters; + } + // memberCache) { + String methodUid = child.getOverload(); + if (memberCache.containsKey(methodUid)) { + memberCache.get(methodUid).getMembers().add(new ExecutableModel(child)); + } else { + memberCache.put(methodUid, new MemberModel(methodUid, child, this.outputPath)); + } + } + + private void buildField(MetadataFileItem child) { + MemberModel fieldModel = new MemberModel(child, this.outputPath); + FileUtil.dumpToFile(fieldModel); + + } + + @JsonIgnore + @Override + public String getFileContent() { + return METADATA_FILE_HEADER + YamlUtil.objectToYamlString(this, this.getFileNameWithPath()); + } + + @JsonIgnore + @Override + public String getFileNameWithPath() { + return fileNameWithPath; + } +} diff --git a/src/main/java/com/microsoft/util/FileUtil.java b/src/main/java/com/microsoft/util/FileUtil.java index a11ea87..b029506 100644 --- a/src/main/java/com/microsoft/util/FileUtil.java +++ b/src/main/java/com/microsoft/util/FileUtil.java @@ -18,7 +18,8 @@ public static void dumpToFile(String content, String fileName) { Files.createDirectories(path.getParent()); Files.write(path, content.getBytes()); } catch (IOException ioe) { - throw new RuntimeException("Error during dump to file", ioe); + String exception = "Error during dump to file: " + fileName; + throw new RuntimeException(exception, ioe); } } diff --git a/src/main/java/com/microsoft/util/XrefHelper.java b/src/main/java/com/microsoft/util/XrefHelper.java new file mode 100644 index 0000000..916ef20 --- /dev/null +++ b/src/main/java/com/microsoft/util/XrefHelper.java @@ -0,0 +1,72 @@ +package com.microsoft.util; + +import org.apache.commons.lang3.RegExUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.text.StringEscapeUtils; + +import java.util.*; + +public class XrefHelper { + + public static String generateXrefString(String typeString, XrefOption option) { + List types = replaceUidAndSplit(typeString); + StringBuilder xrefBuilder = new StringBuilder(); + + Optional.ofNullable(types).ifPresent( + ref -> types.forEach( + uid -> { + if (uid.equalsIgnoreCase("<") + || uid.equalsIgnoreCase(">") + || uid.equalsIgnoreCase(",") + || uid.equalsIgnoreCase("[]") + || uid.equalsIgnoreCase("?")) + xrefBuilder.append(StringEscapeUtils.escapeHtml4(uid)); + else if (!"".equals(uid)) { + switch (option) { + case DEFAULT : xrefBuilder.append(getXrefStringDefault(uid)); + break; + case SHORTNAME: xrefBuilder.append(getXrefStringWithShortName(uid)); + break; + } + } + }) + ); + + return xrefBuilder.toString() ; + } + + static List replaceUidAndSplit(String uid) { + String retValue = RegExUtils.replaceAll(uid, "\\<", "///"); + retValue = RegExUtils.replaceAll(retValue, "\\>", "//>//"); + retValue = RegExUtils.replaceAll(retValue, ",", "//,//"); + retValue = RegExUtils.replaceAll(retValue, "\\[\\]", "//[]//"); + + return Arrays.asList(StringUtils.split(retValue, "//")); + } + + static String getShortName(String uid) { + + StringBuilder singleValue = new StringBuilder(); + Optional.ofNullable(uid).ifPresent( + Param -> { + List strList = new ArrayList<>(); + strList = Arrays.asList(StringUtils.split(Param, ".")); + singleValue.append(strList.get(strList.size() - 1)); + } + ); + return singleValue.toString(); + } + + static String getXrefStringDefault(String uid) { + return String.format(" ", uid); + } + + static String getXrefStringWithShortName(String uid) { + return String.format(" ", uid, uid, getShortName(uid)); + } + + public enum XrefOption { + DEFAULT, + SHORTNAME + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/util/YamlUtil.java b/src/main/java/com/microsoft/util/YamlUtil.java index 9d4bdaf..fe72a3e 100644 --- a/src/main/java/com/microsoft/util/YamlUtil.java +++ b/src/main/java/com/microsoft/util/YamlUtil.java @@ -3,7 +3,9 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; +import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator; import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature; import com.overzealous.remark.IgnoredHtmlElement; import com.overzealous.remark.Options; @@ -31,14 +33,16 @@ protected Remark initialValue() { .disable(Feature.WRITE_DOC_START_MARKER) .disable(Feature.SPLIT_LINES) ) + .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) .setSerializationInclusion(Include.NON_NULL) .setSerializationInclusion(Include.NON_EMPTY); - public static String objectToYamlString(Object object) { + public static String objectToYamlString(Object object, String fileName) { try { return mapper.writeValueAsString(object); } catch (JsonProcessingException jpe) { - throw new RuntimeException("Could not serialize object to yaml string", jpe); + String exception = "Could not serialize object to yaml string for " + fileName; + throw new RuntimeException(exception, jpe); } } diff --git a/src/test/java/com/microsoft/build/YmlFilesBuilderTest.java b/src/test/java/com/microsoft/build/YmlFilesBuilderTest.java index bbe5a96..a5b73a8 100644 --- a/src/test/java/com/microsoft/build/YmlFilesBuilderTest.java +++ b/src/test/java/com/microsoft/build/YmlFilesBuilderTest.java @@ -6,10 +6,7 @@ import static org.mockito.Mockito.when; import com.google.testing.compile.CompilationRule; -import com.microsoft.model.MetadataFile; -import com.microsoft.model.MetadataFileItem; -import com.microsoft.model.MethodParameter; -import com.microsoft.model.Syntax; +import com.microsoft.model.*; import com.sun.source.util.DocTrees; import java.io.File; @@ -57,8 +54,9 @@ public void addConstructorsInfoWhenOnlyDefaultConstructor() { MetadataFile container = new MetadataFile("output", "name"); when(environment.getElementUtils()).thenReturn(elements); when(environment.getDocTrees()).thenReturn(docTrees); + TocItem toc = new TocItem("com.microsoft.samples.subpackage.Person", "com.microsoft.samples.subpackage.Person"); - ymlFilesBuilder.addConstructorsInfo(element, container); + ymlFilesBuilder.addConstructorsInfo(element, container, toc); assertThat("Wrong file name", container.getFileNameWithPath(), is("output" + File.separator + "name")); assertThat("Container should contain constructor item", container.getItems().size(), is(1)); @@ -70,8 +68,8 @@ public void addConstructorsInfo() { MetadataFile container = new MetadataFile("output", "name"); when(environment.getElementUtils()).thenReturn(elements); when(environment.getDocTrees()).thenReturn(docTrees); - - ymlFilesBuilder.addConstructorsInfo(element, container); + TocItem toc = new TocItem("com.microsoft.samples.SuperHero", "com.microsoft.samples.SuperHero"); + ymlFilesBuilder.addConstructorsInfo(element, container, toc); assertThat("Wrong file name", container.getFileNameWithPath(), is("output" + File.separator + "name")); Collection constructorItems = container.getItems(); diff --git a/src/test/java/com/microsoft/doclet/DocletRunnerTest.java b/src/test/java/com/microsoft/doclet/DocletRunnerTest.java index 6c0439f..9ad1f99 100644 --- a/src/test/java/com/microsoft/doclet/DocletRunnerTest.java +++ b/src/test/java/com/microsoft/doclet/DocletRunnerTest.java @@ -11,6 +11,8 @@ import java.nio.file.Path; import java.util.List; import java.util.stream.Collectors; + +import org.apache.commons.io.output.TeeOutputStream; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -30,8 +32,11 @@ public class DocletRunnerTest { public void cleanup() throws IOException { FileUtilTest.deleteDirectory(OUTPUT_DIR); - System.setOut(new PrintStream(outContent)); - System.setErr(new PrintStream(errContent)); + TeeOutputStream err =new TeeOutputStream(System.out, errContent); + TeeOutputStream info =new TeeOutputStream(System.out, outContent); + + System.setOut(new PrintStream(info)); + System.setErr(new PrintStream(err)); } @After diff --git a/src/test/java/com/microsoft/samples/SuperHero.java b/src/test/java/com/microsoft/samples/SuperHero.java index 54276e6..d8aad6c 100644 --- a/src/test/java/com/microsoft/samples/SuperHero.java +++ b/src/test/java/com/microsoft/samples/SuperHero.java @@ -107,4 +107,16 @@ private void setHobby(String hobby) { String getHobby() { return hobby; } + + /** + * Returns a FileStoreAttributeView of the given type. + * + * This method always returns null as no {@link FileStoreAttributeView} is currently supported. + * + * @param aClass a class + * @return null + */ + public
V ReturnNull(Class aClass) { + return null; + } } diff --git a/src/test/java/com/microsoft/samples/agreements/AgreementDetailsCollectionOperations.java b/src/test/java/com/microsoft/samples/agreements/AgreementDetailsCollectionOperations.java index d76df42..6c296e4 100644 --- a/src/test/java/com/microsoft/samples/agreements/AgreementDetailsCollectionOperations.java +++ b/src/test/java/com/microsoft/samples/agreements/AgreementDetailsCollectionOperations.java @@ -31,4 +31,9 @@ public ResourceCollection get() { return null; } + + public ResourceCollection get(String id) + { + return null; + } } \ No newline at end of file diff --git a/src/test/java/com/microsoft/samples/agreements/IAgreementDetailsCollection.java b/src/test/java/com/microsoft/samples/agreements/IAgreementDetailsCollection.java index 11daccc..1158908 100644 --- a/src/test/java/com/microsoft/samples/agreements/IAgreementDetailsCollection.java +++ b/src/test/java/com/microsoft/samples/agreements/IAgreementDetailsCollection.java @@ -13,4 +13,6 @@ public interface IAgreementDetailsCollection * @return The current agreement metadata. */ ResourceCollection get(); + + ResourceCollection get(String id); } \ No newline at end of file diff --git a/src/test/java/com/microsoft/samples/subpackage/HttpStatusCode.java b/src/test/java/com/microsoft/samples/subpackage/HttpStatusCode.java new file mode 100644 index 0000000..229e99e --- /dev/null +++ b/src/test/java/com/microsoft/samples/subpackage/HttpStatusCode.java @@ -0,0 +1,18 @@ +package com.microsoft.samples.subpackage; + +public class HttpStatusCode +{ + public static final int BADREQUEST = 400; + + public static final int UNAUTHORIZED = 401; + + public static final int FORBIDDEN = 403; + + public static final int NOTFOUND = 404; + + public static final int CONFLICT = 409; + + public static final int SERVICEUNAVAILABLE = 503; + + public static final int EXPECTATIONFAILED = 417; +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/samples/subpackage/Person.java b/src/test/java/com/microsoft/samples/subpackage/Person.java index fb09f8a..76e3c4d 100644 --- a/src/test/java/com/microsoft/samples/subpackage/Person.java +++ b/src/test/java/com/microsoft/samples/subpackage/Person.java @@ -1,5 +1,7 @@ package com.microsoft.samples.subpackage; +import com.microsoft.samples.SuperHero; + import java.util.Collections; import java.util.List; import java.util.Set; @@ -57,6 +59,8 @@ public Set getSomeSet() { /** * We need to have this method that takes parameter and return types declared in the current class + * Test link {@link String} + * A person maybe a {@link SuperHero} */ public static Person buildPerson(Person seed) { return seed; diff --git a/src/test/java/com/microsoft/util/ElementUtilTest.java b/src/test/java/com/microsoft/util/ElementUtilTest.java index cf2b871..bbe9c67 100644 --- a/src/test/java/com/microsoft/util/ElementUtilTest.java +++ b/src/test/java/com/microsoft/util/ElementUtilTest.java @@ -59,7 +59,7 @@ public void extractSortedElements() { .stream().map(String::valueOf).collect(Collectors.toList()); // Ensure items to exclude exist. - assertThat("Wrong enclosed elements number", allElements.size(), is(6)); + assertThat("Wrong enclosed elements number", allElements.size(), is(7)); assertThat("Unexpected package private class", allElements.contains("com.microsoft.samples.subpackage.InternalException"), is(true)); assertThat("Unexpected to-exclude class", allElements.contains("com.microsoft.samples.subpackage.SomeExcludedClass"), is(true)); @@ -68,10 +68,10 @@ public void extractSortedElements() { .stream().map(String::valueOf).collect(Collectors.toList()); // Verify filtered and sorted result - assertThat("Wrong result list size", extractedElements.size(), is(4)); + assertThat("Wrong result list size", extractedElements.size(), is(5)); assertThat("Unexpected first item in the result list after invoke method extractSortedElements()", extractedElements.get(0), is("com.microsoft.samples.subpackage.CustomException")); assertThat("Unexpected second item in the result list after invoke method extractSortedElements()", extractedElements.get(1), is("com.microsoft.samples.subpackage.Display")); - assertThat("Unexpected third item in the result list after invoke method extractSortedElements()", extractedElements.get(2), is("com.microsoft.samples.subpackage.Person")); + assertThat("Unexpected third item in the result list after invoke method extractSortedElements()", extractedElements.get(2), is("com.microsoft.samples.subpackage.HttpStatusCode")); } @Test diff --git a/src/test/java/com/microsoft/util/YamlUtilTest.java b/src/test/java/com/microsoft/util/YamlUtilTest.java index 3c9b6fc..f6c4a71 100644 --- a/src/test/java/com/microsoft/util/YamlUtilTest.java +++ b/src/test/java/com/microsoft/util/YamlUtilTest.java @@ -19,30 +19,31 @@ public class YamlUtilTest { @Test public void objectToYamlString() { MetadataFile metadataFile = new MetadataFile("", "SomeFileName"); - metadataFile.getItems().add(buildMetadataFileItem(3)); - metadataFile.getReferences().add(buildMetadataFileItem(5)); + metadataFile.getItems().add(buildMetadataFileItem(3, "method")); + metadataFile.getReferences().add(buildMetadataFileItem(5, "")); - String result = YamlUtil.objectToYamlString(metadataFile); + String result = YamlUtil.objectToYamlString(metadataFile, "SomeFileName"); assertThat("Wrong result", result, is("" + "items:\n" + "- uid: \"Some uid 3\"\n" + " id: \"Some id3\"\n" + " href: \"Some href3\"\n" + + " type: \"method\"\n" + " syntax:\n" + " parameters:\n" - + " - id: \"Some id 3\"\n" - + " type: \"Some type 3\"\n" - + " description: \"Some desc 3\"\n" + + " - description: \"Some desc 3\"\n" + + " name: \"Some name 3\"\n" + + " type: \" \"\n" + "references:\n" + "- uid: \"Some uid 5\"\n" + " id: \"Some id5\"\n" + " href: \"Some href5\"\n" + " syntax:\n" + " parameters:\n" - + " - id: \"Some id 5\"\n" - + " type: \"Some type 5\"\n" - + " description: \"Some desc 5\"\n")); + + " - description: \"Some desc 5\"\n" + + " name: \"Some name 5\"\n" + + " type: \" \"\n")); } @Test @@ -61,12 +62,13 @@ public void convertHtmlToMarkdownForBlankParam() { assertThat("Wrong result for empty string", YamlUtil.convertHtmlToMarkdown(""), is("")); } - private MetadataFileItem buildMetadataFileItem(int seed) { + private MetadataFileItem buildMetadataFileItem(int seed, String type) { MetadataFileItem metadataFileItem = new MetadataFileItem("Some uid " + seed); metadataFileItem.setId("Some id" + seed); metadataFileItem.setHref("Some href" + seed); + metadataFileItem.setType(type); metadataFileItem.setParameters(Collections.singletonList( - new MethodParameter("Some id " + seed, "Some type " + seed, "Some desc " + seed))); + new MethodParameter("Some name " + seed, "Some type " + seed, "Some desc " + seed))); return metadataFileItem; } diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.BasePartnerComponent.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.BasePartnerComponent.yml new file mode 100644 index 0000000..3ca793e --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.BasePartnerComponent.yml @@ -0,0 +1,22 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent*" +fullName: "com.microsoft.samples.BasePartnerComponent .BasePartnerComponent" +name: "BasePartnerComponent" +nameWithType: "BasePartnerComponent .BasePartnerComponent" +members: +- uid: "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent(com.microsoft.samples.IPartner,TContext)" + fullName: "com.microsoft.samples.BasePartnerComponent .BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" + name: "BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" + nameWithType: "BasePartnerComponent .BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" + summary: "Initializes a new instance of the BasePartnerComponent class." + parameters: + - description: "The root partner operations that created this component." + name: "rootPartnerOperations" + type: " " + - description: "A component context object to work with." + name: "componentContext" + type: " " + syntax: "protected BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testBase.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testBase.yml new file mode 100644 index 0000000..9dbd584 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testBase.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.BasePartnerComponent.testBase*" +fullName: "com.microsoft.samples.BasePartnerComponent .testBase" +name: "testBase" +nameWithType: "BasePartnerComponent .testBase" +members: +- uid: "com.microsoft.samples.BasePartnerComponent.testBase()" + fullName: "com.microsoft.samples.BasePartnerComponent .testBase()" + name: "testBase()" + nameWithType: "BasePartnerComponent .testBase()" + syntax: "protected void testBase()" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testInherited.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testInherited.yml new file mode 100644 index 0000000..f8647e3 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.testInherited.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.BasePartnerComponent.testInherited*" +fullName: "com.microsoft.samples.BasePartnerComponent .testInherited" +name: "testInherited" +nameWithType: "BasePartnerComponent .testInherited" +members: +- uid: "com.microsoft.samples.BasePartnerComponent.testInherited()" + fullName: "com.microsoft.samples.BasePartnerComponent .testInherited()" + name: "testInherited()" + nameWithType: "BasePartnerComponent .testInherited()" + syntax: "protected void testInherited()" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.yml index 51f756a..f761432 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponent.yml @@ -1,151 +1,31 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.BasePartnerComponent" - id: "BasePartnerComponent" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent(com.microsoft.samples.IPartner,TContext)" - - "com.microsoft.samples.BasePartnerComponent.testBase()" - - "com.microsoft.samples.BasePartnerComponent.testInherited()" - langs: - - "java" - name: "BasePartnerComponent " - nameWithType: "BasePartnerComponent " - fullName: "com.microsoft.samples.BasePartnerComponent " - type: "Class" - package: "com.microsoft.samples" - summary: "Holds common partner component properties and behavior. All components should inherit from this class. The context object type." - syntax: - content: "public abstract class BasePartnerComponent " - typeParameters: - - id: "TContext" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent(com.microsoft.samples.IPartner,TContext)" - id: "BasePartnerComponent(com.microsoft.samples.IPartner,TContext)" - parent: "com.microsoft.samples.BasePartnerComponent" - langs: - - "java" - name: "BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" - nameWithType: "BasePartnerComponent .BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" - fullName: "com.microsoft.samples.BasePartnerComponent .BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" - overload: "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent*" - type: "Constructor" - package: "com.microsoft.samples" - summary: "Initializes a new instance of the BasePartnerComponent class." - syntax: - content: "protected BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)" - parameters: - - id: "rootPartnerOperations" - type: "com.microsoft.samples.IPartner" - description: "The root partner operations that created this component." - - id: "componentContext" - type: "TContext" - description: "A component context object to work with." -- uid: "com.microsoft.samples.BasePartnerComponent.testBase()" - id: "testBase()" - parent: "com.microsoft.samples.BasePartnerComponent" - langs: - - "java" - name: "testBase()" - nameWithType: "BasePartnerComponent .testBase()" - fullName: "com.microsoft.samples.BasePartnerComponent .testBase()" - overload: "com.microsoft.samples.BasePartnerComponent.testBase*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "protected void testBase()" -- uid: "com.microsoft.samples.BasePartnerComponent.testInherited()" - id: "testInherited()" - parent: "com.microsoft.samples.BasePartnerComponent" - langs: - - "java" - name: "testInherited()" - nameWithType: "BasePartnerComponent .testInherited()" - fullName: "com.microsoft.samples.BasePartnerComponent .testInherited()" - overload: "com.microsoft.samples.BasePartnerComponent.testInherited*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "protected void testInherited()" -references: -- uid: "com.microsoft.samples.IPartner" - name: "IPartner" - nameWithType: "IPartner" - fullName: "com.microsoft.samples.IPartner" -- uid: "TContext" - spec.java: - - uid: "TContext" - name: "TContext" - fullName: "TContext" -- uid: "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent*" - name: "BasePartnerComponent" - nameWithType: "BasePartnerComponent .BasePartnerComponent" - fullName: "com.microsoft.samples.BasePartnerComponent .BasePartnerComponent" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.BasePartnerComponent.testBase*" - name: "testBase" - nameWithType: "BasePartnerComponent .testBase" - fullName: "com.microsoft.samples.BasePartnerComponent .testBase" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.BasePartnerComponent.testInherited*" - name: "testInherited" - nameWithType: "BasePartnerComponent .testInherited" - fullName: "com.microsoft.samples.BasePartnerComponent .testInherited" - package: "com.microsoft.samples" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.BasePartnerComponent" +fullName: "com.microsoft.samples.BasePartnerComponent " +name: "BasePartnerComponent " +nameWithType: "BasePartnerComponent " +summary: "Holds common partner component properties and behavior. All components should inherit from this class. The context object type." +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public abstract class BasePartnerComponent " +constructors: +- "com.microsoft.samples.BasePartnerComponent.BasePartnerComponent(com.microsoft.samples.IPartner,TContext)" +methods: +- "com.microsoft.samples.BasePartnerComponent.testBase()" +- "com.microsoft.samples.BasePartnerComponent.testInherited()" +type: "class" +typeParameters: +- name: "TContext" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString.yml new file mode 100644 index 0000000..70f5102 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString.yml @@ -0,0 +1,32 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString*" +fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString" +name: "BasePartnerComponentString" +nameWithType: "BasePartnerComponentString.BasePartnerComponentString" +members: +- uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner)" + fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations)" + name: "BasePartnerComponentString(IPartner rootPartnerOperations)" + nameWithType: "BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations)" + summary: "Initializes a new instance of the BasePartnerComponent class." + parameters: + - description: "The root partner operations that created this component." + name: "rootPartnerOperations" + type: " " + syntax: "protected BasePartnerComponentString(IPartner rootPartnerOperations)" +- uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner,java.lang.String)" + fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" + name: "BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" + nameWithType: "BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" + summary: "Initializes a new instance of the BasePartnerComponent class." + parameters: + - description: "The root partner operations that created this component." + name: "rootPartnerOperations" + type: " " + - description: "A component context object to work with." + name: "componentContext" + type: " " + syntax: "protected BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.testInherited.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.testInherited.yml new file mode 100644 index 0000000..ab5f893 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.testInherited.yml @@ -0,0 +1,15 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.BasePartnerComponentString.testInherited*" +fullName: "com.microsoft.samples.BasePartnerComponentString.testInherited" +name: "testInherited" +nameWithType: "BasePartnerComponentString.testInherited" +members: +- uid: "com.microsoft.samples.BasePartnerComponentString.testInherited()" + fullName: "com.microsoft.samples.BasePartnerComponentString.testInherited()" + name: "testInherited()" + nameWithType: "BasePartnerComponentString.testInherited()" + overridden: "com.microsoft.samples.BasePartnerComponent.testInherited()" + syntax: "protected void testInherited()" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.yml index 6cee6d7..f70a531 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.BasePartnerComponentString.yml @@ -1,169 +1,32 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.BasePartnerComponentString" - id: "BasePartnerComponentString" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner)" - - "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner,java.lang.String)" - - "com.microsoft.samples.BasePartnerComponentString.testInherited()" - langs: - - "java" - name: "BasePartnerComponentString" - nameWithType: "BasePartnerComponentString" - fullName: "com.microsoft.samples.BasePartnerComponentString" - type: "Class" - package: "com.microsoft.samples" - summary: "Holds common partner component properties and behavior. The context is string type by default." - syntax: - content: "public abstract class BasePartnerComponentString extends BasePartnerComponent " - inheritance: - - "java.lang.Object" - - "com.microsoft.samples.BasePartnerComponent" - inheritedMembers: - - "com.microsoft.samples.BasePartnerComponent.testBase()" - - "com.microsoft.samples.BasePartnerComponent.testInherited()" - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner)" - id: "BasePartnerComponentString(com.microsoft.samples.IPartner)" - parent: "com.microsoft.samples.BasePartnerComponentString" - langs: - - "java" - name: "BasePartnerComponentString(IPartner rootPartnerOperations)" - nameWithType: "BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations)" - fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations)" - overload: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString*" - type: "Constructor" - package: "com.microsoft.samples" - summary: "Initializes a new instance of the BasePartnerComponent class." - syntax: - content: "protected BasePartnerComponentString(IPartner rootPartnerOperations)" - parameters: - - id: "rootPartnerOperations" - type: "com.microsoft.samples.IPartner" - description: "The root partner operations that created this component." -- uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner,java.lang.String)" - id: "BasePartnerComponentString(com.microsoft.samples.IPartner,java.lang.String)" - parent: "com.microsoft.samples.BasePartnerComponentString" - langs: - - "java" - name: "BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" - nameWithType: "BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" - fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" - overload: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString*" - type: "Constructor" - package: "com.microsoft.samples" - summary: "Initializes a new instance of the BasePartnerComponent class." - syntax: - content: "protected BasePartnerComponentString(IPartner rootPartnerOperations, String componentContext)" - parameters: - - id: "rootPartnerOperations" - type: "com.microsoft.samples.IPartner" - description: "The root partner operations that created this component." - - id: "componentContext" - type: "java.lang.String" - description: "A component context object to work with." -- uid: "com.microsoft.samples.BasePartnerComponentString.testInherited()" - id: "testInherited()" - parent: "com.microsoft.samples.BasePartnerComponentString" - langs: - - "java" - name: "testInherited()" - nameWithType: "BasePartnerComponentString.testInherited()" - fullName: "com.microsoft.samples.BasePartnerComponentString.testInherited()" - overload: "com.microsoft.samples.BasePartnerComponentString.testInherited*" - overridden: "com.microsoft.samples.BasePartnerComponent.testInherited()" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "protected void testInherited()" -references: -- uid: "com.microsoft.samples.IPartner" - name: "IPartner" - nameWithType: "IPartner" - fullName: "com.microsoft.samples.IPartner" -- uid: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString*" - name: "BasePartnerComponentString" - nameWithType: "BasePartnerComponentString.BasePartnerComponentString" - fullName: "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString" - package: "com.microsoft.samples" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.BasePartnerComponentString.testInherited*" - name: "testInherited" - nameWithType: "BasePartnerComponentString.testInherited" - fullName: "com.microsoft.samples.BasePartnerComponentString.testInherited" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.BasePartnerComponent " - name: "BasePartnerComponent " - nameWithType: "BasePartnerComponent " - fullName: "com.microsoft.samples.BasePartnerComponent " -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "com.microsoft.samples.BasePartnerComponent.testBase()" - name: "BasePartnerComponent.testBase()" - nameWithType: "BasePartnerComponent.testBase()" - fullName: "com.microsoft.samples.BasePartnerComponent.testBase()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "com.microsoft.samples.BasePartnerComponent.testInherited()" - name: "BasePartnerComponent.testInherited()" - nameWithType: "BasePartnerComponent.testInherited()" - fullName: "com.microsoft.samples.BasePartnerComponent.testInherited()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.BasePartnerComponent" - name: "BasePartnerComponent" - nameWithType: "BasePartnerComponent" - fullName: "com.microsoft.samples.BasePartnerComponent" +### YamlMime:JavaType +uid: "com.microsoft.samples.BasePartnerComponentString" +fullName: "com.microsoft.samples.BasePartnerComponentString" +name: "BasePartnerComponentString" +nameWithType: "BasePartnerComponentString" +summary: "Holds common partner component properties and behavior. The context is string type by default." +inheritances: +- " " +- " " +inheritedMembers: +- "com.microsoft.samples.BasePartnerComponent.testBase()" +- "com.microsoft.samples.BasePartnerComponent.testInherited()" +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public abstract class BasePartnerComponentString extends BasePartnerComponent " +constructors: +- "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner)" +- "com.microsoft.samples.BasePartnerComponentString.BasePartnerComponentString(com.microsoft.samples.IPartner,java.lang.String)" +methods: +- "com.microsoft.samples.BasePartnerComponentString.testInherited()" +type: "class" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.getCredentials.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.getCredentials.yml new file mode 100644 index 0000000..65c45d6 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.getCredentials.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.IPartner.getCredentials*" +fullName: "com.microsoft.samples.IPartner.getCredentials" +name: "getCredentials" +nameWithType: "IPartner.getCredentials" +members: +- uid: "com.microsoft.samples.IPartner.getCredentials()" + fullName: "com.microsoft.samples.IPartner.getCredentials()" + name: "getCredentials()" + nameWithType: "IPartner.getCredentials()" + summary: "Gets the partner credentials." + syntax: "public abstract String getCredentials()" + returns: + description: "The partner credentials." + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.yml index 36be4dc..864966d 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.IPartner.yml @@ -1,45 +1,12 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.IPartner" - id: "IPartner" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.IPartner.getCredentials()" - langs: - - "java" - name: "IPartner" - nameWithType: "IPartner" - fullName: "com.microsoft.samples.IPartner" - type: "Interface" - package: "com.microsoft.samples" - summary: "The main entry point into using the partner SDK functionality. Represents a partner and encapsulates all the behavior attached to partners. Use this interface to get to the partner's customers, profiles, and customer orders, profiles and subscriptions and more." - syntax: - content: "public interface IPartner" -- uid: "com.microsoft.samples.IPartner.getCredentials()" - id: "getCredentials()" - parent: "com.microsoft.samples.IPartner" - langs: - - "java" - name: "getCredentials()" - nameWithType: "IPartner.getCredentials()" - fullName: "com.microsoft.samples.IPartner.getCredentials()" - overload: "com.microsoft.samples.IPartner.getCredentials*" - type: "Method" - package: "com.microsoft.samples" - summary: "Gets the partner credentials." - syntax: - content: "public abstract String getCredentials()" - return: - type: "java.lang.String" - description: "The partner credentials." -references: -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.IPartner.getCredentials*" - name: "getCredentials" - nameWithType: "IPartner.getCredentials" - fullName: "com.microsoft.samples.IPartner.getCredentials" - package: "com.microsoft.samples" +### YamlMime:JavaType +uid: "com.microsoft.samples.IPartner" +fullName: "com.microsoft.samples.IPartner" +name: "IPartner" +nameWithType: "IPartner" +summary: "The main entry point into using the partner SDK functionality. Represents a partner and encapsulates all the behavior attached to partners. Use this interface to get to the partner's customers, profiles, and customer orders, profiles and subscriptions and more." +syntax: "public interface IPartner" +methods: +- "com.microsoft.samples.IPartner.getCredentials()" +type: "interface" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.KeyValuePair.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.KeyValuePair.yml new file mode 100644 index 0000000..6cd63dc --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.KeyValuePair.yml @@ -0,0 +1,24 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.KeyValuePair.KeyValuePair*" +fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair" +name: "KeyValuePair" +nameWithType: "KeyValuePair .KeyValuePair" +members: +- uid: "com.microsoft.samples.KeyValuePair.KeyValuePair()" + fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair()" + name: "KeyValuePair()" + nameWithType: "KeyValuePair .KeyValuePair()" + syntax: "public KeyValuePair()" +- uid: "com.microsoft.samples.KeyValuePair.KeyValuePair(K,V)" + fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair(K key, V value)" + name: "KeyValuePair(K key, V value)" + nameWithType: "KeyValuePair .KeyValuePair(K key, V value)" + parameters: + - name: "key" + type: " " + - name: "value" + type: " " + syntax: "public KeyValuePair(K key, V value)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getKey.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getKey.yml new file mode 100644 index 0000000..32b4c96 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getKey.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.KeyValuePair.getKey*" +fullName: "com.microsoft.samples.KeyValuePair .getKey" +name: "getKey" +nameWithType: "KeyValuePair .getKey" +members: +- uid: "com.microsoft.samples.KeyValuePair.getKey()" + fullName: "com.microsoft.samples.KeyValuePair .getKey()" + name: "getKey()" + nameWithType: "KeyValuePair .getKey()" + syntax: "public K getKey()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getValue.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getValue.yml new file mode 100644 index 0000000..c5a7ccd --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.getValue.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.KeyValuePair.getValue*" +fullName: "com.microsoft.samples.KeyValuePair .getValue" +name: "getValue" +nameWithType: "KeyValuePair .getValue" +members: +- uid: "com.microsoft.samples.KeyValuePair.getValue()" + fullName: "com.microsoft.samples.KeyValuePair .getValue()" + name: "getValue()" + nameWithType: "KeyValuePair .getValue()" + syntax: "public V getValue()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.yml index 0eacae3..5f98302 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.KeyValuePair.yml @@ -1,167 +1,32 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.KeyValuePair" - id: "KeyValuePair" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.KeyValuePair.KeyValuePair()" - - "com.microsoft.samples.KeyValuePair.KeyValuePair(K,V)" - - "com.microsoft.samples.KeyValuePair.getKey()" - - "com.microsoft.samples.KeyValuePair.getValue()" - langs: - - "java" - name: "KeyValuePair " - nameWithType: "KeyValuePair " - fullName: "com.microsoft.samples.KeyValuePair " - type: "Class" - package: "com.microsoft.samples" - syntax: - content: "public class KeyValuePair " - typeParameters: - - id: "K" - - id: "V" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.KeyValuePair.KeyValuePair()" - id: "KeyValuePair()" - parent: "com.microsoft.samples.KeyValuePair" - langs: - - "java" - name: "KeyValuePair()" - nameWithType: "KeyValuePair .KeyValuePair()" - fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair()" - overload: "com.microsoft.samples.KeyValuePair.KeyValuePair*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public KeyValuePair()" -- uid: "com.microsoft.samples.KeyValuePair.KeyValuePair(K,V)" - id: "KeyValuePair(K,V)" - parent: "com.microsoft.samples.KeyValuePair" - langs: - - "java" - name: "KeyValuePair(K key, V value)" - nameWithType: "KeyValuePair .KeyValuePair(K key, V value)" - fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair(K key, V value)" - overload: "com.microsoft.samples.KeyValuePair.KeyValuePair*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public KeyValuePair(K key, V value)" - parameters: - - id: "key" - type: "K" - - id: "value" - type: "V" -- uid: "com.microsoft.samples.KeyValuePair.getKey()" - id: "getKey()" - parent: "com.microsoft.samples.KeyValuePair" - langs: - - "java" - name: "getKey()" - nameWithType: "KeyValuePair .getKey()" - fullName: "com.microsoft.samples.KeyValuePair .getKey()" - overload: "com.microsoft.samples.KeyValuePair.getKey*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public K getKey()" - return: - type: "K" -- uid: "com.microsoft.samples.KeyValuePair.getValue()" - id: "getValue()" - parent: "com.microsoft.samples.KeyValuePair" - langs: - - "java" - name: "getValue()" - nameWithType: "KeyValuePair .getValue()" - fullName: "com.microsoft.samples.KeyValuePair .getValue()" - overload: "com.microsoft.samples.KeyValuePair.getValue*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public V getValue()" - return: - type: "V" -references: -- uid: "com.microsoft.samples.KeyValuePair.KeyValuePair*" - name: "KeyValuePair" - nameWithType: "KeyValuePair .KeyValuePair" - fullName: "com.microsoft.samples.KeyValuePair .KeyValuePair" - package: "com.microsoft.samples" -- uid: "K" - spec.java: - - uid: "K" - name: "K" - fullName: "K" -- uid: "V" - spec.java: - - uid: "V" - name: "V" - fullName: "V" -- uid: "com.microsoft.samples.KeyValuePair.getKey*" - name: "getKey" - nameWithType: "KeyValuePair .getKey" - fullName: "com.microsoft.samples.KeyValuePair .getKey" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.KeyValuePair.getValue*" - name: "getValue" - nameWithType: "KeyValuePair .getValue" - fullName: "com.microsoft.samples.KeyValuePair .getValue" - package: "com.microsoft.samples" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.KeyValuePair" +fullName: "com.microsoft.samples.KeyValuePair " +name: "KeyValuePair " +nameWithType: "KeyValuePair " +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class KeyValuePair " +constructors: +- "com.microsoft.samples.KeyValuePair.KeyValuePair()" +- "com.microsoft.samples.KeyValuePair.KeyValuePair(K,V)" +methods: +- "com.microsoft.samples.KeyValuePair.getKey()" +- "com.microsoft.samples.KeyValuePair.getValue()" +type: "class" +typeParameters: +- name: "K" +- name: "V" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.Link.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.Link.yml new file mode 100644 index 0000000..c9a09ce --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.Link.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Link.Link*" +fullName: "com.microsoft.samples.Link.Link" +name: "Link" +nameWithType: "Link.Link" +members: +- uid: "com.microsoft.samples.Link.Link()" + fullName: "com.microsoft.samples.Link.Link()" + name: "Link()" + nameWithType: "Link.Link()" + syntax: "public Link()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getHeaders.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getHeaders.yml new file mode 100644 index 0000000..f2b63a6 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getHeaders.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Link.getHeaders*" +fullName: "com.microsoft.samples.Link.getHeaders" +name: "getHeaders" +nameWithType: "Link.getHeaders" +members: +- uid: "com.microsoft.samples.Link.getHeaders()" + fullName: "com.microsoft.samples.Link.getHeaders()" + name: "getHeaders()" + nameWithType: "Link.getHeaders()" + syntax: "public Collection > getHeaders()" + returns: + type: " < < , >>" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getMethod.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getMethod.yml new file mode 100644 index 0000000..45ffc49 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.getMethod.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Link.getMethod*" +fullName: "com.microsoft.samples.Link.getMethod" +name: "getMethod" +nameWithType: "Link.getMethod" +members: +- uid: "com.microsoft.samples.Link.getMethod()" + fullName: "com.microsoft.samples.Link.getMethod()" + name: "getMethod()" + nameWithType: "Link.getMethod()" + syntax: "public String getMethod()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setHeaders.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setHeaders.yml new file mode 100644 index 0000000..6c1db4e --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setHeaders.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Link.setHeaders*" +fullName: "com.microsoft.samples.Link.setHeaders" +name: "setHeaders" +nameWithType: "Link.setHeaders" +members: +- uid: "com.microsoft.samples.Link.setHeaders(java.util.Collection >)" + fullName: "com.microsoft.samples.Link.setHeaders(Collection > value)" + name: "setHeaders(Collection > value)" + nameWithType: "Link.setHeaders(Collection > value)" + parameters: + - name: "value" + type: " < < , >>" + syntax: "public void setHeaders(Collection > value)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setMethod.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setMethod.yml new file mode 100644 index 0000000..31c136e --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.setMethod.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Link.setMethod*" +fullName: "com.microsoft.samples.Link.setMethod" +name: "setMethod" +nameWithType: "Link.setMethod" +members: +- uid: "com.microsoft.samples.Link.setMethod(java.lang.String)" + fullName: "com.microsoft.samples.Link.setMethod(String value)" + name: "setMethod(String value)" + nameWithType: "Link.setMethod(String value)" + parameters: + - name: "value" + type: " " + syntax: "public void setMethod(String value)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.yml index cb95322..2154a9a 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.Link.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Link.yml @@ -1,220 +1,30 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.Link" - id: "Link" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.Link.Link()" - - "com.microsoft.samples.Link.getHeaders()" - - "com.microsoft.samples.Link.getMethod()" - - "com.microsoft.samples.Link.setHeaders(java.util.Collection >)" - - "com.microsoft.samples.Link.setMethod(java.lang.String)" - langs: - - "java" - name: "Link" - nameWithType: "Link" - fullName: "com.microsoft.samples.Link" - type: "Class" - package: "com.microsoft.samples" - syntax: - content: "public class Link" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.Link.Link()" - id: "Link()" - parent: "com.microsoft.samples.Link" - langs: - - "java" - name: "Link()" - nameWithType: "Link.Link()" - fullName: "com.microsoft.samples.Link.Link()" - overload: "com.microsoft.samples.Link.Link*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public Link()" -- uid: "com.microsoft.samples.Link.getHeaders()" - id: "getHeaders()" - parent: "com.microsoft.samples.Link" - langs: - - "java" - name: "getHeaders()" - nameWithType: "Link.getHeaders()" - fullName: "com.microsoft.samples.Link.getHeaders()" - overload: "com.microsoft.samples.Link.getHeaders*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public Collection > getHeaders()" - return: - type: "java.util.Collection >" -- uid: "com.microsoft.samples.Link.getMethod()" - id: "getMethod()" - parent: "com.microsoft.samples.Link" - langs: - - "java" - name: "getMethod()" - nameWithType: "Link.getMethod()" - fullName: "com.microsoft.samples.Link.getMethod()" - overload: "com.microsoft.samples.Link.getMethod*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public String getMethod()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.Link.setHeaders(java.util.Collection >)" - id: "setHeaders(java.util.Collection >)" - parent: "com.microsoft.samples.Link" - langs: - - "java" - name: "setHeaders(Collection > value)" - nameWithType: "Link.setHeaders(Collection > value)" - fullName: "com.microsoft.samples.Link.setHeaders(Collection > value)" - overload: "com.microsoft.samples.Link.setHeaders*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public void setHeaders(Collection > value)" - parameters: - - id: "value" - type: "java.util.Collection >" -- uid: "com.microsoft.samples.Link.setMethod(java.lang.String)" - id: "setMethod(java.lang.String)" - parent: "com.microsoft.samples.Link" - langs: - - "java" - name: "setMethod(String value)" - nameWithType: "Link.setMethod(String value)" - fullName: "com.microsoft.samples.Link.setMethod(String value)" - overload: "com.microsoft.samples.Link.setMethod*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public void setMethod(String value)" - parameters: - - id: "value" - type: "java.lang.String" -references: -- uid: "com.microsoft.samples.Link.Link*" - name: "Link" - nameWithType: "Link.Link" - fullName: "com.microsoft.samples.Link.Link" - package: "com.microsoft.samples" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.Link.getMethod*" - name: "getMethod" - nameWithType: "Link.getMethod" - fullName: "com.microsoft.samples.Link.getMethod" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.Link.setMethod*" - name: "setMethod" - nameWithType: "Link.setMethod" - fullName: "com.microsoft.samples.Link.setMethod" - package: "com.microsoft.samples" -- uid: "java.util.Collection >" - spec.java: - - uid: "java.util.Collection" - name: "Collection" - fullName: "java.util.Collection" - - name: "<" - fullName: "<" - - uid: "com.microsoft.samples.KeyValuePair" - name: "KeyValuePair" - fullName: "com.microsoft.samples.KeyValuePair" - - name: "<" - fullName: "<" - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" - - name: "," - fullName: "," - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" - - name: ">" - fullName: ">" - - name: ">" - fullName: ">" -- uid: "com.microsoft.samples.Link.getHeaders*" - name: "getHeaders" - nameWithType: "Link.getHeaders" - fullName: "com.microsoft.samples.Link.getHeaders" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.Link.setHeaders*" - name: "setHeaders" - nameWithType: "Link.setHeaders" - fullName: "com.microsoft.samples.Link.setHeaders" - package: "com.microsoft.samples" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "com.microsoft.samples.KeyValuePair" - name: "KeyValuePair" - nameWithType: "KeyValuePair" - fullName: "com.microsoft.samples.KeyValuePair" -- uid: "java.util.Collection" - name: "Collection" - nameWithType: "Collection" - fullName: "java.util.Collection" -- uid: "java.lang.String,java.lang.String" - name: "String,String" - nameWithType: "String,String" - fullName: "java.lang.String,java.lang.String" +### YamlMime:JavaType +uid: "com.microsoft.samples.Link" +fullName: "com.microsoft.samples.Link" +name: "Link" +nameWithType: "Link" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class Link" +constructors: +- "com.microsoft.samples.Link.Link()" +methods: +- "com.microsoft.samples.Link.getHeaders()" +- "com.microsoft.samples.Link.getMethod()" +- "com.microsoft.samples.Link.setHeaders(java.util.Collection >)" +- "com.microsoft.samples.Link.setMethod(java.lang.String)" +type: "class" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage(class).yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage(class).yml index 2a9b410..7cfa4cc 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage(class).yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage(class).yml @@ -1,93 +1,25 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.Subpackage" - id: "Subpackage" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.Subpackage.Subpackage()" - langs: - - "java" - name: "Subpackage" - nameWithType: "Subpackage" - fullName: "com.microsoft.samples.Subpackage" - type: "Class" - package: "com.microsoft.samples" - syntax: - content: "public class Subpackage" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.Subpackage.Subpackage()" - id: "Subpackage()" - parent: "com.microsoft.samples.Subpackage" - langs: - - "java" - name: "Subpackage()" - nameWithType: "Subpackage.Subpackage()" - fullName: "com.microsoft.samples.Subpackage.Subpackage()" - overload: "com.microsoft.samples.Subpackage.Subpackage*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public Subpackage()" -references: -- uid: "com.microsoft.samples.Subpackage.Subpackage*" - name: "Subpackage" - nameWithType: "Subpackage.Subpackage" - fullName: "com.microsoft.samples.Subpackage.Subpackage" - package: "com.microsoft.samples" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.Subpackage" +fullName: "com.microsoft.samples.Subpackage" +name: "Subpackage" +nameWithType: "Subpackage" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class Subpackage" +constructors: +- "com.microsoft.samples.Subpackage.Subpackage()" +type: "class" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage.Subpackage.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage.Subpackage.yml new file mode 100644 index 0000000..3d316e4 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.Subpackage.Subpackage.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.Subpackage.Subpackage*" +fullName: "com.microsoft.samples.Subpackage.Subpackage" +name: "Subpackage" +nameWithType: "Subpackage.Subpackage" +members: +- uid: "com.microsoft.samples.Subpackage.Subpackage()" + fullName: "com.microsoft.samples.Subpackage.Subpackage()" + name: "Subpackage()" + nameWithType: "Subpackage.Subpackage()" + syntax: "public Subpackage()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.ReturnNull.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.ReturnNull.yml new file mode 100644 index 0000000..4f605cd --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.ReturnNull.yml @@ -0,0 +1,22 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.ReturnNull*" +fullName: "com.microsoft.samples.SuperHero. ReturnNull" +name: " ReturnNull" +nameWithType: "SuperHero. ReturnNull" +members: +- uid: "com.microsoft.samples.SuperHero. ReturnNull(java.lang.Class )" + fullName: "com.microsoft.samples.SuperHero. ReturnNull(Class aClass)" + name: " ReturnNull(Class aClass)" + nameWithType: "SuperHero. ReturnNull(Class aClass)" + summary: "Returns a FileStoreAttributeView of the given type.\n\nThis method always returns null as no FileStoreAttributeView is currently supported." + parameters: + - description: "a class" + name: "aClass" + type: "< >" + syntax: "public V ReturnNull(Class aClass)" + returns: + description: "null" + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING.yml new file mode 100644 index 0000000..37effef --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" +fullName: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" +name: "SOME_PUBLIC_STRING" +nameWithType: "SuperHero.SOME_PUBLIC_STRING" +members: +- uid: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" + fullName: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" + name: "SOME_PUBLIC_STRING" + nameWithType: "SuperHero.SOME_PUBLIC_STRING" + syntax: "public final String SOME_PUBLIC_STRING" +type: "field" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SuperHero.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SuperHero.yml new file mode 100644 index 0000000..20c57a7 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.SuperHero.yml @@ -0,0 +1,28 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.SuperHero*" +fullName: "com.microsoft.samples.SuperHero.SuperHero" +name: "SuperHero" +nameWithType: "SuperHero.SuperHero" +members: +- uid: "com.microsoft.samples.SuperHero.SuperHero()" + fullName: "com.microsoft.samples.SuperHero.SuperHero()" + name: "SuperHero()" + nameWithType: "SuperHero.SuperHero()" + syntax: "public SuperHero()" +- uid: "com.microsoft.samples.SuperHero.SuperHero(java.lang.String,java.lang.String,int,int)" + fullName: "com.microsoft.samples.SuperHero.SuperHero(String heroName, String uniquePower, int health, int defense)" + name: "SuperHero(String heroName, String uniquePower, int health, int defense)" + nameWithType: "SuperHero.SuperHero(String heroName, String uniquePower, int health, int defense)" + parameters: + - name: "heroName" + type: " " + - name: "uniquePower" + type: " " + - name: "health" + type: " " + - name: "defense" + type: " " + syntax: "public SuperHero(String heroName, String uniquePower, int health, int defense)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getDefense.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getDefense.yml new file mode 100644 index 0000000..aeb6205 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getDefense.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.getDefense*" +fullName: "com.microsoft.samples.SuperHero.getDefense" +name: "getDefense" +nameWithType: "SuperHero.getDefense" +members: +- uid: "com.microsoft.samples.SuperHero.getDefense()" + fullName: "com.microsoft.samples.SuperHero.getDefense()" + name: "getDefense()" + nameWithType: "SuperHero.getDefense()" + syntax: "public int getDefense()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHealth.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHealth.yml new file mode 100644 index 0000000..1ebf6a9 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHealth.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.getHealth*" +fullName: "com.microsoft.samples.SuperHero.getHealth" +name: "getHealth" +nameWithType: "SuperHero.getHealth" +members: +- uid: "com.microsoft.samples.SuperHero.getHealth()" + fullName: "com.microsoft.samples.SuperHero.getHealth()" + name: "getHealth()" + nameWithType: "SuperHero.getHealth()" + syntax: "protected int getHealth()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHeroName.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHeroName.yml new file mode 100644 index 0000000..cbf58ae --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getHeroName.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.getHeroName*" +fullName: "com.microsoft.samples.SuperHero.getHeroName" +name: "getHeroName" +nameWithType: "SuperHero.getHeroName" +members: +- uid: "com.microsoft.samples.SuperHero.getHeroName()" + fullName: "com.microsoft.samples.SuperHero.getHeroName()" + name: "getHeroName()" + nameWithType: "SuperHero.getHeroName()" + syntax: "public String getHeroName()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getLastName.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getLastName.yml new file mode 100644 index 0000000..b11ada2 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getLastName.yml @@ -0,0 +1,19 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.getLastName*" +fullName: "com.microsoft.samples.SuperHero.getLastName" +name: "getLastName" +nameWithType: "SuperHero.getLastName" +members: +- uid: "com.microsoft.samples.SuperHero.getLastName()" + fullName: "com.microsoft.samples.SuperHero.getLastName()" + name: "getLastName()" + nameWithType: "SuperHero.getLastName()" + summary: "Get capitalized last name. But it's not the end, because of multiline comment" + overridden: "com.microsoft.samples.subpackage.Person.getLastName()" + syntax: "public String getLastName()" + returns: + description: "lastName in uppercase. But it's not the end,\n because of multiline comment" + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getUniquePower.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getUniquePower.yml new file mode 100644 index 0000000..21fcbed --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.getUniquePower.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.getUniquePower*" +fullName: "com.microsoft.samples.SuperHero.getUniquePower" +name: "getUniquePower" +nameWithType: "SuperHero.getUniquePower" +members: +- uid: "com.microsoft.samples.SuperHero.getUniquePower()" + fullName: "com.microsoft.samples.SuperHero.getUniquePower()" + name: "getUniquePower()" + nameWithType: "SuperHero.getUniquePower()" + syntax: "public String getUniquePower()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setDefense.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setDefense.yml new file mode 100644 index 0000000..fb0f345 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setDefense.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.setDefense*" +fullName: "com.microsoft.samples.SuperHero.setDefense" +name: "setDefense" +nameWithType: "SuperHero.setDefense" +members: +- uid: "com.microsoft.samples.SuperHero.setDefense(int)" + fullName: "com.microsoft.samples.SuperHero.setDefense(int defense)" + name: "setDefense(int defense)" + nameWithType: "SuperHero.setDefense(int defense)" + parameters: + - name: "defense" + type: " " + syntax: "public void setDefense(int defense)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHealth.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHealth.yml new file mode 100644 index 0000000..10ba4aa --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHealth.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.setHealth*" +fullName: "com.microsoft.samples.SuperHero.setHealth" +name: "setHealth" +nameWithType: "SuperHero.setHealth" +members: +- uid: "com.microsoft.samples.SuperHero.setHealth(int)" + fullName: "com.microsoft.samples.SuperHero.setHealth(int health)" + name: "setHealth(int health)" + nameWithType: "SuperHero.setHealth(int health)" + parameters: + - name: "health" + type: " " + syntax: "protected void setHealth(int health)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHeroName.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHeroName.yml new file mode 100644 index 0000000..4d5bc5c --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setHeroName.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.setHeroName*" +fullName: "com.microsoft.samples.SuperHero.setHeroName" +name: "setHeroName" +nameWithType: "SuperHero.setHeroName" +members: +- uid: "com.microsoft.samples.SuperHero.setHeroName(java.lang.String)" + fullName: "com.microsoft.samples.SuperHero.setHeroName(String heroName)" + name: "setHeroName(String heroName)" + nameWithType: "SuperHero.setHeroName(String heroName)" + parameters: + - name: "heroName" + type: " " + syntax: "public void setHeroName(String heroName)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setUniquePower.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setUniquePower.yml new file mode 100644 index 0000000..a9dd320 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.setUniquePower.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.setUniquePower*" +fullName: "com.microsoft.samples.SuperHero.setUniquePower" +name: "setUniquePower" +nameWithType: "SuperHero.setUniquePower" +members: +- uid: "com.microsoft.samples.SuperHero.setUniquePower(java.lang.String)" + fullName: "com.microsoft.samples.SuperHero.setUniquePower(String uniquePower)" + name: "setUniquePower(String uniquePower)" + nameWithType: "SuperHero.setUniquePower(String uniquePower)" + parameters: + - name: "uniquePower" + type: " " + syntax: "public void setUniquePower(String uniquePower)" +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.successfullyAttacked.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.successfullyAttacked.yml new file mode 100644 index 0000000..b992c03 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.successfullyAttacked.yml @@ -0,0 +1,28 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.SuperHero.successfullyAttacked*" +fullName: "com.microsoft.samples.SuperHero.successfullyAttacked" +name: "successfullyAttacked" +nameWithType: "SuperHero.successfullyAttacked" +members: +- uid: "com.microsoft.samples.SuperHero.successfullyAttacked(int,java.lang.String)" + fullName: "com.microsoft.samples.SuperHero.successfullyAttacked(int incomingDamage, String damageType)" + name: "successfullyAttacked(int incomingDamage, String damageType)" + nameWithType: "SuperHero.successfullyAttacked(int incomingDamage, String damageType)" + summary: "This is a simple description of the method. . . [Superman!][Superman]\n\n\n[Superman]: http://www.supermanisthegreatest.com" + parameters: + - description: "the amount of incoming damage for SuperHero " + name: "incomingDamage" + type: "" + - description: "type of damage with similar word damageTypeLong, sure" + name: "damageType" + type: " " + syntax: "public int successfullyAttacked(int incomingDamage, String damageType)" + exceptions: + - description: "when incomingDamage is negative and thanks for Exception " + type: "" + returns: + description: "the amount of health hero has after attack" + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.yml index 6a03c93..682ff90 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.SuperHero.yml @@ -1,427 +1,52 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.SuperHero" - id: "SuperHero" - parent: "com.microsoft.samples" - children: - - "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" - - "com.microsoft.samples.SuperHero.SuperHero()" - - "com.microsoft.samples.SuperHero.SuperHero(java.lang.String,java.lang.String,int,int)" - - "com.microsoft.samples.SuperHero.getDefense()" - - "com.microsoft.samples.SuperHero.getHealth()" - - "com.microsoft.samples.SuperHero.getHeroName()" - - "com.microsoft.samples.SuperHero.getLastName()" - - "com.microsoft.samples.SuperHero.getUniquePower()" - - "com.microsoft.samples.SuperHero.setDefense(int)" - - "com.microsoft.samples.SuperHero.setHealth(int)" - - "com.microsoft.samples.SuperHero.setHeroName(java.lang.String)" - - "com.microsoft.samples.SuperHero.setUniquePower(java.lang.String)" - - "com.microsoft.samples.SuperHero.successfullyAttacked(int,java.lang.String)" - langs: - - "java" - name: "SuperHero" - nameWithType: "SuperHero" - fullName: "com.microsoft.samples.SuperHero" - type: "Class" - package: "com.microsoft.samples" - summary: "Hero is the main entity we will be using to something" - syntax: - content: "public class SuperHero extends Person implements Serializable, Cloneable" - inheritance: - - "java.lang.Object" - - "com.microsoft.samples.subpackage.Person" - implements: - - "java.io.Serializable" - - "java.lang.Cloneable" - inheritedMembers: - - "com.microsoft.samples.subpackage.Person.buildPerson(com.microsoft.samples.subpackage.Person)" - - "com.microsoft.samples.subpackage.Person.getFirstName()" - - "com.microsoft.samples.subpackage.Person.getLastName()" - - "com.microsoft.samples.subpackage.Person.getSomeSet()" - - "com.microsoft.samples.subpackage.Person.setFirstName(java.lang.String)" - - "com.microsoft.samples.subpackage.Person.setLastName()" - - "com.microsoft.samples.subpackage.Person.setLastName(java.lang.String)" - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" - id: "SOME_PUBLIC_STRING" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "SOME_PUBLIC_STRING" - nameWithType: "SuperHero.SOME_PUBLIC_STRING" - fullName: "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" - type: "Field" - package: "com.microsoft.samples" - syntax: - content: "public final String SOME_PUBLIC_STRING" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.SuperHero.SuperHero()" - id: "SuperHero()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "SuperHero()" - nameWithType: "SuperHero.SuperHero()" - fullName: "com.microsoft.samples.SuperHero.SuperHero()" - overload: "com.microsoft.samples.SuperHero.SuperHero*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public SuperHero()" -- uid: "com.microsoft.samples.SuperHero.SuperHero(java.lang.String,java.lang.String,int,int)" - id: "SuperHero(java.lang.String,java.lang.String,int,int)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "SuperHero(String heroName, String uniquePower, int health, int defense)" - nameWithType: "SuperHero.SuperHero(String heroName, String uniquePower, int health, int defense)" - fullName: "com.microsoft.samples.SuperHero.SuperHero(String heroName, String uniquePower, int health, int defense)" - overload: "com.microsoft.samples.SuperHero.SuperHero*" - type: "Constructor" - package: "com.microsoft.samples" - syntax: - content: "public SuperHero(String heroName, String uniquePower, int health, int defense)" - parameters: - - id: "heroName" - type: "java.lang.String" - - id: "uniquePower" - type: "java.lang.String" - - id: "health" - type: "int" - - id: "defense" - type: "int" -- uid: "com.microsoft.samples.SuperHero.getDefense()" - id: "getDefense()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "getDefense()" - nameWithType: "SuperHero.getDefense()" - fullName: "com.microsoft.samples.SuperHero.getDefense()" - overload: "com.microsoft.samples.SuperHero.getDefense*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public int getDefense()" - return: - type: "int" -- uid: "com.microsoft.samples.SuperHero.getHealth()" - id: "getHealth()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "getHealth()" - nameWithType: "SuperHero.getHealth()" - fullName: "com.microsoft.samples.SuperHero.getHealth()" - overload: "com.microsoft.samples.SuperHero.getHealth*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "protected int getHealth()" - return: - type: "int" -- uid: "com.microsoft.samples.SuperHero.getHeroName()" - id: "getHeroName()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "getHeroName()" - nameWithType: "SuperHero.getHeroName()" - fullName: "com.microsoft.samples.SuperHero.getHeroName()" - overload: "com.microsoft.samples.SuperHero.getHeroName*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public String getHeroName()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.SuperHero.getLastName()" - id: "getLastName()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "getLastName()" - nameWithType: "SuperHero.getLastName()" - fullName: "com.microsoft.samples.SuperHero.getLastName()" - overload: "com.microsoft.samples.SuperHero.getLastName*" - overridden: "com.microsoft.samples.subpackage.Person.getLastName()" - type: "Method" - package: "com.microsoft.samples" - summary: "Get capitalized last name. But it's not the end, because of multiline comment" - syntax: - content: "public String getLastName()" - return: - type: "java.lang.String" - description: "lastName in uppercase. But it's not the end,\n because of multiline comment" -- uid: "com.microsoft.samples.SuperHero.getUniquePower()" - id: "getUniquePower()" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "getUniquePower()" - nameWithType: "SuperHero.getUniquePower()" - fullName: "com.microsoft.samples.SuperHero.getUniquePower()" - overload: "com.microsoft.samples.SuperHero.getUniquePower*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public String getUniquePower()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.SuperHero.setDefense(int)" - id: "setDefense(int)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "setDefense(int defense)" - nameWithType: "SuperHero.setDefense(int defense)" - fullName: "com.microsoft.samples.SuperHero.setDefense(int defense)" - overload: "com.microsoft.samples.SuperHero.setDefense*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public void setDefense(int defense)" - parameters: - - id: "defense" - type: "int" -- uid: "com.microsoft.samples.SuperHero.setHealth(int)" - id: "setHealth(int)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "setHealth(int health)" - nameWithType: "SuperHero.setHealth(int health)" - fullName: "com.microsoft.samples.SuperHero.setHealth(int health)" - overload: "com.microsoft.samples.SuperHero.setHealth*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "protected void setHealth(int health)" - parameters: - - id: "health" - type: "int" -- uid: "com.microsoft.samples.SuperHero.setHeroName(java.lang.String)" - id: "setHeroName(java.lang.String)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "setHeroName(String heroName)" - nameWithType: "SuperHero.setHeroName(String heroName)" - fullName: "com.microsoft.samples.SuperHero.setHeroName(String heroName)" - overload: "com.microsoft.samples.SuperHero.setHeroName*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public void setHeroName(String heroName)" - parameters: - - id: "heroName" - type: "java.lang.String" -- uid: "com.microsoft.samples.SuperHero.setUniquePower(java.lang.String)" - id: "setUniquePower(java.lang.String)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "setUniquePower(String uniquePower)" - nameWithType: "SuperHero.setUniquePower(String uniquePower)" - fullName: "com.microsoft.samples.SuperHero.setUniquePower(String uniquePower)" - overload: "com.microsoft.samples.SuperHero.setUniquePower*" - type: "Method" - package: "com.microsoft.samples" - syntax: - content: "public void setUniquePower(String uniquePower)" - parameters: - - id: "uniquePower" - type: "java.lang.String" -- uid: "com.microsoft.samples.SuperHero.successfullyAttacked(int,java.lang.String)" - id: "successfullyAttacked(int,java.lang.String)" - parent: "com.microsoft.samples.SuperHero" - langs: - - "java" - name: "successfullyAttacked(int incomingDamage, String damageType)" - nameWithType: "SuperHero.successfullyAttacked(int incomingDamage, String damageType)" - fullName: "com.microsoft.samples.SuperHero.successfullyAttacked(int incomingDamage, String damageType)" - overload: "com.microsoft.samples.SuperHero.successfullyAttacked*" - type: "Method" - package: "com.microsoft.samples" - summary: "This is a simple description of the method. . . [Superman!][Superman]\n\n\n[Superman]: http://www.supermanisthegreatest.com" - syntax: - content: "public int successfullyAttacked(int incomingDamage, String damageType)" - parameters: - - id: "incomingDamage" - type: "int" - description: "the amount of incoming damage for SuperHero " - - id: "damageType" - type: "java.lang.String" - description: "type of damage with similar word damageTypeLong, sure" - return: - type: "int" - description: "the amount of health hero has after attack" - exceptions: - - type: "java.lang.IllegalArgumentException" - description: "when incomingDamage is negative and thanks forException " -references: -- uid: "com.microsoft.samples.SuperHero.SuperHero*" - name: "SuperHero" - nameWithType: "SuperHero.SuperHero" - fullName: "com.microsoft.samples.SuperHero.SuperHero" - package: "com.microsoft.samples" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "int" - spec.java: - - uid: "int" - name: "int" - fullName: "int" -- uid: "java.lang.IllegalArgumentException" - spec.java: - - uid: "java.lang.IllegalArgumentException" - name: "IllegalArgumentException" - fullName: "java.lang.IllegalArgumentException" -- uid: "com.microsoft.samples.SuperHero.successfullyAttacked*" - name: "successfullyAttacked" - nameWithType: "SuperHero.successfullyAttacked" - fullName: "com.microsoft.samples.SuperHero.successfullyAttacked" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.getHeroName*" - name: "getHeroName" - nameWithType: "SuperHero.getHeroName" - fullName: "com.microsoft.samples.SuperHero.getHeroName" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.setHeroName*" - name: "setHeroName" - nameWithType: "SuperHero.setHeroName" - fullName: "com.microsoft.samples.SuperHero.setHeroName" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.getLastName*" - name: "getLastName" - nameWithType: "SuperHero.getLastName" - fullName: "com.microsoft.samples.SuperHero.getLastName" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.getUniquePower*" - name: "getUniquePower" - nameWithType: "SuperHero.getUniquePower" - fullName: "com.microsoft.samples.SuperHero.getUniquePower" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.setUniquePower*" - name: "setUniquePower" - nameWithType: "SuperHero.setUniquePower" - fullName: "com.microsoft.samples.SuperHero.setUniquePower" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.getHealth*" - name: "getHealth" - nameWithType: "SuperHero.getHealth" - fullName: "com.microsoft.samples.SuperHero.getHealth" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.setHealth*" - name: "setHealth" - nameWithType: "SuperHero.setHealth" - fullName: "com.microsoft.samples.SuperHero.setHealth" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.getDefense*" - name: "getDefense" - nameWithType: "SuperHero.getDefense" - fullName: "com.microsoft.samples.SuperHero.getDefense" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.SuperHero.setDefense*" - name: "setDefense" - nameWithType: "SuperHero.setDefense" - fullName: "com.microsoft.samples.SuperHero.setDefense" - package: "com.microsoft.samples" -- uid: "com.microsoft.samples.subpackage.Person" - name: "Person" - nameWithType: "Person" - fullName: "com.microsoft.samples.subpackage.Person" -- uid: "java.lang.Cloneable" - name: "Cloneable" - nameWithType: "Cloneable" - fullName: "java.lang.Cloneable" -- uid: "java.io.Serializable" - name: "Serializable" - nameWithType: "Serializable" - fullName: "java.io.Serializable" -- uid: "com.microsoft.samples.subpackage.Person.setFirstName(java.lang.String)" - name: "Person.setFirstName(String)" - nameWithType: "Person.setFirstName(String)" - fullName: "com.microsoft.samples.subpackage.Person.setFirstName(java.lang.String)" -- uid: "com.microsoft.samples.subpackage.Person.getLastName()" - name: "Person.getLastName()" - nameWithType: "Person.getLastName()" - fullName: "com.microsoft.samples.subpackage.Person.getLastName()" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "com.microsoft.samples.subpackage.Person.getFirstName()" - name: "Person.getFirstName()" - nameWithType: "Person.getFirstName()" - fullName: "com.microsoft.samples.subpackage.Person.getFirstName()" -- uid: "com.microsoft.samples.subpackage.Person.getSomeSet()" - name: "Person.getSomeSet()" - nameWithType: "Person.getSomeSet()" - fullName: "com.microsoft.samples.subpackage.Person.getSomeSet()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "com.microsoft.samples.subpackage.Person.setLastName(java.lang.String)" - name: "Person.setLastName(String)" - nameWithType: "Person.setLastName(String)" - fullName: "com.microsoft.samples.subpackage.Person.setLastName(java.lang.String)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "com.microsoft.samples.subpackage.Person.setLastName()" - name: "Person.setLastName()" - nameWithType: "Person.setLastName()" - fullName: "com.microsoft.samples.subpackage.Person.setLastName()" -- uid: "com.microsoft.samples.subpackage.Person.buildPerson(com.microsoft.samples.subpackage.Person)" - name: "Person.buildPerson(Person)" - nameWithType: "Person.buildPerson(Person)" - fullName: "com.microsoft.samples.subpackage.Person.buildPerson(com.microsoft.samples.subpackage.Person)" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" +### YamlMime:JavaType +uid: "com.microsoft.samples.SuperHero" +fullName: "com.microsoft.samples.SuperHero" +name: "SuperHero" +nameWithType: "SuperHero" +summary: "Hero is the main entity we will be using to something" +inheritances: +- "" +- " " +inheritedMembers: +- "com.microsoft.samples.subpackage.Person.buildPerson(com.microsoft.samples.subpackage.Person)" +- "com.microsoft.samples.subpackage.Person.getFirstName()" +- "com.microsoft.samples.subpackage.Person.getLastName()" +- "com.microsoft.samples.subpackage.Person.getSomeSet()" +- "com.microsoft.samples.subpackage.Person.setFirstName(java.lang.String)" +- "com.microsoft.samples.subpackage.Person.setLastName()" +- "com.microsoft.samples.subpackage.Person.setLastName(java.lang.String)" +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class SuperHero extends Person implements Serializable, Cloneable" +constructors: +- "com.microsoft.samples.SuperHero.SuperHero()" +- "com.microsoft.samples.SuperHero.SuperHero(java.lang.String,java.lang.String,int,int)" +fields: +- "com.microsoft.samples.SuperHero.SOME_PUBLIC_STRING" +methods: +- "com.microsoft.samples.SuperHero. ReturnNull(java.lang.Class )" +- "com.microsoft.samples.SuperHero.getDefense()" +- "com.microsoft.samples.SuperHero.getHealth()" +- "com.microsoft.samples.SuperHero.getHeroName()" +- "com.microsoft.samples.SuperHero.getLastName()" +- "com.microsoft.samples.SuperHero.getUniquePower()" +- "com.microsoft.samples.SuperHero.setDefense(int)" +- "com.microsoft.samples.SuperHero.setHealth(int)" +- "com.microsoft.samples.SuperHero.setHeroName(java.lang.String)" +- "com.microsoft.samples.SuperHero.setUniquePower(java.lang.String)" +- "com.microsoft.samples.SuperHero.successfullyAttacked(int,java.lang.String)" +type: "class" +implements: +- " " +- " " +metadata: {} +package: "com.microsoft.samples" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations.yml new file mode 100644 index 0000000..4e0564e --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations.yml @@ -0,0 +1,19 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations*" +fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations" +name: "AgreementDetailsCollectionOperations" +nameWithType: "AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations" +members: +- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(com.microsoft.samples.IPartner)" + fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" + name: "AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" + nameWithType: "AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" + summary: "Initializes a new instance of the AgreementDetailsCollectionOperations class." + parameters: + - description: "The root partner operations instance." + name: "rootPartnerOperations" + type: " " + syntax: "public AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get.yml new file mode 100644 index 0000000..9b3c2a4 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get.yml @@ -0,0 +1,28 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get*" +fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get" +name: "get" +nameWithType: "AgreementDetailsCollectionOperations.get" +members: +- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" + fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" + name: "get()" + nameWithType: "AgreementDetailsCollectionOperations.get()" + summary: "Retrieves the agreement details." + syntax: "public ResourceCollection get()" + returns: + description: "A list of agreement details." + type: " < >" +- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get(java.lang.String)" + fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get(String id)" + name: "get(String id)" + nameWithType: "AgreementDetailsCollectionOperations.get(String id)" + parameters: + - name: "id" + type: " " + syntax: "public ResourceCollection get(String id)" + returns: + type: " < >" +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.yml index 3bf97ca..e56f9bf 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.yml @@ -1,168 +1,35 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - id: "AgreementDetailsCollectionOperations" - parent: "com.microsoft.samples.agreements" - children: - - "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(com.microsoft.samples.IPartner)" - - "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" - langs: - - "java" - name: "AgreementDetailsCollectionOperations" - nameWithType: "AgreementDetailsCollectionOperations" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - type: "Class" - package: "com.microsoft.samples.agreements" - summary: "Agreement details collection operations implementation class." - syntax: - content: "public class AgreementDetailsCollectionOperations extends BasePartnerComponentString implements IAgreementDetailsCollection" - inheritance: - - "java.lang.Object" - - "com.microsoft.samples.BasePartnerComponent" - - "com.microsoft.samples.BasePartnerComponentString" - implements: - - "com.microsoft.samples.agreements.IAgreementDetailsCollection" - inheritedMembers: - - "com.microsoft.samples.BasePartnerComponent.testBase()" - - "com.microsoft.samples.BasePartnerComponentString.testInherited()" - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(com.microsoft.samples.IPartner)" - id: "AgreementDetailsCollectionOperations(com.microsoft.samples.IPartner)" - parent: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - langs: - - "java" - name: "AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" - nameWithType: "AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" - overload: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations*" - type: "Constructor" - package: "com.microsoft.samples.agreements" - summary: "Initializes a new instance of the AgreementDetailsCollectionOperations class." - syntax: - content: "public AgreementDetailsCollectionOperations(IPartner rootPartnerOperations)" - parameters: - - id: "rootPartnerOperations" - type: "com.microsoft.samples.IPartner" - description: "The root partner operations instance." -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" - id: "get()" - parent: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - langs: - - "java" - name: "get()" - nameWithType: "AgreementDetailsCollectionOperations.get()" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" - overload: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get*" - type: "Method" - package: "com.microsoft.samples.agreements" - summary: "Retrieves the agreement details." - syntax: - content: "public ResourceCollection get()" - return: - type: "com.microsoft.samples.agreements.ResourceCollection " - description: "A list of agreement details." -references: -- uid: "com.microsoft.samples.IPartner" - name: "IPartner" - nameWithType: "IPartner" - fullName: "com.microsoft.samples.IPartner" -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations*" - name: "AgreementDetailsCollectionOperations" - nameWithType: "AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.ResourceCollection " - spec.java: - - uid: "com.microsoft.samples.agreements.ResourceCollection" - name: "ResourceCollection" - fullName: "com.microsoft.samples.agreements.ResourceCollection" - - name: "<" - fullName: "<" - - uid: "com.microsoft.samples.agreements.AgreementMetaData" - name: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" - - name: ">" - fullName: ">" -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get*" - name: "get" - nameWithType: "AgreementDetailsCollectionOperations.get" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.BasePartnerComponentString" - name: "BasePartnerComponentString" - nameWithType: "BasePartnerComponentString" - fullName: "com.microsoft.samples.BasePartnerComponentString" -- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection" - name: "IAgreementDetailsCollection" - nameWithType: "IAgreementDetailsCollection" - fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "com.microsoft.samples.BasePartnerComponent.testBase()" - name: "BasePartnerComponent.testBase()" - nameWithType: "BasePartnerComponent.testBase()" - fullName: "com.microsoft.samples.BasePartnerComponent.testBase()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.BasePartnerComponentString.testInherited()" - name: "BasePartnerComponentString.testInherited()" - nameWithType: "BasePartnerComponentString.testInherited()" - fullName: "com.microsoft.samples.BasePartnerComponentString.testInherited()" -- uid: "com.microsoft.samples.agreements.ResourceCollection" - name: "ResourceCollection" - nameWithType: "ResourceCollection" - fullName: "com.microsoft.samples.agreements.ResourceCollection" -- uid: "com.microsoft.samples.agreements.AgreementMetaData" - name: "AgreementMetaData" - nameWithType: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" +### YamlMime:JavaType +uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" +fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" +name: "AgreementDetailsCollectionOperations" +nameWithType: "AgreementDetailsCollectionOperations" +summary: "Agreement details collection operations implementation class." +inheritances: +- " " +- " " +- " " +inheritedMembers: +- "com.microsoft.samples.BasePartnerComponent.testBase()" +- "com.microsoft.samples.BasePartnerComponentString.testInherited()" +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class AgreementDetailsCollectionOperations extends BasePartnerComponentString implements IAgreementDetailsCollection" +constructors: +- "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.AgreementDetailsCollectionOperations(com.microsoft.samples.IPartner)" +methods: +- "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get()" +- "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations.get(java.lang.String)" +type: "class" +implements: +- " " +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData.yml new file mode 100644 index 0000000..69d894b --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData" +name: "AgreementMetaData" +nameWithType: "AgreementMetaData.AgreementMetaData" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" + name: "AgreementMetaData()" + nameWithType: "AgreementMetaData.AgreementMetaData()" + syntax: "public AgreementMetaData()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink.yml new file mode 100644 index 0000000..a1b7858 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink" +name: "getAgreementLink" +nameWithType: "AgreementMetaData.getAgreementLink" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" + name: "getAgreementLink()" + nameWithType: "AgreementMetaData.getAgreementLink()" + syntax: "public String getAgreementLink()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getTemplateId.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getTemplateId.yml new file mode 100644 index 0000000..cc8eb39 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getTemplateId.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId" +name: "getTemplateId" +nameWithType: "AgreementMetaData.getTemplateId" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" + name: "getTemplateId()" + nameWithType: "AgreementMetaData.getTemplateId()" + syntax: "public String getTemplateId()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getVersionRank.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getVersionRank.yml new file mode 100644 index 0000000..a446e03 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.getVersionRank.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank" +name: "getVersionRank" +nameWithType: "AgreementMetaData.getVersionRank" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" + name: "getVersionRank()" + nameWithType: "AgreementMetaData.getVersionRank()" + syntax: "public int getVersionRank()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink.yml new file mode 100644 index 0000000..0fcee59 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink" +name: "setAgreementLink" +nameWithType: "AgreementMetaData.setAgreementLink" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(java.lang.String)" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(String value)" + name: "setAgreementLink(String value)" + nameWithType: "AgreementMetaData.setAgreementLink(String value)" + parameters: + - name: "value" + type: " " + syntax: "public void setAgreementLink(String value)" +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setTemplateId.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setTemplateId.yml new file mode 100644 index 0000000..c3e340b --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setTemplateId.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId" +name: "setTemplateId" +nameWithType: "AgreementMetaData.setTemplateId" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(java.lang.String)" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(String value)" + name: "setTemplateId(String value)" + nameWithType: "AgreementMetaData.setTemplateId(String value)" + parameters: + - name: "value" + type: " " + syntax: "public void setTemplateId(String value)" +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setVersionRank.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setVersionRank.yml new file mode 100644 index 0000000..45623ed --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.setVersionRank.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank*" +fullName: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank" +name: "setVersionRank" +nameWithType: "AgreementMetaData.setVersionRank" +members: +- uid: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int)" + fullName: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int value)" + name: "setVersionRank(int value)" + nameWithType: "AgreementMetaData.setVersionRank(int value)" + parameters: + - name: "value" + type: " " + syntax: "public void setVersionRank(int value)" +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.yml index 3cd58f7..48baf84 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.AgreementMetaData.yml @@ -1,233 +1,33 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.agreements.AgreementMetaData" - id: "AgreementMetaData" - parent: "com.microsoft.samples.agreements" - children: - - "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" - - "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" - - "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" - - "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" - - "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(java.lang.String)" - - "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(java.lang.String)" - - "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int)" - langs: - - "java" - name: "AgreementMetaData" - nameWithType: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" - type: "Class" - package: "com.microsoft.samples.agreements" - summary: "The AgreementMetaData provides metadata about the agreement type that partner can provide confirmation of customer acceptance." - syntax: - content: "public class AgreementMetaData" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" - id: "AgreementMetaData()" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "AgreementMetaData()" - nameWithType: "AgreementMetaData.AgreementMetaData()" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" - overload: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData*" - type: "Constructor" - package: "com.microsoft.samples.agreements" - syntax: - content: "public AgreementMetaData()" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" - id: "getAgreementLink()" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "getAgreementLink()" - nameWithType: "AgreementMetaData.getAgreementLink()" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" - overload: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public String getAgreementLink()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" - id: "getTemplateId()" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "getTemplateId()" - nameWithType: "AgreementMetaData.getTemplateId()" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" - overload: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public String getTemplateId()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" - id: "getVersionRank()" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "getVersionRank()" - nameWithType: "AgreementMetaData.getVersionRank()" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" - overload: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public int getVersionRank()" - return: - type: "int" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(java.lang.String)" - id: "setAgreementLink(java.lang.String)" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "setAgreementLink(String value)" - nameWithType: "AgreementMetaData.setAgreementLink(String value)" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(String value)" - overload: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public void setAgreementLink(String value)" - parameters: - - id: "value" - type: "java.lang.String" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(java.lang.String)" - id: "setTemplateId(java.lang.String)" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "setTemplateId(String value)" - nameWithType: "AgreementMetaData.setTemplateId(String value)" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(String value)" - overload: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public void setTemplateId(String value)" - parameters: - - id: "value" - type: "java.lang.String" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int)" - id: "setVersionRank(int)" - parent: "com.microsoft.samples.agreements.AgreementMetaData" - langs: - - "java" - name: "setVersionRank(int value)" - nameWithType: "AgreementMetaData.setVersionRank(int value)" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int value)" - overload: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank*" - type: "Method" - package: "com.microsoft.samples.agreements" - syntax: - content: "public void setVersionRank(int value)" - parameters: - - id: "value" - type: "int" -references: -- uid: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData*" - name: "AgreementMetaData" - nameWithType: "AgreementMetaData.AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData" - package: "com.microsoft.samples.agreements" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId*" - name: "getTemplateId" - nameWithType: "AgreementMetaData.getTemplateId" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId*" - name: "setTemplateId" - nameWithType: "AgreementMetaData.setTemplateId" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink*" - name: "getAgreementLink" - nameWithType: "AgreementMetaData.getAgreementLink" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink*" - name: "setAgreementLink" - nameWithType: "AgreementMetaData.setAgreementLink" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink" - package: "com.microsoft.samples.agreements" -- uid: "int" - spec.java: - - uid: "int" - name: "int" - fullName: "int" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank*" - name: "getVersionRank" - nameWithType: "AgreementMetaData.getVersionRank" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank*" - name: "setVersionRank" - nameWithType: "AgreementMetaData.setVersionRank" - fullName: "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank" - package: "com.microsoft.samples.agreements" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.agreements.AgreementMetaData" +fullName: "com.microsoft.samples.agreements.AgreementMetaData" +name: "AgreementMetaData" +nameWithType: "AgreementMetaData" +summary: "The AgreementMetaData provides metadata about the agreement type that partner can provide confirmation of customer acceptance." +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class AgreementMetaData" +constructors: +- "com.microsoft.samples.agreements.AgreementMetaData.AgreementMetaData()" +methods: +- "com.microsoft.samples.agreements.AgreementMetaData.getAgreementLink()" +- "com.microsoft.samples.agreements.AgreementMetaData.getTemplateId()" +- "com.microsoft.samples.agreements.AgreementMetaData.getVersionRank()" +- "com.microsoft.samples.agreements.AgreementMetaData.setAgreementLink(java.lang.String)" +- "com.microsoft.samples.agreements.AgreementMetaData.setTemplateId(java.lang.String)" +- "com.microsoft.samples.agreements.AgreementMetaData.setVersionRank(int)" +type: "class" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.get.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.get.yml new file mode 100644 index 0000000..d357f8d --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.get.yml @@ -0,0 +1,28 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get*" +fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get" +name: "get" +nameWithType: "IAgreementDetailsCollection.get" +members: +- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" + fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" + name: "get()" + nameWithType: "IAgreementDetailsCollection.get()" + summary: "Retrieves all current agreement metadata." + syntax: "public abstract ResourceCollection get()" + returns: + description: "The current agreement metadata." + type: " < >" +- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get(java.lang.String)" + fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get(String id)" + name: "get(String id)" + nameWithType: "IAgreementDetailsCollection.get(String id)" + parameters: + - name: "id" + type: " " + syntax: "public abstract ResourceCollection get(String id)" + returns: + type: " < >" +type: "method" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.yml index 070de6f..48fffeb 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.IAgreementDetailsCollection.yml @@ -1,60 +1,13 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection" - id: "IAgreementDetailsCollection" - parent: "com.microsoft.samples.agreements" - children: - - "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" - langs: - - "java" - name: "IAgreementDetailsCollection" - nameWithType: "IAgreementDetailsCollection" - fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection" - type: "Interface" - package: "com.microsoft.samples.agreements" - summary: "Encapsulates the operations on the agreement metadata collection." - syntax: - content: "public interface IAgreementDetailsCollection" -- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" - id: "get()" - parent: "com.microsoft.samples.agreements.IAgreementDetailsCollection" - langs: - - "java" - name: "get()" - nameWithType: "IAgreementDetailsCollection.get()" - fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" - overload: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get*" - type: "Method" - package: "com.microsoft.samples.agreements" - summary: "Retrieves all current agreement metadata." - syntax: - content: "public abstract ResourceCollection get()" - return: - type: "com.microsoft.samples.agreements.ResourceCollection " - description: "The current agreement metadata." -references: -- uid: "com.microsoft.samples.agreements.ResourceCollection " - spec.java: - - uid: "com.microsoft.samples.agreements.ResourceCollection" - name: "ResourceCollection" - fullName: "com.microsoft.samples.agreements.ResourceCollection" - - name: "<" - fullName: "<" - - uid: "com.microsoft.samples.agreements.AgreementMetaData" - name: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" - - name: ">" - fullName: ">" -- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get*" - name: "get" - nameWithType: "IAgreementDetailsCollection.get" - fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection.get" - package: "com.microsoft.samples.agreements" -- uid: "com.microsoft.samples.agreements.ResourceCollection" - name: "ResourceCollection" - nameWithType: "ResourceCollection" - fullName: "com.microsoft.samples.agreements.ResourceCollection" -- uid: "com.microsoft.samples.agreements.AgreementMetaData" - name: "AgreementMetaData" - nameWithType: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" +### YamlMime:JavaType +uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection" +fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection" +name: "IAgreementDetailsCollection" +nameWithType: "IAgreementDetailsCollection" +summary: "Encapsulates the operations on the agreement metadata collection." +syntax: "public interface IAgreementDetailsCollection" +methods: +- "com.microsoft.samples.agreements.IAgreementDetailsCollection.get()" +- "com.microsoft.samples.agreements.IAgreementDetailsCollection.get(java.lang.String)" +type: "interface" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.ResourceCollection.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.ResourceCollection.yml new file mode 100644 index 0000000..66e79f0 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.ResourceCollection.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection*" +fullName: "com.microsoft.samples.agreements.ResourceCollection .ResourceCollection" +name: "ResourceCollection" +nameWithType: "ResourceCollection .ResourceCollection" +members: +- uid: "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection()" + fullName: "com.microsoft.samples.agreements.ResourceCollection .ResourceCollection()" + name: "ResourceCollection()" + nameWithType: "ResourceCollection .ResourceCollection()" + syntax: "public ResourceCollection()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.yml index 055ad47..6213203 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.ResourceCollection.yml @@ -1,100 +1,28 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.agreements.ResourceCollection" - id: "ResourceCollection" - parent: "com.microsoft.samples.agreements" - children: - - "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection()" - langs: - - "java" - name: "ResourceCollection " - nameWithType: "ResourceCollection " - fullName: "com.microsoft.samples.agreements.ResourceCollection " - type: "Class" - package: "com.microsoft.samples.agreements" - summary: "Contains a collection of resources with JSON properties to represent the output Type of objects in collection" - syntax: - content: "public class ResourceCollection " - typeParameters: - - id: "TResource" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection()" - id: "ResourceCollection()" - parent: "com.microsoft.samples.agreements.ResourceCollection" - langs: - - "java" - name: "ResourceCollection()" - nameWithType: "ResourceCollection .ResourceCollection()" - fullName: "com.microsoft.samples.agreements.ResourceCollection .ResourceCollection()" - overload: "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection*" - type: "Constructor" - package: "com.microsoft.samples.agreements" - syntax: - content: "public ResourceCollection()" -references: -- uid: "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection*" - name: "ResourceCollection" - nameWithType: "ResourceCollection .ResourceCollection" - fullName: "com.microsoft.samples.agreements.ResourceCollection .ResourceCollection" - package: "com.microsoft.samples.agreements" -- uid: "TResource" - name: "TResource" - nameWithType: "TResource" - fullName: "TResource" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.agreements.ResourceCollection" +fullName: "com.microsoft.samples.agreements.ResourceCollection " +name: "ResourceCollection " +nameWithType: "ResourceCollection " +summary: "Contains a collection of resources with JSON properties to represent the output Type of objects in collection" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class ResourceCollection " +constructors: +- "com.microsoft.samples.agreements.ResourceCollection.ResourceCollection()" +type: "class" +typeParameters: +- name: "TResource" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.yml index ba14b3a..bd4c40b 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.agreements.yml @@ -1,34 +1,12 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.agreements" - id: "agreements" - children: - - "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - - "com.microsoft.samples.agreements.AgreementMetaData" - - "com.microsoft.samples.agreements.IAgreementDetailsCollection" - - "com.microsoft.samples.agreements.ResourceCollection" - langs: - - "java" - name: "com.microsoft.samples.agreements" - nameWithType: "com.microsoft.samples.agreements" - fullName: "com.microsoft.samples.agreements" - type: "Namespace" - syntax: - content: "package com.microsoft.samples.agreements" -references: -- uid: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" - name: "AgreementDetailsCollectionOperations" - nameWithType: "AgreementDetailsCollectionOperations" - fullName: "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" -- uid: "com.microsoft.samples.agreements.AgreementMetaData" - name: "AgreementMetaData" - nameWithType: "AgreementMetaData" - fullName: "com.microsoft.samples.agreements.AgreementMetaData" -- uid: "com.microsoft.samples.agreements.IAgreementDetailsCollection" - name: "IAgreementDetailsCollection" - nameWithType: "IAgreementDetailsCollection" - fullName: "com.microsoft.samples.agreements.IAgreementDetailsCollection" -- uid: "com.microsoft.samples.agreements.ResourceCollection" - name: "ResourceCollection " - nameWithType: "ResourceCollection " - fullName: "com.microsoft.samples.agreements.ResourceCollection " +### YamlMime:JavaPackage +uid: "com.microsoft.samples.agreements" +fullName: "com.microsoft.samples.agreements" +name: "com.microsoft.samples.agreements" +classes: +- "com.microsoft.samples.agreements.AgreementDetailsCollectionOperations" +- "com.microsoft.samples.agreements.AgreementMetaData" +- "com.microsoft.samples.agreements.ResourceCollection" +interfaces: +- "com.microsoft.samples.agreements.IAgreementDetailsCollection" +metadata: {} +package: "com.microsoft.samples.agreements" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.Animal.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.Animal.yml new file mode 100644 index 0000000..30c077f --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.Animal.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Animal.Animal*" +fullName: "com.microsoft.samples.commentinheritance.Animal.Animal" +name: "Animal" +nameWithType: "Animal.Animal" +members: +- uid: "com.microsoft.samples.commentinheritance.Animal.Animal()" + fullName: "com.microsoft.samples.commentinheritance.Animal.Animal()" + name: "Animal()" + nameWithType: "Animal.Animal()" + syntax: "public Animal()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.breathe.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.breathe.yml new file mode 100644 index 0000000..df20fc1 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.breathe.yml @@ -0,0 +1,15 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Animal.breathe*" +fullName: "com.microsoft.samples.commentinheritance.Animal.breathe" +name: "breathe" +nameWithType: "Animal.breathe" +members: +- uid: "com.microsoft.samples.commentinheritance.Animal.breathe()" + fullName: "com.microsoft.samples.commentinheritance.Animal.breathe()" + name: "breathe()" + nameWithType: "Animal.breathe()" + summary: "Breathe." + syntax: "public void breathe()" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.feed.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.feed.yml new file mode 100644 index 0000000..043ebc7 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.feed.yml @@ -0,0 +1,15 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Animal.feed*" +fullName: "com.microsoft.samples.commentinheritance.Animal.feed" +name: "feed" +nameWithType: "Animal.feed" +members: +- uid: "com.microsoft.samples.commentinheritance.Animal.feed()" + fullName: "com.microsoft.samples.commentinheritance.Animal.feed()" + name: "feed()" + nameWithType: "Animal.feed()" + summary: "Feed offspring." + syntax: "public abstract void feed()" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.getKind.yml new file mode 100644 index 0000000..89f252c --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Animal.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Animal.getKind" +name: "getKind" +nameWithType: "Animal.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Animal.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Animal.getKind()" + name: "getKind()" + nameWithType: "Animal.getKind()" + summary: "Get kind from Organism. Get kind from Animal." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.verballyCommunicate.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.verballyCommunicate.yml new file mode 100644 index 0000000..8c9a83a --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.verballyCommunicate.yml @@ -0,0 +1,15 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate*" +fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate" +name: "verballyCommunicate" +nameWithType: "Animal.verballyCommunicate" +members: +- uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" + fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" + name: "verballyCommunicate()" + nameWithType: "Animal.verballyCommunicate()" + summary: "Communicate verbally." + syntax: "public abstract void verballyCommunicate()" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.yml index 61424db..08d0c0f 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Animal.yml @@ -1,187 +1,33 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Animal" - id: "Animal" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Animal.Animal()" - - "com.microsoft.samples.commentinheritance.Animal.breathe()" - - "com.microsoft.samples.commentinheritance.Animal.feed()" - - "com.microsoft.samples.commentinheritance.Animal.getKind()" - - "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - langs: - - "java" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" - type: "Class" - package: "com.microsoft.samples.commentinheritance" - summary: "Animal." - syntax: - content: "public abstract class Animal implements Organism" - inheritance: - - "java.lang.Object" - implements: - - "com.microsoft.samples.commentinheritance.Organism" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Animal.Animal()" - id: "Animal()" - parent: "com.microsoft.samples.commentinheritance.Animal" - langs: - - "java" - name: "Animal()" - nameWithType: "Animal.Animal()" - fullName: "com.microsoft.samples.commentinheritance.Animal.Animal()" - overload: "com.microsoft.samples.commentinheritance.Animal.Animal*" - type: "Constructor" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public Animal()" -- uid: "com.microsoft.samples.commentinheritance.Animal.breathe()" - id: "breathe()" - parent: "com.microsoft.samples.commentinheritance.Animal" - langs: - - "java" - name: "breathe()" - nameWithType: "Animal.breathe()" - fullName: "com.microsoft.samples.commentinheritance.Animal.breathe()" - overload: "com.microsoft.samples.commentinheritance.Animal.breathe*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Breathe." - syntax: - content: "public void breathe()" -- uid: "com.microsoft.samples.commentinheritance.Animal.feed()" - id: "feed()" - parent: "com.microsoft.samples.commentinheritance.Animal" - langs: - - "java" - name: "feed()" - nameWithType: "Animal.feed()" - fullName: "com.microsoft.samples.commentinheritance.Animal.feed()" - overload: "com.microsoft.samples.commentinheritance.Animal.feed*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Feed offspring." - syntax: - content: "public abstract void feed()" -- uid: "com.microsoft.samples.commentinheritance.Animal.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Animal" - langs: - - "java" - name: "getKind()" - nameWithType: "Animal.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Animal.getKind()" - overload: "com.microsoft.samples.commentinheritance.Animal.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Organism. Get kind from Animal." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - id: "verballyCommunicate()" - parent: "com.microsoft.samples.commentinheritance.Animal" - langs: - - "java" - name: "verballyCommunicate()" - nameWithType: "Animal.verballyCommunicate()" - fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - overload: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Communicate verbally." - syntax: - content: "public abstract void verballyCommunicate()" -references: -- uid: "com.microsoft.samples.commentinheritance.Animal.Animal*" - name: "Animal" - nameWithType: "Animal.Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal.Animal" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Animal.breathe*" - name: "breathe" - nameWithType: "Animal.breathe" - fullName: "com.microsoft.samples.commentinheritance.Animal.breathe" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate*" - name: "verballyCommunicate" - nameWithType: "Animal.verballyCommunicate" - fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Animal.feed*" - name: "feed" - nameWithType: "Animal.feed" - fullName: "com.microsoft.samples.commentinheritance.Animal.feed" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Animal.getKind*" - name: "getKind" - nameWithType: "Animal.getKind" - fullName: "com.microsoft.samples.commentinheritance.Animal.getKind" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Organism" - name: "Organism" - nameWithType: "Organism" - fullName: "com.microsoft.samples.commentinheritance.Organism" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Animal" +fullName: "com.microsoft.samples.commentinheritance.Animal" +name: "Animal" +nameWithType: "Animal" +summary: "Animal." +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public abstract class Animal implements Organism" +constructors: +- "com.microsoft.samples.commentinheritance.Animal.Animal()" +methods: +- "com.microsoft.samples.commentinheritance.Animal.breathe()" +- "com.microsoft.samples.commentinheritance.Animal.feed()" +- "com.microsoft.samples.commentinheritance.Animal.getKind()" +- "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" +type: "class" +implements: +- " " +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.eat.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.eat.yml new file mode 100644 index 0000000..7131035 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.eat.yml @@ -0,0 +1,19 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Carnivorous.eat*" +fullName: "com.microsoft.samples.commentinheritance.Carnivorous.eat" +name: "eat" +nameWithType: "Carnivorous.eat" +members: +- uid: "com.microsoft.samples.commentinheritance.Carnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" + fullName: "com.microsoft.samples.commentinheritance.Carnivorous.eat(Animal animalBeingEaten)" + name: "eat(Animal animalBeingEaten)" + nameWithType: "Carnivorous.eat(Animal animalBeingEaten)" + summary: "Eat the provided animal." + parameters: + - description: "Animal that will be eaten." + name: "animalBeingEaten" + type: " " + syntax: "public abstract void eat(Animal animalBeingEaten)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.getKind.yml new file mode 100644 index 0000000..0b8e608 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Carnivorous.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Carnivorous.getKind" +name: "getKind" +nameWithType: "Carnivorous.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" + name: "getKind()" + nameWithType: "Carnivorous.getKind()" + summary: "Get kind from Carnivorous." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.yml index 2d9e801..5fcf3ca 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Carnivorous.yml @@ -1,72 +1,13 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Carnivorous" - id: "Carnivorous" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Carnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" - - "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" - langs: - - "java" - name: "Carnivorous" - nameWithType: "Carnivorous" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous" - type: "Interface" - package: "com.microsoft.samples.commentinheritance" - summary: "Marks an Animal that eats other animals." - syntax: - content: "public interface Carnivorous" -- uid: "com.microsoft.samples.commentinheritance.Carnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" - id: "eat(com.microsoft.samples.commentinheritance.Animal)" - parent: "com.microsoft.samples.commentinheritance.Carnivorous" - langs: - - "java" - name: "eat(Animal animalBeingEaten)" - nameWithType: "Carnivorous.eat(Animal animalBeingEaten)" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous.eat(Animal animalBeingEaten)" - overload: "com.microsoft.samples.commentinheritance.Carnivorous.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided animal." - syntax: - content: "public abstract void eat(Animal animalBeingEaten)" - parameters: - - id: "animalBeingEaten" - type: "com.microsoft.samples.commentinheritance.Animal" - description: "Animal that will be eaten." -- uid: "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Carnivorous" - langs: - - "java" - name: "getKind()" - nameWithType: "Carnivorous.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" - overload: "com.microsoft.samples.commentinheritance.Carnivorous.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Carnivorous." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -references: -- uid: "com.microsoft.samples.commentinheritance.Animal" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" -- uid: "com.microsoft.samples.commentinheritance.Carnivorous.eat*" - name: "eat" - nameWithType: "Carnivorous.eat" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous.eat" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Carnivorous.getKind*" - name: "getKind" - nameWithType: "Carnivorous.getKind" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous.getKind" - package: "com.microsoft.samples.commentinheritance" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Carnivorous" +fullName: "com.microsoft.samples.commentinheritance.Carnivorous" +name: "Carnivorous" +nameWithType: "Carnivorous" +summary: "Marks an Animal that eats other animals." +syntax: "public interface Carnivorous" +methods: +- "com.microsoft.samples.commentinheritance.Carnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" +- "com.microsoft.samples.commentinheritance.Carnivorous.getKind()" +type: "interface" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.Dog.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.Dog.yml new file mode 100644 index 0000000..985a507 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.Dog.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.Dog*" +fullName: "com.microsoft.samples.commentinheritance.Dog.Dog" +name: "Dog" +nameWithType: "Dog.Dog" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.Dog()" + fullName: "com.microsoft.samples.commentinheritance.Dog.Dog()" + name: "Dog()" + nameWithType: "Dog.Dog()" + syntax: "public Dog()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.eat.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.eat.yml new file mode 100644 index 0000000..d0f1e6b --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.eat.yml @@ -0,0 +1,29 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.eat*" +fullName: "com.microsoft.samples.commentinheritance.Dog.eat" +name: "eat" +nameWithType: "Dog.eat" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Animal)" + fullName: "com.microsoft.samples.commentinheritance.Dog.eat(Animal otherAnimal)" + name: "eat(Animal otherAnimal)" + nameWithType: "Dog.eat(Animal otherAnimal)" + summary: "Eat the provided animal." + parameters: + - description: "Tasty treat." + name: "otherAnimal" + type: " " + syntax: "public void eat(Animal otherAnimal)" +- uid: "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" + fullName: "com.microsoft.samples.commentinheritance.Dog.eat(Herbivorous.Plant plantToBeEaten)" + name: "eat(Herbivorous.Plant plantToBeEaten)" + nameWithType: "Dog.eat(Herbivorous.Plant plantToBeEaten)" + summary: "Eat the provided plant." + parameters: + - description: "Plant that this dog will eat." + name: "plantToBeEaten" + type: " " + syntax: "public void eat(Herbivorous.Plant plantToBeEaten)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.feed.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.feed.yml new file mode 100644 index 0000000..e38df18 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.feed.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.feed*" +fullName: "com.microsoft.samples.commentinheritance.Dog.feed" +name: "feed" +nameWithType: "Dog.feed" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.feed()" + fullName: "com.microsoft.samples.commentinheritance.Dog.feed()" + name: "feed()" + nameWithType: "Dog.feed()" + summary: "Feed offspring." + overridden: "com.microsoft.samples.commentinheritance.Animal.feed()" + syntax: "public void feed()" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getHairColor.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getHairColor.yml new file mode 100644 index 0000000..89ef8ff --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getHairColor.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.getHairColor*" +fullName: "com.microsoft.samples.commentinheritance.Dog.getHairColor" +name: "getHairColor" +nameWithType: "Dog.getHairColor" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.getHairColor()" + fullName: "com.microsoft.samples.commentinheritance.Dog.getHairColor()" + name: "getHairColor()" + nameWithType: "Dog.getHairColor()" + summary: "Provide the color of the dog's hair." + syntax: "public Color getHairColor()" + returns: + description: "Color of the dog's fur." + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getKind.yml new file mode 100644 index 0000000..25ebf8f --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.getKind.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Dog.getKind" +name: "getKind" +nameWithType: "Dog.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Dog.getKind()" + name: "getKind()" + nameWithType: "Dog.getKind()" + summary: "Get kind from Organism. Get kind from Animal. Get kind from Mammal. Get kind from Dog." + overridden: "com.microsoft.samples.commentinheritance.Mammal.getKind()" + syntax: "public String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.giveBirth.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.giveBirth.yml new file mode 100644 index 0000000..f3fd022 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.giveBirth.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.giveBirth*" +fullName: "com.microsoft.samples.commentinheritance.Dog.giveBirth" +name: "giveBirth" +nameWithType: "Dog.giveBirth" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.giveBirth(int)" + fullName: "com.microsoft.samples.commentinheritance.Dog.giveBirth(int numberPuppies)" + name: "giveBirth(int numberPuppies)" + nameWithType: "Dog.giveBirth(int numberPuppies)" + parameters: + - description: "Number of puppies being born." + name: "numberPuppies" + type: " " + syntax: "public void giveBirth(int numberPuppies)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.verballyCommunicate.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.verballyCommunicate.yml new file mode 100644 index 0000000..81f63b6 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.verballyCommunicate.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate*" +fullName: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate" +name: "verballyCommunicate" +nameWithType: "Dog.verballyCommunicate" +members: +- uid: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" + fullName: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" + name: "verballyCommunicate()" + nameWithType: "Dog.verballyCommunicate()" + summary: "Communicate verbally. Bark." + overridden: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" + syntax: "public void verballyCommunicate()" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.yml index dbd9414..638e655 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Dog.yml @@ -1,308 +1,43 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Dog" - id: "Dog" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Dog.Dog()" - - "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Animal)" - - "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - - "com.microsoft.samples.commentinheritance.Dog.feed()" - - "com.microsoft.samples.commentinheritance.Dog.getHairColor()" - - "com.microsoft.samples.commentinheritance.Dog.getKind()" - - "com.microsoft.samples.commentinheritance.Dog.giveBirth(int)" - - "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" - langs: - - "java" - name: "Dog" - nameWithType: "Dog" - fullName: "com.microsoft.samples.commentinheritance.Dog" - type: "Class" - package: "com.microsoft.samples.commentinheritance" - summary: "Canine and man's best friend." - syntax: - content: "public class Dog extends Mammal implements Omnivorous, Viviparous" - inheritance: - - "java.lang.Object" - - "com.microsoft.samples.commentinheritance.Animal" - - "com.microsoft.samples.commentinheritance.Mammal" - implements: - - "com.microsoft.samples.commentinheritance.Omnivorous" - - "com.microsoft.samples.commentinheritance.Viviparous" - inheritedMembers: - - "com.microsoft.samples.commentinheritance.Animal.breathe()" - - "com.microsoft.samples.commentinheritance.Animal.feed()" - - "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - - "com.microsoft.samples.commentinheritance.Mammal.getKind()" - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Dog.Dog()" - id: "Dog()" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "Dog()" - nameWithType: "Dog.Dog()" - fullName: "com.microsoft.samples.commentinheritance.Dog.Dog()" - overload: "com.microsoft.samples.commentinheritance.Dog.Dog*" - type: "Constructor" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public Dog()" -- uid: "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Animal)" - id: "eat(com.microsoft.samples.commentinheritance.Animal)" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "eat(Animal otherAnimal)" - nameWithType: "Dog.eat(Animal otherAnimal)" - fullName: "com.microsoft.samples.commentinheritance.Dog.eat(Animal otherAnimal)" - overload: "com.microsoft.samples.commentinheritance.Dog.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided animal." - syntax: - content: "public void eat(Animal otherAnimal)" - parameters: - - id: "otherAnimal" - type: "com.microsoft.samples.commentinheritance.Animal" - description: "Tasty treat." -- uid: "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - id: "eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "eat(Herbivorous.Plant plantToBeEaten)" - nameWithType: "Dog.eat(Herbivorous.Plant plantToBeEaten)" - fullName: "com.microsoft.samples.commentinheritance.Dog.eat(Herbivorous.Plant plantToBeEaten)" - overload: "com.microsoft.samples.commentinheritance.Dog.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided plant." - syntax: - content: "public void eat(Herbivorous.Plant plantToBeEaten)" - parameters: - - id: "plantToBeEaten" - type: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - description: "Plant that this dog will eat." -- uid: "com.microsoft.samples.commentinheritance.Dog.feed()" - id: "feed()" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "feed()" - nameWithType: "Dog.feed()" - fullName: "com.microsoft.samples.commentinheritance.Dog.feed()" - overload: "com.microsoft.samples.commentinheritance.Dog.feed*" - overridden: "com.microsoft.samples.commentinheritance.Animal.feed()" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Feed offspring." - syntax: - content: "public void feed()" -- uid: "com.microsoft.samples.commentinheritance.Dog.getHairColor()" - id: "getHairColor()" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "getHairColor()" - nameWithType: "Dog.getHairColor()" - fullName: "com.microsoft.samples.commentinheritance.Dog.getHairColor()" - overload: "com.microsoft.samples.commentinheritance.Dog.getHairColor*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Provide the color of the dog's hair." - syntax: - content: "public Color getHairColor()" - return: - type: "java.awt.Color" - description: "Color of the dog's fur." -- uid: "com.microsoft.samples.commentinheritance.Dog.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "getKind()" - nameWithType: "Dog.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Dog.getKind()" - overload: "com.microsoft.samples.commentinheritance.Dog.getKind*" - overridden: "com.microsoft.samples.commentinheritance.Mammal.getKind()" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Organism. Get kind from Animal. Get kind from Mammal. Get kind from Dog." - syntax: - content: "public String getKind()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Dog.giveBirth(int)" - id: "giveBirth(int)" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "giveBirth(int numberPuppies)" - nameWithType: "Dog.giveBirth(int numberPuppies)" - fullName: "com.microsoft.samples.commentinheritance.Dog.giveBirth(int numberPuppies)" - overload: "com.microsoft.samples.commentinheritance.Dog.giveBirth*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public void giveBirth(int numberPuppies)" - parameters: - - id: "numberPuppies" - type: "int" - description: "Number of puppies being born." -- uid: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" - id: "verballyCommunicate()" - parent: "com.microsoft.samples.commentinheritance.Dog" - langs: - - "java" - name: "verballyCommunicate()" - nameWithType: "Dog.verballyCommunicate()" - fullName: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" - overload: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate*" - overridden: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Communicate verbally. Bark." - syntax: - content: "public void verballyCommunicate()" -references: -- uid: "com.microsoft.samples.commentinheritance.Dog.Dog*" - name: "Dog" - nameWithType: "Dog.Dog" - fullName: "com.microsoft.samples.commentinheritance.Dog.Dog" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Animal" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" -- uid: "com.microsoft.samples.commentinheritance.Dog.eat*" - name: "eat" - nameWithType: "Dog.eat" - fullName: "com.microsoft.samples.commentinheritance.Dog.eat" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - name: "Herbivorous.Plant" - nameWithType: "Herbivorous.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" -- uid: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate*" - name: "verballyCommunicate" - nameWithType: "Dog.verballyCommunicate" - fullName: "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate" - package: "com.microsoft.samples.commentinheritance" -- uid: "int" - spec.java: - - uid: "int" - name: "int" - fullName: "int" -- uid: "com.microsoft.samples.commentinheritance.Dog.giveBirth*" - name: "giveBirth" - nameWithType: "Dog.giveBirth" - fullName: "com.microsoft.samples.commentinheritance.Dog.giveBirth" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.awt.Color" - spec.java: - - uid: "java.awt.Color" - name: "Color" - fullName: "java.awt.Color" -- uid: "com.microsoft.samples.commentinheritance.Dog.getHairColor*" - name: "getHairColor" - nameWithType: "Dog.getHairColor" - fullName: "com.microsoft.samples.commentinheritance.Dog.getHairColor" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Dog.feed*" - name: "feed" - nameWithType: "Dog.feed" - fullName: "com.microsoft.samples.commentinheritance.Dog.feed" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Dog.getKind*" - name: "getKind" - nameWithType: "Dog.getKind" - fullName: "com.microsoft.samples.commentinheritance.Dog.getKind" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Mammal" - name: "Mammal" - nameWithType: "Mammal" - fullName: "com.microsoft.samples.commentinheritance.Mammal" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous" - name: "Omnivorous" - nameWithType: "Omnivorous" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous" -- uid: "com.microsoft.samples.commentinheritance.Viviparous" - name: "Viviparous" - nameWithType: "Viviparous" - fullName: "com.microsoft.samples.commentinheritance.Viviparous" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "com.microsoft.samples.commentinheritance.Animal.breathe()" - name: "Animal.breathe()" - nameWithType: "Animal.breathe()" - fullName: "com.microsoft.samples.commentinheritance.Animal.breathe()" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "com.microsoft.samples.commentinheritance.Mammal.getKind()" - name: "Mammal.getKind()" - nameWithType: "Mammal.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Mammal.getKind()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - name: "Animal.verballyCommunicate()" - nameWithType: "Animal.verballyCommunicate()" - fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" -- uid: "com.microsoft.samples.commentinheritance.Animal.feed()" - name: "Animal.feed()" - nameWithType: "Animal.feed()" - fullName: "com.microsoft.samples.commentinheritance.Animal.feed()" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Dog" +fullName: "com.microsoft.samples.commentinheritance.Dog" +name: "Dog" +nameWithType: "Dog" +summary: "Canine and man's best friend." +inheritances: +- " " +- " " +- " " +inheritedMembers: +- "com.microsoft.samples.commentinheritance.Animal.breathe()" +- "com.microsoft.samples.commentinheritance.Animal.feed()" +- "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" +- "com.microsoft.samples.commentinheritance.Mammal.getKind()" +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class Dog extends Mammal implements Omnivorous, Viviparous" +constructors: +- "com.microsoft.samples.commentinheritance.Dog.Dog()" +methods: +- "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Animal)" +- "com.microsoft.samples.commentinheritance.Dog.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" +- "com.microsoft.samples.commentinheritance.Dog.feed()" +- "com.microsoft.samples.commentinheritance.Dog.getHairColor()" +- "com.microsoft.samples.commentinheritance.Dog.getKind()" +- "com.microsoft.samples.commentinheritance.Dog.giveBirth(int)" +- "com.microsoft.samples.commentinheritance.Dog.verballyCommunicate()" +type: "class" +implements: +- " " +- " " +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant.yml new file mode 100644 index 0000000..7ade51c --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant*" +fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant" +name: "Plant" +nameWithType: "Herbivorous.Plant.Plant" +members: +- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" + fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" + name: "Plant()" + nameWithType: "Herbivorous.Plant.Plant()" + syntax: "public Plant()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.yml index 780526c..6a9da48 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.Plant.yml @@ -1,93 +1,25 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - id: "Plant" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" - langs: - - "java" - name: "Herbivorous.Plant" - nameWithType: "Herbivorous.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - type: "Class" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public static class Herbivorous.Plant" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" - id: "Plant()" - parent: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - langs: - - "java" - name: "Plant()" - nameWithType: "Herbivorous.Plant.Plant()" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" - overload: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant*" - type: "Constructor" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public Plant()" -references: -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant*" - name: "Plant" - nameWithType: "Herbivorous.Plant.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" +fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" +name: "Herbivorous.Plant" +nameWithType: "Herbivorous.Plant" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public static class Herbivorous.Plant" +constructors: +- "com.microsoft.samples.commentinheritance.Herbivorous.Plant.Plant()" +type: "class" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.eat.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.eat.yml new file mode 100644 index 0000000..29ffdcc --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.eat.yml @@ -0,0 +1,19 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Herbivorous.eat*" +fullName: "com.microsoft.samples.commentinheritance.Herbivorous.eat" +name: "eat" +nameWithType: "Herbivorous.eat" +members: +- uid: "com.microsoft.samples.commentinheritance.Herbivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" + fullName: "com.microsoft.samples.commentinheritance.Herbivorous.eat(Herbivorous.Plant plantToBeEaten)" + name: "eat(Herbivorous.Plant plantToBeEaten)" + nameWithType: "Herbivorous.eat(Herbivorous.Plant plantToBeEaten)" + summary: "Eat the provided plant." + parameters: + - description: "Plant that will be eaten." + name: "plantToBeEaten" + type: " " + syntax: "public abstract void eat(Herbivorous.Plant plantToBeEaten)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.getKind.yml new file mode 100644 index 0000000..55759bc --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Herbivorous.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Herbivorous.getKind" +name: "getKind" +nameWithType: "Herbivorous.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" + name: "getKind()" + nameWithType: "Herbivorous.getKind()" + summary: "Get kind from Herbivorous." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.yml index 4c84584..bfadeab 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Herbivorous.yml @@ -1,73 +1,13 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Herbivorous" - id: "Herbivorous" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - - "com.microsoft.samples.commentinheritance.Herbivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - - "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" - langs: - - "java" - name: "Herbivorous" - nameWithType: "Herbivorous" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous" - type: "Interface" - package: "com.microsoft.samples.commentinheritance" - summary: "Marks animals that eat plants." - syntax: - content: "public interface Herbivorous" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - id: "eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - parent: "com.microsoft.samples.commentinheritance.Herbivorous" - langs: - - "java" - name: "eat(Herbivorous.Plant plantToBeEaten)" - nameWithType: "Herbivorous.eat(Herbivorous.Plant plantToBeEaten)" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.eat(Herbivorous.Plant plantToBeEaten)" - overload: "com.microsoft.samples.commentinheritance.Herbivorous.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided plant." - syntax: - content: "public abstract void eat(Herbivorous.Plant plantToBeEaten)" - parameters: - - id: "plantToBeEaten" - type: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - description: "Plant that will be eaten." -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Herbivorous" - langs: - - "java" - name: "getKind()" - nameWithType: "Herbivorous.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" - overload: "com.microsoft.samples.commentinheritance.Herbivorous.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Herbivorous." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -references: -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - name: "Herbivorous.Plant" - nameWithType: "Herbivorous.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.eat*" - name: "eat" - nameWithType: "Herbivorous.eat" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.eat" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.getKind*" - name: "getKind" - nameWithType: "Herbivorous.getKind" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.getKind" - package: "com.microsoft.samples.commentinheritance" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Herbivorous" +fullName: "com.microsoft.samples.commentinheritance.Herbivorous" +name: "Herbivorous" +nameWithType: "Herbivorous" +summary: "Marks animals that eat plants." +syntax: "public interface Herbivorous" +methods: +- "com.microsoft.samples.commentinheritance.Herbivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" +- "com.microsoft.samples.commentinheritance.Herbivorous.getKind()" +type: "interface" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.Mammal.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.Mammal.yml new file mode 100644 index 0000000..3f07124 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.Mammal.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Mammal.Mammal*" +fullName: "com.microsoft.samples.commentinheritance.Mammal.Mammal" +name: "Mammal" +nameWithType: "Mammal.Mammal" +members: +- uid: "com.microsoft.samples.commentinheritance.Mammal.Mammal()" + fullName: "com.microsoft.samples.commentinheritance.Mammal.Mammal()" + name: "Mammal()" + nameWithType: "Mammal.Mammal()" + syntax: "public Mammal()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.getKind.yml new file mode 100644 index 0000000..0d99ce2 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.getKind.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Mammal.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Mammal.getKind" +name: "getKind" +nameWithType: "Mammal.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Mammal.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Mammal.getKind()" + name: "getKind()" + nameWithType: "Mammal.getKind()" + summary: "Get kind from Organism. Get kind from Animal. Get kind from Mammal." + overridden: "com.microsoft.samples.commentinheritance.Animal.getKind()" + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.yml index 22689cd..6763378 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Mammal.yml @@ -1,147 +1,33 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Mammal" - id: "Mammal" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Mammal.Mammal()" - - "com.microsoft.samples.commentinheritance.Mammal.getKind()" - langs: - - "java" - name: "Mammal" - nameWithType: "Mammal" - fullName: "com.microsoft.samples.commentinheritance.Mammal" - type: "Class" - package: "com.microsoft.samples.commentinheritance" - summary: "Mammal." - syntax: - content: "public abstract class Mammal extends Animal" - inheritance: - - "java.lang.Object" - - "com.microsoft.samples.commentinheritance.Animal" - inheritedMembers: - - "com.microsoft.samples.commentinheritance.Animal.breathe()" - - "com.microsoft.samples.commentinheritance.Animal.feed()" - - "com.microsoft.samples.commentinheritance.Animal.getKind()" - - "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Mammal.Mammal()" - id: "Mammal()" - parent: "com.microsoft.samples.commentinheritance.Mammal" - langs: - - "java" - name: "Mammal()" - nameWithType: "Mammal.Mammal()" - fullName: "com.microsoft.samples.commentinheritance.Mammal.Mammal()" - overload: "com.microsoft.samples.commentinheritance.Mammal.Mammal*" - type: "Constructor" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public Mammal()" -- uid: "com.microsoft.samples.commentinheritance.Mammal.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Mammal" - langs: - - "java" - name: "getKind()" - nameWithType: "Mammal.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Mammal.getKind()" - overload: "com.microsoft.samples.commentinheritance.Mammal.getKind*" - overridden: "com.microsoft.samples.commentinheritance.Animal.getKind()" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Organism. Get kind from Animal. Get kind from Mammal." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -references: -- uid: "com.microsoft.samples.commentinheritance.Mammal.Mammal*" - name: "Mammal" - nameWithType: "Mammal.Mammal" - fullName: "com.microsoft.samples.commentinheritance.Mammal.Mammal" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Mammal.getKind*" - name: "getKind" - nameWithType: "Mammal.getKind" - fullName: "com.microsoft.samples.commentinheritance.Mammal.getKind" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Animal" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "com.microsoft.samples.commentinheritance.Animal.breathe()" - name: "Animal.breathe()" - nameWithType: "Animal.breathe()" - fullName: "com.microsoft.samples.commentinheritance.Animal.breathe()" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "com.microsoft.samples.commentinheritance.Animal.getKind()" - name: "Animal.getKind()" - nameWithType: "Animal.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Animal.getKind()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" - name: "Animal.verballyCommunicate()" - nameWithType: "Animal.verballyCommunicate()" - fullName: "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" -- uid: "com.microsoft.samples.commentinheritance.Animal.feed()" - name: "Animal.feed()" - nameWithType: "Animal.feed()" - fullName: "com.microsoft.samples.commentinheritance.Animal.feed()" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Mammal" +fullName: "com.microsoft.samples.commentinheritance.Mammal" +name: "Mammal" +nameWithType: "Mammal" +summary: "Mammal." +inheritances: +- " " +- " " +inheritedMembers: +- "com.microsoft.samples.commentinheritance.Animal.breathe()" +- "com.microsoft.samples.commentinheritance.Animal.feed()" +- "com.microsoft.samples.commentinheritance.Animal.getKind()" +- "com.microsoft.samples.commentinheritance.Animal.verballyCommunicate()" +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public abstract class Mammal extends Animal" +constructors: +- "com.microsoft.samples.commentinheritance.Mammal.Mammal()" +methods: +- "com.microsoft.samples.commentinheritance.Mammal.getKind()" +type: "class" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.eat.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.eat.yml new file mode 100644 index 0000000..c6cfacc --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.eat.yml @@ -0,0 +1,27 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat*" +fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat" +name: "eat" +nameWithType: "Omnivorous.eat" +members: +- uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" + fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat(Animal animalToBeEaten)" + name: "eat(Animal animalToBeEaten)" + nameWithType: "Omnivorous.eat(Animal animalToBeEaten)" + summary: "Eat the provided animal." + parameters: + - name: "animalToBeEaten" + type: " " + syntax: "public abstract void eat(Animal animalToBeEaten)" +- uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" + fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat(Herbivorous.Plant plantToBeEaten)" + name: "eat(Herbivorous.Plant plantToBeEaten)" + nameWithType: "Omnivorous.eat(Herbivorous.Plant plantToBeEaten)" + summary: "Eat the provided plant." + parameters: + - name: "plantToBeEaten" + type: " " + syntax: "public abstract void eat(Herbivorous.Plant plantToBeEaten)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.getKind.yml new file mode 100644 index 0000000..0e2e568 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Omnivorous.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Omnivorous.getKind" +name: "getKind" +nameWithType: "Omnivorous.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" + name: "getKind()" + nameWithType: "Omnivorous.getKind()" + summary: "Get kind from Carnivorous. Get kind from Omnivorous." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.yml index 7995ebf..f852100 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Omnivorous.yml @@ -1,104 +1,17 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Omnivorous" - id: "Omnivorous" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" - - "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - - "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" - langs: - - "java" - name: "Omnivorous" - nameWithType: "Omnivorous" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous" - type: "Interface" - package: "com.microsoft.samples.commentinheritance" - summary: "Eats plants and animals." - syntax: - content: "public interface Omnivorous extends Carnivorous, Herbivorous" - implements: - - "com.microsoft.samples.commentinheritance.Carnivorous" - - "com.microsoft.samples.commentinheritance.Herbivorous" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" - id: "eat(com.microsoft.samples.commentinheritance.Animal)" - parent: "com.microsoft.samples.commentinheritance.Omnivorous" - langs: - - "java" - name: "eat(Animal animalToBeEaten)" - nameWithType: "Omnivorous.eat(Animal animalToBeEaten)" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat(Animal animalToBeEaten)" - overload: "com.microsoft.samples.commentinheritance.Omnivorous.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided animal." - syntax: - content: "public abstract void eat(Animal animalToBeEaten)" - parameters: - - id: "animalToBeEaten" - type: "com.microsoft.samples.commentinheritance.Animal" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - id: "eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" - parent: "com.microsoft.samples.commentinheritance.Omnivorous" - langs: - - "java" - name: "eat(Herbivorous.Plant plantToBeEaten)" - nameWithType: "Omnivorous.eat(Herbivorous.Plant plantToBeEaten)" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat(Herbivorous.Plant plantToBeEaten)" - overload: "com.microsoft.samples.commentinheritance.Omnivorous.eat*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Eat the provided plant." - syntax: - content: "public abstract void eat(Herbivorous.Plant plantToBeEaten)" - parameters: - - id: "plantToBeEaten" - type: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Omnivorous" - langs: - - "java" - name: "getKind()" - nameWithType: "Omnivorous.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" - overload: "com.microsoft.samples.commentinheritance.Omnivorous.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Carnivorous. Get kind from Omnivorous." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -references: -- uid: "com.microsoft.samples.commentinheritance.Animal" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous.eat*" - name: "eat" - nameWithType: "Omnivorous.eat" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous.eat" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - name: "Herbivorous.Plant" - nameWithType: "Herbivorous.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous.getKind*" - name: "getKind" - nameWithType: "Omnivorous.getKind" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous.getKind" - package: "com.microsoft.samples.commentinheritance" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous" - name: "Herbivorous" - nameWithType: "Herbivorous" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous" -- uid: "com.microsoft.samples.commentinheritance.Carnivorous" - name: "Carnivorous" - nameWithType: "Carnivorous" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Omnivorous" +fullName: "com.microsoft.samples.commentinheritance.Omnivorous" +name: "Omnivorous" +nameWithType: "Omnivorous" +summary: "Eats plants and animals." +syntax: "public interface Omnivorous extends Carnivorous, Herbivorous" +methods: +- "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Animal)" +- "com.microsoft.samples.commentinheritance.Omnivorous.eat(com.microsoft.samples.commentinheritance.Herbivorous.Plant)" +- "com.microsoft.samples.commentinheritance.Omnivorous.getKind()" +type: "interface" +implements: +- " " +- " " +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.getKind.yml new file mode 100644 index 0000000..af75020 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Organism.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Organism.getKind" +name: "getKind" +nameWithType: "Organism.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Organism.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Organism.getKind()" + name: "getKind()" + nameWithType: "Organism.getKind()" + summary: "Get kind from Organism." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.yml index fc7597c..4b1d576 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Organism.yml @@ -1,43 +1,11 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Organism" - id: "Organism" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Organism.getKind()" - langs: - - "java" - name: "Organism" - nameWithType: "Organism" - fullName: "com.microsoft.samples.commentinheritance.Organism" - type: "Interface" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public interface Organism" -- uid: "com.microsoft.samples.commentinheritance.Organism.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Organism" - langs: - - "java" - name: "getKind()" - nameWithType: "Organism.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Organism.getKind()" - overload: "com.microsoft.samples.commentinheritance.Organism.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Organism." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -references: -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Organism.getKind*" - name: "getKind" - nameWithType: "Organism.getKind" - fullName: "com.microsoft.samples.commentinheritance.Organism.getKind" - package: "com.microsoft.samples.commentinheritance" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Organism" +fullName: "com.microsoft.samples.commentinheritance.Organism" +name: "Organism" +nameWithType: "Organism" +syntax: "public interface Organism" +methods: +- "com.microsoft.samples.commentinheritance.Organism.getKind()" +type: "interface" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.getKind.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.getKind.yml new file mode 100644 index 0000000..fcff666 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.getKind.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Viviparous.getKind*" +fullName: "com.microsoft.samples.commentinheritance.Viviparous.getKind" +name: "getKind" +nameWithType: "Viviparous.getKind" +members: +- uid: "com.microsoft.samples.commentinheritance.Viviparous.getKind()" + fullName: "com.microsoft.samples.commentinheritance.Viviparous.getKind()" + name: "getKind()" + nameWithType: "Viviparous.getKind()" + summary: "Get kind from Viviparous." + syntax: "public abstract String getKind()" + returns: + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.giveBirth.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.giveBirth.yml new file mode 100644 index 0000000..e327bdf --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.giveBirth.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth*" +fullName: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth" +name: "giveBirth" +nameWithType: "Viviparous.giveBirth" +members: +- uid: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int)" + fullName: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int numberOfOffspring)" + name: "giveBirth(int numberOfOffspring)" + nameWithType: "Viviparous.giveBirth(int numberOfOffspring)" + parameters: + - name: "numberOfOffspring" + type: " " + syntax: "public abstract void giveBirth(int numberOfOffspring)" +type: "method" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.yml index d56df7c..3f35b82 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.Viviparous.yml @@ -1,71 +1,13 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance.Viviparous" - id: "Viviparous" - parent: "com.microsoft.samples.commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Viviparous.getKind()" - - "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int)" - langs: - - "java" - name: "Viviparous" - nameWithType: "Viviparous" - fullName: "com.microsoft.samples.commentinheritance.Viviparous" - type: "Interface" - package: "com.microsoft.samples.commentinheritance" - summary: "Mammals that give birth to young that develop within the mother's body." - syntax: - content: "public interface Viviparous" -- uid: "com.microsoft.samples.commentinheritance.Viviparous.getKind()" - id: "getKind()" - parent: "com.microsoft.samples.commentinheritance.Viviparous" - langs: - - "java" - name: "getKind()" - nameWithType: "Viviparous.getKind()" - fullName: "com.microsoft.samples.commentinheritance.Viviparous.getKind()" - overload: "com.microsoft.samples.commentinheritance.Viviparous.getKind*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - summary: "Get kind from Viviparous." - syntax: - content: "public abstract String getKind()" - return: - type: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int)" - id: "giveBirth(int)" - parent: "com.microsoft.samples.commentinheritance.Viviparous" - langs: - - "java" - name: "giveBirth(int numberOfOffspring)" - nameWithType: "Viviparous.giveBirth(int numberOfOffspring)" - fullName: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int numberOfOffspring)" - overload: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth*" - type: "Method" - package: "com.microsoft.samples.commentinheritance" - syntax: - content: "public abstract void giveBirth(int numberOfOffspring)" - parameters: - - id: "numberOfOffspring" - type: "int" -references: -- uid: "int" - spec.java: - - uid: "int" - name: "int" - fullName: "int" -- uid: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth*" - name: "giveBirth" - nameWithType: "Viviparous.giveBirth" - fullName: "com.microsoft.samples.commentinheritance.Viviparous.giveBirth" - package: "com.microsoft.samples.commentinheritance" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.commentinheritance.Viviparous.getKind*" - name: "getKind" - nameWithType: "Viviparous.getKind" - fullName: "com.microsoft.samples.commentinheritance.Viviparous.getKind" - package: "com.microsoft.samples.commentinheritance" +### YamlMime:JavaType +uid: "com.microsoft.samples.commentinheritance.Viviparous" +fullName: "com.microsoft.samples.commentinheritance.Viviparous" +name: "Viviparous" +nameWithType: "Viviparous" +summary: "Mammals that give birth to young that develop within the mother's body." +syntax: "public interface Viviparous" +methods: +- "com.microsoft.samples.commentinheritance.Viviparous.getKind()" +- "com.microsoft.samples.commentinheritance.Viviparous.giveBirth(int)" +type: "interface" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.yml index 5842c9d..d9e231f 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.commentinheritance.yml @@ -1,59 +1,17 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.commentinheritance" - id: "commentinheritance" - children: - - "com.microsoft.samples.commentinheritance.Animal" - - "com.microsoft.samples.commentinheritance.Carnivorous" - - "com.microsoft.samples.commentinheritance.Dog" - - "com.microsoft.samples.commentinheritance.Herbivorous" - - "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - - "com.microsoft.samples.commentinheritance.Mammal" - - "com.microsoft.samples.commentinheritance.Omnivorous" - - "com.microsoft.samples.commentinheritance.Organism" - - "com.microsoft.samples.commentinheritance.Viviparous" - langs: - - "java" - name: "com.microsoft.samples.commentinheritance" - nameWithType: "com.microsoft.samples.commentinheritance" - fullName: "com.microsoft.samples.commentinheritance" - type: "Namespace" - syntax: - content: "package com.microsoft.samples.commentinheritance" -references: -- uid: "com.microsoft.samples.commentinheritance.Animal" - name: "Animal" - nameWithType: "Animal" - fullName: "com.microsoft.samples.commentinheritance.Animal" -- uid: "com.microsoft.samples.commentinheritance.Carnivorous" - name: "Carnivorous" - nameWithType: "Carnivorous" - fullName: "com.microsoft.samples.commentinheritance.Carnivorous" -- uid: "com.microsoft.samples.commentinheritance.Dog" - name: "Dog" - nameWithType: "Dog" - fullName: "com.microsoft.samples.commentinheritance.Dog" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous" - name: "Herbivorous" - nameWithType: "Herbivorous" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous" -- uid: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" - name: "Herbivorous.Plant" - nameWithType: "Herbivorous.Plant" - fullName: "com.microsoft.samples.commentinheritance.Herbivorous.Plant" -- uid: "com.microsoft.samples.commentinheritance.Mammal" - name: "Mammal" - nameWithType: "Mammal" - fullName: "com.microsoft.samples.commentinheritance.Mammal" -- uid: "com.microsoft.samples.commentinheritance.Omnivorous" - name: "Omnivorous" - nameWithType: "Omnivorous" - fullName: "com.microsoft.samples.commentinheritance.Omnivorous" -- uid: "com.microsoft.samples.commentinheritance.Organism" - name: "Organism" - nameWithType: "Organism" - fullName: "com.microsoft.samples.commentinheritance.Organism" -- uid: "com.microsoft.samples.commentinheritance.Viviparous" - name: "Viviparous" - nameWithType: "Viviparous" - fullName: "com.microsoft.samples.commentinheritance.Viviparous" +### YamlMime:JavaPackage +uid: "com.microsoft.samples.commentinheritance" +fullName: "com.microsoft.samples.commentinheritance" +name: "com.microsoft.samples.commentinheritance" +classes: +- "com.microsoft.samples.commentinheritance.Animal" +- "com.microsoft.samples.commentinheritance.Dog" +- "com.microsoft.samples.commentinheritance.Herbivorous.Plant" +- "com.microsoft.samples.commentinheritance.Mammal" +interfaces: +- "com.microsoft.samples.commentinheritance.Carnivorous" +- "com.microsoft.samples.commentinheritance.Herbivorous" +- "com.microsoft.samples.commentinheritance.Omnivorous" +- "com.microsoft.samples.commentinheritance.Organism" +- "com.microsoft.samples.commentinheritance.Viviparous" +metadata: {} +package: "com.microsoft.samples.commentinheritance" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.Offer.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.Offer.yml new file mode 100644 index 0000000..e489836 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.Offer.yml @@ -0,0 +1,15 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.offers.Offer.Offer*" +fullName: "com.microsoft.samples.offers.Offer.Offer" +name: "Offer" +nameWithType: "Offer.Offer" +members: +- uid: "com.microsoft.samples.offers.Offer.Offer()" + fullName: "com.microsoft.samples.offers.Offer.Offer()" + name: "Offer()" + nameWithType: "Offer.Offer()" + summary: "Initializes a new instance of the Offer class." + syntax: "public Offer()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getReselleeQualifications.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getReselleeQualifications.yml new file mode 100644 index 0000000..f6420ec --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getReselleeQualifications.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.offers.Offer.getReselleeQualifications*" +fullName: "com.microsoft.samples.offers.Offer.getReselleeQualifications" +name: "getReselleeQualifications" +nameWithType: "Offer.getReselleeQualifications" +members: +- uid: "com.microsoft.samples.offers.Offer.getReselleeQualifications()" + fullName: "com.microsoft.samples.offers.Offer.getReselleeQualifications()" + name: "getReselleeQualifications()" + nameWithType: "Offer.getReselleeQualifications()" + syntax: "public String[] getReselleeQualifications()" + returns: + type: " []" +type: "method" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getResellerQualifications.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getResellerQualifications.yml new file mode 100644 index 0000000..a384939 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.getResellerQualifications.yml @@ -0,0 +1,16 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.offers.Offer.getResellerQualifications*" +fullName: "com.microsoft.samples.offers.Offer.getResellerQualifications" +name: "getResellerQualifications" +nameWithType: "Offer.getResellerQualifications" +members: +- uid: "com.microsoft.samples.offers.Offer.getResellerQualifications()" + fullName: "com.microsoft.samples.offers.Offer.getResellerQualifications()" + name: "getResellerQualifications()" + nameWithType: "Offer.getResellerQualifications()" + syntax: "public String[] getResellerQualifications()" + returns: + type: " []" +type: "method" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setReselleeQualifications.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setReselleeQualifications.yml new file mode 100644 index 0000000..16ac563 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setReselleeQualifications.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.offers.Offer.setReselleeQualifications*" +fullName: "com.microsoft.samples.offers.Offer.setReselleeQualifications" +name: "setReselleeQualifications" +nameWithType: "Offer.setReselleeQualifications" +members: +- uid: "com.microsoft.samples.offers.Offer.setReselleeQualifications(java.lang.String[])" + fullName: "com.microsoft.samples.offers.Offer.setReselleeQualifications(String[] value)" + name: "setReselleeQualifications(String[] value)" + nameWithType: "Offer.setReselleeQualifications(String[] value)" + parameters: + - name: "value" + type: " []" + syntax: "public void setReselleeQualifications(String[] value)" +type: "method" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setResellerQualifications.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setResellerQualifications.yml new file mode 100644 index 0000000..026abde --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.setResellerQualifications.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.offers.Offer.setResellerQualifications*" +fullName: "com.microsoft.samples.offers.Offer.setResellerQualifications" +name: "setResellerQualifications" +nameWithType: "Offer.setResellerQualifications" +members: +- uid: "com.microsoft.samples.offers.Offer.setResellerQualifications(java.lang.String[])" + fullName: "com.microsoft.samples.offers.Offer.setResellerQualifications(String[] value)" + name: "setResellerQualifications(String[] value)" + nameWithType: "Offer.setResellerQualifications(String[] value)" + parameters: + - name: "value" + type: " []" + syntax: "public void setResellerQualifications(String[] value)" +type: "method" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.yml index 674bafa..81c1cef 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.Offer.yml @@ -1,188 +1,31 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.offers.Offer" - id: "Offer" - parent: "com.microsoft.samples.offers" - children: - - "com.microsoft.samples.offers.Offer.Offer()" - - "com.microsoft.samples.offers.Offer.getReselleeQualifications()" - - "com.microsoft.samples.offers.Offer.getResellerQualifications()" - - "com.microsoft.samples.offers.Offer.setReselleeQualifications(java.lang.String[])" - - "com.microsoft.samples.offers.Offer.setResellerQualifications(java.lang.String[])" - langs: - - "java" - name: "Offer" - nameWithType: "Offer" - fullName: "com.microsoft.samples.offers.Offer" - type: "Class" - package: "com.microsoft.samples.offers" - summary: "Represents a form of product availability to customer" - syntax: - content: "public class Offer" - inheritance: - - "java.lang.Object" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.toString()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" -- uid: "com.microsoft.samples.offers.Offer.Offer()" - id: "Offer()" - parent: "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "Offer()" - nameWithType: "Offer.Offer()" - fullName: "com.microsoft.samples.offers.Offer.Offer()" - overload: "com.microsoft.samples.offers.Offer.Offer*" - type: "Constructor" - package: "com.microsoft.samples.offers" - summary: "Initializes a new instance of the Offer class." - syntax: - content: "public Offer()" -- uid: "com.microsoft.samples.offers.Offer.getReselleeQualifications()" - id: "getReselleeQualifications()" - parent: "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "getReselleeQualifications()" - nameWithType: "Offer.getReselleeQualifications()" - fullName: "com.microsoft.samples.offers.Offer.getReselleeQualifications()" - overload: "com.microsoft.samples.offers.Offer.getReselleeQualifications*" - type: "Method" - package: "com.microsoft.samples.offers" - syntax: - content: "public String[] getReselleeQualifications()" - return: - type: "java.lang.String[]" -- uid: "com.microsoft.samples.offers.Offer.getResellerQualifications()" - id: "getResellerQualifications()" - parent: "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "getResellerQualifications()" - nameWithType: "Offer.getResellerQualifications()" - fullName: "com.microsoft.samples.offers.Offer.getResellerQualifications()" - overload: "com.microsoft.samples.offers.Offer.getResellerQualifications*" - type: "Method" - package: "com.microsoft.samples.offers" - syntax: - content: "public String[] getResellerQualifications()" - return: - type: "java.lang.String[]" -- uid: "com.microsoft.samples.offers.Offer.setReselleeQualifications(java.lang.String[])" - id: "setReselleeQualifications(java.lang.String[])" - parent: "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "setReselleeQualifications(String[] value)" - nameWithType: "Offer.setReselleeQualifications(String[] value)" - fullName: "com.microsoft.samples.offers.Offer.setReselleeQualifications(String[] value)" - overload: "com.microsoft.samples.offers.Offer.setReselleeQualifications*" - type: "Method" - package: "com.microsoft.samples.offers" - syntax: - content: "public void setReselleeQualifications(String[] value)" - parameters: - - id: "value" - type: "java.lang.String[]" -- uid: "com.microsoft.samples.offers.Offer.setResellerQualifications(java.lang.String[])" - id: "setResellerQualifications(java.lang.String[])" - parent: "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "setResellerQualifications(String[] value)" - nameWithType: "Offer.setResellerQualifications(String[] value)" - fullName: "com.microsoft.samples.offers.Offer.setResellerQualifications(String[] value)" - overload: "com.microsoft.samples.offers.Offer.setResellerQualifications*" - type: "Method" - package: "com.microsoft.samples.offers" - syntax: - content: "public void setResellerQualifications(String[] value)" - parameters: - - id: "value" - type: "java.lang.String[]" -references: -- uid: "com.microsoft.samples.offers.Offer.Offer*" - name: "Offer" - nameWithType: "Offer.Offer" - fullName: "com.microsoft.samples.offers.Offer.Offer" - package: "com.microsoft.samples.offers" -- uid: "java.lang.String[]" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" - - name: "[]" - fullName: "[]" -- uid: "com.microsoft.samples.offers.Offer.getResellerQualifications*" - name: "getResellerQualifications" - nameWithType: "Offer.getResellerQualifications" - fullName: "com.microsoft.samples.offers.Offer.getResellerQualifications" - package: "com.microsoft.samples.offers" -- uid: "com.microsoft.samples.offers.Offer.setResellerQualifications*" - name: "setResellerQualifications" - nameWithType: "Offer.setResellerQualifications" - fullName: "com.microsoft.samples.offers.Offer.setResellerQualifications" - package: "com.microsoft.samples.offers" -- uid: "com.microsoft.samples.offers.Offer.getReselleeQualifications*" - name: "getReselleeQualifications" - nameWithType: "Offer.getReselleeQualifications" - fullName: "com.microsoft.samples.offers.Offer.getReselleeQualifications" - package: "com.microsoft.samples.offers" -- uid: "com.microsoft.samples.offers.Offer.setReselleeQualifications*" - name: "setReselleeQualifications" - nameWithType: "Offer.setReselleeQualifications" - fullName: "com.microsoft.samples.offers.Offer.setReselleeQualifications" - package: "com.microsoft.samples.offers" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Object.toString()" - name: "Object.toString()" - nameWithType: "Object.toString()" - fullName: "java.lang.Object.toString()" +### YamlMime:JavaType +uid: "com.microsoft.samples.offers.Offer" +fullName: "com.microsoft.samples.offers.Offer" +name: "Offer" +nameWithType: "Offer" +summary: "Represents a form of product availability to customer" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class Offer" +constructors: +- "com.microsoft.samples.offers.Offer.Offer()" +methods: +- "com.microsoft.samples.offers.Offer.getReselleeQualifications()" +- "com.microsoft.samples.offers.Offer.getResellerQualifications()" +- "com.microsoft.samples.offers.Offer.setReselleeQualifications(java.lang.String[])" +- "com.microsoft.samples.offers.Offer.setResellerQualifications(java.lang.String[])" +type: "class" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.yml index d046aa5..61b6351 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.offers.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.offers.yml @@ -1,19 +1,8 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.offers" - id: "offers" - children: - - "com.microsoft.samples.offers.Offer" - langs: - - "java" - name: "com.microsoft.samples.offers" - nameWithType: "com.microsoft.samples.offers" - fullName: "com.microsoft.samples.offers" - type: "Namespace" - syntax: - content: "package com.microsoft.samples.offers" -references: -- uid: "com.microsoft.samples.offers.Offer" - name: "Offer" - nameWithType: "Offer" - fullName: "com.microsoft.samples.offers.Offer" +### YamlMime:JavaPackage +uid: "com.microsoft.samples.offers" +fullName: "com.microsoft.samples.offers" +name: "com.microsoft.samples.offers" +classes: +- "com.microsoft.samples.offers.Offer" +metadata: {} +package: "com.microsoft.samples.offers" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage(package).yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage(package).yml index 89d9b4c..f4bfb74 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage(package).yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage(package).yml @@ -1,45 +1,17 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.subpackage" - id: "subpackage" - children: - - "com.microsoft.samples.subpackage.CustomException" - - "com.microsoft.samples.subpackage.Display" - - "com.microsoft.samples.subpackage.Person" - - "com.microsoft.samples.subpackage.Person.IdentificationInfo" - - "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - - "com.microsoft.samples.subpackage.Tuple" - langs: - - "java" - name: "com.microsoft.samples.subpackage" - nameWithType: "com.microsoft.samples.subpackage" - fullName: "com.microsoft.samples.subpackage" - type: "Namespace" - summary: "This subpackage contains the sample set of classes for testing DocFx doclet." - syntax: - content: "package com.microsoft.samples.subpackage" -references: -- uid: "com.microsoft.samples.subpackage.CustomException" - name: "CustomException" - nameWithType: "CustomException" - fullName: "com.microsoft.samples.subpackage.CustomException" -- uid: "com.microsoft.samples.subpackage.Display" - name: "Display " - nameWithType: "Display " - fullName: "com.microsoft.samples.subpackage.Display " -- uid: "com.microsoft.samples.subpackage.Person" - name: "Person " - nameWithType: "Person " - fullName: "com.microsoft.samples.subpackage.Person " -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo" - name: "Person.IdentificationInfo" - nameWithType: "Person.IdentificationInfo" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo" -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - name: "Person.IdentificationInfo.Gender" - nameWithType: "Person.IdentificationInfo.Gender" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" -- uid: "com.microsoft.samples.subpackage.Tuple" - name: "Tuple " - nameWithType: "Tuple " - fullName: "com.microsoft.samples.subpackage.Tuple " +### YamlMime:JavaPackage +uid: "com.microsoft.samples.subpackage" +fullName: "com.microsoft.samples.subpackage" +name: "com.microsoft.samples.subpackage" +summary: "This subpackage contains the sample set of classes for testing DocFx doclet." +classes: +- "com.microsoft.samples.subpackage.CustomException" +- "com.microsoft.samples.subpackage.HttpStatusCode" +- "com.microsoft.samples.subpackage.Person" +- "com.microsoft.samples.subpackage.Person.IdentificationInfo" +- "com.microsoft.samples.subpackage.Tuple" +enums: +- "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" +interfaces: +- "com.microsoft.samples.subpackage.Display" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.CustomException.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.CustomException.yml new file mode 100644 index 0000000..84abeaa --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.CustomException.yml @@ -0,0 +1,17 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.CustomException.CustomException*" +fullName: "com.microsoft.samples.subpackage.CustomException.CustomException" +name: "CustomException" +nameWithType: "CustomException.CustomException" +members: +- uid: "com.microsoft.samples.subpackage.CustomException.CustomException(java.lang.String)" + fullName: "com.microsoft.samples.subpackage.CustomException.CustomException(String message)" + name: "CustomException(String message)" + nameWithType: "CustomException.CustomException(String message)" + parameters: + - name: "message" + type: " " + syntax: "public CustomException(String message)" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.makeSomething.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.makeSomething.yml new file mode 100644 index 0000000..5adf917 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.makeSomething.yml @@ -0,0 +1,18 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.CustomException.makeSomething*" +fullName: "com.microsoft.samples.subpackage.CustomException.makeSomething" +name: "makeSomething" +nameWithType: "CustomException.makeSomething" +members: +- uid: "com.microsoft.samples.subpackage.CustomException.makeSomething()" + fullName: "com.microsoft.samples.subpackage.CustomException.makeSomething()" + name: "makeSomething()" + nameWithType: "CustomException.makeSomething()" + summary: "We need to have such method that throw exception declared in the same class" + syntax: "public void makeSomething()" + exceptions: + - description: "with reason message" + type: " " +type: "method" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.yml index c61889d..d3c13a2 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.CustomException.yml @@ -1,190 +1,41 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.subpackage.CustomException" - id: "CustomException" - parent: "com.microsoft.samples.subpackage" - children: - - "com.microsoft.samples.subpackage.CustomException.CustomException(java.lang.String)" - - "com.microsoft.samples.subpackage.CustomException.makeSomething()" - langs: - - "java" - name: "CustomException" - nameWithType: "CustomException" - fullName: "com.microsoft.samples.subpackage.CustomException" - type: "Class" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public class CustomException extends Exception" - inheritance: - - "java.lang.Object" - - "java.lang.Throwable" - - "java.lang.Exception" - inheritedMembers: - - "java.lang.Object.clone()" - - "java.lang.Object.equals(java.lang.Object)" - - "java.lang.Object.finalize()" - - "java.lang.Object.getClass()" - - "java.lang.Object.hashCode()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" - - "java.lang.Throwable.addSuppressed(java.lang.Throwable)" - - "java.lang.Throwable.fillInStackTrace()" - - "java.lang.Throwable.getCause()" - - "java.lang.Throwable.getLocalizedMessage()" - - "java.lang.Throwable.getMessage()" - - "java.lang.Throwable.getStackTrace()" - - "java.lang.Throwable.getSuppressed()" - - "java.lang.Throwable.initCause(java.lang.Throwable)" - - "java.lang.Throwable.printStackTrace()" - - "java.lang.Throwable.printStackTrace(java.io.PrintStream)" - - "java.lang.Throwable.printStackTrace(java.io.PrintWriter)" - - "java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])" - - "java.lang.Throwable.toString()" -- uid: "com.microsoft.samples.subpackage.CustomException.CustomException(java.lang.String)" - id: "CustomException(java.lang.String)" - parent: "com.microsoft.samples.subpackage.CustomException" - langs: - - "java" - name: "CustomException(String message)" - nameWithType: "CustomException.CustomException(String message)" - fullName: "com.microsoft.samples.subpackage.CustomException.CustomException(String message)" - overload: "com.microsoft.samples.subpackage.CustomException.CustomException*" - type: "Constructor" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public CustomException(String message)" - parameters: - - id: "message" - type: "java.lang.String" -- uid: "com.microsoft.samples.subpackage.CustomException.makeSomething()" - id: "makeSomething()" - parent: "com.microsoft.samples.subpackage.CustomException" - langs: - - "java" - name: "makeSomething()" - nameWithType: "CustomException.makeSomething()" - fullName: "com.microsoft.samples.subpackage.CustomException.makeSomething()" - overload: "com.microsoft.samples.subpackage.CustomException.makeSomething*" - type: "Method" - package: "com.microsoft.samples.subpackage" - summary: "We need to have such method that throw exception declared in the same class" - syntax: - content: "public void makeSomething()" - exceptions: - - type: "com.microsoft.samples.subpackage.CustomException" - description: "with reason message" -references: -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.subpackage.CustomException.CustomException*" - name: "CustomException" - nameWithType: "CustomException.CustomException" - fullName: "com.microsoft.samples.subpackage.CustomException.CustomException" - package: "com.microsoft.samples.subpackage" -- uid: "com.microsoft.samples.subpackage.CustomException.makeSomething*" - name: "makeSomething" - nameWithType: "CustomException.makeSomething" - fullName: "com.microsoft.samples.subpackage.CustomException.makeSomething" - package: "com.microsoft.samples.subpackage" -- uid: "java.lang.Exception" - name: "Exception" - nameWithType: "Exception" - fullName: "java.lang.Exception" -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Throwable.printStackTrace(java.io.PrintWriter)" - name: "Throwable.printStackTrace(PrintWriter)" - nameWithType: "Throwable.printStackTrace(PrintWriter)" - fullName: "java.lang.Throwable.printStackTrace(java.io.PrintWriter)" -- uid: "java.lang.Throwable.getCause()" - name: "Throwable.getCause()" - nameWithType: "Throwable.getCause()" - fullName: "java.lang.Throwable.getCause()" -- uid: "java.lang.Object.finalize()" - name: "Object.finalize()" - nameWithType: "Object.finalize()" - fullName: "java.lang.Object.finalize()" -- uid: "java.lang.Throwable.addSuppressed(java.lang.Throwable)" - name: "Throwable.addSuppressed(Throwable)" - nameWithType: "Throwable.addSuppressed(Throwable)" - fullName: "java.lang.Throwable.addSuppressed(java.lang.Throwable)" -- uid: "java.lang.Throwable.fillInStackTrace()" - name: "Throwable.fillInStackTrace()" - nameWithType: "Throwable.fillInStackTrace()" - fullName: "java.lang.Throwable.fillInStackTrace()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Object.clone()" - name: "Object.clone()" - nameWithType: "Object.clone()" - fullName: "java.lang.Object.clone()" -- uid: "java.lang.Throwable.initCause(java.lang.Throwable)" - name: "Throwable.initCause(Throwable)" - nameWithType: "Throwable.initCause(Throwable)" - fullName: "java.lang.Throwable.initCause(java.lang.Throwable)" -- uid: "java.lang.Object.equals(java.lang.Object)" - name: "Object.equals(Object)" - nameWithType: "Object.equals(Object)" - fullName: "java.lang.Object.equals(java.lang.Object)" -- uid: "java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])" - name: "Throwable.setStackTrace(StackTraceElement[])" - nameWithType: "Throwable.setStackTrace(StackTraceElement[])" - fullName: "java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])" -- uid: "java.lang.Throwable.toString()" - name: "Throwable.toString()" - nameWithType: "Throwable.toString()" - fullName: "java.lang.Throwable.toString()" -- uid: "java.lang.Throwable.printStackTrace(java.io.PrintStream)" - name: "Throwable.printStackTrace(PrintStream)" - nameWithType: "Throwable.printStackTrace(PrintStream)" - fullName: "java.lang.Throwable.printStackTrace(java.io.PrintStream)" -- uid: "java.lang.Throwable.getMessage()" - name: "Throwable.getMessage()" - nameWithType: "Throwable.getMessage()" - fullName: "java.lang.Throwable.getMessage()" -- uid: "java.lang.Throwable.getSuppressed()" - name: "Throwable.getSuppressed()" - nameWithType: "Throwable.getSuppressed()" - fullName: "java.lang.Throwable.getSuppressed()" -- uid: "java.lang.Object.getClass()" - name: "Object.getClass()" - nameWithType: "Object.getClass()" - fullName: "java.lang.Object.getClass()" -- uid: "java.lang.Object.wait(long)" - name: "Object.wait(long)" - nameWithType: "Object.wait(long)" - fullName: "java.lang.Object.wait(long)" -- uid: "java.lang.Object.hashCode()" - name: "Object.hashCode()" - nameWithType: "Object.hashCode()" - fullName: "java.lang.Object.hashCode()" -- uid: "java.lang.Throwable.getStackTrace()" - name: "Throwable.getStackTrace()" - nameWithType: "Throwable.getStackTrace()" - fullName: "java.lang.Throwable.getStackTrace()" -- uid: "java.lang.Object.wait(long,int)" - name: "Object.wait(long,int)" - nameWithType: "Object.wait(long,int)" - fullName: "java.lang.Object.wait(long,int)" -- uid: "java.lang.Throwable.getLocalizedMessage()" - name: "Throwable.getLocalizedMessage()" - nameWithType: "Throwable.getLocalizedMessage()" - fullName: "java.lang.Throwable.getLocalizedMessage()" -- uid: "java.lang.Throwable.printStackTrace()" - name: "Throwable.printStackTrace()" - nameWithType: "Throwable.printStackTrace()" - fullName: "java.lang.Throwable.printStackTrace()" +### YamlMime:JavaType +uid: "com.microsoft.samples.subpackage.CustomException" +fullName: "com.microsoft.samples.subpackage.CustomException" +name: "CustomException" +nameWithType: "CustomException" +inheritances: +- " " +- " " +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +- "java.lang.Throwable.addSuppressed(java.lang.Throwable)" +- "java.lang.Throwable.fillInStackTrace()" +- "java.lang.Throwable.getCause()" +- "java.lang.Throwable.getLocalizedMessage()" +- "java.lang.Throwable.getMessage()" +- "java.lang.Throwable.getStackTrace()" +- "java.lang.Throwable.getSuppressed()" +- "java.lang.Throwable.initCause(java.lang.Throwable)" +- "java.lang.Throwable.printStackTrace()" +- "java.lang.Throwable.printStackTrace(java.io.PrintStream)" +- "java.lang.Throwable.printStackTrace(java.io.PrintWriter)" +- "java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])" +- "java.lang.Throwable.toString()" +syntax: "public class CustomException extends Exception" +constructors: +- "com.microsoft.samples.subpackage.CustomException.CustomException(java.lang.String)" +methods: +- "com.microsoft.samples.subpackage.CustomException.makeSomething()" +type: "class" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.hide.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.hide.yml new file mode 100644 index 0000000..e26eb34 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.hide.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.Display.hide*" +fullName: "com.microsoft.samples.subpackage.Display .hide" +name: "hide" +nameWithType: "Display .hide" +members: +- uid: "com.microsoft.samples.subpackage.Display.hide()" + fullName: "com.microsoft.samples.subpackage.Display .hide()" + name: "hide()" + nameWithType: "Display .hide()" + syntax: "public abstract void hide()" +type: "method" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.show.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.show.yml new file mode 100644 index 0000000..da82b2c --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.show.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.Display.show*" +fullName: "com.microsoft.samples.subpackage.Display .show" +name: "show" +nameWithType: "Display .show" +members: +- uid: "com.microsoft.samples.subpackage.Display.show()" + fullName: "com.microsoft.samples.subpackage.Display .show()" + name: "show()" + nameWithType: "Display .show()" + syntax: "public abstract void show()" +type: "method" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.yml index 138d799..55c93f2 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Display.yml @@ -1,85 +1,19 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.subpackage.Display" - id: "Display" - parent: "com.microsoft.samples.subpackage" - children: - - "com.microsoft.samples.subpackage.Display.hide()" - - "com.microsoft.samples.subpackage.Display.show()" - langs: - - "java" - name: "Display " - nameWithType: "Display " - fullName: "com.microsoft.samples.subpackage.Display " - type: "Interface" - package: "com.microsoft.samples.subpackage" - summary: "Do you see some `First` code block?\n\nOr this `Second` code block?" - syntax: - content: "public interface Display extends Serializable, List >" - typeParameters: - - id: "T" - - id: "R" - implements: - - "java.io.Serializable" - - "java.util.List >" -- uid: "com.microsoft.samples.subpackage.Display.hide()" - id: "hide()" - parent: "com.microsoft.samples.subpackage.Display" - langs: - - "java" - name: "hide()" - nameWithType: "Display .hide()" - fullName: "com.microsoft.samples.subpackage.Display .hide()" - overload: "com.microsoft.samples.subpackage.Display.hide*" - type: "Method" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public abstract void hide()" -- uid: "com.microsoft.samples.subpackage.Display.show()" - id: "show()" - parent: "com.microsoft.samples.subpackage.Display" - langs: - - "java" - name: "show()" - nameWithType: "Display .show()" - fullName: "com.microsoft.samples.subpackage.Display .show()" - overload: "com.microsoft.samples.subpackage.Display.show*" - type: "Method" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public abstract void show()" -references: -- uid: "com.microsoft.samples.subpackage.Display.show*" - name: "show" - nameWithType: "Display .show" - fullName: "com.microsoft.samples.subpackage.Display .show" - package: "com.microsoft.samples.subpackage" -- uid: "com.microsoft.samples.subpackage.Display.hide*" - name: "hide" - nameWithType: "Display .hide" - fullName: "com.microsoft.samples.subpackage.Display .hide" - package: "com.microsoft.samples.subpackage" -- uid: "T" - name: "T" - nameWithType: "T" - fullName: "T" -- uid: "R" - name: "R" - nameWithType: "R" - fullName: "R" -- uid: "java.util.List >" - name: "List >" - nameWithType: "List >" - fullName: "java.util.List >" -- uid: "java.io.Serializable" - name: "Serializable" - nameWithType: "Serializable" - fullName: "java.io.Serializable" -- uid: "java.util.List" - name: "List" - nameWithType: "List" - fullName: "java.util.List" -- uid: "com.microsoft.samples.subpackage.Person" - name: "Person" - nameWithType: "Person" - fullName: "com.microsoft.samples.subpackage.Person" +### YamlMime:JavaType +uid: "com.microsoft.samples.subpackage.Display" +fullName: "com.microsoft.samples.subpackage.Display " +name: "Display " +nameWithType: "Display " +summary: "Do you see some `First` code block?\n\nOr this `Second` code block?" +syntax: "public interface Display extends Serializable, List >" +methods: +- "com.microsoft.samples.subpackage.Display.hide()" +- "com.microsoft.samples.subpackage.Display.show()" +type: "interface" +typeParameters: +- name: "T" +- name: "R" +implements: +- " " +- " < < >>" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST.yml new file mode 100644 index 0000000..2bc33a2 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST" +name: "BADREQUEST" +nameWithType: "HttpStatusCode.BADREQUEST" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST" + name: "BADREQUEST" + nameWithType: "HttpStatusCode.BADREQUEST" + syntax: "public static final int BADREQUEST" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT.yml new file mode 100644 index 0000000..4d3908b --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT" +name: "CONFLICT" +nameWithType: "HttpStatusCode.CONFLICT" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT" + name: "CONFLICT" + nameWithType: "HttpStatusCode.CONFLICT" + syntax: "public static final int CONFLICT" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED.yml new file mode 100644 index 0000000..48e36ed --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED" +name: "EXPECTATIONFAILED" +nameWithType: "HttpStatusCode.EXPECTATIONFAILED" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED" + name: "EXPECTATIONFAILED" + nameWithType: "HttpStatusCode.EXPECTATIONFAILED" + syntax: "public static final int EXPECTATIONFAILED" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN.yml new file mode 100644 index 0000000..b70a6e7 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN" +name: "FORBIDDEN" +nameWithType: "HttpStatusCode.FORBIDDEN" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN" + name: "FORBIDDEN" + nameWithType: "HttpStatusCode.FORBIDDEN" + syntax: "public static final int FORBIDDEN" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode.yml new file mode 100644 index 0000000..c9dde31 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode*" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode" +name: "HttpStatusCode" +nameWithType: "HttpStatusCode.HttpStatusCode" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode()" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode()" + name: "HttpStatusCode()" + nameWithType: "HttpStatusCode.HttpStatusCode()" + syntax: "public HttpStatusCode()" +type: "constructor" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND.yml new file mode 100644 index 0000000..973480c --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND" +name: "NOTFOUND" +nameWithType: "HttpStatusCode.NOTFOUND" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND" + name: "NOTFOUND" + nameWithType: "HttpStatusCode.NOTFOUND" + syntax: "public static final int NOTFOUND" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE.yml new file mode 100644 index 0000000..04a80e5 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE" +name: "SERVICEUNAVAILABLE" +nameWithType: "HttpStatusCode.SERVICEUNAVAILABLE" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE" + name: "SERVICEUNAVAILABLE" + nameWithType: "HttpStatusCode.SERVICEUNAVAILABLE" + syntax: "public static final int SERVICEUNAVAILABLE" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED.yml new file mode 100644 index 0000000..c8c9294 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED.yml @@ -0,0 +1,14 @@ +### YamlMime:JavaMember +uid: "com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED" +name: "UNAUTHORIZED" +nameWithType: "HttpStatusCode.UNAUTHORIZED" +members: +- uid: "com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED" + fullName: "com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED" + name: "UNAUTHORIZED" + nameWithType: "HttpStatusCode.UNAUTHORIZED" + syntax: "public static final int UNAUTHORIZED" +type: "field" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.yml new file mode 100644 index 0000000..b77b833 --- /dev/null +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.HttpStatusCode.yml @@ -0,0 +1,33 @@ +### YamlMime:JavaType +uid: "com.microsoft.samples.subpackage.HttpStatusCode" +fullName: "com.microsoft.samples.subpackage.HttpStatusCode" +name: "HttpStatusCode" +nameWithType: "HttpStatusCode" +inheritances: +- " " +inheritedMembers: +- "java.lang.Object.clone()" +- "java.lang.Object.equals(java.lang.Object)" +- "java.lang.Object.finalize()" +- "java.lang.Object.getClass()" +- "java.lang.Object.hashCode()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.toString()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public class HttpStatusCode" +constructors: +- "com.microsoft.samples.subpackage.HttpStatusCode.HttpStatusCode()" +fields: +- "com.microsoft.samples.subpackage.HttpStatusCode.BADREQUEST" +- "com.microsoft.samples.subpackage.HttpStatusCode.CONFLICT" +- "com.microsoft.samples.subpackage.HttpStatusCode.EXPECTATIONFAILED" +- "com.microsoft.samples.subpackage.HttpStatusCode.FORBIDDEN" +- "com.microsoft.samples.subpackage.HttpStatusCode.NOTFOUND" +- "com.microsoft.samples.subpackage.HttpStatusCode.SERVICEUNAVAILABLE" +- "com.microsoft.samples.subpackage.HttpStatusCode.UNAUTHORIZED" +type: "class" +metadata: {} +package: "com.microsoft.samples.subpackage" diff --git a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.yml b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.yml index 38b17dc..e22d571 100644 --- a/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.yml +++ b/src/test/resources/expected-generated-files/com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.yml @@ -1,226 +1,56 @@ -### YamlMime:ManagedReference -items: -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - id: "Gender" - parent: "com.microsoft.samples.subpackage" - children: - - "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.FEMALE" - - "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.MALE" - - "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf(java.lang.String)" - - "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values()" - langs: - - "java" - name: "Person.IdentificationInfo.Gender" - nameWithType: "Person.IdentificationInfo.Gender" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - type: "Enum" - package: "com.microsoft.samples.subpackage" - summary: "Enum describes person's gender" - syntax: - content: "public enum Person.IdentificationInfo.Gender extends Enum " - inheritance: - - "java.lang.Object" - - "java.lang.Enum" - inheritedMembers: - - "java.lang.Enum. valueOf(java.lang.Class ,java.lang.String)" - - "java.lang.Enum.clone()" - - "java.lang.Enum.compareTo(E)" - - "java.lang.Enum.equals(java.lang.Object)" - - "java.lang.Enum.finalize()" - - "java.lang.Enum.getDeclaringClass()" - - "java.lang.Enum.hashCode()" - - "java.lang.Enum.name()" - - "java.lang.Enum.ordinal()" - - "java.lang.Enum.toString()" - - "java.lang.Object.getClass()" - - "java.lang.Object.notify()" - - "java.lang.Object.notifyAll()" - - "java.lang.Object.wait()" - - "java.lang.Object.wait(long)" - - "java.lang.Object.wait(long,int)" +### YamlMime:JavaEnum +uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" +fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" +name: "Person.IdentificationInfo.Gender" +nameWithType: "Person.IdentificationInfo.Gender" +summary: "Enum describes person's gender" +inheritances: +- " " +- " " +inheritedMembers: +- "java.lang.Enum. valueOf(java.lang.Class ,java.lang.String)" +- "java.lang.Enum.clone()" +- "java.lang.Enum.compareTo(E)" +- "java.lang.Enum.equals(java.lang.Object)" +- "java.lang.Enum.finalize()" +- "java.lang.Enum.getDeclaringClass()" +- "java.lang.Enum.hashCode()" +- "java.lang.Enum.name()" +- "java.lang.Enum.ordinal()" +- "java.lang.Enum.toString()" +- "java.lang.Object.getClass()" +- "java.lang.Object.notify()" +- "java.lang.Object.notifyAll()" +- "java.lang.Object.wait()" +- "java.lang.Object.wait(long)" +- "java.lang.Object.wait(long,int)" +syntax: "public enum Person.IdentificationInfo.Gender extends Enum " +fields: - uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.FEMALE" - id: "FEMALE" - parent: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - langs: - - "java" + fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.FEMALE" name: "FEMALE" nameWithType: "Person.IdentificationInfo.Gender.FEMALE" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.FEMALE" - type: "Field" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public static final Person.IdentificationInfo.Gender FEMALE" - return: - type: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.Gender()" - id: "Gender()" - parent: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - langs: - - "java" - name: "Gender()" - nameWithType: "Person.IdentificationInfo.Gender.Gender()" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.Gender()" - overload: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.Gender*" - type: "Constructor" - package: "com.microsoft.samples.subpackage" - syntax: - content: "private Gender()" - uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.MALE" - id: "MALE" - parent: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - langs: - - "java" + fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.MALE" name: "MALE" nameWithType: "Person.IdentificationInfo.Gender.MALE" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.MALE" - type: "Field" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public static final Person.IdentificationInfo.Gender MALE" - return: - type: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" +methods: - uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf(java.lang.String)" - id: "valueOf(java.lang.String)" - parent: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - langs: - - "java" + fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf(String name)" name: "valueOf(String name)" nameWithType: "Person.IdentificationInfo.Gender.valueOf(String name)" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf(String name)" - overload: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf*" - type: "Method" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public static Person.IdentificationInfo.Gender valueOf(String name)" - parameters: - - id: "name" - type: "java.lang.String" - return: - type: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" + parameters: + - name: "name" + type: " " + syntax: "public static Person.IdentificationInfo.Gender valueOf(String name)" + returns: + type: " " - uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values()" - id: "values()" - parent: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - langs: - - "java" + fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values()" name: "values()" nameWithType: "Person.IdentificationInfo.Gender.values()" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values()" - overload: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values*" - type: "Method" - package: "com.microsoft.samples.subpackage" - syntax: - content: "public static Person.IdentificationInfo.Gender[] values()" - return: - type: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender[]" -references: -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.Gender*" - name: "Gender" - nameWithType: "Person.IdentificationInfo.Gender.Gender" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.Gender" - package: "com.microsoft.samples.subpackage" -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender[]" - spec.java: - - uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - name: "Gender" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender" - - name: "[]" - fullName: "[]" -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values*" - name: "values" - nameWithType: "Person.IdentificationInfo.Gender.values" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.values" - package: "com.microsoft.samples.subpackage" -- uid: "java.lang.String" - spec.java: - - uid: "java.lang.String" - name: "String" - fullName: "java.lang.String" -- uid: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf*" - name: "valueOf" - nameWithType: "Person.IdentificationInfo.Gender.valueOf" - fullName: "com.microsoft.samples.subpackage.Person.IdentificationInfo.Gender.valueOf" - package: "com.microsoft.samples.subpackage" -- uid: "java.lang.Enum " - name: "Enum " - nameWithType: "Enum " - fullName: "java.lang.Enum " -- uid: "java.lang.Object.notify()" - name: "Object.notify()" - nameWithType: "Object.notify()" - fullName: "java.lang.Object.notify()" -- uid: "java.lang.Enum.toString()" - name: "Enum.toString()" - nameWithType: "Enum.toString()" - fullName: "java.lang.Enum.toString()" -- uid: "java.lang.Object.wait()" - name: "Object.wait()" - nameWithType: "Object.wait()" - fullName: "java.lang.Object.wait()" -- uid: "java.lang.Enum.clone()" - name: "Enum.clone()" - nameWithType: "Enum.clone()" - fullName: "java.lang.Enum.clone()" -- uid: "java.lang.Enum.finalize()" - name: "Enum.finalize()" - nameWithType: "Enum.finalize()" - fullName: "java.lang.Enum.finalize()" -- uid: "java.lang.Object.notifyAll()" - name: "Object.notifyAll()" - nameWithType: "Object.notifyAll()" - fullName: "java.lang.Object.notifyAll()" -- uid: "java.lang.Enum.compareTo(E)" - name: "Enum.compareTo(E)" - nameWithType: "Enum.compareTo(E)" - fullName: "java.lang.Enum.compareTo(E)" -- uid: "java.lang.Enum.name()" - name: "Enum.name()" - nameWithType: "Enum.name()" - fullName: "java.lang.Enum.name()" -- uid: "java.lang.Enum. valueOf(java.lang.Class ,java.lang.String)" - name: "Enum. valueOf(Class ,String)" - nameWithType: "Enum. valueOf(Class