mirror of https://github.com/apache/poi.git
Adjust some JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7c1d84c5d
commit
de1ad1c44c
|
@ -24,8 +24,6 @@ package org.apache.poi.common;
|
|||
* References to child objects are duplicated - references to parents are kept as-is and
|
||||
* might need to be replaced by the parent copy operation.
|
||||
*
|
||||
* @param <T> the implementing class itself
|
||||
*
|
||||
* @see <a href="https://www.artima.com/intv/bloch.html#part13">Copy Constructor versus Cloning</a>
|
||||
*/
|
||||
public interface Duplicatable {
|
||||
|
|
|
@ -43,7 +43,7 @@ public abstract class EscherProperty implements GenericRecord {
|
|||
/**
|
||||
* The id is distinct from the actual property number. The id includes the property number the blip id
|
||||
* flag and an indicator whether the property is complex or not.
|
||||
*
|
||||
*
|
||||
* @param id the combined id
|
||||
*/
|
||||
protected EscherProperty(short id) {
|
||||
|
@ -53,7 +53,7 @@ public abstract class EscherProperty implements GenericRecord {
|
|||
/**
|
||||
* Constructs a new escher property. The three parameters are combined to form a property
|
||||
* id.
|
||||
*
|
||||
*
|
||||
* @param propertyNumber the property number
|
||||
* @param isComplex true, if this is a complex property
|
||||
* @param isBlipId true, if this property is a blip id
|
||||
|
@ -68,7 +68,7 @@ public abstract class EscherProperty implements GenericRecord {
|
|||
* Constructs a new escher property. The three parameters are combined to form a property
|
||||
* id.
|
||||
*
|
||||
* @param propertyNumber the property number
|
||||
* @param type one of the defined property types
|
||||
* @param isComplex true, if this is a complex property
|
||||
* @param isBlipId true, if this property is a blip id
|
||||
*/
|
||||
|
@ -101,31 +101,31 @@ public abstract class EscherProperty implements GenericRecord {
|
|||
/**
|
||||
* Most properties are just 6 bytes in length. Override this if we're
|
||||
* dealing with complex properties.
|
||||
*
|
||||
*
|
||||
* @return size of this property (in bytes)
|
||||
*/
|
||||
public int getPropertySize() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Escher properties consist of a simple fixed length part and a complex variable length part.
|
||||
* The fixed length part is serialized first.
|
||||
*
|
||||
*
|
||||
* @param data the buffer to write to
|
||||
* @param pos the starting position
|
||||
*
|
||||
*
|
||||
* @return the length of the part
|
||||
*/
|
||||
abstract public int serializeSimplePart( byte[] data, int pos );
|
||||
|
||||
|
||||
/**
|
||||
* Escher properties consist of a simple fixed length part and a complex variable length part.
|
||||
* The fixed length part is serialized first.
|
||||
*
|
||||
*
|
||||
* @param data the buffer to write to
|
||||
* @param pos the starting position
|
||||
*
|
||||
*
|
||||
* @return the length of the part
|
||||
*/
|
||||
abstract public int serializeComplexPart( byte[] data, int pos );
|
||||
|
|
|
@ -37,7 +37,7 @@ public class EscherRGBProperty
|
|||
/**
|
||||
* Create an instance of an escher boolean property.
|
||||
*
|
||||
* @param propertyNumber The property type
|
||||
* @param propertyType one of the defined property types
|
||||
* @param rgbColor The 24 bit value of this rgb property
|
||||
*/
|
||||
public EscherRGBProperty( EscherPropertyTypes propertyType, int rgbColor ) {
|
||||
|
|
|
@ -29,9 +29,8 @@ import org.apache.poi.util.LittleEndian;
|
|||
* to a 32-bit value. Properties that can't be stored in only 32-bits are
|
||||
* stored as EscherComplexProperty objects.
|
||||
*/
|
||||
public class EscherSimpleProperty extends EscherProperty
|
||||
{
|
||||
private int propertyValue;
|
||||
public class EscherSimpleProperty extends EscherProperty {
|
||||
private final int propertyValue;
|
||||
|
||||
/**
|
||||
* The id is distinct from the actual property number. The id includes the property number the blip id
|
||||
|
@ -72,7 +71,7 @@ public class EscherSimpleProperty extends EscherProperty
|
|||
/**
|
||||
* Constructs a new escher property. The three parameters are combined to form a property id.
|
||||
*
|
||||
* @param propertyNumber the property number
|
||||
* @param type one of the defined property types
|
||||
* @param isComplex true, if its a complex property
|
||||
* @param isBlipId true, if its a blip
|
||||
* @param propertyValue the property value
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.poi.util.POILogger;
|
|||
* <p>Note 1 - will fail for many file formats if the POI Scratchpad jar is
|
||||
* not present on the runtime classpath</p>
|
||||
* <p>Note 2 - for text extractor creation across all formats, use
|
||||
* {@link org.apache.poi.ooxml.extractor.ExtractorFactory} contained within
|
||||
* {@link org.apache.poi.ooxml.extractor.POIXMLExtractorFactory} contained within
|
||||
* the OOXML jar.</p>
|
||||
* <p>Note 3 - rather than using this, for most cases you would be better
|
||||
* off switching to <a href="http://tika.apache.org">Apache Tika</a> instead!</p>
|
||||
|
@ -208,7 +208,7 @@ public final class ExtractorFactory {
|
|||
/**
|
||||
* Create the Extractor, if possible. Generally needs the Scratchpad jar.
|
||||
* Note that this won't check for embedded OOXML resources either, use
|
||||
* {@link org.apache.poi.ooxml.extractor.ExtractorFactory} for that.
|
||||
* {@link org.apache.poi.ooxml.extractor.POIXMLExtractorFactory} for that.
|
||||
*
|
||||
* @param root The {@link DirectoryNode} pointing to a document.
|
||||
*
|
||||
|
|
|
@ -1756,8 +1756,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss
|
|||
}
|
||||
|
||||
/**
|
||||
* As {@link #removeName(String)} is not necessarily unique
|
||||
* (name + sheet index is unique), this method is more accurate.
|
||||
* Remove a name.
|
||||
*
|
||||
* @param name the name to remove.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue