com.sage.accpac.sm
Class A4wapi

java.lang.Object
  extended by com.sage.accpac.sm.A4wapi

@ThreadSafe
public final class A4wapi
extends java.lang.Object

The a4wapi class is a core class providing low level functionality for interfacing between the Accpac formats of information and the Java formats.

See Also:
StringEncoder, StringDecoder
Thread safety
Thread-safe.

Constructor Summary
A4wapi()
           
 
Method Summary
static boolean booleanOfString(java.lang.String s)
          Return a boolean value representing the string argument, with positive control.
static int utlObjStrToID(java.lang.String s)
          convert the given string format roto object id to its integer form, throwing exceptions if it is not valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A4wapi

public A4wapi()
Method Detail

utlObjStrToID

public static int utlObjStrToID(java.lang.String s)
convert the given string format roto object id to its integer form, throwing exceptions if it is not valid.

The calculation is as in the C function utlObjStrToID

Parameters:
s - the string format roto object id (which can be in upper or lower or mixed case and can be untrimmed)
Returns:
the integer format roto object id
Throws:
java.lang.NullPointerException - if the string argument is actually a null reference
java.lang.IllegalArgumentException - if the string format roto object id is invalid in some other way than being a null reference.

booleanOfString

public static boolean booleanOfString(java.lang.String s)
Return a boolean value representing the string argument, with positive control.

Parameters:
s - the string to convert to boolean
Returns:
a boolean primitive representing the argument
Throws:
java.lang.NullPointerException - if the argument is a null pointer
java.lang.IllegalArgumentException - if the argument is not recognised as a boolean value.


Copyright © 2011 Sage Software, Inc. All rights reserved.