aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-12-19 20:27:49 +0000
committerPJ Fanning <fanningpj@apache.org>2023-12-19 20:27:49 +0000
commitc7324182ad88401f01c25836a878aa7961f46f28 (patch)
tree35b70cf9a335e1be53ca40eba08e5a539638936b /poi-ooxml/src
parent53cfc2cc96708a999f15cbb17f9068db4c5a49b2 (diff)
downloadpoi-c7324182ad88401f01c25836a878aa7961f46f28.tar.gz
poi-c7324182ad88401f01c25836a878aa7961f46f28.zip
try to javadoc more unsupported methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java8
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java4
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java9
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java7
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java8
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSheet.java7
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSlide.java13
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java13
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java5
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java2
11 files changed, 76 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
index 9d9cccac01..07ae49b4c2 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
@@ -79,6 +79,7 @@ import org.apache.poi.poifs.crypt.CryptoFunctions;
import org.apache.poi.poifs.crypt.HashAlgorithm;
import org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet;
import org.apache.poi.poifs.crypt.dsig.services.RelationshipTransformService;
+import org.apache.poi.util.NotImplemented;
import org.apache.xml.security.Init;
import org.apache.xml.security.utils.XMLUtils;
import org.apache.xmlbeans.XmlOptions;
@@ -341,6 +342,12 @@ public class SignatureInfo {
return new SignaturePart(sigRelPart, SignatureInfo.this);
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
+ @NotImplemented
@Override
public void remove() {
throw new UnsupportedOperationException();
@@ -348,7 +355,6 @@ public class SignatureInfo {
}
-
/**
* Helper method for adding informations before the signing.
* Normally {@link #confirmSignature()} is sufficient to be used.
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
index 68bcc84503..8e89c3620d 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFDataSourcesFactory.java
@@ -383,6 +383,10 @@ public class XDDFDataSourcesFactory {
return (Number.class.isAssignableFrom(arrayComponentType));
}
+ /**
+ * @return the dataRange
+ * @throws UnsupportedOperationException if there is no Data Range Reference
+ */
@Override
public String getDataRangeReference() {
if (dataRange == null) {
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
index 77f7c0e61c..e1178470a4 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
@@ -53,6 +53,7 @@ import org.apache.poi.util.IOUtils;
import org.apache.poi.util.Internal;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.LittleEndianConsts;
+import org.apache.poi.util.NotImplemented;
import org.apache.poi.util.Units;
import org.apache.xmlbeans.XmlException;
import org.openxmlformats.schemas.presentationml.x2006.main.CTNotesMasterIdList;
@@ -670,8 +671,14 @@ public class XMLSlideShow extends POIXMLDocument
return _tableStyles;
}
- @SuppressWarnings("RedundantThrows")
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
@Override
+ @NotImplemented
+ @SuppressWarnings("RedundantThrows")
public MasterSheet<XSLFShape, XSLFTextParagraph> createMasterSheet() throws IOException {
// TODO: implement!
throw new UnsupportedOperationException();
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java
index c744f2ab73..0738aba408 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java
@@ -37,6 +37,7 @@ import org.apache.poi.openxml4j.opc.PackageRelationship;
import org.apache.poi.sl.usermodel.GraphicalFrame;
import org.apache.poi.sl.usermodel.ShapeType;
import org.apache.poi.util.Beta;
+import org.apache.poi.util.NotImplemented;
import org.apache.poi.util.Units;
import org.apache.xmlbeans.XmlCursor;
import org.apache.xmlbeans.XmlException;
@@ -60,6 +61,12 @@ public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFSh
super(shape,sheet);
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
+ @NotImplemented
public ShapeType getShapeType(){
throw new UnsupportedOperationException();
}
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java
index 4c56fe0a01..34e9e5a624 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java
@@ -33,6 +33,7 @@ import org.apache.poi.sl.draw.DrawPictureShape;
import org.apache.poi.sl.usermodel.GroupShape;
import org.apache.poi.sl.usermodel.PictureData;
import org.apache.poi.util.Beta;
+import org.apache.poi.util.NotImplemented;
import org.apache.poi.util.Units;
import org.apache.xmlbeans.XmlObject;
import org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties;
@@ -415,7 +416,14 @@ implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph> {
}
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
+ @NotImplemented
@Override
+ @SuppressWarnings("RedundantThrows")
public void addShape(XSLFShape shape) {
throw new UnsupportedOperationException(
"Adding a shape from a different container is not supported -"
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSheet.java
index 128fcbd41e..ef1891da2c 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSheet.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSheet.java
@@ -53,6 +53,7 @@ import org.apache.poi.sl.usermodel.Sheet;
import org.apache.poi.util.Beta;
import org.apache.poi.util.IOUtils;
import org.apache.poi.util.Internal;
+import org.apache.poi.util.NotImplemented;
import org.apache.poi.util.Units;
import org.apache.poi.xddf.usermodel.chart.XDDFChart;
import org.apache.xmlbeans.XmlCursor;
@@ -330,6 +331,12 @@ implements XSLFShapeContainer, Sheet<XSLFShape,XSLFTextParagraph> {
return getShapes().iterator();
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
+ @NotImplemented
@Override
public void addShape(XSLFShape shape) {
throw new UnsupportedOperationException(
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSlide.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSlide.java
index 0b9e6a3212..2e213b9de6 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSlide.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSlide.java
@@ -344,11 +344,19 @@ implements Slide<XSLFShape,XSLFTextParagraph> {
return this;
}
+ /**
+ * @return always returns false
+ */
@Override
public boolean getFollowMasterBackground() {
return false;
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
@Override
@NotImplemented
public void setFollowMasterBackground(boolean follow) {
@@ -361,6 +369,11 @@ implements Slide<XSLFShape,XSLFTextParagraph> {
return false;
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
@Override
@NotImplemented
public void setFollowMasterColourScheme(boolean follow) {
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java
index 42f719b52f..0e9a2db55f 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java
@@ -485,6 +485,12 @@ public class SXSSFRow implements Row, Comparable<SXSSFRow>
{
return iter.next();
}
+
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
@Override
public void remove()
{
@@ -517,6 +523,13 @@ public class SXSSFRow implements Row, Comparable<SXSSFRow>
throw new NoSuchElementException();
}
}
+
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
+ @NotImplemented
@Override
public void remove()
{
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
index 73d05fa187..f32ac9bb2c 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
@@ -2172,6 +2172,11 @@ public class SXSSFSheet implements Sheet, OoxmlSheetExtensions {
pr.setTabColor(color);
}
+ /**
+ * This method is not yet supported.
+ *
+ * @throws UnsupportedOperationException this method is not yet supported
+ */
@NotImplemented
@Override
public void shiftColumns(int startColumn, int endColumn, int n){
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
index 4483995cfb..84b6fba166 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
@@ -780,6 +780,8 @@ public class SXSSFWorkbook implements Workbook {
* Unexpected behavior may occur if sheets are reordered after iterator
* has been created. Support for the remove method may be added in the future
* if someone can figure out a reliable implementation.
+ *
+ * @throws UnsupportedOperationException
*/
@Override
public void remove() throws IllegalStateException {
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
index dbf5ab59b9..e43bba7321 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
@@ -1325,6 +1325,8 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su
* Unexpected behavior may occur if sheets are reordered after iterator
* has been created. Support for the remove method may be added in the future
* if someone can figure out a reliable implementation.
+ *
+ * @throws UnsupportedOperationException
*/
@Override
public void remove() throws IllegalStateException {