Package org.openxmlformats.schemas.officeDocument.x2006.extendedProperties

Examples of org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTProperties


      if(contains(name)) {
        throw new IllegalArgumentException("A property with this name " +
            "already exists in the custom properties");
      }

      CTProperty p = props.getProperties().addNewProperty();
      int pid = nextPid();
      p.setPid(pid);
      p.setFmtid(FORMAT_ID);
      p.setName(name);
      return p;
    }
View Full Code Here


     * Add a new string property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
     public void addProperty(String name, String value){
      CTProperty p = add(name);
      p.setLpwstr(value);
    }
View Full Code Here

     * Add a new double property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, double value){
      CTProperty p = add(name);
      p.setR8(value);
    }
View Full Code Here

     * Add a new integer property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, int value){
      CTProperty p = add(name);
      p.setI4(value);
    }
View Full Code Here

     * Add a new boolean property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, boolean value){
      CTProperty p = add(name);
      p.setBool(value);
    }
View Full Code Here

      if(contains(name)) {
        throw new IllegalArgumentException("A property with this name " +
            "already exists in the custom properties");
      }

      CTProperty p = props.getProperties().addNewProperty();
      int pid = nextPid();
      p.setPid(pid);
      p.setFmtid(FORMAT_ID);
      p.setName(name);
      return p;
    }
View Full Code Here

     * Add a new string property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
     public void addProperty(String name, String value){
      CTProperty p = add(name);
      p.setLpwstr(value);
    }
View Full Code Here

     * Add a new double property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, double value){
      CTProperty p = add(name);
      p.setR8(value);
    }
View Full Code Here

     * Add a new integer property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, int value){
      CTProperty p = add(name);
      p.setI4(value);
    }
View Full Code Here

     * Add a new boolean property
     *
     * @throws IllegalArgumentException if a property with this name already exists
     */
    public void addProperty(String name, boolean value){
      CTProperty p = add(name);
      p.setBool(value);
    }
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.