org.apache.xml.serializer.Docx4jMappingRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
The newest version!
package org.apache.xml.serializer;
import org.apache.xml.serializer.NamespaceMappings.MappingRecord;
public class Docx4jMappingRecord {
private static final String EMPTYSTRING = "";
final String m_prefix; // the prefix
public final String m_uri; // the uri, possibly "" but never null
// the depth of the element where declartion was made
public final int m_declarationDepth;
// Docx4jMappingRecord(String prefix, String uri, int depth) {
// m_prefix = prefix;
// m_uri = (uri==null)? EMPTYSTRING : uri;
// m_declarationDepth = depth;
// }
public Docx4jMappingRecord(NamespaceMappings namespaceMappings, String prefix) {
MappingRecord mappingRecord = namespaceMappings.getMappingFromPrefix(prefix);
m_prefix = mappingRecord.m_prefix;
m_uri = mappingRecord.m_uri;
m_declarationDepth = mappingRecord.m_declarationDepth;
}
}