Examples of ObjectData


Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.ObjectData

        if (LOG.isDebugEnabled()) {
            LOG.debug("compiling object data for " + adapter);
        }

        final ObjectSpecification adapterSpec = adapter.getSpecification();
        final ObjectData data = new ObjectData(adapterSpec, (SerialOid) adapter.getOid(), (FileVersion) adapter.getVersion());

        final List<ObjectAssociation> associations = adapterSpec.getAssociations();
        for (final ObjectAssociation association : associations) {
            if (association.isNotPersisted()) {
                continue;
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.data.common.ObjectData

        final TestProxyAdapter object = new TestProxyAdapter();
        object.setupOid(new TestProxyOid(5));
        object.setupResolveState(ResolveState.GHOST);

        final IdentityData identityData = new DummyReferenceData();
        final ObjectData objectData = new DummyObjectData();
        final ResolveObjectRequest request = new ResolveObjectRequest(session, identityData);

        mockery.checking(new Expectations() {
            {
                // encoder used to create identity data for target object
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.ObjectData

      }
     
      for( Shape shape : shapes ) {
         if( shape instanceof OLEShape ) {
            OLEShape oleShape = (OLEShape)shape;
            ObjectData data = null;
            try {
                data = oleShape.getObjectData();
            } catch( NullPointerException e ) {
                /* getObjectData throws NPE some times. */
            }
            if (data != null) {
               String objID = Integer.toString(oleShape.getObjectID());

               // Embedded Object: add a <div
               // class="embedded" id="X"/> so consumer can see where
               // in the main text each embedded document
               // occurred:
               AttributesImpl attributes = new AttributesImpl();
               attributes.addAttribute("", "class", "class", "CDATA", "embedded");
               attributes.addAttribute("", "id", "id", "CDATA", objID);
               xhtml.startElement("div", attributes);
               xhtml.endElement("div");

               TikaInputStream stream =
                    TikaInputStream.get(data.getData());
               try {
                  String mediaType = null;
                  if ("Excel.Chart.8".equals(oleShape.getProgID())) {
                     mediaType = "application/vnd.ms-excel";
                  }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectData

                // set the name in the encounter wrapper object
                encounter.setName(name);

                // create or set object data
                ObjectData datum = encounter.getObjectInstance().getData().get("name");
                logger.trace("datum: " + datum);
                if(datum == null) {
                    ObjectProperty op = encounter.getObjectInstance().getObjectTemplate().getProperty("name");
                    logger.trace("op: " + op);
                    if(op == null) {
                        logger.error("Object property 'name' couldn't be found in template: "
                                + encounter.getObjectInstance().getObjectTemplate());

                        // alert service
                        alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                                "Object property 'name' couldn't be found in template: "
                                        + encounter.getObjectInstance().getObjectTemplate().getName()));

                        return;
                    }

                    datum = objectDataFactory.createObjectData(op, false);
                    logger.trace("datum: " + datum);
                    if(datum != null) {
                        datum.setName("name");

                        encounter.getObjectInstance().addData(datum);
                    }
                    else {
                        logger.error("Object data couldn't be created for 'name' from object property: " + op);

                        // alert service
                        alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                                "Object data couldn't be created for 'name' from object property: " + op.getName()));

                        return;
                    }
                }
                datum.setValue(name);

                doSave(null);

                setPartName(getTitle());
            }
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.