private void writeIssueManagement(IssueManagement issueManagement, String tagName, XmlSerializer serializer) throws java.io.IOException { serializer.startTag(NAMESPACE, tagName); flush(serializer); StringBuffer b = b(serializer); int start = b.length(); if (issueManagement.getSystem() != null) { writeValue(serializer, "system", issueManagement.getSystem(), issueManagement); } if (issueManagement.getUrl() != null) { writeValue(serializer, "url", issueManagement.getUrl(), issueManagement); } serializer.endTag(NAMESPACE, tagName).flush(); logLocation(issueManagement, "", start, b.length()); }
/** * Method updateIssueManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateIssueManagement( IssueManagement 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, "system", value.getSystem(), null ); findAndReplaceSimpleElement( innerCount, root, "url", value.getUrl(), null ); } }
private org.apache.archiva.metadata.model.IssueManagement convertIssueManagement( IssueManagement issueManagement ) { org.apache.archiva.metadata.model.IssueManagement im = null; if ( issueManagement != null ) { im = new org.apache.archiva.metadata.model.IssueManagement(); im.setSystem( issueManagement.getSystem() ); im.setUrl( issueManagement.getUrl() ); } return im; }
protected void mergeIssueManagement_System( IssueManagement target, IssueManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getSystem(); if ( src != null ) { if ( sourceDominant || target.getSystem() == null ) { target.setSystem( src ); target.setLocation( "system", source.getLocation( "system" ) ); } } }
protected void mergeIssueManagement_Url( IssueManagement target, IssueManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUrl(); if ( src != null ) { if ( sourceDominant || target.getUrl() == null ) { target.setUrl( src ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
public IssueManagement getIssueManagement() { return null; }
@Override public IssueManagement replaceIssueManagement( IssueManagement issueManagement ) { return issueManagement; }
@Override public void visitIssueManagement( IssueManagement issueManagement ) { }
@Override public IssueManagement get( Model model ) { return model.getIssueManagement(); }
@Override public void set( Model model, IssueManagement value ) { model.setIssueManagement( value ); }
public void setIssueManagement( IssueManagement issueManagement ) { getModel().setIssueManagement( issueManagement ); }
public IssueManagement getIssueManagement() { return getModel().getIssueManagement(); }
protected void mergeIssueManagement( IssueManagement target, IssueManagement source, boolean sourceDominant, Map<Object, Object> context ) { mergeIssueManagement_Url( target, source, sourceDominant, context ); mergeIssueManagement_System( target, source, sourceDominant, context ); }
@Override public void setIssueManagement(final IssueManagement management) { getDelegate().setIssueManagement(management); }
@Override public IssueManagement getIssueManagement() { return getDelegate().getIssueManagement(); }
public void setIssueManagement( IssueManagement issueManagement ) { }
IssueManagement replaceIssueManagement( IssueManagement issueManagement );
void visitIssueManagement( IssueManagement issueManagement );