コード例 #1
0
  protected PasswordData(IContext context, IMendixObject passwordDataMendixObject) {
    if (passwordDataMendixObject == null)
      throw new IllegalArgumentException("The given object cannot be null.");
    if (!Core.isSubClassOf("Encryption.PasswordData", passwordDataMendixObject.getType()))
      throw new IllegalArgumentException("The given object is not a Encryption.PasswordData");

    this.passwordDataMendixObject = passwordDataMendixObject;
    this.context = context;
  }
コード例 #2
0
ファイル: TestEntity.java プロジェクト: ismailhabib/MxJson
  protected TestEntity(IContext context, IMendixObject testEntityMendixObject) {
    if (testEntityMendixObject == null)
      throw new IllegalArgumentException("The given object cannot be null.");
    if (!Core.isSubClassOf("MyFirstModule.TestEntity", testEntityMendixObject.getType()))
      throw new IllegalArgumentException("The given object is not a MyFirstModule.TestEntity");

    this.testEntityMendixObject = testEntityMendixObject;
    this.context = context;
  }
コード例 #3
0
ファイル: SiteKey.java プロジェクト: mrgroen/reCAPTCHA
  protected SiteKey(IContext context, IMendixObject siteKeyMendixObject) {
    if (siteKeyMendixObject == null)
      throw new IllegalArgumentException("The given object cannot be null.");
    if (!Core.isSubClassOf("reCAPTCHA.SiteKey", siteKeyMendixObject.getType()))
      throw new IllegalArgumentException("The given object is not a reCAPTCHA.SiteKey");

    this.siteKeyMendixObject = siteKeyMendixObject;
    this.context = context;
  }
コード例 #4
0
ファイル: Cell.java プロジェクト: mrgroen/GoogleCharts
  protected Cell(
      com.mendix.systemwideinterfaces.core.IContext context,
      com.mendix.systemwideinterfaces.core.IMendixObject cellMendixObject) {
    if (cellMendixObject == null)
      throw new java.lang.IllegalArgumentException("The given object cannot be null.");
    if (!com.mendix.core.Core.isSubClassOf("GoogleCharts.Cell", cellMendixObject.getType()))
      throw new java.lang.IllegalArgumentException("The given object is not a GoogleCharts.Cell");

    this.cellMendixObject = cellMendixObject;
    this.context = context;
  }
コード例 #5
0
ファイル: Email.java プロジェクト: edwinmp/GoogleCharts
  protected Email(
      com.mendix.systemwideinterfaces.core.IContext context,
      com.mendix.systemwideinterfaces.core.IMendixObject emailMendixObject) {
    if (emailMendixObject == null)
      throw new java.lang.IllegalArgumentException("The given object cannot be null.");
    if (!com.mendix.core.Core.isSubClassOf("EmailTemplate.Email", emailMendixObject.getType()))
      throw new java.lang.IllegalArgumentException("The given object is not a EmailTemplate.Email");

    this.emailMendixObject = emailMendixObject;
    this.context = context;
  }