Library | Package Java Toolkit

Interface ExternalDataSlot

package com.ptc.pfc.pfcExternal;

public interface ExternalDataSlot
  extends com.ptc.pfc.pfcObject.Object



Description

Represents a single data item stored in external data



Method Summary
voidDelete ()
    Deletes the external data slot
ExternalDataClassGetClass ()
    Get method for attribute "Class"
    Class to which slot belongs
intGetId ()
    Get method for attribute "Id"
    Unique identifier assigned by Creo Parametric
/*optional*/ StringGetName ()
    Get method for attribute "Name"
    Slot name. Slots created using Creo Parametric TOOLKIT may not have a separate name.
ExternalDataGetValue ()
    Get method for attribute "Value"
    The value (integer, double, or string) stored in the slot. Stream-type slots created byCreo Parametric TOOLKIT cannot be accessed by this attribute and an XBadExternalDataexception will result.
booleanIsValid ()
    Returns true if the slot exists and can be accessed, false if it has been deleted.
voidSetValue (ExternalData value)
    Set method for attribute "Value"
    The value (integer, double, or string) stored in the slot. Stream-type slots created byCreo Parametric TOOLKIT cannot be accessed by this attribute and an XBadExternalDataexception will result.

Method Detail

GetName

/*optional*/ StringGetName ()


    Slot name. Slots created using Creo Parametric TOOLKIT may not have a separate name.

Exceptions thrown (but not limited to):

XBadExternalData - Slot is no longer valid





GetId

intGetId ()


    Unique identifier assigned by Creo Parametric

Exceptions thrown (but not limited to):

XBadExternalData - Slot is no longer valid





GetClass

ExternalDataClassGetClass ()


    Class to which slot belongs

Exceptions thrown (but not limited to):

XBadExternalData - Slot is no longer valid





IsValid

booleanIsValid ()


    Returns true if the slot exists and can be accessed, false if it has been deleted.
Returns:
The status of the slot


Delete

voidDelete ()


    Deletes the external data slot

Permanently deletes the slot and the data it contains.

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The model or class name is invalid.

XExternalDataBadKeyByFlag - The 'key by flag' is invalid.

XExternalDataSlotNotFound - The slot was not found.

XBadExternalData - Slot is no longer valid


Returns:


GetValue/SetValue

ExternalDataGetValue ()
voidSetValue (ExternalData value)


    The value (integer, double, or string) stored in the slot. Stream-type slots created byCreo Parametric TOOLKIT cannot be accessed by this attribute and an XBadExternalDataexception will result.

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The model or class name is invalid.

XExternalDataBadKeyByFlag - The 'key by flag' is invalid.

XExternalDataSlotNotFound - The slot was not found.

XExternalDataStreamTooLarge - The stream data size is greater than 524288 bytes.

XExternalDataBadDataArgs - The data type or data size is invalid.

XExternalDataEmptySlot - No data exists in the slot.

XBadExternalData - Slot is no longer valid


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data, External Data: Storing External Data