1 26 package org.objectweb.util.explorer.core.root.lib; 27 28 import java.util.List ; 29 import java.util.Vector ; 30 31 import org.objectweb.util.explorer.core.code.api.CodeDescription; 32 import org.objectweb.util.explorer.core.common.api.Description; 33 import org.objectweb.util.explorer.core.root.api.RootDescriptions; 34 35 43 public class BasicRootDescriptions 44 implements RootDescriptions 45 { 46 47 53 protected List rootDescriptions_ = null; 54 55 61 public BasicRootDescriptions(){ 62 rootDescriptions_ = new Vector (); 63 } 64 65 71 77 80 public String getDescriptionType() { 81 return Description.ROOT_DESCRIPTION; 82 } 83 86 public boolean isEmpty() { 87 return rootDescriptions_.isEmpty(); 88 } 89 90 96 99 public void addRootDescription(CodeDescription codeDesc) { 100 if(codeDesc != null){ 101 rootDescriptions_.add(codeDesc); 102 } 103 } 104 105 108 public CodeDescription[] getRootDescriptions() { 109 return (CodeDescription[])rootDescriptions_.toArray(new CodeDescription[rootDescriptions_.size()]); 110 } 111 112 } 113 114 | Popular Tags |