Class CadfAttachment


  • public class CadfAttachment
    extends java.lang.Object
    The CADF Attachment type is used as one means to add domain-specific information to certain CADF entities or data types.
    • Constructor Detail

      • CadfAttachment

        public CadfAttachment​(java.lang.String contentType,
                              java.lang.Object content,
                              java.lang.String name)
        Create an attachment object with a user-friendly name.
        Parameters:
        contentType - URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"
        content - A container with attachment data. Required.
        name - An optional name that can be used to identify content (e.g. file name)
      • CadfAttachment

        public CadfAttachment​(java.lang.String contentType,
                              java.lang.Object content)
        Create an attachment object.
        Parameters:
        contentType - URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"
        content - A container with attachment data. Required.
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
      • setContentType

        public void setContentType​(java.lang.String contentType)
      • getContent

        public java.lang.Object getContent()
      • setContent

        public void setContent​(java.lang.Object content)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)