-
Notifications
You must be signed in to change notification settings - Fork 0
/
HelloWorld.java
40 lines (31 loc) · 1.24 KB
/
HelloWorld.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* HelloWorld.java
* ...................................................................................
* SCOM: Single Class Object Model (http://code.google.com/p/scom/)
* Licence: MIT (http://en.wikipedia.org/wiki/MIT_License)
* Michel Kern - 28 may 2012 - 22:52
* Copyright (C) <2012> www.terimakasi.com
*/
package scom.tutorials.helloworld;
import scom.It;
import static scom.It.*;
public class HelloWorld
{
public static String K_MOTOR = "moteur";
public static void main(String[] args)
{
Print("**** SCOM: HelloWorld sample ****");
It item = It.New(); // this creates an instance of 'OBJECT' native AOM class
item.putFacet(VALUE, New("Hello World !"));
// Prints object's value and facets on Standard console output
Print(item);
// Now print object's value and facets in 'object1.txt' file
Print(item, TEXT_FILE_WRITER, WITH_UNLIMITED_DEPTH);
// Now print object's value and facets in a String
String output_str = Print(item, STRING_WRITER, WITH_UNLIMITED_DEPTH);
Print(output_str);
// Now print item facets recursively
//Print(item, WITH_UNLIMITED_DEPTH);
// Calls interactive command shell
SHELL.evaluate();
} //---- main()
} //---------- HelloWorld