blob: c801f4d71e1772f14fd762204ac03a6a1e3f91be [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package org.eclipse.jst.jsp.core.internal.contentmodel;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.IPath;
public class ServletRecord implements ITaglibRecord {
IPath location;
List tldRecords = new ArrayList(0);
public boolean equals(Object obj) {
if (!(obj instanceof ServletRecord))
return false;
return ((ServletRecord) obj).location.equals(location);
}
public int getRecordType() {
return ITaglibRecord.WEB_XML;
}
/**
* @return Returns the webxml.
*/
public IPath getWebXML() {
return location;
}
/**
*
*/
public List getTLDRecords() {
return tldRecords;
}
public String toString() {
return "ServletRecord: " + location + tldRecords; //$NON-NLS-1$
}
}