// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) deadcode 
// Source File Name:   CreateTemplateDocument2ActionDelegate.java

package com.ptc.windchill.pdmlink.doc.server.processors;

import java.io.*;
import wt.enterprise.ActionDelegate;
import wt.fc.EvolvableHelper;
import wt.pds.PDSObjectInput;
import wt.util.WTException;

public class CreateTemplateDocument2ActionDelegate
    implements ActionDelegate, Externalizable
{

    public CreateTemplateDocument2ActionDelegate()
    {
    }

    public void writeExternal(ObjectOutput output)
        throws IOException
    {
        output.writeLong(0xd4b6b5eeea339daL);
    }

    public void readExternal(ObjectInput input)
        throws IOException, ClassNotFoundException
    {
        long readSerialVersionUID = input.readLong();
        readVersion(this, input, readSerialVersionUID, false, false);
    }

    protected boolean readVersion(CreateTemplateDocument2ActionDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
        throws IOException, ClassNotFoundException
    {
        boolean success = true;
        if(readSerialVersionUID != 0xd4b6b5eeea339daL)
        {
            success = readOldVersion(input, readSerialVersionUID, passThrough, superDone);
            if(input instanceof PDSObjectInput)
                EvolvableHelper.requestRewriteOfEvolvedBlobbedObject();
        }
        return success;
    }

    private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
        throws IOException, ClassNotFoundException
    {
        boolean success = true;
        if(readSerialVersionUID != 0x703828fe67fd64f0L)
            throw new InvalidClassException(CLASSNAME, "Local class not compatible: stream classdesc externalizationVersionUID=" + readSerialVersionUID + " local class externalizationVersionUID=" + 0xd4b6b5eeea339daL);
        else
            return success;
    }

    /**
     * @deprecated Method valid is deprecated
     */

    public Boolean valid(Object object)
    {
        return new Boolean(true);
    }

    /**
     * @deprecated Method enableable is deprecated
     */

    public Boolean enableable(Object object)
        throws WTException
    {
        return new Boolean(true);
    }

    /**
     * @deprecated Method getContextServiceName is deprecated
     */

    public String getContextServiceName()
    {
        return "CREATETEMPLATEDOCUMENT2";
    }

    protected void setContextServiceName(String s)
    {
    }

    static Class _mthclass$(String x0)
    {
        return Class.forName(x0);
        ClassNotFoundException x1;
        x1;
        throw (new NoClassDefFoundError()).initCause(x1);
    }

    private static final String RESOURCE = "com.ptc.windchill.pdmlink.doc.server.processors.processorsResource";
    private static final String CLASSNAME;
    static final long serialVersionUID = 1L;
    public static final long EXTERNALIZATION_VERSION_UID = 0xd4b6b5eeea339daL;
    protected static final long OLD_FORMAT_VERSION_UID = 0x703828fe67fd64f0L;
    public static final String CONTEXT_SERVICE_NAME = "CREATETEMPLATEDOCUMENT2";

    static 
    {
        CLASSNAME = (com.ptc.windchill.pdmlink.doc.server.processors.CreateTemplateDocument2ActionDelegate.class).getName();
    }
}
