Source Code Cross Referenced for MOTableModel.java in  » Net » snmp4j » org » snmp4j » agent » mo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » snmp4j » org.snmp4j.agent.mo 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*_############################################################################
002:          _## 
003:          _##  SNMP4J-Agent - MOTableModel.java  
004:          _## 
005:          _##  Copyright (C) 2005-2007  Frank Fock (SNMP4J.org)
006:          _##  
007:          _##  Licensed under the Apache License, Version 2.0 (the "License");
008:          _##  you may not use this file except in compliance with the License.
009:          _##  You may obtain a copy of the License at
010:          _##  
011:          _##      http://www.apache.org/licenses/LICENSE-2.0
012:          _##  
013:          _##  Unless required by applicable law or agreed to in writing, software
014:          _##  distributed under the License is distributed on an "AS IS" BASIS,
015:          _##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016:          _##  See the License for the specific language governing permissions and
017:          _##  limitations under the License.
018:          _##  
019:          _##########################################################################*/
020:
021:        package org.snmp4j.agent.mo;
022:
023:        import org.snmp4j.smi.OID;
024:        import java.util.Iterator;
025:
026:        /**
027:         * The <code>MOTableModel</code> interface defines the base table
028:         * model interface needed for <code>MOTable</code>s. This model can be used
029:         * for read-only and read-write SNMP conceptual tables. For read-create tables
030:         * the {@link MOMutableTableModel} should be used instead.
031:         *
032:         * @author Frank Fock
033:         * @version 1.0
034:         */
035:        public interface MOTableModel {
036:
037:            /**
038:             * Returns the number of columns currently in this table model.
039:             * @return
040:             *    the number of columns.
041:             */
042:            int getColumnCount();
043:
044:            /**
045:             * Returns the number of rows currently in this table model.
046:             * @return
047:             *    the number of rows.
048:             */
049:            int getRowCount();
050:
051:            /**
052:             * Checks whether this table model contains a row with the specified index.
053:             * @param index
054:             *    the index OID of the row to search.
055:             * @return
056:             *    <code>true</code> if this model has a row of with index
057:             *    <code>index</code> or <code>false</code> otherwise.
058:             */
059:            boolean containsRow(OID index);
060:
061:            /**
062:             * Gets the row with the specified index.
063:             * @param index
064:             *    the row index.
065:             * @return
066:             *    the <code>MOTableRow</code> with the specified index and
067:             *    <code>null</code> if no such row exists.
068:             */
069:            MOTableRow getRow(OID index);
070:
071:            /**
072:             * Returns an iterator over the rows in this table model.
073:             * @return
074:             *    an <code>Iterator</code> returning <code>MOTableRow</code> instances.
075:             */
076:            Iterator iterator();
077:
078:            /**
079:             * Returns an iterator on a view of the rows of this table model
080:             * whose index values are greater or equal <code>lowerBound</code>.
081:             *
082:             * @param lowerBound
083:             *    the lower bound index (inclusive). If <code>lowerBound</code> is
084:             *    <code>null</code> the returned iterator is the same as returned by
085:             *    {@link #iterator}.
086:             * @return
087:             *    an <code>Iterator</code> over the
088:             */
089:            Iterator tailIterator(OID lowerBound);
090:
091:            /**
092:             * Returns the last row index in this model.
093:             * @return
094:             *    the last index OID of this model.
095:             */
096:            OID lastIndex();
097:
098:            /**
099:             * Returns the first row index in this model.
100:             * @return
101:             *    the first index OID of this model.
102:             */
103:            OID firstIndex();
104:
105:            /**
106:             * Returns the first row contained in this model.
107:             * @return
108:             *    the <code>MOTableRow</code> with the smallest index or <code>null</code>
109:             *    if the model is empty.
110:             */
111:            MOTableRow firstRow();
112:
113:            /**
114:             * Returns the last row contained in this model.
115:             * @return
116:             *    the <code>MOTableRow</code> with the greatest index or <code>null</code>
117:             *    if the model is empty.
118:             */
119:            MOTableRow lastRow();
120:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.