Package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects

Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink


        if (!feed.getEntries().isEmpty()) {
            for (AtomEntry entry : feed.getEntries()) {
                // walk through the entry
                for (AtomElement element : entry.getElements()) {
                    if (element.getObject() instanceof AtomLink) {
                        AtomLink atomLink = (AtomLink) element.getObject();
                        if (Constants.REL_SELF.equals(atomLink.getRel())) {
                            policyLink = atomLink.getHref();
                        }
                    } else if (element.getObject() instanceof CmisObjectType) {
                        String id = findIdProperty((CmisObjectType) element.getObject());
                        if (policyId.equals(id)) {
                            found = true;
View Full Code Here


    /**
     * Parses a link tag.
     */
    private static AtomElement parseLink(XMLStreamReader parser) throws Exception {
        QName name = parser.getName();
        AtomLink result = new AtomLink();

        // save attributes
        for (int i = 0; i < parser.getAttributeCount(); i++) {
            if (LINK_REL.equals(parser.getAttributeLocalName(i))) {
                result.setRel(parser.getAttributeValue(i));
            } else if (LINK_HREF.equals(parser.getAttributeLocalName(i))) {
                result.setHref(parser.getAttributeValue(i));
            } else if (LINK_TYPE.equals(parser.getAttributeLocalName(i))) {
                result.setType(parser.getAttributeValue(i));
            }
        }

        // skip enclosed tags, if any
        skip(parser);
View Full Code Here

    /**
     * Parses a link tag.
     */
    private static AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
        QName name = parser.getName();
        AtomLink result = new AtomLink();
        result.setRel(LINK_REL_CONTENT);

        // save attributes
        for (int i = 0; i < parser.getAttributeCount(); i++) {
            if (CONTENT_SRC.equals(parser.getAttributeLocalName(i))) {
                result.setHref(parser.getAttributeValue(i));
            }
        }

        // skip enclosed tags, if any
        skip(parser);
View Full Code Here

        if (!feed.getEntries().isEmpty()) {
            for (AtomEntry entry : feed.getEntries()) {
                // walk through the entry
                for (AtomElement element : entry.getElements()) {
                    if (element.getObject() instanceof AtomLink) {
                        AtomLink atomLink = (AtomLink) element.getObject();
                        if (Constants.REL_SELF.equals(atomLink.getRel())) {
                            policyLink = atomLink.getHref();
                        }
                    } else if (element.getObject() instanceof CmisObjectType) {
                        String id = findIdProperty((CmisObjectType) element.getObject());
                        if (policyId.equals(id)) {
                            found = true;
View Full Code Here

        if (!feed.getEntries().isEmpty()) {
            for (AtomEntry entry : feed.getEntries()) {
                // walk through the entry
                for (AtomElement element : entry.getElements()) {
                    if (element.getObject() instanceof AtomLink) {
                        AtomLink atomLink = (AtomLink) element.getObject();
                        if (Constants.REL_SELF.equals(atomLink.getRel())) {
                            policyLink = atomLink.getHref();
                        }
                    } else if (element.getObject() instanceof CmisObjectType) {
                        String id = findIdProperty((CmisObjectType) element.getObject());
                        if (policyId.equals(id)) {
                            found = true;
View Full Code Here

    /**
     * Parses a link tag.
     */
    private AtomElement parseLink(XMLStreamReader parser) throws Exception {
        QName name = parser.getName();
        AtomLink result = new AtomLink();

        // save attributes
        for (int i = 0; i < parser.getAttributeCount(); i++) {
            if (LINK_REL.equals(parser.getAttributeLocalName(i))) {
                result.setRel(parser.getAttributeValue(i));
            } else if (LINK_HREF.equals(parser.getAttributeLocalName(i))) {
                result.setHref(parser.getAttributeValue(i));
            } else if (LINK_TYPE.equals(parser.getAttributeLocalName(i))) {
                result.setType(parser.getAttributeValue(i));
            }
        }

        // skip enclosed tags, if any
        skip(parser);
View Full Code Here

    /**
     * Parses a link tag.
     */
    private AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
        QName name = parser.getName();
        AtomLink result = new AtomLink();
        result.setRel(LINK_REL_CONTENT);

        // save attributes
        for (int i = 0; i < parser.getAttributeCount(); i++) {
            if (CONTENT_SRC.equals(parser.getAttributeLocalName(i))) {
                result.setHref(parser.getAttributeValue(i));
            }
        }

        // skip enclosed tags, if any
        skip(parser);
View Full Code Here

        if (!feed.getEntries().isEmpty()) {
            for (AtomEntry entry : feed.getEntries()) {
                // walk through the entry
                for (AtomElement element : entry.getElements()) {
                    if (element.getObject() instanceof AtomLink) {
                        AtomLink atomLink = (AtomLink) element.getObject();
                        if (Constants.REL_SELF.equals(atomLink.getRel())) {
                            policyLink = atomLink.getHref();
                        }
                    } else if (element.getObject() instanceof ObjectData) {
                        String id = findIdProperty((ObjectData) element.getObject());
                        if (policyId.equals(id)) {
                            found = true;
View Full Code Here

        if (!feed.getEntries().isEmpty()) {
            for (AtomEntry entry : feed.getEntries()) {
                // walk through the entry
                for (AtomElement element : entry.getElements()) {
                    if (element.getObject() instanceof AtomLink) {
                        AtomLink atomLink = (AtomLink) element.getObject();
                        if (Constants.REL_SELF.equals(atomLink.getRel())) {
                            policyLink = atomLink.getHref();
                        }
                    } else if (element.getObject() instanceof CmisObjectType) {
                        String id = findIdProperty((CmisObjectType) element.getObject());
                        if (policyId.equals(id)) {
                            found = true;
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

Copyright © 2018 www.massapicom. 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.