All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.odftoolkit.simple.meta.DocumentStatistic Maven / Gradle / Ivy

The newest version!
/************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * 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. You can also
 * obtain a copy of the License at http://odftoolkit.org/docs/license.txt
 *
 * 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 org.odftoolkit.simple.meta;

import org.odftoolkit.odfdom.dom.element.meta.MetaDocumentStatisticElement;

/**
 * DocumentStatistic feature specifies the statistics about
 * the document.
 * 
 */
public class DocumentStatistic {

	private MetaDocumentStatisticElement mDocStatistic;

	/**
	 * Constructor of DocumentStatistic feature.
	 * 
	 * @param docStatistic
	 *            the MetaDocumentStatisticElement represent this
	 *            feature
	 */
	public DocumentStatistic(MetaDocumentStatisticElement docStatistic) {
		this.mDocStatistic = docStatistic;
	}

	/**
	 * Get the instance of MetaDocumentStatisticElement which represents this
	 * feature.
	 * 
	 * @return an instance of MetaDocumentStatisticElement
	 */
	private MetaDocumentStatisticElement getMetaDocumentStatisticElement() {
		return mDocStatistic;
	}

	/**
	 * Receives the value of the odf dom attribute representation
	 * MetaCellCountAttribute.
	 * 
	 * @return the number of table cells contained in the current document;
	 * 

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaCellCountAttribute */ public Integer getCellCount() { return mDocStatistic.getMetaCellCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaCellCountAttribute . * * @param cellCount the number of table cells need to be set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaCellCountAttribute * */ public void setCellCount(int cellCount) { mDocStatistic.setMetaCellCountAttribute(cellCount); } /** * Receives the value of the odf dom attribute representation * MetaCharacterCountAttribute . * * @return the number of characters contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaCharacterCountAttribute */ public Integer getCharacterCount() { return mDocStatistic.getMetaCharacterCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaCharacterCountAttribute. * * @param characterCount the number of characters need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaCharacterCountAttribute */ public void setCharacterCount(Integer characterCount) { mDocStatistic.setMetaCharacterCountAttribute(characterCount); } /** * Receives the value of the odf dom attribute representation * MetaDrawCountAttribute . * * @return the number of all the graphic related element in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaDrawCountAttribute */ public Integer getDrawCount() { return mDocStatistic.getMetaDrawCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaDrawCountAttribute. * * @param drawCount the number of all the graphic related element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaDrawCountAttribute */ public void setDrawCount(Integer drawCount) { mDocStatistic.setMetaDrawCountAttribute(drawCount); } /** * Receives the value of the odf dom attribute representation * MetaFrameCountAttribute. * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaFrameCountAttribute */ public Integer getFrameCount() { return mDocStatistic.getMetaFrameCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaFrameCountAttribute . * * @param frameCount the number of element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaFrameCountAttribute */ public void setFrameCount(Integer frameCount) { mDocStatistic.setMetaFrameCountAttribute(frameCount); } /** * Receives the value of the odf dom attribute representation * MetaImageCountAttribute . * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaImageCountAttribute */ public Integer getImageCount() { return mDocStatistic.getMetaImageCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaImageCountAttribute . * * @param imageCount the number of element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaImageCountAttribute */ public void setImageCount(Integer imageCount) { mDocStatistic.setMetaImageCountAttribute(imageCount); } /** * Receives the value of the odf dom attribute representation * MetaNonWhitespaceCharacterCountAttribute. * * @return the number of non-whitespace characters contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaNonWhitespaceCharacterCountAttribute */ public Integer getNonWhitespaceCharacterCount() { return mDocStatistic.getMetaNonWhitespaceCharacterCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaNonWhitespaceCharacterCountAttribute. * * @param nonWhitespaceCharacterCount the number of non-whitespace characters need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaNonWhitespaceCharacterCountAttribute */ public void setNonWhitespaceCharacterCount( Integer nonWhitespaceCharacterCount) { mDocStatistic .setMetaNonWhitespaceCharacterCountAttribute(nonWhitespaceCharacterCount); } /** * Receives the value of the odf dom attribute representation * MetaObjectCountAttribute * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaObjectCountAttribute */ public Integer getObjectCount() { return mDocStatistic.getMetaObjectCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaObjectCountAttribute. * * @param objectCount the number of element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaObjectCountAttribute */ public void setObjectCount(Integer objectCount) { mDocStatistic.setMetaObjectCountAttribute(objectCount); } /** * Receives the value of the odf dom attribute representation * MetaOleObjectCountAttribute. * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaOleObjectCountAttribute */ public Integer getOleObjectCount() { return mDocStatistic.getMetaOleObjectCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaOleObjectCountAttribute. * * @param oleObjectCount the number of element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaOleObjectCountAttribute */ public void setOleObjectCount(Integer oleObjectCount) { mDocStatistic.setMetaOleObjectCountAttribute(oleObjectCount); } /** * Receives the value of the odf dom attribute representation * MetaPageCountAttribute. * * @return the number of page count contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaPageCountAttribute */ public Integer getPageCount() { return mDocStatistic.getMetaPageCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaPageCountAttribute. * * @param pageCount the number of page count need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaPageCountAttribute */ public void setPageCount(Integer pageCount) { mDocStatistic.setMetaPageCountAttribute(pageCount); } /** * Receives the value of the odf dom attribute representation * MetaParagraphCountAttribute. * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaParagraphCountAttribute */ public Integer getParagraphCount() { return mDocStatistic.getMetaParagraphCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaParagraphCountAttribute. * * @param paragraphCount the number of element need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaParagraphCountAttribute */ public void setParagraphCount(Integer paragraphCount) { mDocStatistic.setMetaParagraphCountAttribute(paragraphCount); } /** * Receives the value of the odf dom attribute representation * MetaRowCountAttribute. * * @return the number of lines contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaRowCountAttribute */ public Integer getRowCount() { return mDocStatistic.getMetaRowCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaRowCountAttribute. * * @param rowCount the number of lines need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaRowCountAttribute */ public void setRowCount(Integer rowCount) { mDocStatistic.setMetaRowCountAttribute(rowCount); } /** * Receives the value of the odf dom attribute representation * MetaSentenceCountAttribute. * * @return the number of sentences contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaSentenceCountAttribute. */ public Integer getSentenceCount() { return mDocStatistic.getMetaSentenceCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaSentenceCountAttribute. * * @param sentenceCount the number of sentences need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaSentenceCountAttribute. */ public void setSentenceCount(Integer sentenceCount) { mDocStatistic.setMetaSentenceCountAttribute(sentenceCount); } /** * Receives the value of the odf dom attribute representation * MetaSyllableCountAttribute. * * @return the number of syllables contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaSyllableCountAttribute. */ public Integer getSyllableCount() { return mDocStatistic.getMetaSyllableCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaSyllableCountAttribute. * * @param syllableCount the number of syllables need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaSyllableCountAttribute. */ public void setSyllableCount(Integer syllableCount) { mDocStatistic.setMetaSyllableCountAttribute(syllableCount); } /** * Receives the value of the odf dom attribute representation * MetaTableCountAttribute. * * @return the number of element contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaTableCountAttribute. */ public Integer getTableCount() { return mDocStatistic.getMetaTableCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaTableCountAttribute. * * @param tableCount the number of need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaTableCountAttribute. */ public void setTableCount(Integer tableCount) { mDocStatistic.setMetaTableCountAttribute(tableCount); } /** * Receives the value of the odf dom attribute representation * MetaWordCountAttribute. * * @return the number of words contained in the current document; *

* null, if the attribute is not set and no default value defined. * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaWordCountAttribute. */ public Integer getWordCount() { return mDocStatistic.getMetaWordCountAttribute(); } /** * Sets the value of odf dom attribute representation * MetaWordCountAttribute. * * @param wordCount the number of words need to set * @see org.odftoolkit.odfdom.dom.attribute.meta.MetaWordCountAttribute. */ public void setWordCount(Integer wordCount) { mDocStatistic.setMetaWordCountAttribute(wordCount); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy