1 /* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Eclipse Public License, Version 1.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ide.eclipse.mock; 18 19 import org.eclipse.core.runtime.IPath; 20 import org.eclipse.jdt.core.IAccessRule; 21 import org.eclipse.jdt.core.IClasspathAttribute; 22 import org.eclipse.jdt.core.IClasspathEntry; 23 24 import sun.reflect.generics.reflectiveObjects.NotImplementedException; 25 26 public class ClasspathEntryMock implements IClasspathEntry { 27 28 private int mKind; 29 private IPath mPath; 30 ClasspathEntryMock(IPath path, int kind)31 public ClasspathEntryMock(IPath path, int kind) { 32 mPath = path; 33 mKind = kind; 34 } 35 getEntryKind()36 public int getEntryKind() { 37 return mKind; 38 } 39 getPath()40 public IPath getPath() { 41 return mPath; 42 } 43 44 // -------- UNIMPLEMENTED METHODS ---------------- 45 combineAccessRules()46 public boolean combineAccessRules() { 47 throw new NotImplementedException(); 48 } 49 getAccessRules()50 public IAccessRule[] getAccessRules() { 51 throw new NotImplementedException(); 52 } 53 getContentKind()54 public int getContentKind() { 55 throw new NotImplementedException(); 56 } 57 getExclusionPatterns()58 public IPath[] getExclusionPatterns() { 59 throw new NotImplementedException(); 60 } 61 getExtraAttributes()62 public IClasspathAttribute[] getExtraAttributes() { 63 throw new NotImplementedException(); 64 } 65 getInclusionPatterns()66 public IPath[] getInclusionPatterns() { 67 throw new NotImplementedException(); 68 } 69 getOutputLocation()70 public IPath getOutputLocation() { 71 throw new NotImplementedException(); 72 } 73 getResolvedEntry()74 public IClasspathEntry getResolvedEntry() { 75 throw new NotImplementedException(); 76 } 77 getSourceAttachmentPath()78 public IPath getSourceAttachmentPath() { 79 throw new NotImplementedException(); 80 } 81 getSourceAttachmentRootPath()82 public IPath getSourceAttachmentRootPath() { 83 throw new NotImplementedException(); 84 } 85 isExported()86 public boolean isExported() { 87 throw new NotImplementedException(); 88 } 89 } 90