Package org.dom4j

Examples of org.dom4j.Element.elementTextTrim()


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

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            model.setVersion( project.elementTextTrim( "version" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            model.setUrl( project.elementTextTrim( "url" ) );

            model.setPackaging( StringUtils.defaultIfEmpty( project.elementTextTrim( "packaging" ), "jar" ) );
View Full Code Here


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

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            model.setVersion( project.elementTextTrim( "version" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            model.setUrl( project.elementTextTrim( "url" ) );

            model.setPackaging( StringUtils.defaultIfEmpty( project.elementTextTrim( "packaging" ), "jar" ) );
View Full Code Here

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            model.setVersion( project.elementTextTrim( "version" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            model.setUrl( project.elementTextTrim( "url" ) );

            model.setPackaging( StringUtils.defaultIfEmpty( project.elementTextTrim( "packaging" ), "jar" ) );

            model.setParentProject( getParentProject( xml ) );
View Full Code Here

            model.setGroupId( project.elementTextTrim( "groupId" ) );
            model.setArtifactId( project.elementTextTrim( "artifactId" ) );
            model.setVersion( project.elementTextTrim( "version" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            model.setUrl( project.elementTextTrim( "url" ) );

            model.setPackaging( StringUtils.defaultIfEmpty( project.elementTextTrim( "packaging" ), "jar" ) );

            model.setParentProject( getParentProject( xml ) );
View Full Code Here

            model.setVersion( project.elementTextTrim( "version" ) );
            model.setName( project.elementTextTrim( "name" ) );
            model.setDescription( project.elementTextTrim( "description" ) );
            model.setUrl( project.elementTextTrim( "url" ) );

            model.setPackaging( StringUtils.defaultIfEmpty( project.elementTextTrim( "packaging" ), "jar" ) );

            model.setParentProject( getParentProject( xml ) );

            model.setMailingLists( getMailingLists( xml ) );
            model.setCiManagement( getCiManagement( xml ) );
View Full Code Here

    {
        Element elemCiMgmt = xml.getElement( "//project/ciManagement" );
        if ( elemCiMgmt != null )
        {
            CiManagement ciManagement = new CiManagement();
            ciManagement.setSystem( elemCiMgmt.elementTextTrim( "system" ) );
            ciManagement.setUrl( elemCiMgmt.elementTextTrim( "url" ) );
            return ciManagement;
        }

        return null;
View Full Code Here

        Element elemCiMgmt = xml.getElement( "//project/ciManagement" );
        if ( elemCiMgmt != null )
        {
            CiManagement ciManagement = new CiManagement();
            ciManagement.setSystem( elemCiMgmt.elementTextTrim( "system" ) );
            ciManagement.setUrl( elemCiMgmt.elementTextTrim( "url" ) );
            return ciManagement;
        }

        return null;
    }
View Full Code Here

        while ( it.hasNext() )
        {
            Element elemDependency = it.next();
            Dependency dependency = new Dependency();

            dependency.setGroupId( elemDependency.elementTextTrim( "groupId" ) );
            dependency.setArtifactId( elemDependency.elementTextTrim( "artifactId" ) );
            dependency.setVersion( elemDependency.elementTextTrim( "version" ) );

            dependency.setClassifier( StringUtils.defaultString( elemDependency.elementTextTrim( "classifier" ) ) );
            dependency.setType( StringUtils.defaultIfEmpty( elemDependency.elementTextTrim( "type" ), "jar" ) );
View Full Code Here

        {
            Element elemDependency = it.next();
            Dependency dependency = new Dependency();

            dependency.setGroupId( elemDependency.elementTextTrim( "groupId" ) );
            dependency.setArtifactId( elemDependency.elementTextTrim( "artifactId" ) );
            dependency.setVersion( elemDependency.elementTextTrim( "version" ) );

            dependency.setClassifier( StringUtils.defaultString( elemDependency.elementTextTrim( "classifier" ) ) );
            dependency.setType( StringUtils.defaultIfEmpty( elemDependency.elementTextTrim( "type" ), "jar" ) );
            dependency.setScope( StringUtils.defaultIfEmpty( elemDependency.elementTextTrim( "scope" ), "compile" ) );
View Full Code Here

            Element elemDependency = it.next();
            Dependency dependency = new Dependency();

            dependency.setGroupId( elemDependency.elementTextTrim( "groupId" ) );
            dependency.setArtifactId( elemDependency.elementTextTrim( "artifactId" ) );
            dependency.setVersion( elemDependency.elementTextTrim( "version" ) );

            dependency.setClassifier( StringUtils.defaultString( elemDependency.elementTextTrim( "classifier" ) ) );
            dependency.setType( StringUtils.defaultIfEmpty( elemDependency.elementTextTrim( "type" ), "jar" ) );
            dependency.setScope( StringUtils.defaultIfEmpty( elemDependency.elementTextTrim( "scope" ), "compile" ) );
            // Not for v4.0.0 -> dependency.setUrl( elemDependency.elementTextTrim("url") );
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.