protected void mergeOrganization_Name( Organization target, Organization 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 mergeOrganization_Url( Organization target, Organization 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" ) ); } } }
@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 ); } } }
InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); organization.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) organization.setLocation( "name", _location ); organization.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); organization.setLocation( "url", _location ); organization.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );
protected void mergeOrganization_Url( Organization target, Organization 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" ) ); } } }
protected void mergeOrganization_Name( Organization target, Organization 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" ) ); } } }
@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 ); } } }
InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); organization.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) organization.setLocation( "name", _location ); organization.setName( getTrimmedValue( parser.nextText() ) ); organization.setLocation( "url", _location ); organization.setUrl( getTrimmedValue( parser.nextText() ) );