Class TypedAsset

    • Constructor Detail

      • TypedAsset

        public TypedAsset()
      • TypedAsset

        public TypedAsset​(java.lang.String name,
                          java.lang.String description)
      • TypedAsset

        public TypedAsset​(java.lang.String name,
                          java.lang.String description,
                          PropertyType type)
      • TypedAsset

        public TypedAsset​(java.lang.String name,
                          java.lang.String description,
                          PropertyType type,
                          PropertyType subType)
      • TypedAsset

        public TypedAsset​(java.lang.String name,
                          java.lang.String description,
                          PropertyType type,
                          java.lang.String subTypeRef)
    • Method Detail

      • getSubType

        public PropertyType getSubType()
        Gets the sub type of the asset. Sub type would hold sense in case of type being object or array
        Specified by:
        getSubType in interface ITypeAsset
        Returns:
      • getType

        public PropertyType getType()
        Gets the type of the Asset
        Specified by:
        getType in interface ITypeAsset
        Returns:
        this property's type.
      • getTypeRef

        public java.lang.String getTypeRef()
        Gets the type reference of the asset. In some cases property may be directly $ref instant of type Example "customer" : { "$ref" : "customer" }
        Specified by:
        getTypeRef in interface ITypeAsset
        Returns:
      • setTypeRef

        public void setTypeRef​(java.lang.String typeRef)
      • getSubTypeRef

        public java.lang.String getSubTypeRef()
        Gets the type reference of the asset. In some cases property may be directly $ref instant of type Example "account" : { "type" : "array", "items" : { "$ref" : "account" } }
        Specified by:
        getSubTypeRef in interface ITypeAsset
        Returns:
      • setSubTypeRef

        public void setSubTypeRef​(java.lang.String subTypeRef)
      • getMediaBinaryEncoding

        public java.lang.String getMediaBinaryEncoding()
        Gets the binary encoding for the media Example, could be base64
        Specified by:
        getMediaBinaryEncoding in interface ITypeAsset
        Returns:
      • getMediaType

        public java.lang.String getMediaType()
        Gets the media type, as mime type Example, could be "image/png"
        Specified by:
        getMediaType in interface ITypeAsset
        Returns:
      • setMediaType

        public void setMediaType​(java.lang.String mediaType)
      • setMediaBinaryEncoding

        public void setMediaBinaryEncoding​(java.lang.String mediaBinaryEncoding)