1 5 package net.nutch.plugin; 6 import java.util.ArrayList ; 7 13 public class ExtensionPoint { 14 private String ftId; 15 private String fName; 16 private String fSchema; 17 private ArrayList fExtensions; 18 28 public ExtensionPoint(String pId, String pName, String pSchema) { 29 setId(pId); 30 setName(pName); 31 setSchema(pSchema); 32 fExtensions = new ArrayList (); 33 } 34 39 public String getId() { 40 return ftId; 41 } 42 47 public String getName() { 48 return fName; 49 } 50 55 public String getSchema() { 56 return fSchema; 57 } 58 64 private void setId(String pId) { 65 ftId = pId; 66 } 67 73 private void setName(String pName) { 74 fName = pName; 75 } 76 82 private void setSchema(String pSchema) { 83 fSchema = pSchema; 84 } 85 90 public void addExtension(Extension extension) { 91 fExtensions.add(extension); 92 } 93 98 public Extension[] getExtentens() { 99 return (Extension[]) fExtensions.toArray(new Extension[fExtensions 100 .size()]); 101 } 102 } 103 | Popular Tags |