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

com.hfg.xml.msofficexml.OfficeXML Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
package com.hfg.xml.msofficexml;


import com.hfg.xml.XMLName;
import com.hfg.xml.XMLNamespace;

import java.io.File;

public class OfficeXML
{
   public static final String       RELATIONSHIP_DIR     = "_rels";
   public static final File         PACKAGE_RELATIONSHIP_FILE = new File(RELATIONSHIP_DIR, ".rels");
   public static final String       PROPERTIES_DIR       = "docProps";
   public static final File         CORE_PROPERTIES_FILE = new File(PROPERTIES_DIR, "core.xml");
   public static final File         CONTENT_TYPES_FILE   = new File("[Content_Types].xml");


   public static final XMLNamespace CONTENT_TYPES_NAMESPACE     = XMLNamespace.getNamespace("http://schemas.openxmlformats.org/package/2006/content-types");
   public static final XMLNamespace CORE_PROP_NAMESPACE         = XMLNamespace.getNamespace("cp",    "http://schemas.openxmlformats.org/package/2006/metadata/core-properties");
   public static final XMLNamespace EXTENDED_PROP_NAMESPACE     = XMLNamespace.getNamespace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties");
   public static final XMLNamespace RELATIONSHIPS_NAMESPACE     = XMLNamespace.getNamespace("http://schemas.openxmlformats.org/package/2006/relationships");
   public static final XMLNamespace OFFICE_NAMESPACE            = XMLNamespace.getNamespace("o",     "urn:schemas-microsoft-com:office:office");
   public static final XMLNamespace MAC_OFFICE_NAMESPACE        = XMLNamespace.getNamespace("mo",    "http://schemas.microsoft.com/office/mac/office/2008/main");
   public static final XMLNamespace MARKUP_CAPABILITY_NAMESPACE = XMLNamespace.getNamespace("mc",    "http://schemas.openxmlformats.org/markup-compatibility/2006");
   public static final XMLNamespace MATH_NAMESPACE              = XMLNamespace.getNamespace("m",     "http://schemas.openxmlformats.org/officeDocument/2006/math");
   public static final XMLNamespace DUBLIN_CORE_NAMESPACE       = XMLNamespace.getNamespace("dc",    "http://purl.org/dc/elements/1.1/");
   public static final XMLNamespace DUBLIN_CORE_TERMS_NAMESPACE = XMLNamespace.getNamespace("dcterms", "http://purl.org/dc/terms/");
   public static final XMLNamespace DUBLIN_CORE_TYPES_NAMESPACE = XMLNamespace.getNamespace("dcmitype", "http://purl.org/dc/dcmitype/");
   public static final XMLNamespace VML_NAMESPACE               = XMLNamespace.getNamespace("mv",    "urn:schemas-microsoft-com:mac:vml");
   public static final XMLNamespace XML_NAMESPACE               = XMLNamespace.getNamespace("xml",   "");




   // Tag names
   public static final XMLName TYPES                = new XMLName("Types",              CONTENT_TYPES_NAMESPACE);
   public static final XMLName DEFAULT              = new XMLName("Default",            CONTENT_TYPES_NAMESPACE);
   public static final XMLName OVERRIDE             = new XMLName("Override",           CONTENT_TYPES_NAMESPACE);

   public static final XMLName CORE_PROPERTIES      = new XMLName("coreProperties",     CORE_PROP_NAMESPACE);
   public static final XMLName DESCRIPTION          = new XMLName("description",        CORE_PROP_NAMESPACE);
   public static final XMLName KEYWORDS             = new XMLName("keywords",           CORE_PROP_NAMESPACE);
   public static final XMLName LAST_MODIFIED_BY     = new XMLName("lastModifiedBy",     CORE_PROP_NAMESPACE);
   public static final XMLName REVISION             = new XMLName("revision",           CORE_PROP_NAMESPACE);
   public static final XMLName SUBJECT              = new XMLName("subject",            DUBLIN_CORE_NAMESPACE);
   public static final XMLName TITLE                = new XMLName("title",              DUBLIN_CORE_NAMESPACE);
   public static final XMLName CREATOR              = new XMLName("creator",            DUBLIN_CORE_NAMESPACE);
   public static final XMLName CREATED              = new XMLName("created",            DUBLIN_CORE_TERMS_NAMESPACE);
   public static final XMLName MODIFIED             = new XMLName("modified",           DUBLIN_CORE_TERMS_NAMESPACE);

   public static final XMLName SPACE                = new XMLName("space",              XML_NAMESPACE);

   public static final XMLName RELATIONSHIP         = new XMLName("Relationship",       RELATIONSHIPS_NAMESPACE);
   public static final XMLName RELATIONSHIPS        = new XMLName("Relationships",      RELATIONSHIPS_NAMESPACE);

   // Attribute names
   public static final XMLName EXTENSION_ATT        = new XMLName("Extension",          CONTENT_TYPES_NAMESPACE);
   public static final XMLName CONTENT_TYPE_ATT     = new XMLName("ContentType",        CONTENT_TYPES_NAMESPACE);
   public static final XMLName PART_NAME_ATT        = new XMLName("PartName",           CONTENT_TYPES_NAMESPACE);

   public static final XMLName ID_ATT               = new XMLName("Id",                 RELATIONSHIPS_NAMESPACE);
   public static final XMLName TARGET_ATT           = new XMLName("Target",             RELATIONSHIPS_NAMESPACE);
   public static final XMLName TARGET_MODE_ATT      = new XMLName("TargetMode",         RELATIONSHIPS_NAMESPACE);
   public static final XMLName TYPE_ATT             = new XMLName("Type",               RELATIONSHIPS_NAMESPACE);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy