Examples of Data


Examples of org.locationtech.udig.catalog.ui.workflow.ConnectionFailureState.Data

        setControl(form);
    }
    private void setDetails() {
        Object firstElement = ((IStructuredSelection) viewer.getSelection()).getFirstElement();
        if( firstElement instanceof Data ){
            Data data = (Data) firstElement;
            String string = data.message;
            if( string==null )
                string = canProcess;
            details.setText(string);
        }else{
View Full Code Here

Examples of org.locationtech.udig.ui.AcceptLessTen.Data

    @Ignore
    @Test
    public void testPerformDropListButOnlySomeAreAcceptable() throws Exception {
        ArrayList<Data> data = new ArrayList<Data>();
        Data data1 = new Data(11);
        data.add(data1);
        Data data2 = new Data(1);
        data.add(data2);
        Data data3 = new Data(5);
        data.add(data3);

        doDrop(data, 2);
       
        assertEquals(2,done);
View Full Code Here

Examples of org.netbeans.ns.nb_module_project._3.Data

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();

        if (data != null)
        {
          ModuleDependencies moduleDependencies = data.getModuleDependencies();

          if (moduleDependencies != null)
          {
            dependencies = moduleDependencies.getDependency();
          }
View Full Code Here

Examples of org.netbeans.server.uihandler.statistics.ExceptionReports.Data

            Utils.processPersistable(this);
        }
    }

    public TransactionResult runQuery(EntityManager em) {
        Data dat = new Data();
        Map<String, Integer> components = new TreeMap<String, Integer>();
        List<ReportItem> monthStatistics = new ArrayList<ReportItem>();
        List<ReportItem> reportDateStatistics = new ArrayList<ReportItem>();
        try {
            dat.reportsCount = PersistenceUtils.executeCount(em, "Exceptions.countAll", null);
            dat.slownessCount = PersistenceUtils.executeCount(em, "Slowness.countAll", null);
            components = reportsComponentsDivision(em, dat.reportsCount);
            Map<String, Object> map = new HashMap<String, Object>(3);
            Map<String, Object> dateMap = new HashMap<String, Object>(3);
            Calendar cald = Calendar.getInstance();
            if (BASE_DATE != null){
                cald.setTime(BASE_DATE);
            }
            long realYear = cald.get(Calendar.YEAR);
            long year = cald.get(Calendar.YEAR) % 100 - HISTORY_LENGHT;
            long month = cald.get(Calendar.MONTH);
            Long border = year * 100 + month % 12 + 1;
            Date dateBorder = new Date((int) (realYear - 1901 + month / 12), (int) (month % 12 + 1), 1);
            map.put(START, border * 100);
            dateMap.put( START,dateBorder);
            List<Nbversion> versions = PersistenceUtils.executeNamedQuery(em, "Nbversion.all", null, Nbversion.class);
            LOG.fine("versions count = " + versions.size());
            for (Nbversion nbversion : versions) {
                for (long i = month + 1; i <= month + 1 + HISTORY_LENGHT * 12; i++) {
                    int begin_border = border.intValue();
                    border = (year + i / 12) * 100 + i % 12 + 1;
                    dateBorder = new Date((int) (realYear - 1901 + i / 12), (int) (i % 12 + 1), 1);
                    dateMap.put("end", dateBorder);
                    dateMap.put("version", nbversion);
                    map.put("end", border * 100);
                    map.put("version", nbversion);
                    int count = PersistenceUtils.executeCount(em, "Exceptions.buildDateQuery", map);
                    if (count > MIN_COUNT) {
                        monthStatistics.add(new ReportItem(begin_border % 100, begin_border / 100, count, nbversion));
                    }
                    count = PersistenceUtils.executeCount(em, "Exceptions.reportDateQuery", dateMap);
                    if (count > MIN_COUNT) {
                        reportDateStatistics.add(new ReportItem(border.intValue() % 100, border.intValue() / 100 + 1, count, nbversion));
                    }
                    map.put(START, border * 100);
                    dateMap.put( START,dateBorder);
                }
            }

        } catch (Exception ex) {
            // requires database and that is not present
            System.out.println(ex);
            ex.printStackTrace();
            LOG.log(Level.WARNING, ex.getMessage(), ex);
        }
        dat.setComponents(components);
        dat.setMonthStatistics(monthStatistics);
        dat.setReportDateStatistics(reportDateStatistics);
        globalData = dat;
        return TransactionResult.NONE;
    }
View Full Code Here

Examples of org.openmhealth.reference.domain.Data

                }
                // FIXME: Apply the column list.
               
                // Create a Data object and return it.
                return
                  new Data(
                    username,
                    id,
                    version,
                    metaData,
                    data);
View Full Code Here

Examples of org.openuri.enumtest.Data

    public static void testReport2() throws Exception
    {
        StatusreportDocument doc = StatusreportDocument.Factory.newInstance();
        StatusreportDocument.Statusreport report = doc.addNewStatusreport();

        Data d = report.addNewStatus();
        d.set(Quantity.ALL);
        d.setTarget(Quantity.ALL);

        d = report.addNewStatus();
        d.set(Quantity.FEW);
        d.setTarget(Quantity.ALL);

        d = report.addNewStatus();
        d.set(Quantity.MOST);
        d.setTarget(Quantity.NONE);

        d = report.addNewStatus();
        d.set(Quantity.NONE);
        d.setTarget(Quantity.NONE);

        Quantity.Enum[] contents = new Quantity.Enum[]
        {
            Quantity.ALL,
            Quantity.ALL,
View Full Code Here

Examples of org.quickserver.net.qsadmin.Data

* @see org.quickserver.net.qsadmin.Authenticator
*/
public class Authenticator extends QuickAuthenticationHandler {

     public AuthStatus askAuthentication(ClientHandler handler) throws IOException, AppException {
         Data data = (Data) handler.getClientData();
         data.setLastAsked("U");
         handler.sendClientMsg("+OK Username required");
         return null;
     }
View Full Code Here

Examples of org.syrup.Data

    {
        try
        {
            if (context.in_1_link() != null)
            {
                Data in1 = context.in_1_link().content();
                String d = new String(in1.bytes());

                Date date = formatter.parse(d);

                long ft = date.getTime();
                long t = new Date().getTime();
View Full Code Here

Examples of org.uscxml.Data

  public Context ctx;
  public Scriptable scope;
  public Interpreter interpreter;

  public Data getScriptableAsData(Object object) {
    Data data = new Data();

    Scriptable s;
    try {
      s = (Scriptable) object;
      String className = s.getClassName(); // ECMA class name
      if (className.toLowerCase().equals("object")) {
        ScriptableObject obj = (ScriptableObject) Context.toObject(s,
            scope);
        for (Object key : obj.getIds()) {
          data.put(Context.toString(key),
              getScriptableAsData(obj.get(key)));
        }
      }
    } catch (ClassCastException e) {
      if (object instanceof Boolean) {
        data.setAtom(Context.toBoolean(object) ? "true" : "false");
        data.setType(Data.Type.INTERPRETED);
      } else if (object instanceof String) {
        data.setAtom((String) object);
        data.setType(Data.Type.VERBATIM);
      } else if (object instanceof Integer) {
        data.setAtom(((Integer) object).toString());
        data.setType(Data.Type.INTERPRETED);
      } else {
        throw new RuntimeException("Unhandled ECMA type "
            + object.getClass().getName());
      }
    }
View Full Code Here

Examples of org.vfny.geoserver.global.Data

        // - if we fail to aquire all the locks we will need to fail and
        //   itterate through the the FeatureSources to release the locks
        //
        WFS wfs = request.getWFS();
        GeoServer config = wfs.getGeoServer();
        Data catalog = wfs.getData();
        FeatureTypeInfo meta = null;
        NameSpaceInfo namespace;
        Query query;

        FeatureSource source;
        Feature feature;
        String fid;
        FilterFactory filterFactory = FilterFactoryFinder.createFilterFactory();
        FidFilter fidFilter;

        try {
            for (Iterator it = request.getQueries().iterator(); it.hasNext();) {
                query = (Query) it.next();

                // the feature type name used in the content disposition response will match
                // the first feature type
                if (featureTypeName == null) {
                    featureTypeName = query.getTypeName();
                }

                meta = catalog.getFeatureTypeInfo(query.getTypeName());
                namespace = meta.getDataStoreInfo().getNameSpace();
                source = meta.getFeatureSource();

                List attrs = meta.getAttributes();
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.