Esempio n. 1
0
  /**
   * 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;
  }
  /**
   * 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;
  }
Esempio n. 3
0
 /**
  * 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;
 }
Esempio n. 4
0
 /**
  * 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;
 }
Esempio n. 5
0
 /**
  * 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;
 }
Esempio n. 6
0
 protected static void read_if_needed_() {
   UmlSettings.read_if_needed_();
   if (!_defined) {
     UmlCom.send_cmd(CmdFamily.phpSettingsCmd, PhpSettingsCmd._getPhpSettingsCmd);
     read_();
     _defined = true;
   }
 }
Esempio n. 7
0
  /**
   * 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;
  }
Esempio n. 8
0
  /**
   * 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;
  }
Esempio n. 9
0
  /**
   * 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;
  }
Esempio n. 10
0
  /**
   * 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;
  }
Esempio n. 11
0
  /**
   * 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;
  }
Esempio n. 12
0
  /**
   * 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;
  }
Esempio n. 13
0
  /**
   * 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;
  }
Esempio n. 14
0
  /**
   * 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;
  }
Esempio n. 15
0
 /**
  * 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();
 }
Esempio n. 16
0
  /**
   * 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;
  }
Esempio n. 17
0
 /**
  * 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;
 }
Esempio n. 18
0
 /**
  * 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;
 }
Esempio n. 19
0
 /**
  * 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();
 }
Esempio n. 20
0
  /**
   * 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;
  }
Esempio n. 21
0
  /**
   * 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;
  }
Esempio n. 22
0
  /**
   * 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;
  }
Esempio n. 23
0
  /**
   * 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;
  }