/** * Method addPattern. * * @param string */ public void addPattern( String string ) { getPatterns().add( string ); } //-- void addPattern( String )
/** * Method removePattern. * * @param string */ public void removePattern( String string ) { getPatterns().remove( string ); } //-- void removePattern( String )
Assert.assertEquals( targetResource.getContentClass(), repositoryTarget.getContentClass() ); Assert.assertEquals( targetResource.getName(), repositoryTarget.getName() ); Assert.assertEquals( targetResource.getPatterns(), repositoryTarget.getPatterns() );
protected Target convert( CRepositoryTarget target ) { ContentClass contentClass = getContentClassById( target.getContentClass() ); // If content class is null, we have a target for a repo type that no longer exists // plugin was removed most likely, so we ignore in this case if ( contentClass != null ) { return new Target( target.getId(), target.getName(), contentClass, target.getPatterns() ); } return null; }
repositoryTarget.getPatterns()));
if ( ( cRepositoryTarget.getPatterns() != null ) && ( cRepositoryTarget.getPatterns().size() > 0 ) ) for ( Iterator iter = cRepositoryTarget.getPatterns().iterator(); iter.hasNext(); )
List<String> patterns = settings.getPatterns();