Package org.dom4j

Examples of org.dom4j.Element.elementTextTrim()


                        // Delegate said no, reject destroy request.
                        throw new ForbiddenException();
                    }
                }

                room.destroyRoom(destroyElement.attributeValue("jid"), destroyElement
                        .elementTextTrim("reason"));
            }
            else {
                List<Element> itemsList = element.elements("item");
                if (!itemsList.isEmpty()) {
View Full Code Here


        for (Iterator<Element> elements = chat.getTranscript().elementIterator(); elements.hasNext();) {
            Element element = elements.next();
            // Only add Messages to the index (Presences are discarded)
            if ("message".equals(element.getName())) {
                // TODO Index XHTML bodies?
                String body = element.elementTextTrim("body");
                String from = element.attributeValue("from");
                String to = element.attributeValue("to");

                String fromNickname = new JID(from).getResource();
                String toNickname = new JID(to).getResource();
View Full Code Here

            Element project = xml.getElement( "//project" );

            // TODO: Handle <extend /> ?? (is this even possible?)

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
View Full Code Here

            Element project = xml.getElement( "//project" );

            // TODO: Handle <extend /> ?? (is this even possible?)

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            // TODO: what to do with <shortDescription /> ?
View Full Code Here

            // TODO: Handle <extend /> ?? (is this even possible?)

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            // TODO: what to do with <shortDescription /> ?
            model.setUrl( project.elementTextTrim( "url" ) );
            // TODO: Handle <logo />
View Full Code Here

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            // TODO: what to do with <shortDescription /> ?
            model.setUrl( project.elementTextTrim( "url" ) );
            // TODO: Handle <logo />
            // TODO: Handle <inceptionYear />
View Full Code Here

            Element snapshotElem = xml.getElement( "//metadata/versioning/snapshot" );
            if ( snapshotElem != null )
            {
                SnapshotVersion snapshot = new SnapshotVersion();
                snapshot.setTimestamp( snapshotElem.elementTextTrim( "timestamp" ) );
                String tmp = snapshotElem.elementTextTrim( "buildNumber" );
                if( NumberUtils.isNumber( tmp ))
                {
                    snapshot.setBuildNumber( NumberUtils.toInt( tmp ) );
                }
View Full Code Here

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            // TODO: what to do with <shortDescription /> ?
            model.setUrl( project.elementTextTrim( "url" ) );
            // TODO: Handle <logo />
            // TODO: Handle <inceptionYear />
View Full Code Here

            Element snapshotElem = xml.getElement( "//metadata/versioning/snapshot" );
            if ( snapshotElem != null )
            {
                SnapshotVersion snapshot = new SnapshotVersion();
                snapshot.setTimestamp( snapshotElem.elementTextTrim( "timestamp" ) );
                String tmp = snapshotElem.elementTextTrim( "buildNumber" );
                if( NumberUtils.isNumber( tmp ))
                {
                    snapshot.setBuildNumber( NumberUtils.toInt( tmp ) );
                }
                metadata.setSnapshotVersion( snapshot );
View Full Code Here

            // TODO: Handle <id />
            model.setVersion( project.elementTextTrim( "currentVersion" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            // TODO: what to do with <shortDescription /> ?
            model.setUrl( project.elementTextTrim( "url" ) );
            // TODO: Handle <logo />
            // TODO: Handle <inceptionYear />

            model.setIssueManagement( getIssueManagement( xml ) );
            // TODO: What to do with <gumpRepositoryId /> ?
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.