Class Resource

  • All Implemented Interfaces:
    io.swagger.models.Model

    public class Resource
    extends io.swagger.models.ModelImpl
    Represents a Swagger Model that was mapped from a POJO. Each instance will be bound to a specific POJO class.
    • Field Summary

      • Fields inherited from class io.swagger.models.ModelImpl

        OBJECT
      • Fields inherited from class io.swagger.models.AbstractModel

        properties, required
    • Constructor Summary

      Constructors 
      Constructor Description
      Resource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(String attributeName, io.swagger.models.properties.Property attribute)  
      void addRelationship​(String relationshipName, io.swagger.models.properties.Property relationship)  
      Resource setSecurityDescription​(String description)  
      • Methods inherited from class io.swagger.models.ModelImpl

        _enum, _enum, additionalProperties, addRequired, allowEmptyValue, clone, description, discriminator, equals, example, format, getAdditionalProperties, getAllowEmptyValue, getDefaultValue, getDescription, getDiscriminator, getEnum, getExample, getFormat, getMaximum, getMinimum, getName, getSpecSpecifiedRequired, getType, getUniqueItems, hashCode, isSimple, maximum, minimum, name, property, required, setAdditionalProperties, setAllowEmptyValue, setDefaultValue, setDescription, setDiscriminator, setEnum, setExample, setFormat, setMaximum, setMinimum, setName, setSimple, setType, setUniqueItems, type, uniqueItems, xml
      • Methods inherited from class io.swagger.models.AbstractModel

        addProperty, cloneTo, getExclusiveMaximum, getExclusiveMinimum, getExternalDocs, getMaxLength, getMinLength, getMultipleOf, getPattern, getProperties, getReference, getRequired, getTitle, getVendorExtensions, getXml, setExclusiveMaximum, setExclusiveMinimum, setExternalDocs, setMaxLength, setMinLength, setMultipleOf, setPattern, setProperties, setReference, setRequired, setTitle, setVendorExtension, setVendorExtensions, setXml
    • Constructor Detail

      • Resource

        public Resource()
    • Method Detail

      • setSecurityDescription

        public Resource setSecurityDescription​(String description)
      • addAttribute

        public void addAttribute​(String attributeName,
                                 io.swagger.models.properties.Property attribute)
      • addRelationship

        public void addRelationship​(String relationshipName,
                                    io.swagger.models.properties.Property relationship)