Class SerializerArtifact

    • Constructor Detail

      • SerializerArtifact

        public SerializerArtifact​(Artifact parent,
                                  String name,
                                  String ext,
                                  ArtifactType type,
                                  Serializer serializer,
                                  long lastModified)
        Constructs a new artifact that is based on a content serializer.
        Parameters:
        parent - the parent artifact
        name - the name of the artifact
        ext - the extension of the artifact
        type - the type of the artifact
        serializer - the serializer to use for the content
        lastModified - the last modified date
        Throws:
        IllegalArgumentException - if the type is not suitable.