Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSArray.objectAtIndex()


          if (aValue != null) {
            NSData data = null;
            try {
              data = (NSData) aValue.objectAtIndex(0);
            } catch (ClassCastException e) {
              throw new ClassCastException("AjaxUploadButton: Value in request was of type '" + aValue.objectAtIndex(0).getClass().getName() + "' instead of NSData. Verify that the WOForm's 'enctype' binding is set to 'multipart/form-data'");
            }
            setData(data);
          }

          // mimetype
View Full Code Here


      result.setInfix(string);
    if ((string = (String) pl.objectForKey("suffix")) != null)
      result.setSuffix(string);
    int count = array.count();
    for (int i = 0; i < count; i++) {
      Object object = array.objectAtIndex(i);
      if ((object = _objectForPlist(object)) != null)
        result.addObject(object);
    }

    return result;
View Full Code Here

        int aTotalActiveSessions = 0;
        int i;
        int anInstArrayCount = anInstArray.count();

        for (i = 0; i < anInstArrayCount; i++) {
            MInstance anInstance = (MInstance)anInstArray.objectAtIndex(i);
            NSDictionary aStatsDict = anInstance.statistics();

            if (aStatsDict != null) {
                try {
                    String aValue = (String) aStatsDict.valueForKey("activeSessions");
View Full Code Here

        float aTotalAvg = (float)0.0;
        int i;
        int anInstArrayCount = anInstArray.count();

        for (i = 0; i < anInstArrayCount; i++) {
            MInstance anInstance = (MInstance)anInstArray.objectAtIndex(i);
            NSDictionary aStatsDict = anInstance.statistics();

            if (aStatsDict != null) {
                try {
                    String aValue = (String)aStatsDict.valueForKey("transactions");
View Full Code Here

        float aTotalAvg = (float)0.0;
        int i;
        int instArrayCount = anInstArray.count();

        for (i = 0; i < instArrayCount; i++) {
            MInstance anInstance = (MInstance)anInstArray.objectAtIndex(i);
            NSDictionary aStatsDict = anInstance.statistics();

            if (aStatsDict != null) {
                try {
                    String aValue = (String)aStatsDict.valueForKey("transactions");
View Full Code Here

        NSArray anInstArray = anApp.instanceArray();
        int i;
        int anInstArrayCount = anInstArray.count();

        for (i = 0; i < anInstArrayCount; i++) {
            MInstance anInstance = (MInstance)anInstArray.objectAtIndex(i);
            NSDictionary aStatsDict = anInstance.statistics();
            String aStartDate = "";
            float anInstRate = (float)0.0;
            Integer aTrans;
View Full Code Here


    public NSArray topHorzGroupCriteriaList() {
        NSArray hList = model().hList();
        if (hList.count() > 0) {
            DRGroup group = (DRGroup)hList.objectAtIndex(0);
            NSArray sortedCriteriaList = group.sortedCriteriaList();
            return sortedCriteriaList;
        }
        return NSArray.EmptyArray;
    }
View Full Code Here


    public NSArray topVertGroupCriteriaList() {
        NSArray arr = model().vList();
        if (arr.count() > 0) {
            DRGroup grp = (DRGroup)arr.objectAtIndex(0);
            return grp.sortedCriteriaList();
        }
        return NSArray.EmptyArray;
    }
View Full Code Here

        int span = 1;
        int startIndex = indx+1;

        if (!(startIndex >= cnt)) {
            for (int i = startIndex; i < cnt; i++) {
                DRGroup grp = (DRGroup)lst.objectAtIndex(i);
                span = span*grp.sortedCriteriaList().count();
            }

        }

View Full Code Here

        NSArray anInstArray = anApp.instanceArray();
        int i;
        int anInstArrayCount = anInstArray.count();

        for (i = 0; i < anInstArrayCount; i++) {
            MInstance anInstance = (MInstance)anInstArray.objectAtIndex(i);
            NSDictionary aStatsDict = anInstance.statistics();

            if (aStatsDict != null) {
                try {
                    String aValue = (String) aStatsDict.valueForKey("transactions");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.