本文整理了Java中org.apache.maven.model.Organization.<init>()
方法的一些代码示例,展示了Organization.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Organization.<init>()
方法的具体详情如下:
包路径:org.apache.maven.model.Organization
类名称:Organization
方法名:<init>
暂无
代码示例来源:origin: org.apache.maven/maven-project
public static Organization cloneOrganization( Organization src )
{
if ( src == null )
{
return null;
}
Organization result = new Organization();
result.setName( src.getName() );
result.setUrl( src.getUrl() );
return result;
}
代码示例来源:origin: apache/maven
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
Map<Object, Object> context )
{
Organization src = source.getOrganization();
if ( src != null )
{
Organization tgt = target.getOrganization();
if ( tgt == null )
{
tgt = new Organization();
target.setOrganization( tgt );
}
mergeOrganization( tgt, src, sourceDominant, context );
}
}
代码示例来源:origin: apache/maven
@Override
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
Map<Object, Object> context )
{
Organization src = source.getOrganization();
if ( src != null )
{
Organization tgt = target.getOrganization();
if ( tgt == null )
{
tgt = new Organization();
tgt.setLocation( "", src.getLocation( "" ) );
target.setOrganization( tgt );
mergeOrganization( tgt, src, sourceDominant, context );
}
}
}
代码示例来源:origin: apache/maven
Organization organization = new Organization();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
代码示例来源:origin: apache/maven
Organization organization = new Organization();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
代码示例来源:origin: takari/polyglot-maven
Organization organization = new Organization();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
代码示例来源:origin: stackoverflow.com
List<Organization> rowItem=new ArrayList<Organization>();
for(String quote:quotes){
Organization temp=new Organization(quote);//I wonder how this worked as there is only one contructor for Organization which is expecting 2 parameters
rowItem.add(temp);
}
代码示例来源:origin: stackoverflow.com
List<Organization> rowItem=new ArrayList<Organization>();
for(String quote:quotes){
Organization temp=new Organization(quote);
rowItem.add(temp);
}
listView = (ListView) findViewById(R.id.listView);
CustomListViewAdapter adapter = new CustomListViewAdapter(this,
R.layout.single_row_item, rowItem);
listView.setAdapter(adapter);
代码示例来源:origin: stackoverflow.com
@Test
public void testAddOrg() {
final Organization expectedOrg = new Organization();
expectedOrgAttr.setId("7c82facc");
expectedOrgAttr.setKeys("one");
new Expectations() {{
mockJdbcTemplate.queryForObject(DAOImpl.GET_KEY_FOR_ORG_IDS, (DAORowMapper) any, expectedOrgAttr.getId(), expectedOrgAttr.getKeys());
result = expectedOrgAttr;
}};
Organization actualKey =daoImpl.addOrg(expectedOrgAttr.getId(), expectedOrgAttr.getKeys());
assertEquals(expectedOrgAttr.getId(), actualKey.getId());
}
代码示例来源:origin: stackoverflow.com
public Organization getContactOrg(String id) {
Organization org = new Organization();
String where = ContactsContract.Data.CONTACT_ID + " = ? AND " + ContactsContract.Data.MIMETYPE + " = ?";
String[] whereParameters = new String[]{id,
ContactsContract.CommonDataKinds.Organization.CONTENT_ITEM_TYPE};
Cursor orgCur = this.cr.query(ContactsContract.Data.CONTENT_URI, null, where, whereParameters, null);
if (orgCur.moveToFirst()) {
String orgName = orgCur.getString(orgCur.getColumnIndex(ContactsContract.CommonDataKinds.Organization.DATA));
String title = orgCur.getString(orgCur.getColumnIndex(ContactsContract.CommonDataKinds.Organization.TITLE));
if (orgName.length() > 0) {
org.setOrganization(orgName);
org.setTitle(title);
}
}
orgCur.close();
return(org);
}
代码示例来源:origin: stackoverflow.com
public Organization getOrCreateOrganization(String name) {
Criteria crit = session.createCriteria(Organization.class);
crit.add(Restrictions.eq("name", name));
Organization result = (Organization)crit.uniqueResult();
if (result == null) {
result = new Organization();
result.setName(name);
session.save(result);
}
return result;
}
代码示例来源:origin: stackoverflow.com
//pull initial data
$.getJSON(apiBaseUrl + "?userId=" + userId, function (data) {
$.each(data, function () {
var dropdownOrg = new DropdownOrg();
var org = new Organization();
$.each(this, function (k, v) {
if (k == "UserGuid") {
org.userGuid = v;
}
if (k == "OrgId") {
dropdownOrg.orgId = v;
org.orgId = v;
}
if (k == "OrgName") {
dropdownOrg.name = v;
org.orgName = v;
}
if (k == "IsHiring") {
org.isHiring = v;
}
if (k == "Blurb") {
org.blurb = v;
}
});
self.orgDdl.push(dropdownOrg);
self.orgs.push(org);
});
});
代码示例来源:origin: maven/maven-model
throws IOException, XMLStreamException
Organization organization = new Organization();
organization.setModelEncoding( encoding );
java.util.Set parsed = new java.util.HashSet();
代码示例来源:origin: maven/maven-model
throws IOException, DocumentException
Organization organization = new Organization();
organization.setModelEncoding( encoding );
java.util.Set parsed = new java.util.HashSet();
代码示例来源:origin: io.tesla.maven/maven-model
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
Map<Object, Object> context )
{
Organization src = source.getOrganization();
if ( src != null )
{
Organization tgt = target.getOrganization();
if ( tgt == null )
{
tgt = new Organization();
target.setOrganization( tgt );
}
mergeOrganization( tgt, src, sourceDominant, context );
}
}
代码示例来源:origin: org.apache.maven.shared/maven-model-converter
private Organization translateOrganization( org.apache.maven.model.v3_0_0.Organization v3Organization )
{
Organization organization = null;
if ( v3Organization != null )
{
organization = new Organization();
organization.setName( v3Organization.getName() );
organization.setUrl( v3Organization.getUrl() );
if ( StringUtils.isNotEmpty( v3Organization.getLogo() ) )
{
warnings.add( "Ignoring <organization><logo/></organization>. It is not supported in v4 POMs." );
}
}
return organization;
}
代码示例来源:origin: org.apache.maven/maven-model-builder
@Override
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
Map<Object, Object> context )
{
Organization src = source.getOrganization();
if ( src != null )
{
Organization tgt = target.getOrganization();
if ( tgt == null )
{
tgt = new Organization();
tgt.setLocation( "", src.getLocation( "" ) );
target.setOrganization( tgt );
mergeOrganization( tgt, src, sourceDominant, context );
}
}
}
代码示例来源:origin: maven/maven-model
throws IOException, XmlPullParserException
Organization organization = new Organization();
organization.setModelEncoding( encoding );
java.util.Set parsed = new java.util.HashSet();
代码示例来源:origin: io.tesla.maven/maven-model
Organization organization = new Organization();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
代码示例来源:origin: io.tesla.maven/maven-model
Organization organization = new Organization();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
内容来源于网络,如有侵权,请联系作者删除!