コード例 #1
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * set if a relative path must be used when the path must be generated in the produced
  * require_once
  *
  * <p>On error : return FALSE in C++, produce a RuntimeException in Java
  */
 public static void set_IsRelativePath(boolean v) throws RuntimeException {
   UmlCom.send_cmd(
       CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpRelativePathCmd, (v) ? (byte) 1 : (byte) 0);
   UmlCom.check();
   _is_relative_path = v;
   if (v) _is_root_relative_path = false;
 }
コード例 #2
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set if a 'set' operation generated through the attribute and relation 'add set operation' menu
   * is final by default
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_IsSetFinal(boolean v) throws RuntimeException {
    UmlCom.send_cmd(
        CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpIsSetFinalCmd, (v) ? (byte) 1 : (byte) 0);
    UmlCom.check();

    _is_set_final = v;
  }
コード例 #3
0
  /**
   * set the referenced sub machine state (may be 0/null)
   *
   * <p>On error return FALSE in C++, produce a RuntimeException in Java
   */
  public void set_Reference(UmlEntryPointPseudoState v) throws RuntimeException {
    UmlCom.send_cmd(
        identifier_(), OnInstanceCmd.setDerivedCmd, (v == null) ? (long) 0 : v.identifier_());
    UmlCom.check();

    _reference = v;
  }
コード例 #4
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * set if the namespace prefix must be always generated before class's names
  *
  * <p>On error : return FALSE in C++, produce a RuntimeException in Java
  */
 public static void set_IsForceNamespacePrefixGeneration(boolean v) throws RuntimeException {
   UmlCom.send_cmd(
       CmdFamily.phpSettingsCmd,
       PhpSettingsCmd._setPhpForceNamespaceGenCmd,
       (v) ? (byte) 1 : (byte) 0);
   UmlCom.check();
   _is_force_namespace_gen = v;
 }
コード例 #5
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * to indicates to the code generator if the require_once may specify the path of just the file's
  * name
  *
  * <p>On error : return FALSE in C++, produce a RuntimeException in Java
  */
 public static void set_RequireOnceWithPath(boolean v) throws RuntimeException {
   UmlCom.send_cmd(
       CmdFamily.phpSettingsCmd,
       PhpSettingsCmd._setPhpRequireOnceWithPathCmd,
       (v) ? (byte) 1 : (byte) 0);
   UmlCom.check();
   _req_with_path = v;
 }
コード例 #6
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * to set if parameters are typed by default
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_IsParametersTyped(boolean y) throws RuntimeException {
    UmlCom.send_cmd(
        CmdFamily.phpSettingsCmd,
        PhpSettingsCmd._setPhpParametersTypedCmd,
        (y) ? (byte) 1 : (byte) 0);
    UmlCom.check();

    _is_param_typed = y;
  }
コード例 #7
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * to set if out/inout parameters are given by reference
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_IsOutInoutParametersByReference(boolean y) throws RuntimeException {
    UmlCom.send_cmd(
        CmdFamily.phpSettingsCmd,
        PhpSettingsCmd._setPhpOutInoutParametersByReferenceCmd,
        (y) ? (byte) 1 : (byte) 0);
    UmlCom.check();

    _is_out_inout_by_ref = y;
  }
コード例 #8
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the PHP stereotype corresponding to the 'UML' stereotype given in argument
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_ClassStereotype(String s, String v) throws RuntimeException {
    read_if_needed_();
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpClassStereotypeCmd, s, v);
    UmlCom.check();

    UmlStereotype st = (UmlStereotype) UmlSettings._map_class_stereotypes.get(s);

    if (st == null) st = UmlSettings.add_class_stereotype(s);
    st.php = v;
  }
コード例 #9
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 protected static void read_if_needed_() {
   UmlSettings.read_if_needed_();
   if (!_defined) {
     UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._getPhpSettingsCmd);
     read_();
     _defined = true;
   }
 }
コード例 #10
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * set if generate Javadoc style comment
  *
  * <p>On error : return FALSE in C++, produce a RuntimeException in Java
  */
 public static void set_IsGenerateJavadocStyleComment(boolean v) {
   UmlCom.send_cmd(
       CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpJavadocStyleCmd, (v) ? (byte) 1 : (byte) 0);
   UmlCom.check();
   _is_generate_javadoc_comment = v;
 }
コード例 #11
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default definition of an operation
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_OperationDef(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpOperationDefCmd, v);
    UmlCom.check();

    _oper_def = v;
  }
コード例 #12
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default definition of an relation
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_RelationDecl(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpRelationDeclCmd, v);
    UmlCom.check();

    _rel_decl = v;
  }
コード例 #13
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default definition of an enumeration item
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_EnumItemDecl(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpEnumItemDeclCmd, v);
    UmlCom.check();

    _enum_item_decl = v;
  }
コード例 #14
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default source file content
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_SourceContent(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpSourceContentCmd, v);
    UmlCom.check();

    _src_content = v;
  }
コード例 #15
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the extension of the file produced by the PHP code generator
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_SourceExtension(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpSourceExtensionCmd, v);
    UmlCom.check();

    _ext = v;
  }
コード例 #16
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * returns TRUE when the created Php objects are initialized with the default
  * declaration/definition
  */
 public static boolean useDefaults() {
   UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._getPhpUseDefaultsCmd);
   return UmlCom.read_bool();
 }
コード例 #17
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * if y is TRUE the future created Php objects will be initialized with the default
  * declaration/definition
  *
  * <p>On error : return FALSE in C++, produce a RuntimeException in Java
  */
 public static void set_UseDefaults(boolean y) throws RuntimeException {
   UmlCom.send_cmd(
       CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpUseDefaultsCmd, (y) ? (byte) 1 : (byte) 0);
   UmlCom.check();
 }
コード例 #18
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
 /**
  * set the regular expression used to bypass file s on reverse/roundtrip On error : return FALSE
  * in C++, produce a RuntimeException in Java
  */
 public static void set_ReverseRoundtripFileRegExp(String s, boolean cs) throws RuntimeException {
   UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpFileRevFilterCmd, s, cs);
   UmlCom.check();
   _file_regexp = s;
   _file_regexp_case_sensitive = cs;
 }
コード例 #19
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default name of a 'set' operation generated through the attribute and relation 'add set
   * operation' menu
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_SetName(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpSetNameCmd, v);
    UmlCom.check();

    _set_name = v;
  }
コード例 #20
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default specification for an 'external' class
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_ExternalClassDecl(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpExternalClassDeclCmd, v);
    UmlCom.check();

    _external_class_decl = v;
  }
コード例 #21
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  protected static void read_() {
    _root = UmlCom.read_string();

    int n;
    int index;

    n = UmlCom.read_unsigned();

    for (index = 0; index != n; index += 1)
      UmlSettings._class_stereotypes[index].php = UmlCom.read_string();

    _src_content = UmlCom.read_string();
    _ext = UmlCom.read_string();

    _class_decl = UmlCom.read_string();
    _external_class_decl = UmlCom.read_string();
    _enum_decl = UmlCom.read_string();
    _interface_decl = UmlCom.read_string();
    _attr_decl = UmlCom.read_string();
    _enum_item_decl = UmlCom.read_string();
    _rel_decl = UmlCom.read_string();
    _oper_def = UmlCom.read_string();
    UmlCom.read_char(); // getter visibility
    _get_name = UmlCom.read_string();
    _is_get_final = UmlCom.read_bool();
    UmlCom.read_char(); // setter visibility
    _set_name = UmlCom.read_string();
    _is_set_final = UmlCom.read_bool();
    _is_generate_javadoc_comment = UmlCom.read_bool();
    _req_with_path = UmlCom.read_bool();
    _is_relative_path = UmlCom.read_bool();
    _is_root_relative_path = UmlCom.read_bool();

    _dir_regexp = UmlCom.read_string();
    _dir_regexp_case_sensitive = UmlCom.read_bool();

    _file_regexp = UmlCom.read_string();
    _file_regexp_case_sensitive = UmlCom.read_bool();

    _is_force_namespace_gen = UmlCom.read_bool();

    _is_param_typed = UmlCom.read_bool();
    _is_out_inout_by_ref = UmlCom.read_bool();
  }
コード例 #22
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default definition of an interface
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_InterfaceDecl(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpInterfaceDeclCmd, v);
    UmlCom.check();

    _interface_decl = v;
  }
コード例 #23
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the 'root' directory
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_RootDir(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpRootdirCmd, v);
    UmlCom.check();

    _root = v;
  }
コード例 #24
0
ファイル: PhpSettings.java プロジェクト: cabralje/niem-tools
  /**
   * set the default definition of an attribute
   *
   * <p>On error : return FALSE in C++, produce a RuntimeException in Java
   */
  public static void set_AttributeDecl(String v) throws RuntimeException {
    UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._setPhpAttributeDeclCmd, v);
    UmlCom.check();

    _attr_decl = v;
  }