|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.ActiveApplications
@Immutable @ThreadSafe public class ActiveApplications
Collection of active applications on a Sage Accpac ERP database pair (both
company and system databases).
An object of this class cannot be created directly by an application; it
should be obtained from the Program object's
getActiveApplications()
method.
The collection contains only those entries that were present when
getActiveApplications()
was called;
applications activated since then are not included in the collection.
Similarly the actual entries in the collection reflect the state of the
application when getActiveApplications() was called.
Since the collection is iterable and the contents are immutable the easiest
way to use the collection is in a foreach loop:
for (ActiveApplication a: s.getActiveApplications()) { Process the application a }
ActiveApplication
Method Summary | |
---|---|
ActiveApplication |
get(int index)
Get the specified ActiveApplication object by its index in the collection. |
ActiveApplication |
get(java.lang.String prefix)
Get the specified ActiveApplication object |
int |
getCount()
Get the number of applications in the list. |
java.util.Iterator<ActiveApplication> |
iterator()
Get an iterator on the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getCount()
for (ActiveApplication a: s.getActiveApplications()) { Process the application a }
get(int)
,
iterator()
public ActiveApplication get(int index)
index
- The zero-based index of the object in the collection.getCount()
,
iterator()
public ActiveApplication get(java.lang.String prefix)
prefix
- The application prefix of the application
public java.util.Iterator<ActiveApplication> iterator()
for (ActiveApplication a: s.getActiveApplications()) { Process the application a; }
iterator
in interface java.lang.Iterable<ActiveApplication>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |