Example usage for org.dom4j Element getStringValue

List of usage examples for org.dom4j Element getStringValue

Introduction

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

Prototype

String getStringValue();

Source Link

Document

Returns the XPath string-value of this node.

Usage

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

License:Apache License

private String loadCategory(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_CATEGORY, namespaceCP));
    if (el == null) {
        return null;
    }/* w ww .ja  v  a 2s  .  c  o m*/
    return el.getStringValue();
}

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

License:Apache License

private String loadContentStatus(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_CONTENT_STATUS, namespaceCP));
    if (el == null) {
        return null;
    }//from  ww  w  .  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 loadContentType(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_CONTENT_TYPE, namespaceCP));
    if (el == null) {
        return null;
    }/*  www . j  a v  a 2  s  . c  o  m*/
    return el.getStringValue();
}

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

License:Apache License

private String loadCreated(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_CREATED, namespaceDcTerms));
    if (el == null) {
        return null;
    }//  w  w  w .j a  va2 s . c om
    return el.getStringValue();
}

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

License:Apache License

private String loadCreator(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_CREATOR, namespaceDC));
    if (el == null) {
        return null;
    }//from   w  w  w  . jav  a2  s  . c  om
    return el.getStringValue();
}

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;
    }//from w w w.ja  v  a2s. c  om
    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  w  w .  j  a va  2 s. c o 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;
    }/*  www .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 loadLanguage(Document xmlDoc) {
    Element el = xmlDoc.getRootElement().element(new QName(KEYWORD_LANGUAGE, namespaceDC));
    if (el == null) {
        return null;
    }//from  w  w  w  . j  av a 2s. 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;
    }//w  w  w  . j a v  a2  s. c o  m
    return el.getStringValue();
}