com.formkiq.vision.document.DocumentContentImage Maven / Gradle / Ivy
/*
* Copyright (C) 2018 FormKiQ Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.formkiq.vision.document;
/**
* {@link DocumentSectionContent} for Images.
*
*/
public class DocumentContentImage implements DocumentSectionContent {
/** {@link String}. */
private String image;
/** {@link String}. */
private String format;
/** Image Width. */
private float width;
/** Image Height. */
private float height;
/**
* constructor.
*/
public DocumentContentImage() {
}
@Override
public String getType() {
return DocumentContentType.IMAGE.name().toLowerCase();
}
/**
* @return {@link String}
*/
public String getImage() {
return this.image;
}
/**
* @param imagestr {@link String}
*/
public void setImage(final String imagestr) {
this.image = imagestr;
}
/**
* @return {@link String}
*/
public String getFormat() {
return this.format;
}
/**
* @param imageformat {@link String}
*/
public void setFormat(final String imageformat) {
this.format = imageformat;
}
/**
* @return float
*/
public float getWidth() {
return this.width;
}
/**
* @param imagewidth float
*/
public void setWidth(final float imagewidth) {
this.width = imagewidth;
}
/**
* @return float
*/
public float getHeight() {
return this.height;
}
/**
* @param imageheight float
*/
public void setHeight(final float imageheight) {
this.height = imageheight;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy