pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r992248 [4/4] - in /pdfbox/trunk: fontbox/src/main/site/resources/images/ pdfbox/src/main/java/org/apache/pdfbox/filter/ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchan...
Date Fri, 03 Sep 2010 09:57:27 GMT
Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDLayoutAttributeObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDListAttributeObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDListAttributeObject.java?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDListAttributeObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDListAttributeObject.java Fri Sep  3 09:57:26 2010
@@ -1,140 +1,140 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
-
-import org.apache.pdfbox.cos.COSDictionary;
-
-/**
- * A List attribute object.
- * 
- * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
- * @version $Revision: $
- */
-public class PDListAttributeObject extends PDStandardAttributeObject
-{
-
-    /**
-     * standard attribute owner: List
-     */
-    public static final String OWNER_LIST = "List";
-
-    protected static final String LIST_NUMBERING = "ListNumbering";
-
-    /**
-     * ListNumbering: Circle: Open circular bullet
-     */
-    public static final String LIST_NUMBERING_CIRCLE = "Circle";
-    /**
-     * ListNumbering: Decimal: Decimal arabic numerals (1–9, 10–99, …)
-     */
-    public static final String LIST_NUMBERING_DECIMAL = "Decimal";
-    /**
-     * ListNumbering: Disc: Solid circular bullet
-     */
-    public static final String LIST_NUMBERING_DISC = "Disc";
-    /**
-     * ListNumbering: LowerAlpha: Lowercase letters (a, b, c, …)
-     */
-    public static final String LIST_NUMBERING_LOWER_ALPHA = "LowerAlpha";
-    /**
-     * ListNumbering: LowerRoman: Lowercase roman numerals (i, ii, iii, iv, …)
-     */
-    public static final String LIST_NUMBERING_LOWER_ROMAN = "LowerRoman";
-    /**
-     * ListNumbering: None: No autonumbering; Lbl elements (if present) contain arbitrary text
-     * not subject to any numbering scheme
-     */
-    public static final String LIST_NUMBERING_NONE = "None";
-    /**
-     * ListNumbering: Square: Solid square bullet
-     */
-    public static final String LIST_NUMBERING_SQUARE = "Square";
-    /**
-     * ListNumbering: UpperAlpha: Uppercase letters (A, B, C, …)
-     */
-    public static final String LIST_NUMBERING_UPPER_ALPHA = "UpperAlpha";
-    /**
-     * ListNumbering: UpperRoman: Uppercase roman numerals (I, II, III, IV, …)
-     */
-    public static final String LIST_NUMBERING_UPPER_ROMAN = "UpperRoman";
-
-
-    /**
-     * Default constructor.
-     */
-    public PDListAttributeObject()
-    {
-        this.setOwner(OWNER_LIST);
-    }
-
-    /**
-     * Creates a new List attribute object with a given dictionary.
-     * 
-     * @param dictionary the dictionary
-     */
-    public PDListAttributeObject(COSDictionary dictionary)
-    {
-        super(dictionary);
-    }
-
-
-    /**
-     * Gets the list numbering (ListNumbering). The default value is
-     * {@link #LIST_NUMBERING_NONE}.
-     * 
-     * @return the list numbering
-     */
-    public String getListNumbering()
-    {
-        return this.getName(LIST_NUMBERING, LIST_NUMBERING_NONE);
-    }
-
-    /**
-     * Sets the list numbering (ListNumbering). The value shall be one of the
-     * following:
-     * <ul>
-     *   <li>{@link #LIST_NUMBERING_NONE},</li>
-     *   <li>{@link #LIST_NUMBERING_DISC},</li>
-     *   <li>{@link #LIST_NUMBERING_CIRCLE},</li>
-     *   <li>{@link #LIST_NUMBERING_SQUARE},</li>
-     *   <li>{@link #LIST_NUMBERING_DECIMAL},</li>
-     *   <li>{@link #LIST_NUMBERING_UPPER_ROMAN},</li>
-     *   <li>{@link #LIST_NUMBERING_LOWER_ROMAN},</li>
-     *   <li>{@link #LIST_NUMBERING_UPPER_ALPHA},</li>
-     *   <li>{@link #LIST_NUMBERING_LOWER_ALPHA}.</li>
-     * </ul>
-     * 
-     * @param listNumbering the list numbering
-     */
-    public void setListNumbering(String listNumbering)
-    {
-        this.setName(LIST_NUMBERING, listNumbering);
-    }
-
-    @Override
-    public String toString()
-    {
-        StringBuilder sb = new StringBuilder().append(super.toString());
-        if (this.isSpecified(LIST_NUMBERING))
-        {
-            sb.append(", ListNumbering=").append(this.getListNumbering());
-        }
-        return sb.toString();
-    }
-
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
+
+import org.apache.pdfbox.cos.COSDictionary;
+
+/**
+ * A List attribute object.
+ * 
+ * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
+ * @version $Revision: $
+ */
+public class PDListAttributeObject extends PDStandardAttributeObject
+{
+
+    /**
+     * standard attribute owner: List
+     */
+    public static final String OWNER_LIST = "List";
+
+    protected static final String LIST_NUMBERING = "ListNumbering";
+
+    /**
+     * ListNumbering: Circle: Open circular bullet
+     */
+    public static final String LIST_NUMBERING_CIRCLE = "Circle";
+    /**
+     * ListNumbering: Decimal: Decimal arabic numerals (1–9, 10–99, …)
+     */
+    public static final String LIST_NUMBERING_DECIMAL = "Decimal";
+    /**
+     * ListNumbering: Disc: Solid circular bullet
+     */
+    public static final String LIST_NUMBERING_DISC = "Disc";
+    /**
+     * ListNumbering: LowerAlpha: Lowercase letters (a, b, c, …)
+     */
+    public static final String LIST_NUMBERING_LOWER_ALPHA = "LowerAlpha";
+    /**
+     * ListNumbering: LowerRoman: Lowercase roman numerals (i, ii, iii, iv, …)
+     */
+    public static final String LIST_NUMBERING_LOWER_ROMAN = "LowerRoman";
+    /**
+     * ListNumbering: None: No autonumbering; Lbl elements (if present) contain arbitrary text
+     * not subject to any numbering scheme
+     */
+    public static final String LIST_NUMBERING_NONE = "None";
+    /**
+     * ListNumbering: Square: Solid square bullet
+     */
+    public static final String LIST_NUMBERING_SQUARE = "Square";
+    /**
+     * ListNumbering: UpperAlpha: Uppercase letters (A, B, C, …)
+     */
+    public static final String LIST_NUMBERING_UPPER_ALPHA = "UpperAlpha";
+    /**
+     * ListNumbering: UpperRoman: Uppercase roman numerals (I, II, III, IV, …)
+     */
+    public static final String LIST_NUMBERING_UPPER_ROMAN = "UpperRoman";
+
+
+    /**
+     * Default constructor.
+     */
+    public PDListAttributeObject()
+    {
+        this.setOwner(OWNER_LIST);
+    }
+
+    /**
+     * Creates a new List attribute object with a given dictionary.
+     * 
+     * @param dictionary the dictionary
+     */
+    public PDListAttributeObject(COSDictionary dictionary)
+    {
+        super(dictionary);
+    }
+
+
+    /**
+     * Gets the list numbering (ListNumbering). The default value is
+     * {@link #LIST_NUMBERING_NONE}.
+     * 
+     * @return the list numbering
+     */
+    public String getListNumbering()
+    {
+        return this.getName(LIST_NUMBERING, LIST_NUMBERING_NONE);
+    }
+
+    /**
+     * Sets the list numbering (ListNumbering). The value shall be one of the
+     * following:
+     * <ul>
+     *   <li>{@link #LIST_NUMBERING_NONE},</li>
+     *   <li>{@link #LIST_NUMBERING_DISC},</li>
+     *   <li>{@link #LIST_NUMBERING_CIRCLE},</li>
+     *   <li>{@link #LIST_NUMBERING_SQUARE},</li>
+     *   <li>{@link #LIST_NUMBERING_DECIMAL},</li>
+     *   <li>{@link #LIST_NUMBERING_UPPER_ROMAN},</li>
+     *   <li>{@link #LIST_NUMBERING_LOWER_ROMAN},</li>
+     *   <li>{@link #LIST_NUMBERING_UPPER_ALPHA},</li>
+     *   <li>{@link #LIST_NUMBERING_LOWER_ALPHA}.</li>
+     * </ul>
+     * 
+     * @param listNumbering the list numbering
+     */
+    public void setListNumbering(String listNumbering)
+    {
+        this.setName(LIST_NUMBERING, listNumbering);
+    }
+
+    @Override
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder().append(super.toString());
+        if (this.isSpecified(LIST_NUMBERING))
+        {
+            sb.append(", ListNumbering=").append(this.getListNumbering());
+        }
+        return sb.toString();
+    }
+
+
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDListAttributeObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDPrintFieldAttributeObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDPrintFieldAttributeObject.java?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDPrintFieldAttributeObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDPrintFieldAttributeObject.java Fri Sep  3 09:57:26 2010
@@ -1,178 +1,178 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
-
-import org.apache.pdfbox.cos.COSDictionary;
-
-/**
- * A PrintField attribute object.
- * 
- * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
- * @version $Revision: $
- */
-public class PDPrintFieldAttributeObject extends PDStandardAttributeObject
-{
-
-    /**
-     * standard attribute owner: PrintField
-     */
-    public static final String OWNER_PRINT_FIELD = "PrintField";
-
-    private static final String ROLE = "Role";
-    private static final String CHECKED = "checked";
-    private static final String DESC = "Desc";
-
-    /**
-     * role: rb: Radio button
-     */
-    public static final String ROLE_RB = "rb";
-    /**
-     * role: cb: Check box
-     */
-    public static final String ROLE_CB = "cb";
-    /**
-     * role: pb: Push button
-     */
-    public static final String ROLE_PB = "pb";
-    /**
-     * role: tv: Text-value field
-     */
-    public static final String ROLE_TV = "tv";
-    /**
-     * checked state: on
-     */
-    public static final String CHECKED_STATE_ON = "on";
-    /**
-     * checked state: off
-     */
-    public static final String CHECKED_STATE_OFF = "off";
-    /**
-     * checked state: neutral
-     */
-    public static final String CHECKED_STATE_NEUTRAL = "neutral";
-
-
-    /**
-     * Default constructor.
-     */
-    public PDPrintFieldAttributeObject()
-    {
-        this.setOwner(OWNER_PRINT_FIELD);
-    }
-
-    /**
-     * Creates a new PrintField attribute object with a given dictionary.
-     * 
-     * @param dictionary the dictionary
-     */
-    public PDPrintFieldAttributeObject(COSDictionary dictionary)
-    {
-        super(dictionary);
-    }
-
-
-    /**
-     * Gets the role.
-     * 
-     * @return the role
-     */
-    public String getRole()
-    {
-        return this.getName(ROLE);
-    }
-
-    /**
-     * Sets the role. The value of Role shall be one of the following:
-     * <ul>
-     *   <li>{@link #ROLE_RB},</li>
-     *   <li>{@link #ROLE_CB},</li>
-     *   <li>{@link #ROLE_PB},</li>
-     *   <li>{@link #ROLE_TV}.</li>
-     * </ul>
-     * 
-     * @param role the role
-     */
-    public void setRole(String role)
-    {
-        this.setName(ROLE, role);
-    }
-
-    /**
-     * Gets the checked state. The default value is {@link #CHECKED_STATE_OFF}.
-     * 
-     * @return the checked state
-     */
-    public String getCheckedState()
-    {
-        return this.getName(CHECKED, CHECKED_STATE_OFF);
-    }
-
-    /**
-     * Sets the checked state. The value shall be one of:
-     * <ul>
-     *   <li>{@link #CHECKED_STATE_ON},</li>
-     *   <li>{@link #CHECKED_STATE_OFF} (default), or</li>
-     *   <li>{@link #CHECKED_STATE_NEUTRAL}.</li>
-     * </ul>
-     * 
-     * @param checkedState the checked state
-     */
-    public void setCheckedState(String checkedState)
-    {
-        this.setName(CHECKED, checkedState);
-    }
-
-    /**
-     * Gets the alternate name of the field (Desc).
-     * 
-     * @return the alternate name of the field
-     */
-    public String getAlternateName()
-    {
-        return this.getString(DESC);
-    }
-
-    /**
-     * Sets the alternate name of the field (Desc).
-     * 
-     * @param alternateName the alternate name of the field
-     */
-    public void setAlternateName(String alternateName)
-    {
-        this.setString(DESC, alternateName);
-    }
-
-    @Override
-    public String toString()
-    {
-        StringBuilder sb = new StringBuilder().append(super.toString());
-        if (this.isSpecified(ROLE))
-        {
-            sb.append(", Role=").append(this.getRole());
-        }
-        if (this.isSpecified(CHECKED))
-        {
-            sb.append(", Checked=").append(this.getCheckedState());
-        }
-        if (this.isSpecified(DESC))
-        {
-            sb.append(", Desc=").append(this.getAlternateName());
-        }
-        return sb.toString();
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
+
+import org.apache.pdfbox.cos.COSDictionary;
+
+/**
+ * A PrintField attribute object.
+ * 
+ * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
+ * @version $Revision: $
+ */
+public class PDPrintFieldAttributeObject extends PDStandardAttributeObject
+{
+
+    /**
+     * standard attribute owner: PrintField
+     */
+    public static final String OWNER_PRINT_FIELD = "PrintField";
+
+    private static final String ROLE = "Role";
+    private static final String CHECKED = "checked";
+    private static final String DESC = "Desc";
+
+    /**
+     * role: rb: Radio button
+     */
+    public static final String ROLE_RB = "rb";
+    /**
+     * role: cb: Check box
+     */
+    public static final String ROLE_CB = "cb";
+    /**
+     * role: pb: Push button
+     */
+    public static final String ROLE_PB = "pb";
+    /**
+     * role: tv: Text-value field
+     */
+    public static final String ROLE_TV = "tv";
+    /**
+     * checked state: on
+     */
+    public static final String CHECKED_STATE_ON = "on";
+    /**
+     * checked state: off
+     */
+    public static final String CHECKED_STATE_OFF = "off";
+    /**
+     * checked state: neutral
+     */
+    public static final String CHECKED_STATE_NEUTRAL = "neutral";
+
+
+    /**
+     * Default constructor.
+     */
+    public PDPrintFieldAttributeObject()
+    {
+        this.setOwner(OWNER_PRINT_FIELD);
+    }
+
+    /**
+     * Creates a new PrintField attribute object with a given dictionary.
+     * 
+     * @param dictionary the dictionary
+     */
+    public PDPrintFieldAttributeObject(COSDictionary dictionary)
+    {
+        super(dictionary);
+    }
+
+
+    /**
+     * Gets the role.
+     * 
+     * @return the role
+     */
+    public String getRole()
+    {
+        return this.getName(ROLE);
+    }
+
+    /**
+     * Sets the role. The value of Role shall be one of the following:
+     * <ul>
+     *   <li>{@link #ROLE_RB},</li>
+     *   <li>{@link #ROLE_CB},</li>
+     *   <li>{@link #ROLE_PB},</li>
+     *   <li>{@link #ROLE_TV}.</li>
+     * </ul>
+     * 
+     * @param role the role
+     */
+    public void setRole(String role)
+    {
+        this.setName(ROLE, role);
+    }
+
+    /**
+     * Gets the checked state. The default value is {@link #CHECKED_STATE_OFF}.
+     * 
+     * @return the checked state
+     */
+    public String getCheckedState()
+    {
+        return this.getName(CHECKED, CHECKED_STATE_OFF);
+    }
+
+    /**
+     * Sets the checked state. The value shall be one of:
+     * <ul>
+     *   <li>{@link #CHECKED_STATE_ON},</li>
+     *   <li>{@link #CHECKED_STATE_OFF} (default), or</li>
+     *   <li>{@link #CHECKED_STATE_NEUTRAL}.</li>
+     * </ul>
+     * 
+     * @param checkedState the checked state
+     */
+    public void setCheckedState(String checkedState)
+    {
+        this.setName(CHECKED, checkedState);
+    }
+
+    /**
+     * Gets the alternate name of the field (Desc).
+     * 
+     * @return the alternate name of the field
+     */
+    public String getAlternateName()
+    {
+        return this.getString(DESC);
+    }
+
+    /**
+     * Sets the alternate name of the field (Desc).
+     * 
+     * @param alternateName the alternate name of the field
+     */
+    public void setAlternateName(String alternateName)
+    {
+        this.setString(DESC, alternateName);
+    }
+
+    @Override
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder().append(super.toString());
+        if (this.isSpecified(ROLE))
+        {
+            sb.append(", Role=").append(this.getRole());
+        }
+        if (this.isSpecified(CHECKED))
+        {
+            sb.append(", Checked=").append(this.getCheckedState());
+        }
+        if (this.isSpecified(DESC))
+        {
+            sb.append(", Desc=").append(this.getAlternateName());
+        }
+        return sb.toString();
+    }
+
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDPrintFieldAttributeObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java Fri Sep  3 09:57:26 2010
@@ -1,449 +1,449 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
-
-import org.apache.pdfbox.cos.COSArray;
-import org.apache.pdfbox.cos.COSBase;
-import org.apache.pdfbox.cos.COSDictionary;
-import org.apache.pdfbox.cos.COSFloat;
-import org.apache.pdfbox.cos.COSName;
-import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.cos.COSString;
-import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject;
-import org.apache.pdfbox.pdmodel.graphics.color.PDGamma;
-
-/**
- * A standard attribute object.
- * 
- * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
- * @version $Revision: $
- */
-public abstract class PDStandardAttributeObject extends PDAttributeObject
-{
-
-    /**
-     * Default constructor.
-     */
-    public PDStandardAttributeObject()
-    {
-    }
-
-    /**
-     * Creates a new standard attribute object with a given dictionary.
-     * 
-     * @param dictionary the dictionary
-     */
-    public PDStandardAttributeObject(COSDictionary dictionary)
-    {
-        super(dictionary);
-    }
-
-
-    /**
-     * Is the attribute with the given name specified in this attribute object?
-     * 
-     * @param name the attribute name
-     * @return <code>true</code> if the attribute is specified,
-     * <code>false</code> otherwise
-     */
-    public boolean isSpecified(String name)
-    {
-        return this.getCOSDictionary().getDictionaryObject(name) != null;
-    }
-
-
-    /**
-     * Gets a string attribute value.
-     * 
-     * @param name the attribute name
-     * @return the string attribute value
-     */
-    protected String getString(String name)
-    {
-        return this.getCOSDictionary().getString(name);
-    }
-
-    /**
-     * Sets a string attribute value.
-     * 
-     * @param name the attribute name
-     * @param value the string attribute value
-     */
-    protected void setString(String name, String value)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setString(name, value);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Gets an array of strings.
-     * 
-     * @param name the attribute name
-     * @return the array of strings
-     */
-    protected String[] getArrayOfString(String name)
-    {
-        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
-        if (v instanceof COSArray)
-        {
-            COSArray array = (COSArray) v;
-            String[] strings = new String[array.size()];
-            for (int i = 0; i < array.size(); i++)
-            {
-                strings[i] = ((COSName) array.getObject(i)).getName();
-            }
-            return strings;
-        }
-        return null;
-    }
-
-    /**
-     * Sets an array of strings.
-     * 
-     * @param name the attribute name
-     * @param values the array of strings
-     */
-    protected void setArrayOfString(String name, String[] values)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        COSArray array = new COSArray();
-        for (int i = 0; i < values.length; i++)
-        {
-            array.add(new COSString(values[i]));
-        }
-        this.getCOSDictionary().setItem(name, array);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Gets a name value.
-     * 
-     * @param name the attribute name
-     * @return the name value
-     */
-    protected String getName(String name)
-    {
-        return this.getCOSDictionary().getNameAsString(name);
-    }
-
-    /**
-     * Gets a name value.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default value
-     * @return the name value
-     */
-    protected String getName(String name, String defaultValue)
-    {
-        return this.getCOSDictionary().getNameAsString(name, defaultValue);
-    }
-
-    /**
-     * Gets a name value or array of name values.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default value
-     * @return a String or array of Strings
-     */
-    protected Object getNameOrArrayOfName(String name, String defaultValue)
-    {
-        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
-        if (v instanceof COSArray)
-        {
-            COSArray array = (COSArray) v;
-            String[] names = new String[array.size()];
-            for (int i = 0; i < array.size(); i++)
-            {
-                COSBase item = array.getObject(i);
-                if (item instanceof COSName)
-                {
-                    names[i] = ((COSName) item).getName();
-                }
-            }
-            return names;
-        }
-        if (v instanceof COSName)
-        {
-            return ((COSName) v).getName();
-        }
-        return defaultValue;
-    }
-
-    /**
-     * Sets a name value.
-     * 
-     * @param name the attribute name
-     * @param value the name value
-     */
-    protected void setName(String name, String value)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setName(name, value);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Sets an array of name values.
-     * 
-     * @param name the attribute name
-     * @param values the array of name values
-     */
-    protected void setArrayOfName(String name, String[] values)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        COSArray array = new COSArray();
-        for (int i = 0; i < values.length; i++)
-        {
-            array.add(COSName.getPDFName(values[i]));
-        }
-        this.getCOSDictionary().setItem(name, array);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Gets a number or a name value.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default name
-     * @return a Float or a String
-     */
-    protected Object getNumberOrName(String name, String defaultValue)
-    {
-        COSBase value = this.getCOSDictionary().getDictionaryObject(name);
-        if (value instanceof COSNumber)
-        {
-            return ((COSNumber) value).floatValue();
-        }
-        if (value instanceof COSName)
-        {
-            return ((COSName) value).getName();
-        }
-        return defaultValue;
-    }
-
-    /**
-     * Gets an integer.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default value
-     * @return the integer
-     */
-    protected int getInteger(String name, int defaultValue)
-    {
-        return this.getCOSDictionary().getInt(name, defaultValue);
-    }
-
-    /**
-     * Sets an integer.
-     * 
-     * @param name the attribute name
-     * @param value the integer
-     */
-    protected void setInteger(String name, int value)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setInt(name, value);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Gets a number value.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default value
-     * @return the number value
-     */
-    protected float getNumber(String name, float defaultValue)
-    {
-        return this.getCOSDictionary().getFloat(name, defaultValue);
-    }
-
-    /**
-     * Gets a number value.
-     * 
-     * @param name the attribute name
-     * @return the number value
-     */
-    protected float getNumber(String name)
-    {
-        return this.getCOSDictionary().getFloat(name);
-    }
-
-    /**
-     * An "unspecified" default float value.
-     */
-    protected static final float UNSPECIFIED = -1.f;
-
-    /**
-     * Gets a number or an array of numbers.
-     * 
-     * @param name the attribute name
-     * @param defaultValue the default value
-     * @return a Float or an array of floats
-     */
-    protected Object getNumberOrArrayOfNumber(String name, float defaultValue)
-    {
-        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
-        if (v instanceof COSArray)
-        {
-            COSArray array = (COSArray) v;
-            float[] values = new float[array.size()];
-            for (int i = 0; i < array.size(); i++)
-            {
-                COSBase item = array.getObject(i);
-                if (item instanceof COSNumber)
-                {
-                    values[i] = ((COSNumber) item).floatValue();
-                }
-            }
-            return values;
-        }
-        if (v instanceof COSNumber)
-        {
-            return ((COSNumber) v).floatValue();
-        }
-        if (defaultValue == UNSPECIFIED)
-        {
-            return null;
-        }
-        return defaultValue;
-    }
-
-    /**
-     * Sets a float number.
-     * 
-     * @param name the attribute name
-     * @param value the float number
-     */
-    protected void setNumber(String name, float value)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setFloat(name, value);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Sets an integer number.
-     * 
-     * @param name the attribute name
-     * @param value the integer number
-     */
-    protected void setNumber(String name, int value)
-    {
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setInt(name, value);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Sets an array of float numbers.
-     * 
-     * @param name the attribute name
-     * @param values the float numbers
-     */
-    protected void setArrayOfNumber(String name, float[] values)
-    {
-        COSArray array = new COSArray();
-        for (int i = 0; i < values.length; i++)
-        {
-            array.add(new COSFloat(values[i]));
-        }
-        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setItem(name, array);
-        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
-        this.potentiallyNotifyChanged(oldBase, newBase);
-    }
-
-    /**
-     * Gets a colour.
-     * 
-     * @param name the attribute name
-     * @return the colour
-     */
-    protected PDGamma getColor(String name)
-    {
-        COSArray c = (COSArray) this.getCOSDictionary().getDictionaryObject(name);
-        if (c != null)
-        {
-            return new PDGamma(c);
-        }
-        return null;
-    }
-
-    /**
-     * Gets a single colour or four colours.
-     * 
-     * @param name the attribute name
-     * @return the single ({@link PDGamma}) or a ({@link PDFourColours})
-     */
-    protected Object getColorOrFourColors(String name)
-    {
-        COSArray array =
-            (COSArray) this.getCOSDictionary().getDictionaryObject(name);
-        if (array == null)
-        {
-            return null;
-        }
-        if (array.size() == 3)
-        {
-            // only one colour
-            return new PDGamma(array);
-        }
-        else if (array.size() == 4)
-        {
-            return new PDFourColours(array);
-        }
-        return null;
-    }
-
-    /**
-     * Sets a colour.
-     * 
-     * @param name the attribute name
-     * @param value the colour
-     */
-    protected void setColor(String name, PDGamma value)
-    {
-        COSBase oldValue = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setItem(name, value);
-        COSBase newValue = value == null ? null : value.getCOSObject();
-        this.potentiallyNotifyChanged(oldValue, newValue);
-    }
-
-    /**
-     * Sets four colours.
-     * 
-     * @param name the attribute name
-     * @param value the four colours
-     */
-    protected void setFourColors(String name, PDFourColours value)
-    {
-        COSBase oldValue = this.getCOSDictionary().getDictionaryObject(name);
-        this.getCOSDictionary().setItem(name, value);
-        COSBase newValue = value == null ? null : value.getCOSObject();
-        this.potentiallyNotifyChanged(oldValue, newValue);
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
+
+import org.apache.pdfbox.cos.COSArray;
+import org.apache.pdfbox.cos.COSBase;
+import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.cos.COSFloat;
+import org.apache.pdfbox.cos.COSName;
+import org.apache.pdfbox.cos.COSNumber;
+import org.apache.pdfbox.cos.COSString;
+import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDAttributeObject;
+import org.apache.pdfbox.pdmodel.graphics.color.PDGamma;
+
+/**
+ * A standard attribute object.
+ * 
+ * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
+ * @version $Revision: $
+ */
+public abstract class PDStandardAttributeObject extends PDAttributeObject
+{
+
+    /**
+     * Default constructor.
+     */
+    public PDStandardAttributeObject()
+    {
+    }
+
+    /**
+     * Creates a new standard attribute object with a given dictionary.
+     * 
+     * @param dictionary the dictionary
+     */
+    public PDStandardAttributeObject(COSDictionary dictionary)
+    {
+        super(dictionary);
+    }
+
+
+    /**
+     * Is the attribute with the given name specified in this attribute object?
+     * 
+     * @param name the attribute name
+     * @return <code>true</code> if the attribute is specified,
+     * <code>false</code> otherwise
+     */
+    public boolean isSpecified(String name)
+    {
+        return this.getCOSDictionary().getDictionaryObject(name) != null;
+    }
+
+
+    /**
+     * Gets a string attribute value.
+     * 
+     * @param name the attribute name
+     * @return the string attribute value
+     */
+    protected String getString(String name)
+    {
+        return this.getCOSDictionary().getString(name);
+    }
+
+    /**
+     * Sets a string attribute value.
+     * 
+     * @param name the attribute name
+     * @param value the string attribute value
+     */
+    protected void setString(String name, String value)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setString(name, value);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Gets an array of strings.
+     * 
+     * @param name the attribute name
+     * @return the array of strings
+     */
+    protected String[] getArrayOfString(String name)
+    {
+        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
+        if (v instanceof COSArray)
+        {
+            COSArray array = (COSArray) v;
+            String[] strings = new String[array.size()];
+            for (int i = 0; i < array.size(); i++)
+            {
+                strings[i] = ((COSName) array.getObject(i)).getName();
+            }
+            return strings;
+        }
+        return null;
+    }
+
+    /**
+     * Sets an array of strings.
+     * 
+     * @param name the attribute name
+     * @param values the array of strings
+     */
+    protected void setArrayOfString(String name, String[] values)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        COSArray array = new COSArray();
+        for (int i = 0; i < values.length; i++)
+        {
+            array.add(new COSString(values[i]));
+        }
+        this.getCOSDictionary().setItem(name, array);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Gets a name value.
+     * 
+     * @param name the attribute name
+     * @return the name value
+     */
+    protected String getName(String name)
+    {
+        return this.getCOSDictionary().getNameAsString(name);
+    }
+
+    /**
+     * Gets a name value.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default value
+     * @return the name value
+     */
+    protected String getName(String name, String defaultValue)
+    {
+        return this.getCOSDictionary().getNameAsString(name, defaultValue);
+    }
+
+    /**
+     * Gets a name value or array of name values.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default value
+     * @return a String or array of Strings
+     */
+    protected Object getNameOrArrayOfName(String name, String defaultValue)
+    {
+        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
+        if (v instanceof COSArray)
+        {
+            COSArray array = (COSArray) v;
+            String[] names = new String[array.size()];
+            for (int i = 0; i < array.size(); i++)
+            {
+                COSBase item = array.getObject(i);
+                if (item instanceof COSName)
+                {
+                    names[i] = ((COSName) item).getName();
+                }
+            }
+            return names;
+        }
+        if (v instanceof COSName)
+        {
+            return ((COSName) v).getName();
+        }
+        return defaultValue;
+    }
+
+    /**
+     * Sets a name value.
+     * 
+     * @param name the attribute name
+     * @param value the name value
+     */
+    protected void setName(String name, String value)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setName(name, value);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Sets an array of name values.
+     * 
+     * @param name the attribute name
+     * @param values the array of name values
+     */
+    protected void setArrayOfName(String name, String[] values)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        COSArray array = new COSArray();
+        for (int i = 0; i < values.length; i++)
+        {
+            array.add(COSName.getPDFName(values[i]));
+        }
+        this.getCOSDictionary().setItem(name, array);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Gets a number or a name value.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default name
+     * @return a Float or a String
+     */
+    protected Object getNumberOrName(String name, String defaultValue)
+    {
+        COSBase value = this.getCOSDictionary().getDictionaryObject(name);
+        if (value instanceof COSNumber)
+        {
+            return ((COSNumber) value).floatValue();
+        }
+        if (value instanceof COSName)
+        {
+            return ((COSName) value).getName();
+        }
+        return defaultValue;
+    }
+
+    /**
+     * Gets an integer.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default value
+     * @return the integer
+     */
+    protected int getInteger(String name, int defaultValue)
+    {
+        return this.getCOSDictionary().getInt(name, defaultValue);
+    }
+
+    /**
+     * Sets an integer.
+     * 
+     * @param name the attribute name
+     * @param value the integer
+     */
+    protected void setInteger(String name, int value)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setInt(name, value);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Gets a number value.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default value
+     * @return the number value
+     */
+    protected float getNumber(String name, float defaultValue)
+    {
+        return this.getCOSDictionary().getFloat(name, defaultValue);
+    }
+
+    /**
+     * Gets a number value.
+     * 
+     * @param name the attribute name
+     * @return the number value
+     */
+    protected float getNumber(String name)
+    {
+        return this.getCOSDictionary().getFloat(name);
+    }
+
+    /**
+     * An "unspecified" default float value.
+     */
+    protected static final float UNSPECIFIED = -1.f;
+
+    /**
+     * Gets a number or an array of numbers.
+     * 
+     * @param name the attribute name
+     * @param defaultValue the default value
+     * @return a Float or an array of floats
+     */
+    protected Object getNumberOrArrayOfNumber(String name, float defaultValue)
+    {
+        COSBase v = this.getCOSDictionary().getDictionaryObject(name);
+        if (v instanceof COSArray)
+        {
+            COSArray array = (COSArray) v;
+            float[] values = new float[array.size()];
+            for (int i = 0; i < array.size(); i++)
+            {
+                COSBase item = array.getObject(i);
+                if (item instanceof COSNumber)
+                {
+                    values[i] = ((COSNumber) item).floatValue();
+                }
+            }
+            return values;
+        }
+        if (v instanceof COSNumber)
+        {
+            return ((COSNumber) v).floatValue();
+        }
+        if (defaultValue == UNSPECIFIED)
+        {
+            return null;
+        }
+        return defaultValue;
+    }
+
+    /**
+     * Sets a float number.
+     * 
+     * @param name the attribute name
+     * @param value the float number
+     */
+    protected void setNumber(String name, float value)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setFloat(name, value);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Sets an integer number.
+     * 
+     * @param name the attribute name
+     * @param value the integer number
+     */
+    protected void setNumber(String name, int value)
+    {
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setInt(name, value);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Sets an array of float numbers.
+     * 
+     * @param name the attribute name
+     * @param values the float numbers
+     */
+    protected void setArrayOfNumber(String name, float[] values)
+    {
+        COSArray array = new COSArray();
+        for (int i = 0; i < values.length; i++)
+        {
+            array.add(new COSFloat(values[i]));
+        }
+        COSBase oldBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setItem(name, array);
+        COSBase newBase = this.getCOSDictionary().getDictionaryObject(name);
+        this.potentiallyNotifyChanged(oldBase, newBase);
+    }
+
+    /**
+     * Gets a colour.
+     * 
+     * @param name the attribute name
+     * @return the colour
+     */
+    protected PDGamma getColor(String name)
+    {
+        COSArray c = (COSArray) this.getCOSDictionary().getDictionaryObject(name);
+        if (c != null)
+        {
+            return new PDGamma(c);
+        }
+        return null;
+    }
+
+    /**
+     * Gets a single colour or four colours.
+     * 
+     * @param name the attribute name
+     * @return the single ({@link PDGamma}) or a ({@link PDFourColours})
+     */
+    protected Object getColorOrFourColors(String name)
+    {
+        COSArray array =
+            (COSArray) this.getCOSDictionary().getDictionaryObject(name);
+        if (array == null)
+        {
+            return null;
+        }
+        if (array.size() == 3)
+        {
+            // only one colour
+            return new PDGamma(array);
+        }
+        else if (array.size() == 4)
+        {
+            return new PDFourColours(array);
+        }
+        return null;
+    }
+
+    /**
+     * Sets a colour.
+     * 
+     * @param name the attribute name
+     * @param value the colour
+     */
+    protected void setColor(String name, PDGamma value)
+    {
+        COSBase oldValue = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setItem(name, value);
+        COSBase newValue = value == null ? null : value.getCOSObject();
+        this.potentiallyNotifyChanged(oldValue, newValue);
+    }
+
+    /**
+     * Sets four colours.
+     * 
+     * @param name the attribute name
+     * @param value the four colours
+     */
+    protected void setFourColors(String name, PDFourColours value)
+    {
+        COSBase oldValue = this.getCOSDictionary().getDictionaryObject(name);
+        this.getCOSDictionary().setItem(name, value);
+        COSBase newValue = value == null ? null : value.getCOSObject();
+        this.potentiallyNotifyChanged(oldValue, newValue);
+    }
+
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDTableAttributeObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDTableAttributeObject.java?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDTableAttributeObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDTableAttributeObject.java Fri Sep  3 09:57:26 2010
@@ -1,222 +1,222 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
-
-import org.apache.pdfbox.cos.COSDictionary;
-import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement;
-
-/**
- * A Table attribute object.
- * 
- * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
- * @version $Revision: $
- */
-public class PDTableAttributeObject extends PDStandardAttributeObject
-{
-
-    /**
-     *  standard attribute owner: Table
-     */
-    public static final String OWNER_TABLE = "Table";
-
-    protected static final String ROW_SPAN = "RowSpan";
-    protected static final String COL_SPAN = "ColSpan";
-    protected static final String HEADERS  = "Headers";
-    protected static final String SCOPE    = "Scope";
-    protected static final String SUMMARY  = "Summary";
-
-    /**
-     * Scope: Both
-     */
-    public static final String SCOPE_BOTH   = "Both";
-    /**
-     * Scope: Column
-     */
-    public static final String SCOPE_COLUMN = "Column";
-    /**
-     * Scope: Row
-     */
-    public static final String SCOPE_ROW    = "Row";
-
-
-    /**
-     * Default constructor.
-     */
-    public PDTableAttributeObject()
-    {
-        this.setOwner(OWNER_TABLE);
-    }
-
-    /**
-     * Creates a new Table attribute object with a given dictionary.
-     * 
-     * @param dictionary the dictionary
-     */
-    public PDTableAttributeObject(COSDictionary dictionary)
-    {
-        super(dictionary);
-    }
-
-
-    /**
-     * Gets the number of rows in the enclosing table that shall be spanned by
-     * the cell (RowSpan). The default value is 1.
-     * 
-     * @return the row span
-     */
-    public int getRowSpan()
-    {
-        return this.getInteger(ROW_SPAN, 1);
-    }
-
-    /**
-     * Sets the number of rows in the enclosing table that shall be spanned by
-     * the cell (RowSpan).
-     * 
-     * @param rowSpan the row span
-     */
-    public void setRowSpan(int rowSpan)
-    {
-        this.setInteger(ROW_SPAN, rowSpan);
-    }
-
-    /**
-     * Gets the number of columns in the enclosing table that shall be spanned
-     * by the cell (ColSpan). The default value is 1.
-     * 
-     * @return the column span
-     */
-    public int getColSpan()
-    {
-        return this.getInteger(COL_SPAN, 1);
-    }
-
-    /**
-     * Sets the number of columns in the enclosing table that shall be spanned
-     * by the cell (ColSpan).
-     * 
-     * @param colSpan the column span
-     */
-    public void setColSpan(int colSpan)
-    {
-        this.setInteger(COL_SPAN, colSpan);
-    }
-
-    /**
-     * Gets the headers (Headers). An array of byte strings, where each string
-     * shall be the element identifier (see the
-     * {@link PDStructureElement#getElementIdentifier()}) for a TH structure
-     * element that shall be used as a header associated with this cell.
-     * 
-     * @return the headers.
-     */
-    public String[] getHeaders()
-    {
-        return this.getArrayOfString(HEADERS);
-    }
-
-    /**
-     * Sets the headers (Headers). An array of byte strings, where each string
-     * shall be the element identifier (see the
-     * {@link PDStructureElement#getElementIdentifier()}) for a TH structure
-     * element that shall be used as a header associated with this cell.
-     * 
-     * @param headers the headers
-     */
-    public void setHeaders(String[] headers)
-    {
-        this.setArrayOfString(HEADERS, headers);
-    }
-
-    /**
-     * Gets the scope (Scope). It shall reflect whether the header cell applies
-     * to the rest of the cells in the row that contains it, the column that
-     * contains it, or both the row and the column that contain it.
-     * 
-     * @return the scope
-     */
-    public String getScope()
-    {
-        return this.getName(SCOPE);
-    }
-
-    /**
-     * Sets the scope (Scope). It shall reflect whether the header cell applies
-     * to the rest of the cells in the row that contains it, the column that
-     * contains it, or both the row and the column that contain it. The value
-     * shall be one of the following:
-     * <ul>
-     *   <li>{@link #SCOPE_ROW},</li>
-     *   <li>{@link #SCOPE_COLUMN}, or</li>
-     *   <li>{@link #SCOPE_BOTH}.</li>
-     * </ul>
-     * 
-     * @param scope the scope
-     */
-    public void setScope(String scope)
-    {
-        this.setName(SCOPE, scope);
-    }
-
-    /**
-     * Gets the summary of the table’s purpose and structure.
-     * 
-     * @return the summary
-     */
-    public String getSummary()
-    {
-        return this.getString(SUMMARY);
-    }
-
-    /**
-     * Sets the summary of the table’s purpose and structure.
-     * 
-     * @param summary the summary
-     */
-    public void setSummary(String summary)
-    {
-        this.setString(SUMMARY, summary);
-    }
-
-    @Override
-    public String toString()
-    {
-        StringBuilder sb = new StringBuilder().append(super.toString());
-        if (this.isSpecified(ROW_SPAN))
-        {
-            sb.append(", RowSpan=").append(String.valueOf(this.getRowSpan()));
-        }
-        if (this.isSpecified(COL_SPAN))
-        {
-            sb.append(", ColSpan=").append(String.valueOf(this.getColSpan()));
-        }
-        if (this.isSpecified(HEADERS))
-        {
-            sb.append(", Headers=").append(arrayToString(this.getHeaders()));
-        }
-        if (this.isSpecified(SCOPE))
-        {
-            sb.append(", Scope=").append(this.getScope());
-        }
-        if (this.isSpecified(SUMMARY))
-        {
-            sb.append(", Summary=").append(this.getSummary());
-        }
-        return sb.toString();
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
+
+import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement;
+
+/**
+ * A Table attribute object.
+ * 
+ * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
+ * @version $Revision: $
+ */
+public class PDTableAttributeObject extends PDStandardAttributeObject
+{
+
+    /**
+     *  standard attribute owner: Table
+     */
+    public static final String OWNER_TABLE = "Table";
+
+    protected static final String ROW_SPAN = "RowSpan";
+    protected static final String COL_SPAN = "ColSpan";
+    protected static final String HEADERS  = "Headers";
+    protected static final String SCOPE    = "Scope";
+    protected static final String SUMMARY  = "Summary";
+
+    /**
+     * Scope: Both
+     */
+    public static final String SCOPE_BOTH   = "Both";
+    /**
+     * Scope: Column
+     */
+    public static final String SCOPE_COLUMN = "Column";
+    /**
+     * Scope: Row
+     */
+    public static final String SCOPE_ROW    = "Row";
+
+
+    /**
+     * Default constructor.
+     */
+    public PDTableAttributeObject()
+    {
+        this.setOwner(OWNER_TABLE);
+    }
+
+    /**
+     * Creates a new Table attribute object with a given dictionary.
+     * 
+     * @param dictionary the dictionary
+     */
+    public PDTableAttributeObject(COSDictionary dictionary)
+    {
+        super(dictionary);
+    }
+
+
+    /**
+     * Gets the number of rows in the enclosing table that shall be spanned by
+     * the cell (RowSpan). The default value is 1.
+     * 
+     * @return the row span
+     */
+    public int getRowSpan()
+    {
+        return this.getInteger(ROW_SPAN, 1);
+    }
+
+    /**
+     * Sets the number of rows in the enclosing table that shall be spanned by
+     * the cell (RowSpan).
+     * 
+     * @param rowSpan the row span
+     */
+    public void setRowSpan(int rowSpan)
+    {
+        this.setInteger(ROW_SPAN, rowSpan);
+    }
+
+    /**
+     * Gets the number of columns in the enclosing table that shall be spanned
+     * by the cell (ColSpan). The default value is 1.
+     * 
+     * @return the column span
+     */
+    public int getColSpan()
+    {
+        return this.getInteger(COL_SPAN, 1);
+    }
+
+    /**
+     * Sets the number of columns in the enclosing table that shall be spanned
+     * by the cell (ColSpan).
+     * 
+     * @param colSpan the column span
+     */
+    public void setColSpan(int colSpan)
+    {
+        this.setInteger(COL_SPAN, colSpan);
+    }
+
+    /**
+     * Gets the headers (Headers). An array of byte strings, where each string
+     * shall be the element identifier (see the
+     * {@link PDStructureElement#getElementIdentifier()}) for a TH structure
+     * element that shall be used as a header associated with this cell.
+     * 
+     * @return the headers.
+     */
+    public String[] getHeaders()
+    {
+        return this.getArrayOfString(HEADERS);
+    }
+
+    /**
+     * Sets the headers (Headers). An array of byte strings, where each string
+     * shall be the element identifier (see the
+     * {@link PDStructureElement#getElementIdentifier()}) for a TH structure
+     * element that shall be used as a header associated with this cell.
+     * 
+     * @param headers the headers
+     */
+    public void setHeaders(String[] headers)
+    {
+        this.setArrayOfString(HEADERS, headers);
+    }
+
+    /**
+     * Gets the scope (Scope). It shall reflect whether the header cell applies
+     * to the rest of the cells in the row that contains it, the column that
+     * contains it, or both the row and the column that contain it.
+     * 
+     * @return the scope
+     */
+    public String getScope()
+    {
+        return this.getName(SCOPE);
+    }
+
+    /**
+     * Sets the scope (Scope). It shall reflect whether the header cell applies
+     * to the rest of the cells in the row that contains it, the column that
+     * contains it, or both the row and the column that contain it. The value
+     * shall be one of the following:
+     * <ul>
+     *   <li>{@link #SCOPE_ROW},</li>
+     *   <li>{@link #SCOPE_COLUMN}, or</li>
+     *   <li>{@link #SCOPE_BOTH}.</li>
+     * </ul>
+     * 
+     * @param scope the scope
+     */
+    public void setScope(String scope)
+    {
+        this.setName(SCOPE, scope);
+    }
+
+    /**
+     * Gets the summary of the table’s purpose and structure.
+     * 
+     * @return the summary
+     */
+    public String getSummary()
+    {
+        return this.getString(SUMMARY);
+    }
+
+    /**
+     * Sets the summary of the table’s purpose and structure.
+     * 
+     * @param summary the summary
+     */
+    public void setSummary(String summary)
+    {
+        this.setString(SUMMARY, summary);
+    }
+
+    @Override
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder().append(super.toString());
+        if (this.isSpecified(ROW_SPAN))
+        {
+            sb.append(", RowSpan=").append(String.valueOf(this.getRowSpan()));
+        }
+        if (this.isSpecified(COL_SPAN))
+        {
+            sb.append(", ColSpan=").append(String.valueOf(this.getColSpan()));
+        }
+        if (this.isSpecified(HEADERS))
+        {
+            sb.append(", Headers=").append(arrayToString(this.getHeaders()));
+        }
+        if (this.isSpecified(SCOPE))
+        {
+            sb.append(", Scope=").append(this.getScope());
+        }
+        if (this.isSpecified(SUMMARY))
+        {
+            sb.append(", Summary=").append(this.getSummary());
+        }
+        return sb.toString();
+    }
+
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDTableAttributeObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/StandardStructureTypes.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/StandardStructureTypes.java?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/StandardStructureTypes.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/StandardStructureTypes.java Fri Sep  3 09:57:26 2010
@@ -1,320 +1,320 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
-
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-/**
- * The standard structure types.
- * 
- * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
- * @version $Revision: $
- */
-public class StandardStructureTypes
-{
-
-    private StandardStructureTypes()
-    {
-    }
-
-
-    // Grouping Elements
-    /**
-     * Document
-     */
-    public static final String DOCUMENT = "Document";
-
-    /**
-     * Part
-     */
-    public static final String PART = "Part";
-
-    /**
-     * Art
-     */
-    public static final String ART = "Art";
-
-    /**
-     * Sect
-     */
-    public static final String SECT = "Sect";
-
-    /**
-     * Div
-     */
-    public static final String DIV = "Div";
-
-    /**
-     * BlockQuote
-     */
-    public static final String BLOCK_QUOTE = "BlockQuote";
-
-    /**
-     * Caption
-     */
-    public static final String CAPTION = "Caption";
-
-    /**
-     * TOC
-     */
-    public static final String TOC = "TOC";
-
-    /**
-     * TOCI
-     */
-    public static final String TOCI = "TOCI";
-
-    /**
-     * Index
-     */
-    public static final String INDEX = "Index";
-
-    /**
-     * NonStruct
-     */
-    public static final String NON_STRUCT = "NonStruct";
-
-    /**
-     * Private
-     */
-    public static final String PRIVATE = "Private";
-
-
-    // Block-Level Structure Elements
-    /**
-     * P
-     */
-    public static final String P = "P";
-
-    /**
-     * H
-     */
-    public static final String H = "H";
-
-    /**
-     * H1
-     */
-    public static final String H1 = "H1";
-
-    /**
-     * H2
-     */
-    public static final String H2 = "H2";
-
-    /**
-     * H3
-     */
-    public static final String H3 = "H3";
-
-    /**
-     * H4
-     */
-    public static final String H4 = "H4";
-
-    /**
-     * H5
-     */
-    public static final String H5 = "H5";
-
-    /**
-     * H6
-     */
-    public static final String H6 = "H6";
-
-    /**
-     * L
-     */
-    public static final String L = "L";
-
-    /**
-     * LI
-     */
-    public static final String LI = "LI";
-
-    /**
-     * Lbl
-     */
-    public static final String LBL = "Lbl";
-
-    /**
-     * LBody
-     */
-    public static final String L_BODY = "LBody";
-
-    /**
-     * Table
-     */
-    public static final String TABLE = "Table";
-
-    /**
-     * TR
-     */
-    public static final String TR = "TR";
-
-    /**
-     * TH
-     */
-    public static final String TH = "TH";
-
-    /**
-     * TD
-     */
-    public static final String TD = "TD";
-
-    /**
-     * THead
-     */
-    public static final String T_HEAD = "THead";
-
-    /**
-     * TBody
-     */
-    public static final String T_BODY = "TBody";
-
-    /**
-     * TFoot
-     */
-    public static final String T_FOOT = "TFoot";
-
-
-    // Inline-Level Structure Elements
-    /**
-     * Span
-     */
-    public static final String SPAN = "Span";
-
-    /**
-     * Quote
-     */
-    public static final String QUOTE = "Quote";
-
-    /**
-     * Note
-     */
-    public static final String NOTE = "Note";
-
-    /**
-     * Reference
-     */
-    public static final String REFERENCE = "Reference";
-
-    /**
-     * BibEntry
-     */
-    public static final String BIB_ENTRY = "BibEntry";
-
-    /**
-     * Code
-     */
-    public static final String CODE = "Code";
-
-    /**
-     * Link
-     */
-    public static final String LINK = "Link";
-
-    /**
-     * Annot
-     */
-    public static final String ANNOT = "Annot";
-
-    /**
-     * Ruby
-     */
-    public static final String RUBY = "Ruby";
-
-    /**
-     * RB
-     */
-    public static final String RB = "RB";
-
-    /**
-     * RT
-     */
-    public static final String RT = "RT";
-
-    /**
-     * RP
-     */
-    public static final String RP = "RP";
-
-    /**
-     * Warichu
-     */
-    public static final String WARICHU = "Warichu";
-
-    /**
-     * WT
-     */
-    public static final String WT = "WT";
-
-    /**
-     * WP
-     */
-    public static final String WP = "WP";
-
-
-    // Illustration Elements
-    /**
-     * Figure
-     */
-    public static final String Figure = "Figure";
-
-    /**
-     * Formula
-     */
-    public static final String FORMULA = "Formula";
-
-    /**
-     * Form
-     */
-    public static final String FORM = "Form";
-
-    /**
-     * All standard structure types.
-     */
-    public static List<String> types = new ArrayList<String>();
-
-    static
-    {
-        Field[] fields = StandardStructureTypes.class.getFields();
-        for (int i = 0; i < fields.length; i++)
-        {
-            if (Modifier.isFinal(fields[i].getModifiers()))
-            {
-                try
-                {
-                    types.add(fields[i].get(null).toString());
-                }
-                catch (IllegalArgumentException e)
-                {
-                    e.printStackTrace();
-                }
-                catch (IllegalAccessException e)
-                {
-                    e.printStackTrace();
-                }
-            }
-        }
-        Collections.sort(types);
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
+
+import java.lang.reflect.Field;
+import java.lang.reflect.Modifier;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * The standard structure types.
+ * 
+ * @author <a href="mailto:Johannes%20Koch%20%3Ckoch@apache.org%3E">Johannes Koch</a>
+ * @version $Revision: $
+ */
+public class StandardStructureTypes
+{
+
+    private StandardStructureTypes()
+    {
+    }
+
+
+    // Grouping Elements
+    /**
+     * Document
+     */
+    public static final String DOCUMENT = "Document";
+
+    /**
+     * Part
+     */
+    public static final String PART = "Part";
+
+    /**
+     * Art
+     */
+    public static final String ART = "Art";
+
+    /**
+     * Sect
+     */
+    public static final String SECT = "Sect";
+
+    /**
+     * Div
+     */
+    public static final String DIV = "Div";
+
+    /**
+     * BlockQuote
+     */
+    public static final String BLOCK_QUOTE = "BlockQuote";
+
+    /**
+     * Caption
+     */
+    public static final String CAPTION = "Caption";
+
+    /**
+     * TOC
+     */
+    public static final String TOC = "TOC";
+
+    /**
+     * TOCI
+     */
+    public static final String TOCI = "TOCI";
+
+    /**
+     * Index
+     */
+    public static final String INDEX = "Index";
+
+    /**
+     * NonStruct
+     */
+    public static final String NON_STRUCT = "NonStruct";
+
+    /**
+     * Private
+     */
+    public static final String PRIVATE = "Private";
+
+
+    // Block-Level Structure Elements
+    /**
+     * P
+     */
+    public static final String P = "P";
+
+    /**
+     * H
+     */
+    public static final String H = "H";
+
+    /**
+     * H1
+     */
+    public static final String H1 = "H1";
+
+    /**
+     * H2
+     */
+    public static final String H2 = "H2";
+
+    /**
+     * H3
+     */
+    public static final String H3 = "H3";
+
+    /**
+     * H4
+     */
+    public static final String H4 = "H4";
+
+    /**
+     * H5
+     */
+    public static final String H5 = "H5";
+
+    /**
+     * H6
+     */
+    public static final String H6 = "H6";
+
+    /**
+     * L
+     */
+    public static final String L = "L";
+
+    /**
+     * LI
+     */
+    public static final String LI = "LI";
+
+    /**
+     * Lbl
+     */
+    public static final String LBL = "Lbl";
+
+    /**
+     * LBody
+     */
+    public static final String L_BODY = "LBody";
+
+    /**
+     * Table
+     */
+    public static final String TABLE = "Table";
+
+    /**
+     * TR
+     */
+    public static final String TR = "TR";
+
+    /**
+     * TH
+     */
+    public static final String TH = "TH";
+
+    /**
+     * TD
+     */
+    public static final String TD = "TD";
+
+    /**
+     * THead
+     */
+    public static final String T_HEAD = "THead";
+
+    /**
+     * TBody
+     */
+    public static final String T_BODY = "TBody";
+
+    /**
+     * TFoot
+     */
+    public static final String T_FOOT = "TFoot";
+
+
+    // Inline-Level Structure Elements
+    /**
+     * Span
+     */
+    public static final String SPAN = "Span";
+
+    /**
+     * Quote
+     */
+    public static final String QUOTE = "Quote";
+
+    /**
+     * Note
+     */
+    public static final String NOTE = "Note";
+
+    /**
+     * Reference
+     */
+    public static final String REFERENCE = "Reference";
+
+    /**
+     * BibEntry
+     */
+    public static final String BIB_ENTRY = "BibEntry";
+
+    /**
+     * Code
+     */
+    public static final String CODE = "Code";
+
+    /**
+     * Link
+     */
+    public static final String LINK = "Link";
+
+    /**
+     * Annot
+     */
+    public static final String ANNOT = "Annot";
+
+    /**
+     * Ruby
+     */
+    public static final String RUBY = "Ruby";
+
+    /**
+     * RB
+     */
+    public static final String RB = "RB";
+
+    /**
+     * RT
+     */
+    public static final String RT = "RT";
+
+    /**
+     * RP
+     */
+    public static final String RP = "RP";
+
+    /**
+     * Warichu
+     */
+    public static final String WARICHU = "Warichu";
+
+    /**
+     * WT
+     */
+    public static final String WT = "WT";
+
+    /**
+     * WP
+     */
+    public static final String WP = "WP";
+
+
+    // Illustration Elements
+    /**
+     * Figure
+     */
+    public static final String Figure = "Figure";
+
+    /**
+     * Formula
+     */
+    public static final String FORMULA = "Formula";
+
+    /**
+     * Form
+     */
+    public static final String FORM = "Form";
+
+    /**
+     * All standard structure types.
+     */
+    public static List<String> types = new ArrayList<String>();
+
+    static
+    {
+        Field[] fields = StandardStructureTypes.class.getFields();
+        for (int i = 0; i < fields.length; i++)
+        {
+            if (Modifier.isFinal(fields[i].getModifiers()))
+            {
+                try
+                {
+                    types.add(fields[i].get(null).toString());
+                }
+                catch (IllegalArgumentException e)
+                {
+                    e.printStackTrace();
+                }
+                catch (IllegalAccessException e)
+                {
+                    e.printStackTrace();
+                }
+            }
+        }
+        Collections.sort(types);
+    }
+
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/StandardStructureTypes.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/package.html
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/package.html?rev=992248&r1=992247&r2=992248&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/package.html (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/package.html Fri Sep  3 09:57:26 2010
@@ -1,26 +1,26 @@
-<!--
- ! Licensed to the Apache Software Foundation (ASF) under one or more
- ! contributor license agreements.  See the NOTICE file distributed with
- ! this work for additional information regarding copyright ownership.
- ! The ASF licenses this file to You 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.
- !-->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-
-</head>
-<body>
-The tagged PDF package provides a mechanism for incorporating "tags" (standard
-structure types and attributes) into a PDF file.
-</body>
-</html>
+<!--
+ ! Licensed to the Apache Software Foundation (ASF) under one or more
+ ! contributor license agreements.  See the NOTICE file distributed with
+ ! this work for additional information regarding copyright ownership.
+ ! The ASF licenses this file to You 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.
+ !-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+
+</head>
+<body>
+The tagged PDF package provides a mechanism for incorporating "tags" (standard
+structure types and attributes) into a PDF file.
+</body>
+</html>

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/package.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message