Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Method manager check input arguments for Int64, UInt32 etc
March 23, 2015
7:13, EET
Avatar
jansen
Member
Members
Forum Posts: 8
Member Since:
February 5, 2015
sp_UserOfflineSmall Offline

Hi,

For the method manager to check the input arguments, how do I check for Int64, UInt32 instead of using Integer.class?

MethodManager.checkInputArguments(new Class[] { Integer.class,
Integer.class, Integer.class }, inputArguments, inputArgumentResults,
inputArgumentDiagnosticInfos, false);

Thanks!

March 23, 2015
8:07, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

The following type mappings (UA Java) apply:
UA Java
Uint16 UnsignedShort
Uint32 UnsignedInteger
Uint64 UnsignedLong
Int16 Short
Int32 Integer
Int64 Long

Note these
UA Java
Byte UnsignedByte
SByte Byte
ByteString byte[]

March 23, 2015
8:28, EET
Avatar
jansen
Member
Members
Forum Posts: 8
Member Since:
February 5, 2015
sp_UserOfflineSmall Offline

Does it allow me to proceed if my arguments are empty?

March 23, 2015
8:50, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

If the arguments are empty/null the call should just return right away because there is nothing to check

March 23, 2015
9:42, EET
Avatar
jansen
Member
Members
Forum Posts: 8
Member Since:
February 5, 2015
sp_UserOfflineSmall Offline

for LocalizedText DataType, which ValueRank should we use?
I tried OneDimension but it can’t have the two boxes, with one showing Locale and the other showing the text.

Thanks!

March 23, 2015
10:33, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

That depends what you want from the method, i.e. it’s hard to say without more information.
If you don’t want Locale information, use String instead.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1