private static StructDataType handleStruct(NewDocumentType dt, SDDocumentType type) { StructDataType s = new StructDataType(type.getName()); for (Field f : type.getDocumentType().contentStruct().getFieldsThisTypeOnly()) { specialHandleAnnotationReference(dt, f); s.addField(f); } for (StructDataType inherited : type.getDocumentType().contentStruct().getInheritedTypes()) { s.inherit(inherited); } extractNestedTypes(dt, s); addType(dt, s); return s; }
fieldBuilder.detailedtype(((TensorDataType)field.getDataType()).getTensorType().toString()); for (StructDataType inherited : structType.getInheritedTypes()) { structBuilder.inherits(new Datatype.Structtype.Inherits.Builder().name(inherited.getName()));