Package com.wordnik.swagger.model

Examples of com.wordnik.swagger.model.ModelRef


    }
    ResolvedType collectionElementType = collectionElementType(type);
    String elementTypeName = typeName(collectionElementType);
    String qualifiedElementTypeName = simpleQualifiedTypeName(collectionElementType);
    if (!isBaseType(elementTypeName)) {
      return Option.apply(new ModelRef(null,
              Option.apply(elementTypeName), Option.apply(qualifiedElementTypeName)));
    } else {
      return Option.apply(new ModelRef(elementTypeName,
              Option.<String>empty(), Option.apply(qualifiedElementTypeName)));
    }
  }
View Full Code Here


        return qualifiedType;
    }

    @Override
    public ModelRef toSwaggerModel() {
        return new ModelRef(type, Utils.getOption(ref), Utils.getOption(qualifiedType));
    }
View Full Code Here

TOP

Related Classes of com.wordnik.swagger.model.ModelRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.