protected void updateParent ( Parent value , String xmlTag , Counter counter , Element element ) { boolean shouldExist = value != null ; Element root = updateElement ( counter , element , xmlTag , shouldExist ) ; if ( shouldExist ) { Counter innerCount = new Counter ( counter . getDepth ( ) + 1 ) ; findAndReplaceSimpleElement ( innerCount , root , "artifactId" , value . getArtifactId ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "groupId" , value . getGroupId ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "version" , value . getVersion ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "relativePath" , value . getRelativePath ( ) , "../pom.xml" ) ; } }
Method updateParent .