Library | Package Java Toolkit

Interface ExternalDataClass

package com.ptc.pfc.pfcExternal;

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



Description

A class that represents a named "bin" for external data so other applications will not use the data by mistake. An application usually needs one class.



Method Summary
ExternalDataSlotCreateSlot (String Name)
    Creates a new slot for the external data class
voidDelete ()
    Deletes the external data class from the model
StringGetName ()
    Get method for attribute "Name"
    Unique name of the class for this model
ExternalDataAccessGetParent ()
    Get method for attribute "Parent"
    ExternalDataAccess object to which the class belongs
booleanIsValid ()
    Returns true if the class is valid and can be accessed, false if it has been deleted or it cannot be accessed.
ExternalDataSlotsListSlots ()
    Lists all the slots available for the class

Method Detail

GetName

StringGetName ()


    Unique name of the class for this model

Exceptions thrown (but not limited to):

XBadExternalData - Class is no longer valid





GetParent

ExternalDataAccessGetParent ()


    ExternalDataAccess object to which the class belongs

Exceptions thrown (but not limited to):

XBadExternalData - Class is no longer valid





IsValid

booleanIsValid ()


    Returns true if the class is valid and can be accessed, false if it has been deleted or it cannot be accessed.
Returns:
The class status


Delete

voidDelete ()


    Deletes the external data class from the model

Deletes permanenly the class and all its slots.

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The specified model or class name is invalid.

XBadExternalData - Class is no longer valid


Returns:


CreateSlot

ExternalDataSlotCreateSlot (String Name)


    Creates a new slot for the external data class

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The specified model or class name is invalid.

XExternalDataClassOrSlotExists - The specified slot already exists in the specified class.

XExternalDataNamesTooLong - The specified slot or class name exceeds the length PRO_NAME_SIZE.

XBadExternalData - Class is no longer valid


Manual References:
External Data: Storing External Data, External Data: Storing External Data
Parameters:
Name
The unique name for the slot. This name cannot begin with a number.
Returns:
The new external data slot


ListSlots

ExternalDataSlotsListSlots ()


    Lists all the slots available for the class

Note that slots created by Creo Parametric TOOLKIT applications may not have cutomized names, just numbers.

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The model is invalid.

XExternalDataBadDataArgs - The slot ids and/or slot names are invalid.

XBadExternalData - Class is no longer valid


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data
Returns:
Sequence of external data slots