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: 983
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: 983
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: 983
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: 518

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1