Example usage for org.dom4j QName QName

List of usage examples for org.dom4j QName QName

Introduction

In this page you can find the example usage for org.dom4j QName QName.

Prototype

public QName(String name, Namespace namespace) 

Source Link

Usage

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadDescription(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_DESCRIPTION, namespaceDC));
    if (el == null) {
        return null;
    }//w  ww .j ava  2s.  com
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadIdentifier(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_IDENTIFIER, namespaceDC));
    if (el == null) {
        return null;
    }//from   w  ww  . ja  va  2 s .co m
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadKeywords(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_KEYWORDS, namespaceCP));
    if (el == null) {
        return null;
    }//  w w  w .ja  va 2  s . c  om
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadLanguage(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_LANGUAGE, namespaceDC));
    if (el == null) {
        return null;
    }/*  ww w.jav  a2  s  .  c  o m*/
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadLastModifiedBy(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_LAST_MODIFIED_BY, namespaceCP));
    if (el == null) {
        return null;
    }/*from  www. j a  v a2s . c  o m*/
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadLastPrinted(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_LAST_PRINTED, namespaceCP));
    if (el == null) {
        return null;
    }//  ww  w .  java2  s. c  o m
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadModified(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_MODIFIED, namespaceDcTerms));
    if (el == null) {
        return null;
    }/*from  ww  w  . ja  v a 2  s .c om*/
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadRevision(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_REVISION, namespaceCP));
    if (el == null) {
        return null;
    }/*  w  w w . j  a v a  2s  .c om*/
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadSubject(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_SUBJECT, namespaceDC));
    if (el == null) {
        return null;
    }/*  www  .  j  a  v  a 2  s .  c  om*/
    return el.getStringValue();
}

From source file:org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller.java

License:Apache License

private String loadTitle(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_TITLE, namespaceDC));
    if (el == null) {
        return null;
    }//  w ww.  java2s .co  m
    return el.getStringValue();
}