org.af.jhlir.call
Interface S3Obj<WRAPPED_TYPE>

Type Parameters:
WRAPPED_TYPE - underlying type of the used back-end, @see RObj
All Superinterfaces:
RObj<WRAPPED_TYPE>

public interface S3Obj<WRAPPED_TYPE>
extends RObj<WRAPPED_TYPE>

Interface for an S3 Object.


Method Summary
 String getS3Class()
          Get first class of the class attribute.
 String[] getS3Classes()
          Get all classes of the S3 class attribute.
 List<String> getS3ClassesAsList()
          Get all classes of the S3 class attribute as a List of Strings.
 
Methods inherited from interface org.af.jhlir.call.RObj
asRChar, asRDataFrame, asREnvironment, asRFactor, asRInteger, asRList, asRLogical, asRMatrixDouble, asRNumeric, asS3Obj, getWrapped
 

Method Detail

getS3Classes

String[] getS3Classes()
Get all classes of the S3 class attribute.

Returns:
all classes of the S3 class attribute.

getS3ClassesAsList

List<String> getS3ClassesAsList()
Get all classes of the S3 class attribute as a List of Strings.

Returns:
all classes of the S3 class attribute.

getS3Class

String getS3Class()
Get first class of the class attribute. There's no guarantee that this is the class you want if multiple S3 classes are present, though in most cases this will be the most relevant one.

Returns:
first class of the class attribute.