// 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:   DocumentSearchAttributeList.java

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

import java.io.*;
import java.util.Locale;
import wt.fc.EvolvableHelper;
import wt.pds.PDSObjectInput;
import wt.query.SearchAttributeList;
import wt.util.WTMessage;

public class DocumentSearchAttributeList extends SearchAttributeList
{

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

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

    protected boolean readVersion(DocumentSearchAttributeList thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
        throws IOException, ClassNotFoundException
    {
        boolean success = true;
        if(readSerialVersionUID == 0xb29abd52b86eda2dL)
        {
            if(!superDone)
                super.readExternal(input);
        } else
        {
            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 != 0x6e8f238ab976dcbL)
            if(!superDone)
            {
                success = super.readVersion(this, input, readSerialVersionUID, false, false);
                if(success && !passThrough && readSerialVersionUID != 0xd4b6b5eeea339daL)
                    readVersion(this, input, input.readLong(), false, true);
            } else
            {
                throw new InvalidClassException(CLASSNAME, "Local class not compatible: stream classdesc externalizationVersionUID=" + readSerialVersionUID + " local class externalizationVersionUID=" + 0xb29abd52b86eda2dL);
            }
        return success;
    }

    public void setLocale(Locale locale)
    {
        clientLocale = locale;
        index = 2;
        int WTDOCUMENT = 0;
        int WTDOCUMENTMASTER = 1;
        pickList = new String[index];
        pickList[0] = WTMessage.getLocalizedMessage("wt.query.queryResource", "22", null, clientLocale);
        pickList[1] = WTMessage.getLocalizedMessage("wt.query.queryResource", "61", null, clientLocale);
        pickValues = new String[index];
        pickValues[0] = "22";
        pickValues[1] = "61";
        queryClass = new String[index];
        queryClass[0] = "wt.doc.WTDocument";
        queryClass[1] = "wt.doc.WTDocumentMaster";
        inputAttributes = new String[index];
        inputAttributes[0] = "number name lifeCycleState format creator modifier modifyTimestamp";
        inputAttributes[1] = "number name";
        inputProcessing = new String[index];
        inputProcessing[0] = "0 0 0 wt.query.LocalSearchProcessor.getDataFormatList 0 0 0";
        inputProcessing[1] = "0 0";
        outputAttributes = new String[index];
        outputAttributes[0] = "name number versionDisplayIdentifier containerName lifeCycleState modifyTimestamp";
        outputAttributes[1] = "name number containerName";
        outputProcessing = new String[index];
        outputProcessing[0] = "ObjProps 0 0 0 0 0";
        outputProcessing[1] = "ObjProps 0 0";
    }

    public DocumentSearchAttributeList(Locale locale)
    {
        setLocale(locale);
    }

    public DocumentSearchAttributeList()
    {
    }

    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 = 0xb29abd52b86eda2dL;
    protected static final long OLD_FORMAT_VERSION_UID = 0x6e8f238ab976dcbL;
    private static final String QUERY_RESOURCE = "wt.query.queryResource";

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