Examples of requiredText()


Examples of org.xmlpull.infoset.XmlElement.requiredText()

     */
    @Override
    protected void parse(XmlElement nodeElement) throws GraphException {
        super.parse(nodeElement);
        XmlElement memoElement = nodeElement.element(GraphSchema.NODE_MEMO_TAG);
        this.memo = memoElement.requiredText();
    }

}

/*
 
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

     * @param edgeElement
     */
    protected void parse(XmlElement edgeElement) {
        XmlElement fromPortElement = edgeElement
                .element(GraphSchema.EDGE_FROM_PORT_TAG);
        this.fromPortID = fromPortElement.requiredText();

        XmlElement toPortElement = edgeElement
                .element(GraphSchema.EDGE_TO_PORT_TAG);
        this.toPortID = toPortElement.requiredText();
    }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

                .element(GraphSchema.EDGE_FROM_PORT_TAG);
        this.fromPortID = fromPortElement.requiredText();

        XmlElement toPortElement = edgeElement
                .element(GraphSchema.EDGE_TO_PORT_TAG);
        this.toPortID = toPortElement.requiredText();
    }

    /**
     * @return the XmlElement
     */
 
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

        super.parseConfiguration(configElement);

        XmlElement typeElement = configElement.element(null,
                DATA_TYPE_QNAME_TAG);
        if (typeElement != null) {
            String qnameText = typeElement.requiredText();
            if (qnameText != null && !qnameText.equals("")) {
                this.type = QName.valueOf(qnameText);
            }
        }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    protected void parseConfiguration(XmlElement configElement) {
        XmlElement nameElement = configElement.element(null, NAME_TAG);
        if (nameElement != null) {
            // If the name is set here, this node has been configured.
            this.configured = true;
            this.configuredName = nameElement.requiredText();
        }
        XmlElement descElement = configElement.element(null, DESCRIPTION_TAG);
        if (descElement != null) {
            this.description = descElement.requiredText();
        }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

            this.configured = true;
            this.configuredName = nameElement.requiredText();
        }
        XmlElement descElement = configElement.element(null, DESCRIPTION_TAG);
        if (descElement != null) {
            this.description = descElement.requiredText();
        }
        XmlElement typeElement = configElement.element(null, DATA_TYPE_QNAME_TAG);
        if (typeElement != null) {
            String qnameText = typeElement.requiredText();
            if (qnameText != null && !qnameText.equals("")) {
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

        if (descElement != null) {
            this.description = descElement.requiredText();
        }
        XmlElement typeElement = configElement.element(null, DATA_TYPE_QNAME_TAG);
        if (typeElement != null) {
            String qnameText = typeElement.requiredText();
            if (qnameText != null && !qnameText.equals("")) {
                this.parameterType = QName.valueOf(qnameText);
            }
        }
        XmlElement metadataElement = configElement.element(null, METADATA_TAG);
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    @Override
    protected void parseConfiguration(XmlElement configElement) {
        super.parseConfiguration(configElement);
        XmlElement element = configElement.element(null, XPATH_TAG_NAME);
        if (element != null) {
            this.xpath = element.requiredText();
        }
    }

    @Override
    protected XmlElement toXML() {
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

            throw new IllegalArgumentException("null");
        }
        XmlElement timestampEl = event.element(WOR_NS, TIMESTAMP_TAG);
        if (timestampEl == null)
            return null;
        String timestamp = timestampEl.requiredText();
        DcDate date = DcDate.create(timestamp);
        return new Date(date.getTimeInMillis());
    }

    /**
 
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

            throw new IllegalArgumentException("null");
        }
        String description = null;
        XmlElement descElement = event.element(WOR_NS, DESCRIPTION_TAG);
        if (descElement != null) {
            description = descElement.requiredText();
        }

        if (description == null || description.length() == 0) {
            // It might be a data-related notification
            XmlElement dataProduct = event.element(WOR_NS, DATA_PRODUCT_TAG);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.