001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/component/tags/sakai_2-4-1/component-api/component/src/java/org/sakaiproject/util/ComponentMap.java $
003: * $Id: ComponentMap.java 6821 2006-03-21 18:34:36Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.util;
021:
022: import java.util.Collection;
023: import java.util.Map;
024: import java.util.Set;
025:
026: /**
027: * <p>
028: * ComponentMap exposes the registered components as a map - the component id is mapped to the component implementation.
029: * </p>
030: */
031: public class ComponentMap implements Map {
032: /**
033: * @inheritDoc
034: */
035: public int size() {
036: // TODO Auto-generated method stub
037: return 0;
038: }
039:
040: /**
041: * @inheritDoc
042: */
043: public boolean isEmpty() {
044: return false;
045: }
046:
047: /**
048: * @inheritDoc
049: */
050: public boolean containsKey(Object arg0) {
051: return org.sakaiproject.component.cover.ComponentManager
052: .contains((String) arg0);
053: }
054:
055: /**
056: * @inheritDoc
057: */
058: public boolean containsValue(Object arg0) {
059: return false;
060: }
061:
062: /**
063: * @inheritDoc
064: */
065: public Object get(Object arg0) {
066: return org.sakaiproject.component.cover.ComponentManager
067: .get((String) arg0);
068: }
069:
070: /**
071: * @inheritDoc
072: */
073: public Object put(Object arg0, Object arg1) {
074: return null;
075: }
076:
077: /**
078: * @inheritDoc
079: */
080: public Object remove(Object arg0) {
081: return null;
082: }
083:
084: /**
085: * @inheritDoc
086: */
087: public void putAll(Map arg0) {
088: }
089:
090: /**
091: * @inheritDoc
092: */
093: public void clear() {
094: }
095:
096: /**
097: * @inheritDoc
098: */
099: public Set keySet() {
100: return null;
101: }
102:
103: /**
104: * @inheritDoc
105: */
106: public Collection values() {
107: return null;
108: }
109:
110: /**
111: * @inheritDoc
112: */
113: public Set entrySet() {
114: return null;
115: }
116: }
|