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.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 el.getStringValue();
    else//ww  w . j  a v a2 s.  co  m
        return null;
}

From source file:org.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 el.getStringValue();
    else// www.  j a  v a2  s  . c o  m
        return null;
}

From source file:org.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 el.getStringValue();
    else//  ww  w.  j  a  v  a2  s  .c o m
        return null;
}

From source file:org.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 el.getStringValue();
    else/*from  w  ww .j a  va 2  s . c  o m*/
        return null;
}

From source file:org.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 el.getStringValue();
    else// w w  w  .j a v  a2 s .c  o  m
        return null;
}

From source file:org.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 el.getStringValue();
    else/*w w w.  ja  v a 2 s . com*/
        return null;
}

From source file:org.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 el.getStringValue();
    else/*from  w  ww . ja  v  a  2s .  c om*/
        return null;
}

From source file:org.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 el.getStringValue();
    else/* ww  w .ja  v  a2  s  .com*/
        return null;
}

From source file:org.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 el.getStringValue();
    else/*from w  ww. j a v a  2  s  .c om*/
        return null;
}

From source file:org.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 el.getStringValue();
    else/* w  w  w . ja  v  a 2s .c  om*/
        return null;
}