if ( mailingList.getName() != null ) serializer.startTag( NAMESPACE, "name" ).text( mailingList.getName() ).endTag( NAMESPACE, "name" ); if ( mailingList.getSubscribe() != null ) serializer.startTag( NAMESPACE, "subscribe" ).text( mailingList.getSubscribe() ).endTag( NAMESPACE, "subscribe" ); if ( mailingList.getUnsubscribe() != null ) serializer.startTag( NAMESPACE, "unsubscribe" ).text( mailingList.getUnsubscribe() ).endTag( NAMESPACE, "unsubscribe" ); if ( mailingList.getPost() != null ) serializer.startTag( NAMESPACE, "post" ).text( mailingList.getPost() ).endTag( NAMESPACE, "post" ); if ( mailingList.getArchive() != null ) serializer.startTag( NAMESPACE, "archive" ).text( mailingList.getArchive() ).endTag( NAMESPACE, "archive" ); if ( ( mailingList.getOtherArchives() != null ) && ( mailingList.getOtherArchives().size() > 0 ) ) for ( Iterator iter = mailingList.getOtherArchives().iterator(); iter.hasNext(); )
public static MailingList cloneMailingList( MailingList src ) { if ( src == null ) { return null; } MailingList result = new MailingList(); result.setArchive( src.getArchive() ); result.setName( src.getName() ); result.setOtherArchives( src.getOtherArchives() ); result.setPost( src.getPost() ); result.setSubscribe( src.getSubscribe() ); result.setUnsubscribe( src.getUnsubscribe() ); return result; }
protected void mergeMailingList_Archive( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getArchive(); if ( src != null ) { if ( sourceDominant || target.getArchive() == null ) { target.setArchive( src ); target.setLocation( "archive", source.getLocation( "archive" ) ); } } }
protected void mergeMailingList_Name( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getName(); if ( src != null ) { if ( sourceDominant || target.getName() == null ) { target.setName( src ); target.setLocation( "name", source.getLocation( "name" ) ); } } }
MailingList mailingList = new MailingList(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) mailingList.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); mailingList.setSubscribe( interpolatedTrimmed( parser.nextText(), "subscribe" ) ); mailingList.setUnsubscribe( interpolatedTrimmed( parser.nextText(), "unsubscribe" ) ); mailingList.setPost( interpolatedTrimmed( parser.nextText(), "post" ) ); mailingList.setArchive( interpolatedTrimmed( parser.nextText(), "archive" ) ); mailingList.setOtherArchives( otherArchives ); while ( parser.nextTag() == XmlPullParser.START_TAG )
for (MailingList list : mailings) { MailingListPanel pnl = new MailingListPanel(); setPlainText(pnl.txtName, list.getName(), loading); setLinkedText(pnl.btnArchive, list.getArchive(), loading); setPlainText(pnl.txtSubscribe, list.getSubscribe(), loading); setPlainText(pnl.txtUnsubscribe, list.getUnsubscribe(), loading); pnlMailingLists.add(pnl);
/** * Method addOtherArchive. * * @param string */ public void addOtherArchive( String string ) { getOtherArchives().add( string ); } //-- void addOtherArchive( String )
protected void mergeMailingList_Subscribe( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getSubscribe(); if ( src != null ) { if ( sourceDominant || target.getSubscribe() == null ) { target.setSubscribe( src ); target.setLocation( "subscribe", source.getLocation( "subscribe" ) ); } } }
protected void mergeMailingList_Unsubscribe( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUnsubscribe(); if ( src != null ) { if ( sourceDominant || target.getUnsubscribe() == null ) { target.setUnsubscribe( src ); target.setLocation( "unsubscribe", source.getLocation( "unsubscribe" ) ); } } }
protected void mergeMailingList_Post( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getPost(); if ( src != null ) { if ( sourceDominant || target.getPost() == null ) { target.setPost( src ); target.setLocation( "post", source.getLocation( "post" ) ); } } }
private List translateMailingLists( List v3MailingLists ) { List mailingLists = new ArrayList(); if ( notEmpty( v3MailingLists ) ) { for ( Iterator it = v3MailingLists.iterator(); it.hasNext(); ) { org.apache.maven.model.v3_0_0.MailingList v3List = (org.apache.maven.model.v3_0_0.MailingList) it .next(); MailingList list = new MailingList(); list.setArchive( v3List.getArchive() ); list.setName( v3List.getName() ); list.setSubscribe( v3List.getSubscribe() ); list.setUnsubscribe( v3List.getUnsubscribe() ); mailingLists.add( list ); } } return mailingLists; }
protected void mergeMailingList_OtherArchives( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { List<String> src = source.getOtherArchives(); if ( !src.isEmpty() ) { List<String> tgt = target.getOtherArchives(); List<String> merged = new ArrayList<>( tgt.size() + src.size() ); merged.addAll( tgt ); merged.addAll( src ); target.setOtherArchives( merged ); } }
$scope.newMember = function() { var member = new MailingList(); member.$save({email: $scope.memberData.email}); };
MailingList mailingList = new MailingList(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); mailingList.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) mailingList.setLocation( "name", _location ); mailingList.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); mailingList.setLocation( "subscribe", _location ); mailingList.setSubscribe( interpolatedTrimmed( parser.nextText(), "subscribe" ) ); mailingList.setLocation( "unsubscribe", _location ); mailingList.setUnsubscribe( interpolatedTrimmed( parser.nextText(), "unsubscribe" ) ); mailingList.setLocation( "post", _location ); mailingList.setPost( interpolatedTrimmed( parser.nextText(), "post" ) ); mailingList.setLocation( "archive", _location ); mailingList.setArchive( interpolatedTrimmed( parser.nextText(), "archive" ) ); mailingList.setOtherArchives( otherArchives ); InputLocation _locations; _locations = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); mailingList.setLocation( "otherArchives", _locations ); while ( parser.nextTag() == XmlPullParser.START_TAG )
/** * Method removeOtherArchive. * * @param string */ public void removeOtherArchive( String string ) { getOtherArchives().remove( string ); } //-- void removeOtherArchive( String )
protected void mergeMailingList_Archive( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getArchive(); if ( src != null ) { if ( sourceDominant || target.getArchive() == null ) { target.setArchive( src ); target.setLocation( "archive", source.getLocation( "archive" ) ); } } }
protected void mergeMailingList_Name( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getName(); if ( src != null ) { if ( sourceDominant || target.getName() == null ) { target.setName( src ); target.setLocation( "name", source.getLocation( "name" ) ); } } }
protected void mergeMailingList_Subscribe( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getSubscribe(); if ( src != null ) { if ( sourceDominant || target.getSubscribe() == null ) { target.setSubscribe( src ); target.setLocation( "subscribe", source.getLocation( "subscribe" ) ); } } }
protected void mergeMailingList_Unsubscribe( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUnsubscribe(); if ( src != null ) { if ( sourceDominant || target.getUnsubscribe() == null ) { target.setUnsubscribe( src ); target.setLocation( "unsubscribe", source.getLocation( "unsubscribe" ) ); } } }
protected void mergeMailingList_Post( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getPost(); if ( src != null ) { if ( sourceDominant || target.getPost() == null ) { target.setPost( src ); target.setLocation( "post", source.getLocation( "post" ) ); } } }