org.apache.maven.model.Profile.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中org.apache.maven.model.Profile.<init>()方法的一些代码示例,展示了Profile.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.<init>()方法的具体详情如下:
包路径:org.apache.maven.model.Profile
类名称:Profile
方法名:<init>

Profile.<init>介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

HypotheticalApi myApi = HypotheticalApi.getInstance();
   myApi.getUserProfile("techie.curious", new GetResponseCallback() {
     @Override
     void onDataReceived(Profile profile) {
       //Use the profile to display it on screen, etc.
     }
   });
   Profile newProfile = new Profile();
   myApi.postUserProfile(newProfile, new PostCallback() {
     @Override
     public void onPostSuccess() {
       //Display Success
     }
   });

代码示例来源:origin: stackoverflow.com

Profile profile = new Profile() {{
  name = "SOMETHING";
  useSSL = false;
  // etc. etc.
}};

代码示例来源:origin: org.apache.maven/maven-project

public static Profile cloneProfile( Profile src )
{
  if ( src == null )
  {
    return null;
  }
  
  Profile result = new Profile();
  
  cloneModelBaseFields( src, result );
  
  result.setActivation( cloneActivation( src.getActivation() ) );
  
  BuildBase resultBuild = null;
  if ( src.getBuild() != null )
  {
    resultBuild = new BuildBase();
    cloneBuildBaseFields( src.getBuild(), resultBuild );
  }
  result.setBuild( resultBuild );
  
  result.setId( src.getId() );
  result.setSource( src.getSource() );
  
  return result;
}

代码示例来源:origin: apache/maven

Profile profile = new Profile();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )

代码示例来源:origin: apache/maven

Profile profile = new Profile();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );

代码示例来源:origin: takari/polyglot-maven

private Profile getProfile() {
    if (model.getProfiles() != null) {
      for (Profile profile : model.getProfiles()) {
        if (profile.getId().equals(id)) {
          return profile;
        }
      }
    }

    Profile profile = new Profile();
    profile.setId(id);
    model.addProfile(profile);
    return profile;
  }
}

代码示例来源:origin: apache/maven

public static Profile convertFromProfileXmlProfile( org.apache.maven.profiles.Profile profileXmlProfile )
  Profile profile = new Profile();

代码示例来源:origin: apache/maven

org.apache.maven.model.Profile profile = new org.apache.maven.model.Profile();

代码示例来源:origin: stackoverflow.com

public void setPlayers(Profile player) {
  if (this.players == null)
    this.players = new Profile[4];
  if (plc < 4) {
    this.players[plc] = new Profile(); // Exception
    this.players[plc] = player;
    plc++;
  }
}

代码示例来源:origin: takari/polyglot-maven

private BuildBase getBuild(final Model model, String profileId) {
 if (profileId == null) {
  if (model.getBuild() == null) {
   model.setBuild(new Build());
  }
  return model.getBuild();
 } else {
  for (Profile p : model.getProfiles()) {
   if (profileId.equals(p.getId())) {
    if (p.getBuild() == null) {
     p.setBuild(new Build());
    }
    return p.getBuild();
   }
  }
  Profile profile = new Profile();
  profile.setId(profileId);
  profile.setBuild(new Build());
  model.addProfile(profile);
  return profile.getBuild();
 }
}

代码示例来源:origin: stackoverflow.com

public class TeamDeserializer extends JsonDeserializer<Team> {

@Override
public Team deserialize(JsonParser jp, DeserializationContext ctxt) 
 throws IOException, JsonProcessingException {
  JsonNode node = jp.getCodec().readTree(jp);
  //read the node and set fields
  String name = node.get("name").asText();
  int id = (Integer) ((IntNode) node.get("id")).numberValue();
  //returning in required format
  return new Team(new Profile(name, id));
}
}

代码示例来源:origin: takari/polyglot-maven

Profile profile = new Profile();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )

代码示例来源:origin: stackoverflow.com

function Maindata() {
  var obj = this;
  this.id = null;
  this.profile= new Profile();
  this.company= new Company();
  //and more
}
Maindata.prototype.getid = function() {
  return this.id;
};

代码示例来源:origin: stackoverflow.com

User user = em.find(User.class, key);

Profile profile = new Profile();
...
user.setProfile(profile);
profile.setUser(user);

em.getTransaction().commit();

代码示例来源:origin: org.apache.maven.enforcer/enforcer-rules

/**
 * Creates a Profile object that contains the activation information.
 *
 * @return a properly populated profile to be used for OS validation.
 */
private Profile createProfile()
{
  Profile profile = new Profile();
  profile.setActivation( createActivation() );
  return profile;
}

代码示例来源:origin: stackoverflow.com

var profile = new Profile();
var bestFriend = new BestFriend();
var friends = new Friends();

profile.fetch();
bestfriend.fetch();
friends.fetch();

代码示例来源:origin: apache/maven-enforcer

/**
 * Creates a Profile object that contains the activation information.
 *
 * @return a properly populated profile to be used for OS validation.
 */
private Profile createProfile()
{
  Profile profile = new Profile();
  profile.setActivation( createActivation() );
  return profile;
}

代码示例来源:origin: io.teecube.t3/t3-common

public static Profile getProfile(Model model, String profileId) {
  if (model == null || profileId == null || profileId.isEmpty()) return null;
  for (Profile profile : model.getProfiles()) {
    if (profileId.equals(profile.getId())) {
      return profile;
    }
  }
  Profile result = new Profile();
  result.setId(profileId);
  model.addProfile(result);
  return result;
}

代码示例来源:origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven

public static Profile asProfile(org.apache.maven.settings.Profile profile) {
  Profile mavenProfile = new Profile();
  if (profile != null) {
    mavenProfile.setId(profile.getId());
    mavenProfile.setActivation(asActivation(profile.getActivation()));
    mavenProfile.setProperties(profile.getProperties());
    mavenProfile.setRepositories(asRepositories(profile.getRepositories()));
    mavenProfile.setPluginRepositories(asRepositories(profile.getPluginRepositories()));
  }
  return mavenProfile;
}

代码示例来源:origin: shrinkwrap/resolver

public static Profile asProfile(org.apache.maven.settings.Profile profile) {
  Profile mavenProfile = new Profile();
  if (profile != null) {
    mavenProfile.setId(profile.getId());
    mavenProfile.setActivation(asActivation(profile.getActivation()));
    mavenProfile.setProperties(profile.getProperties());
    mavenProfile.setRepositories(asRepositories(profile.getRepositories()));
    mavenProfile.setPluginRepositories(asRepositories(profile.getPluginRepositories()));
  }
  return mavenProfile;
}

相关文章