@Test public void testPopulate() throws Exception { Map<String, Object> properties = new HashMap<String, Object>(); properties.put( "displayName", "Display Name" ); properties.put( "url", "URL" ); properties.put( "description", "Description" ); properties.put( "isDefault", true ); PurRepositoryMeta purRepositoryMeta = new PurRepositoryMeta(); purRepositoryMeta.populate( properties, repositoriesMeta ); assertEquals( "Display Name", purRepositoryMeta.getName() ); assertEquals( "URL", purRepositoryMeta.getRepositoryLocation().getUrl() ); assertEquals( "Description", purRepositoryMeta.getDescription() ); assertEquals( true, purRepositoryMeta.isDefault() ); }
@Override public void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ) { super.populate( properties, repositoriesMeta ); String url = (String) properties.get( URL ); PurRepositoryLocation purRepositoryLocation = new PurRepositoryLocation( url ); setRepositoryLocation( purRepositoryLocation ); }
PurRepositoryMeta extends BaseRepositoryMeta implements RepositoryMeta, java.io.Serializable { @Override public void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ) { super.populate( properties, repositoriesMeta ); String url = (String) properties.get( URL ); PurRepositoryLocation purRepositoryLocation = new PurRepositoryLocation( url ); setRepositoryLocation( purRepositoryLocation ); } }
PurRepositoryMeta extends BaseRepositoryMeta implements RepositoryMeta, java.io.Serializable { @Override public void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ) { super.populate( properties, repositoriesMeta ); String url = (String) properties.get( URL ); PurRepositoryLocation purRepositoryLocation = new PurRepositoryLocation( url ); setRepositoryLocation( purRepositoryLocation ); } PurRepositoryMeta();  PurRepositoryMeta( String id, String name, String description, PurRepositoryLocation repositoryLocation,
      boolean versionCommentMandatory ); }
PurRepositoryMeta extends BaseRepositoryMeta implements RepositoryMeta, java.io.Serializable { @Override public void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ) { super.populate( properties, repositoriesMeta ); String url = (String) properties.get( URL ); PurRepositoryLocation purRepositoryLocation = new PurRepositoryLocation( url ); setRepositoryLocation( purRepositoryLocation ); } PurRepositoryMeta();  PurRepositoryMeta( String id, String name, String description, PurRepositoryLocation repositoryLocation,
      boolean versionCommentMandatory ); String getXML(); void loadXML( Node repnode, List<DatabaseMeta> databases ); RepositoryCapabilities getRepositoryCapabilities(); PurRepositoryLocation getRepositoryLocation(); void setRepositoryLocation( PurRepositoryLocation repositoryLocation ); boolean isVersionCommentMandatory(); void setVersionCommentMandatory( boolean versionCommentMandatory ); RepositoryMeta clone(); @Override void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ); @SuppressWarnings( "unchecked" ) @Override JSONObject toJSONObject(); }
PurRepositoryMeta extends BaseRepositoryMeta implements RepositoryMeta, java.io.Serializable { @Override public void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ) { super.populate( properties, repositoriesMeta ); String url = (String) properties.get( URL ); PurRepositoryLocation purRepositoryLocation = new PurRepositoryLocation( url ); setRepositoryLocation( purRepositoryLocation ); } PurRepositoryMeta();  PurRepositoryMeta( String id, String name, String description, PurRepositoryLocation repositoryLocation,
      boolean versionCommentMandatory ); String getXML(); void loadXML( Node repnode, List<DatabaseMeta> databases ); RepositoryCapabilities getRepositoryCapabilities(); PurRepositoryLocation getRepositoryLocation(); void setRepositoryLocation( PurRepositoryLocation repositoryLocation ); boolean isVersionCommentMandatory(); void setVersionCommentMandatory( boolean versionCommentMandatory ); RepositoryMeta clone(); @Override void populate( Map<String, Object> properties, RepositoriesMeta repositoriesMeta ); @SuppressWarnings( "unchecked" ) @Override JSONObject toJSONObject(); static final String URL; static String REPOSITORY_TYPE_ID; }