target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testDecomposeVideoAndImage() throws Exception { LivePost livepost = buildLivePost("Love this song!! http: List<LivePost> liveposts = decomposer.decompose(livepost); assertEquals(4, liveposts.size()); assertTrue(liveposts.contains(livepost)); LivePost parent = null; ImagePost imagePost = null; VideoPos...
public List<LivePost> decompose(LivePost livepost) throws DataMiningException { List<LivePost> liveposts = new ArrayList<LivePost>(); if (!livepost.hasTextualContent()) { throw new DataMiningException("Livepost "+livepost.asResource()+" cannot be decomposed, no textual content is provided."); } else { String text = liv...
LivePostDecomposer { public List<LivePost> decompose(LivePost livepost) throws DataMiningException { List<LivePost> liveposts = new ArrayList<LivePost>(); if (!livepost.hasTextualContent()) { throw new DataMiningException("Livepost "+livepost.asResource()+" cannot be decomposed, no textual content is provided."); } els...
LivePostDecomposer { public List<LivePost> decompose(LivePost livepost) throws DataMiningException { List<LivePost> liveposts = new ArrayList<LivePost>(); if (!livepost.hasTextualContent()) { throw new DataMiningException("Livepost "+livepost.asResource()+" cannot be decomposed, no textual content is provided."); } els...
LivePostDecomposer { public List<LivePost> decompose(LivePost livepost) throws DataMiningException { List<LivePost> liveposts = new ArrayList<LivePost>(); if (!livepost.hasTextualContent()) { throw new DataMiningException("Livepost "+livepost.asResource()+" cannot be decomposed, no textual content is provided."); } els...
LivePostDecomposer { public List<LivePost> decompose(LivePost livepost) throws DataMiningException { List<LivePost> liveposts = new ArrayList<LivePost>(); if (!livepost.hasTextualContent()) { throw new DataMiningException("Livepost "+livepost.asResource()+" cannot be decomposed, no textual content is provided."); } els...
@Test public void testAddTwoStreams() throws Exception { Account linkedin = modelFactory.getDAOFactory().createAccount("urn:service:linkedin"); linkedin.setPrefLabel("LinkedIn"); resourceStore.createOrUpdate(null, linkedin); ResourceStore data = null; Collection<LivePost> messages = new ArrayList<LivePost>(); data = cr...
@Override public void update(URI accountUri, String path, LivePost livepost) throws AccountIntegrationException { Collection<LivePost> liveposts = new ArrayList<LivePost>(1); liveposts.add(livepost); update(accountUri, path, liveposts); }
StreamAccountUpdater extends AccountUpdaterBase implements AccountUpdater<LivePost> { @Override public void update(URI accountUri, String path, LivePost livepost) throws AccountIntegrationException { Collection<LivePost> liveposts = new ArrayList<LivePost>(1); liveposts.add(livepost); update(accountUri, path, liveposts...
StreamAccountUpdater extends AccountUpdaterBase implements AccountUpdater<LivePost> { @Override public void update(URI accountUri, String path, LivePost livepost) throws AccountIntegrationException { Collection<LivePost> liveposts = new ArrayList<LivePost>(1); liveposts.add(livepost); update(accountUri, path, liveposts...
StreamAccountUpdater extends AccountUpdaterBase implements AccountUpdater<LivePost> { @Override public void update(URI accountUri, String path, LivePost livepost) throws AccountIntegrationException { Collection<LivePost> liveposts = new ArrayList<LivePost>(1); liveposts.add(livepost); update(accountUri, path, liveposts...
StreamAccountUpdater extends AccountUpdaterBase implements AccountUpdater<LivePost> { @Override public void update(URI accountUri, String path, LivePost livepost) throws AccountIntegrationException { Collection<LivePost> liveposts = new ArrayList<LivePost>(1); liveposts.add(livepost); update(accountUri, path, liveposts...
@Test public void testAddContacts() throws Exception { Account linkedin = modelFactory.getDAOFactory().createAccount("urn:service:linkedin"); linkedin.setPrefLabel("LinkedIn"); pimoService.create(linkedin); ResourceStore data = createResourceStore( this.getClass().getClassLoader().getResourceAsStream("account/linkedin-...
@Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUri, path); removeResources(accountUri, path); if (path.contains("@me")) { PersonContact profi...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
@Test public void testRepeatedUpdate() throws Exception { ResourceStore initialStore = createResourceStore( this.getClass().getClassLoader().getResourceAsStream("account/linkedin-connections-initial.ttl"), Syntax.Turtle); ResourceStore updatedStore = createResourceStore( this.getClass().getClassLoader().getResourceAsSt...
@Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUri, path); removeResources(accountUri, path); if (path.contains("@me")) { PersonContact profi...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
ProfileAccountUpdater extends AccountUpdaterBase implements AccountUpdater<PersonContact> { @Override public void update(URI accountUri, String path, PersonContact contact) throws AccountIntegrationException { logger.info("Updating "+path+" for "+accountUri+" with 1 contact."); URI accountPathGraph = getGraph(accountUr...
@Test public void testConfirmCredentials() { authenticationController.confirmCredentials("", ""); }
@POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Respons...
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (use...
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (use...
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (use...
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (use...
@Test public void testEmptyPostalAddressExtraction() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLab...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, "...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction2() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction3() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction4() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction5() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction6() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction7() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testPostalAddressExtraction8() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI addr = model.createURI("urn:juan:loc36"); ResourceModel resourceModel = new ResourceModelImpl(addr); resourceModel.set(NAO.prefLabel, ...
public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.trim().isEmpty())) { logger.info("Posta...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
PostalAddressExtractor extends Base { public ResourceModel extract(ResourceModel postalAddress) throws DataMiningException { ResourceModel result = new ResourceModelImpl(postalAddress.getModel(), postalAddress.getIdentifier()); String content = postalAddress.getString(NAO.prefLabel); if ((content == null) || (content.t...
@Test public void testEmptyFullnameExtraction() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullna...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Ignore @Test public void testSaveEvaluationOK(){ Request<Evaluation> request = buildSaveEvaluationRequest(); Response<Evaluation> response = controller.saveEvaluation(said, request); assertNotNull(response); Evaluation ev = response.getMessage().getData().getEntries().iterator().next(); assertNotNull(ev); assertEquals...
@POST @Path("/@me") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public Response<Evaluation> saveEvaluation(@PathParam("said") String said, Request<Evaluation> request) { try { RequestValidator.validateRequest(request); Data<Evaluation> data = request...
PSEvaluationController { @POST @Path("/@me") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public Response<Evaluation> saveEvaluation(@PathParam("said") String said, Request<Evaluation> request) { try { RequestValidator.validateRequest(request); Data<E...
PSEvaluationController { @POST @Path("/@me") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public Response<Evaluation> saveEvaluation(@PathParam("said") String said, Request<Evaluation> request) { try { RequestValidator.validateRequest(request); Data<E...
PSEvaluationController { @POST @Path("/@me") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public Response<Evaluation> saveEvaluation(@PathParam("said") String said, Request<Evaluation> request) { try { RequestValidator.validateRequest(request); Data<E...
PSEvaluationController { @POST @Path("/@me") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public Response<Evaluation> saveEvaluation(@PathParam("said") String said, Request<Evaluation> request) { try { RequestValidator.validateRequest(request); Data<E...
@Test public void testFullnameExtraction() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, "...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction2() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction3() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction4() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction5() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction6() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction7() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction8() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction9() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname, ...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction10() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname,...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void shouldDeserializeJSONLD() throws JsonParseException, JsonMappingException, JSONLDProcessingError { String json = "{`@graph`:[{`@id`:`urn:uuid:4182dcd4-a510-4b0c-8145-271a3dcfe455`,`@type`:[`http: PersonContact resource = JSONLDUtils.deserialize(json, PersonContact.class); Model metadata = resource.get...
public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statement> statement...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
@Test public void testFullnameExtraction11() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname,...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction12() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname,...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testFullnameExtraction13() throws ModelRuntimeException, IOException, DataMiningException { Model model = RDF2Go.getModelFactory().createModel(); model.open(); URI name = model.createURI("urn:juan:personName4"); ResourceModel resourceModel = new ResourceModelImpl(name); resourceModel.set(NCO.fullname,...
public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) { logger.info("PersonName "+perso...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
FullnameExtractor extends Base { public ResourceModel extract(ResourceModel personName) throws DataMiningException { ResourceModel result = new ResourceModelImpl(personName.getModel(), personName.getIdentifier()); String content = personName.getString(NCO.fullname); if ((content == null) || (content.trim().isEmpty())) ...
@Test public void testUpdateCurrentPlace() { try { RawContextNotification notification = createNotification(user1, currentPlace); SpaTem spatem = liveContextService.get(SpaTem.class); ClosableIterator<Place> places = spatem.getAllCurrentPlace(); rawContextUpdater.contextChanged(notification); spatem = liveContextServic...
@Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IEntity entity = Factory.createEntity(tok.nextToken()); IScope...
LocationContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(...
LocationContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(...
LocationContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(...
LocationContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(...
@Test public void testHour() throws Exception { assertTrue(timePeriodUpdater.findTimePeriods(this.resourceStore, MAY18AT1339).contains(AFTERNOON)); }
protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR); int month = when.get(Calendar.MONTH) + 1; int yea...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
@Test public void testDayOfWeek() throws Exception { assertTrue(timePeriodUpdater.findTimePeriods(this.resourceStore, MAY18AT1339).contains(FRIDAY)); }
protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR); int month = when.get(Calendar.MONTH) + 1; int yea...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
@Test public void testWeekend() throws Exception { assertFalse(timePeriodUpdater.findTimePeriods(this.resourceStore, MAY18AT1339).contains(WEEKEND)); assertTrue(timePeriodUpdater.findTimePeriods(this.resourceStore, MAY20AT0839).contains(WEEKEND)); }
protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR); int month = when.get(Calendar.MONTH) + 1; int yea...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
@Test public void testFindTimePeriodsByWeek() throws Exception { assertTrue(timePeriodUpdater.findTimePeriods(this.resourceStore, MAY18AT1339).contains(WEEK20)); }
protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR); int month = when.get(Calendar.MONTH) + 1; int yea...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
TimePeriodUpdater implements LiveContextUpdater { protected List<URI> findTimePeriods(ResourceStore resourceStore, Calendar when) { int hour = when.get(Calendar.HOUR_OF_DAY); int dayOfWeek = getDayOfWeekFromMonday(when); int dayOfMonth = when.get(Calendar.DAY_OF_MONTH); int weekOfYear = when.get(Calendar.WEEK_OF_YEAR);...
@Test public void testUpdateActivity() { try { List<Node> activities = new ArrayList<Node>(); RawContextNotification notification = createNotification(user1,currentActivity); rawContextUpdater.contextChanged(notification); State state = liveContextService.get(State.class); ClosableIterator<Statement> currentIt = state....
@Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw Activity Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IEntity entity = Factory.createEntity(tok.nextToken()); IScope scop...
ActivityContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw Activity Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,...
ActivityContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw Activity Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,...
ActivityContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw Activity Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,...
ActivityContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw Activity Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,...
@Test public void testActivityNoRecentData() { IContextElement[] addrs = { ContextHelper.createCivilAddress(System.currentTimeMillis() - ((15) * 1000), 600, "place1"), ContextHelper.createCivilAddress(System.currentTimeMillis() - ((Defaults.ACTIVITY_PERIOD + Defaults.ACTIVITY_TOLERANCE + 10) * 1000), 600, "place1") }; ...
protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too recent to infer activity"); return ""; } else { lo...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
@Test public void shouldDeserializedJSONLDWithContext() throws JsonParseException, JsonMappingException, JSONLDProcessingError { String json = "{`@context`:{`nao`:`http: PersonContact resource = JSONLDUtils.deserialize(json, PersonContact.class); Model metadata = resource.getModel(); URI profile = new URIImpl("urn:uuid...
public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statement> statement...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
@Test public void testActivityDifferentPlaces() { IContextElement[] addrs = { ContextHelper.createCivilAddress(System.currentTimeMillis() - ((15) * 1000), 600, "place1"), ContextHelper.createCivilAddress(System.currentTimeMillis() - ((180) * 1000), 600, "place2"), ContextHelper.createCivilAddress(System.currentTimeMill...
protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too recent to infer activity"); return ""; } else { lo...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
@Test public void testActivityOK() { IContextElement[] addrs = { ContextHelper.createCivilAddress(System.currentTimeMillis() - ((15) * 1000), 600, "place1"), ContextHelper.createCivilAddress(System.currentTimeMillis() - ((180) * 1000), 600, "place1"), ContextHelper.createCivilAddress(System.currentTimeMillis() - ((Defa...
protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too recent to infer activity"); return ""; } else { lo...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
ActivityDetector implements IContextProvider { protected String getActivity(IEntity entity, IContextElement[] addrs) { if (addrs.length != 0) { int index = Utility.getFirstSignificativeItem(addrs,Defaults.ACTIVITY_PERIOD,Defaults.ACTIVITY_TOLERANCE); if (index == -1) { logger.debug("Received civil addresses are too rec...
@Test public void testUpdateWifi() { try { Tenant t1 = entityFactory.buildTenant(); t1.setName(user1.getEntityIDAsString()); t1.setId(new Long(2)); RawContextNotification notification = createNotification(t1,user1,wifi); rawContextUpdater.contextChanged(notification); Connectivity conn = liveContextService.get(Connecti...
@Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw WiFi Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IEntity entity = Factory.createEntity(tok.nextToken()); IScope scope = ...
WiFiContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw WiFi Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IE...
WiFiContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw WiFi Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IE...
WiFiContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw WiFi Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IE...
WiFiContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Raw WiFi Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IE...
@Test public void testShareWithAccount() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pimoService.ge...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareWithPerson() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pimoService.get...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareWithGroup() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pimoService.getU...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareWithGroupExcludeAccount() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pi...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareWithGroupExcludePerson() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pim...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareWithGroupAndAddPerson() throws Exception { LivePost livePost = createLivePost("Hello sharing!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pimo...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test public void testShareAndUpdateLivePost() throws Exception { LivePost livePost = createLivePost("Text updated!", pimoService.getUser()); PrivacyPreference preference = modelFactory.getPPOFactory().createPrivacyPreference(); preference.setLabel(PrivacyPreferenceType.LIVEPOST.name()); preference.setCreator(pimoServi...
@Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Connection connection = null; ResourceStore resourc...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
SharingNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { if (notifierManager == null) { logger.warn("NotifierManager bean not set for SharingNotifier: " + "notifications for sharing actions won't be sent!"); return; } Tenant tenant = TenantHelper.getTenant(event.getTenantId()); Conn...
@Test(expected=IllegalArgumentException.class) public void shouldRaiseErrorTwoObjectsSameType() throws JsonParseException, JsonMappingException, JSONLDProcessingError { String json = "{`@context`:{`nao`:`http: JSONLDUtils.deserialize(json, PersonContact.class); }
public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statement> statement...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
JSONLDUtils { public static <T extends Resource> T deserialize(Object object, Class<T> returnType) throws JsonParseException, JsonMappingException, JSONLDProcessingError { RDF2GoTripleCallback callback = new RDF2GoTripleCallback(); ModelSet modelSet = toRDF(object, callback); URI subject = null; ClosableIterator<Statem...
@Test public void testCreatePersonGroup() { PersonGroup group = modelFactory.getPIMOFactory().createPersonGroup(); group.setCreator(new URIImpl("urn:test")); Event event = new Event(connection.getName(), Event.ACTION_RESOURCE_ADD, group); notifier.onReceive(event); assertEquals(1, notifierManager.internal.size()); Dime...
@Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(action)) { if (resource == null) { logger.debug...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
@Test public void testUpdatePersonGroup() { PersonGroup group = modelFactory.getPIMOFactory().createPersonGroup(); group.setCreator(new URIImpl("urn:test")); Event event = new Event(connection.getName(), Event.ACTION_RESOURCE_MODIFY, group); notifier.onReceive(event); assertEquals(1, notifierManager.internal.size()); D...
@Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(action)) { if (resource == null) { logger.debug...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
@Test public void testRemovePersonGroup() { PersonGroup group = modelFactory.getPIMOFactory().createPersonGroup(); group.setCreator(new URIImpl("urn:test")); Event event = new Event(connection.getName(), Event.ACTION_RESOURCE_DELETE, group); notifier.onReceive(event); assertEquals(1, notifierManager.internal.size()); D...
@Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(action)) { if (resource == null) { logger.debug...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
CRUDNotifier implements BroadcastReceiver { @Override public void onReceive(Event event) { final String action = event.getAction(); if (!ArrayUtils.contains(ACTIONS, action)) { return; } final String itemId = event.getIdentifier().toString(); final Resource resource = event.getData(); if (NOTIFY_ACTIONS.containsKey(act...
@Test public void testGetAdapterName() { AMETICDummyAdapter adapter; try { adapter = createAdapter(); assert (adapter.getAdapterName().equals("AMETICDummyAdapter")); } catch (ServiceNotAvailableException e) { e.printStackTrace(); fail ("Service not available: "+e.getMessage()); } }
public String getAdapterName() { return AMETICDummyAdapter.adapterName; }
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { public String getAdapterName() { return AMETICDummyAdapter.adapterName; } }
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { public String getAdapterName() { return AMETICDummyAdapter.adapterName; } AMETICDummyAdapter(); }
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { public String getAdapterName() { return AMETICDummyAdapter.adapterName; } AMETICDummyAdapter(); String getAdapterName(); @Override void _set(String attribute, Object value); @Override void _delete(String attribute); @Override Service...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { public String getAdapterName() { return AMETICDummyAdapter.adapterName; } AMETICDummyAdapter(); String getAdapterName(); @Override void _set(String attribute, Object value); @Override void _delete(String attribute); @Override Service...
@Test public void testGetRaw() throws Exception { AMETICDummyAdapter adapter = createAdapter(); ServiceResponse[] attendees = adapter.getRaw("/event/@me/173/@all"); assertTrue (attendees[0].getResponse().length() > 0); ServiceResponse[] eventDetails = adapter.getRaw("/event/@me/173"); assertTrue (eventDetails[0].getRes...
@Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap attributeMap = new AttributeMap(); String genericAttribute = attributeMap.getAttribute(a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
@Test public void testRegister() throws Exception { AMETICDummyAdapter adapter = createAdapter(); adapter.register("ameticadmin", "ameticpass"); ServiceResponse[] attendees = adapter.getRaw("/event/@me/173/@all"); assertTrue (attendees[0].getResponse().length() > 0); }
@Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap attributeMap = new AttributeMap(); String genericAttribute = attributeMap.getAttribute(a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
AMETICDummyAdapter extends BasicAuthServiceAdapter implements ExternalServiceAdapter { @Override public ServiceResponse[] getRaw(String attribute) throws AttributeNotSupportedException, ServiceNotAvailableException, ServiceException { if (!this.isConnected()) { throw new ServiceNotAvailableException(); } AttributeMap a...
@Test public void testGetDefinitionSetId() { assertThat(domainValidator.getDefinitionSetId()).isEqualTo(DMNDefinitionSet.class.getName()); }
@Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); }
DMNDomainValidatorImpl implements DMNDomainValidator { @Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); } }
DMNDomainValidatorImpl implements DMNDomainValidator { @Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); } @Inject DMNDomainValidatorImpl(final DMNMarshallerStandalone dmnMarshaller, final DMNDiagramUtils dmnDiagramU...
DMNDomainValidatorImpl implements DMNDomainValidator { @Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); } @Inject DMNDomainValidatorImpl(final DMNMarshallerStandalone dmnMarshaller, final DMNDiagramUtils dmnDiagramU...
DMNDomainValidatorImpl implements DMNDomainValidator { @Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); } @Inject DMNDomainValidatorImpl(final DMNMarshallerStandalone dmnMarshaller, final DMNDiagramUtils dmnDiagramU...
@Test public void testRenderCenteredEmptyTextWithPlaceHolder() throws Exception { final BaseGridCell<String> cell = new BaseGridCell<>(new BaseGridCellValue<>(null, PLACE_HOLDER)); RendererUtils.getCenteredCellText(cellContext, cell); assertCenteredRenderingPlaceholder(placeHolderText); }
public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); final Group g = GWT.create(Group.class); String value = gridCell.getValue().getValue(); fi...
RendererUtils { public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); final Group g = GWT.create(Group.class); String value = gridCell.getValue(...
RendererUtils { public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); final Group g = GWT.create(Group.class); String value = gridCell.getValue(...
RendererUtils { public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); final Group g = GWT.create(Group.class); String value = gridCell.getValue(...
RendererUtils { public static Group getCenteredCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); final Group g = GWT.create(Group.class); String value = gridCell.getValue(...
@Test public void testRenderExpressionCellText() throws Exception { final BaseGridCell<String> cell = new BaseGridCell<>(new BaseGridCellValue<>(VALUE)); RendererUtils.getExpressionCellText(cellContext, cell); assertExpressionRendering(); }
public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, gridCell.getValue().getValue()); }
RendererUtils { public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, gridCell.getValue().getValue()); } }
RendererUtils { public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, gridCell.getValue().getValue()); } }
RendererUtils { public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, gridCell.getValue().getValue()); } stat...
RendererUtils { public static Group getExpressionCellText(final GridBodyCellRenderContext context, final GridCell<String> gridCell) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, gridCell.getValue().getValue()); } stat...
@Test public void testRenderExpressionHeaderText() throws Exception { when(headerMetaData.getTitle()).thenReturn(VALUE); RendererUtils.getExpressionHeaderText(headerMetaData, headerContext); assertExpressionRendering(); }
public static Group getExpressionHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, headerMetaData.getTitle()); }
RendererUtils { public static Group getExpressionHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, headerMetaData.getTitl...
RendererUtils { public static Group getExpressionHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, headerMetaData.getTitl...
RendererUtils { public static Group getExpressionHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, headerMetaData.getTitl...
RendererUtils { public static Group getExpressionHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context) { final GridRenderer gridRenderer = context.getRenderer(); final GridRendererTheme theme = gridRenderer.getTheme(); return getExpressionText(theme, headerMetaData.getTitl...
@Test public void testRenderHeaderContentWithNameAndDataTypeHeaderMetaData() { final ValueAndDataTypeHeaderMetaData metaData = mock(ValueAndDataTypeHeaderMetaData.class); when(metaData.getTitle()).thenReturn(TITLE); when(metaData.getTypeRef()).thenReturn(TYPE_REF); RendererUtils.getValueAndDataTypeHeaderText(metaData, ...
public static Group getValueAndDataTypeHeaderText(final ValueAndDataTypeHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { return getNameAndDataTypeText(context.getRenderer().getTheme(), headerMetaData.getTitle(), headerMetaData.getTypeRef(),...
RendererUtils { public static Group getValueAndDataTypeHeaderText(final ValueAndDataTypeHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { return getNameAndDataTypeText(context.getRenderer().getTheme(), headerMetaData.getTitle(), headerMetaDa...
RendererUtils { public static Group getValueAndDataTypeHeaderText(final ValueAndDataTypeHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { return getNameAndDataTypeText(context.getRenderer().getTheme(), headerMetaData.getTitle(), headerMetaDa...
RendererUtils { public static Group getValueAndDataTypeHeaderText(final ValueAndDataTypeHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { return getNameAndDataTypeText(context.getRenderer().getTheme(), headerMetaData.getTitle(), headerMetaDa...
RendererUtils { public static Group getValueAndDataTypeHeaderText(final ValueAndDataTypeHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { return getNameAndDataTypeText(context.getRenderer().getTheme(), headerMetaData.getTitle(), headerMetaDa...
@Test public void testRenderHeaderContentWithInformationItemCell() { final InformationItemCell.HasNameAndDataTypeCell informationItemCell = mock(InformationItemCell.HasNameAndDataTypeCell.class); final Name name = new Name(TITLE); when(informationItemCell.getName()).thenReturn(name); when(informationItemCell.getTypeRef...
public static Group getNameAndDataTypeCellText(final InformationItemCell.HasNameAndDataTypeCell hasNameAndDataTypeCell, final GridBodyCellRenderContext context) { if (!hasNameAndDataTypeCell.hasData()) { final BaseGridCellValue<String> cell = new BaseGridCellValue<>(null, hasNameAndDataTypeCell.getPlaceHolderText()); r...
RendererUtils { public static Group getNameAndDataTypeCellText(final InformationItemCell.HasNameAndDataTypeCell hasNameAndDataTypeCell, final GridBodyCellRenderContext context) { if (!hasNameAndDataTypeCell.hasData()) { final BaseGridCellValue<String> cell = new BaseGridCellValue<>(null, hasNameAndDataTypeCell.getPlace...
RendererUtils { public static Group getNameAndDataTypeCellText(final InformationItemCell.HasNameAndDataTypeCell hasNameAndDataTypeCell, final GridBodyCellRenderContext context) { if (!hasNameAndDataTypeCell.hasData()) { final BaseGridCellValue<String> cell = new BaseGridCellValue<>(null, hasNameAndDataTypeCell.getPlace...
RendererUtils { public static Group getNameAndDataTypeCellText(final InformationItemCell.HasNameAndDataTypeCell hasNameAndDataTypeCell, final GridBodyCellRenderContext context) { if (!hasNameAndDataTypeCell.hasData()) { final BaseGridCellValue<String> cell = new BaseGridCellValue<>(null, hasNameAndDataTypeCell.getPlace...
RendererUtils { public static Group getNameAndDataTypeCellText(final InformationItemCell.HasNameAndDataTypeCell hasNameAndDataTypeCell, final GridBodyCellRenderContext context) { if (!hasNameAndDataTypeCell.hasData()) { final BaseGridCellValue<String> cell = new BaseGridCellValue<>(null, hasNameAndDataTypeCell.getPlace...
@Test public void testRenderEditableHeaderText() { when(headerMetaData.getTitle()).thenReturn(VALUE); RendererUtils.getEditableHeaderText(headerMetaData, headerContext, WIDTH, HEIGHT); assertCenteredRendering(headerText1); }
public static Group getEditableHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); final GridRenderer renderer = context.getRenderer(); final GridRendererTheme theme =...
RendererUtils { public static Group getEditableHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); final GridRenderer renderer = context.getRenderer(); final GridRende...
RendererUtils { public static Group getEditableHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); final GridRenderer renderer = context.getRenderer(); final GridRende...
RendererUtils { public static Group getEditableHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); final GridRenderer renderer = context.getRenderer(); final GridRende...
RendererUtils { public static Group getEditableHeaderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); final GridRenderer renderer = context.getRenderer(); final GridRende...
@Test public void testRenderEditableHeaderPlaceHolderText() { when(headerMetaData.getPlaceHolder()).thenReturn(Optional.of(VALUE)); RendererUtils.getEditableHeaderPlaceHolderText(headerMetaData, headerContext, WIDTH, HEIGHT); assertCenteredRendering(placeHolderText); }
public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> { final GridRend...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
@Test public void testRenderEditableHeaderPlaceHolderTextWhenEmpty() { when(headerMetaData.getPlaceHolder()).thenReturn(Optional.empty()); RendererUtils.getEditableHeaderPlaceHolderText(headerMetaData, headerContext, WIDTH, HEIGHT); verify(headerGroup, never()).add(any(IPrimitive.class)); }
public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> { final GridRend...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
RendererUtils { public static Group getEditableHeaderPlaceHolderText(final EditableHeaderMetaData headerMetaData, final GridHeaderColumnRenderContext context, final double blockWidth, final double blockHeight) { final Group headerGroup = GWT.create(Group.class); headerMetaData.getPlaceHolder().ifPresent(placeHolder -> ...
@Test public void testGridWidget() { assertThat(DynamicReadOnlyUtils.isOnlyVisualChangeAllowed(mock(GridWidget.class))).isFalse(); }
public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
@Test public void testBaseGrid() { when(gridWidget.isOnlyVisualChangeAllowed()).thenReturn(false); assertThat(DynamicReadOnlyUtils.isOnlyVisualChangeAllowed(gridWidget)).isFalse(); }
public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
@Test public void testParseFEELListMultipleCommasInside() { final List<String> actualList = service.parseFEELList("\"Sao Paulo, SP, South America\",\"New York, NY, North America\""); final List<String> expectedList = asList("\"Sao Paulo, SP, South America\"", "\"New York, NY, North America\""); assertEquals(expectedLis...
@Override public List<String> parseFEELList(final String source) { return parse(source) .map(this::getTextElements) .orElseGet(ArrayList::new); }
DMNParseServiceImpl implements DMNParseService { @Override public List<String> parseFEELList(final String source) { return parse(source) .map(this::getTextElements) .orElseGet(ArrayList::new); } }
DMNParseServiceImpl implements DMNParseService { @Override public List<String> parseFEELList(final String source) { return parse(source) .map(this::getTextElements) .orElseGet(ArrayList::new); } }
DMNParseServiceImpl implements DMNParseService { @Override public List<String> parseFEELList(final String source) { return parse(source) .map(this::getTextElements) .orElseGet(ArrayList::new); } @Override List<String> parseFEELList(final String source); @Override RangeValue parseRangeValue(final String source); }
DMNParseServiceImpl implements DMNParseService { @Override public List<String> parseFEELList(final String source) { return parse(source) .map(this::getTextElements) .orElseGet(ArrayList::new); } @Override List<String> parseFEELList(final String source); @Override RangeValue parseRangeValue(final String source); }
@Test public void testBaseGridWhenOnlyVisualChangeAllowed() { when(gridWidget.isOnlyVisualChangeAllowed()).thenReturn(true); assertThat(DynamicReadOnlyUtils.isOnlyVisualChangeAllowed(gridWidget)).isTrue(); }
public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } }
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
DynamicReadOnlyUtils { public static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidget) { if (gridWidget instanceof BaseGrid) { final BaseGrid baseGrid = (BaseGrid) gridWidget; return baseGrid.isOnlyVisualChangeAllowed(); } return false; } static boolean isOnlyVisualChangeAllowed(final GridWidget gridWidge...
@Test public void testIsMultiSelectZeroSelections() { assertThat(SelectionUtils.isMultiSelect(uiModel)).isFalse(); }
public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
@Test public void testIsMultiSelectSingleSelection() { uiModel.selectCell(0, 0); assertThat(SelectionUtils.isMultiSelect(uiModel)).isFalse(); }
public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
@Test public void testIsMultiSelectMultipleSelections() { uiModel.selectCell(0, 0); uiModel.selectCell(0, 1); assertThat(SelectionUtils.isMultiSelect(uiModel)).isTrue(); }
public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } }
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
SelectionUtils { public static boolean isMultiSelect(final GridData uiModel) { return uiModel.getSelectedCells().size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderColum...
@Test public void testIsMultiRowZeroSelections() { assertThat(SelectionUtils.isMultiRow(uiModel)).isFalse(); }
public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
@Test public void testIsMultiRowSingleSelection() { uiModel.selectCell(0, 0); assertThat(SelectionUtils.isMultiRow(uiModel)).isFalse(); }
public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
@Test public void testIsMultiRowMultipleSelections() { uiModel.selectCell(0, 0); uiModel.selectCell(1, 0); assertThat(SelectionUtils.isMultiRow(uiModel)).isTrue(); }
public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } }
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
SelectionUtils { public static boolean isMultiRow(final GridData uiModel) { return uiModel.getSelectedCells() .stream() .map(GridData.SelectedCell::getRowIndex) .distinct() .collect(Collectors.toList()) .size() > 1; } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiMode...
@Test public void testIsMultiColumnZeroSelections() { assertThat(SelectionUtils.isMultiColumn(uiModel)).isFalse(); }
public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
@Test public void testIsMultiColumnSingleSelection() { uiModel.selectCell(0, 0); assertThat(SelectionUtils.isMultiColumn(uiModel)).isFalse(); }
public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
@Test public void testIsMultiColumnMultipleSelections() { uiModel.selectCell(0, 0); uiModel.selectCell(0, 1); assertThat(SelectionUtils.isMultiColumn(uiModel)).isTrue(); }
public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } }
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
SelectionUtils { public static boolean isMultiColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean isMultiHeaderC...
@Test public void test_function_java_WB_model() throws IOException { final DMNMarshallerStandalone m = getDMNMarshaller(); @SuppressWarnings("unchecked") final Graph<?, Node<?, ?>> g = m.unmarshall(createMetadata(), this.getClass().getResourceAsStream("/DROOLS-2372.dmn")); final Stream<Node<?, ?>> stream = StreamSuppor...
@Override @SuppressWarnings("unchecked") public Graph unmarshall(final Metadata metadata, final InputStream input) throws IOException { final Map<String, HasComponentWidths> hasComponentWidthsMap = new HashMap<>(); final BiConsumer<String, HasComponentWidths> hasComponentWidthsConsumer = (uuid, hcw) -> { if (Objects.no...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { @Override @SuppressWarnings("unchecked") public Graph unmarshall(final Metadata metadata, final InputStream input) throws IOException { final Map<String, HasComponentWidths> hasComponentWidthsMap = new HashMap<>(); final B...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { @Override @SuppressWarnings("unchecked") public Graph unmarshall(final Metadata metadata, final InputStream input) throws IOException { final Map<String, HasComponentWidths> hasComponentWidthsMap = new HashMap<>(); final B...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { @Override @SuppressWarnings("unchecked") public Graph unmarshall(final Metadata metadata, final InputStream input) throws IOException { final Map<String, HasComponentWidths> hasComponentWidthsMap = new HashMap<>(); final B...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { @Override @SuppressWarnings("unchecked") public Graph unmarshall(final Metadata metadata, final InputStream input) throws IOException { final Map<String, HasComponentWidths> hasComponentWidthsMap = new HashMap<>(); final B...
@Test public void testIsMultiHeaderColumnZeroSelections() { assertThat(SelectionUtils.isMultiHeaderColumn(uiModel)).isFalse(); }
public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
@Test public void testIsMultiHeaderColumnSingleSelection() { uiModel.selectHeaderCell(0, 0); assertThat(SelectionUtils.isMultiHeaderColumn(uiModel)).isFalse(); }
public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
@Test public void testIsMultiHeaderColumnMultipleSelections() { uiModel.selectHeaderCell(0, 0); uiModel.selectHeaderCell(0, 1); assertThat(SelectionUtils.isMultiHeaderColumn(uiModel)).isTrue(); }
public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } }
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
SelectionUtils { public static boolean isMultiHeaderColumn(final GridData uiModel) { return isMultiColumn(uiModel.getSelectedHeaderCells()); } static boolean isMultiSelect(final GridData uiModel); static boolean isMultiRow(final GridData uiModel); static boolean isMultiColumn(final GridData uiModel); static boolean is...
@Test public void testNull() { assertThat(NameUtils.normaliseName(null)).isEmpty(); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testEmpty() { assertThat(NameUtils.normaliseName("")).isEmpty(); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testLeadingWhitespace() { assertThat(NameUtils.normaliseName(" hello")).isEqualTo("hello"); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testTrailingWhitespace() { assertThat(NameUtils.normaliseName("hello ")).isEqualTo("hello"); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testCompactWhitespace() { assertThat(NameUtils.normaliseName("hello world")).isEqualTo("hello world"); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testCompleteNormalisation() { assertThat(NameUtils.normaliseName(" hello world ")).isEqualTo("hello world"); }
public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); }
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
NameUtils { public static String normaliseName(final String name) { if (Objects.isNull(name)) { return ""; } String value = name; if (StringUtils.nonEmpty(value)) { value = value.trim(); value = value.replaceAll(NORMALIZE_TO_SINGLE_WHITE_SPACE, WHITESPACE_STRING); } return value; } private NameUtils(); static String n...
@Test public void testGetTypeRefOfExpression() { when(hasExpression.asDMNModelInstrumentedBase()).thenReturn(mock(DMNModelInstrumentedBase.class)); when(expression.getTypeRef()).thenReturn(TYPE_REF); assertThat(TypeRefUtils.getTypeRefOfExpression(expression, hasExpression).getTypeRef()).isEqualTo(TYPE_REF); }
public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVariable = (HasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
@Test public void testGetImportedDrgElementsByShape() { final DMNMarshallerStandalone marshaller = spy(getDMNMarshaller()); final List<org.kie.dmn.model.api.DRGElement> importedDRGElements = mock(List.class); final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions = mock(Map.class); final org.kie.dmn.mod...
List<org.kie.dmn.model.api.DRGElement> getImportedDrgElementsByShape(final List<DMNShape> dmnShapes, final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions) { final List<org.kie.dmn.model.api.DRGElement> importedDRGElements = dmnMarshallerImportsHelper.getImportedDRGElements(importDefinitions); return d...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { List<org.kie.dmn.model.api.DRGElement> getImportedDrgElementsByShape(final List<DMNShape> dmnShapes, final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions) { final List<org.kie.dmn.model.api.DRGElement> im...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { List<org.kie.dmn.model.api.DRGElement> getImportedDrgElementsByShape(final List<DMNShape> dmnShapes, final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions) { final List<org.kie.dmn.model.api.DRGElement> im...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { List<org.kie.dmn.model.api.DRGElement> getImportedDrgElementsByShape(final List<DMNShape> dmnShapes, final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions) { final List<org.kie.dmn.model.api.DRGElement> im...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { List<org.kie.dmn.model.api.DRGElement> getImportedDrgElementsByShape(final List<DMNShape> dmnShapes, final Map<Import, org.kie.dmn.model.api.Definitions> importDefinitions) { final List<org.kie.dmn.model.api.DRGElement> im...
@Test public void testGetTypeRefOfExpressionWhenHasExpressionHasVariable() { when(hasExpression.asDMNModelInstrumentedBase()).thenReturn(decision); when(decision.getVariable()).thenReturn(decisionVariable); when(decisionVariable.getTypeRef()).thenReturn(TYPE_REF); assertThat(TypeRefUtils.getTypeRefOfExpression(expressi...
public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVariable = (HasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
TypeRefUtils { public static <E extends Expression> HasTypeRef getTypeRefOfExpression(final E expression, final HasExpression hasExpression) { HasTypeRef hasTypeRef = expression; final DMNModelInstrumentedBase base = hasExpression.asDMNModelInstrumentedBase(); if (base instanceof HasVariable) { final HasVariable hasVar...
@Test public void testBind() { control.bind(session); assertNotNull(control.getExpressionEditor()); verify(editor).bind(session); verify(canvasHandler).addDomainObjectListener(any(CanvasDomainObjectListener.class)); }
@Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectLis...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
@Test public void testBindDomainObjectListenerWithNodeMatch() { final Definition definition = mock(Definition.class); when(graph.nodes()).thenReturn(Collections.singletonList(node)); when(node.getContent()).thenReturn(definition); when(definition.getDefinition()).thenReturn(domainObject); when(domainObject.getDomainObj...
@Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectLis...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
@Test public void testBindDomainObjectListenerWithNoNodeMatch() { when(graph.nodes()).thenReturn(Collections.emptyList()); control.bind(session); verify(canvasHandler).addDomainObjectListener(domainObjectListenerCaptor.capture()); final CanvasDomainObjectListener domainObjectListener = domainObjectListenerCaptor.getVal...
@Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectLis...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this...
@Test public void testDoInit() { assertNull(control.getExpressionEditor()); control.doInit(); assertNull(control.getExpressionEditor()); }
@Override protected void doInit() { }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doInit() { } }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doInit() { } @Inject ExpressionEditorControlImpl(final ExpressionEditorView view, final DecisionNavigatorPresenter decisionNavigator, ...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doInit() { } @Inject ExpressionEditorControlImpl(final ExpressionEditorView view, final DecisionNavigatorPresenter decisionNavigator, ...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doInit() { } @Inject ExpressionEditorControlImpl(final ExpressionEditorView view, final DecisionNavigatorPresenter decisionNavigator, ...
@Test public void testDoDestroy() { control.bind(session); verify(canvasHandler).addDomainObjectListener(domainObjectListenerCaptor.capture()); control.doDestroy(); assertNull(control.getExpressionEditor()); final CanvasDomainObjectListener domainObjectListener = domainObjectListenerCaptor.getValue(); verify(canvasHand...
@Override protected void doDestroy() { view = null; decisionNavigator = null; session.ifPresent(s -> s.getCanvasHandler().removeDomainObjectListener(refreshEditorDomainObjectListener)); session = Optional.empty(); expressionEditor = Optional.empty(); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doDestroy() { view = null; decisionNavigator = null; session.ifPresent(s -> s.getCanvasHandler().removeDomainObjectListener(refreshEditorDomainObjectListener)); session = Optional.empt...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doDestroy() { view = null; decisionNavigator = null; session.ifPresent(s -> s.getCanvasHandler().removeDomainObjectListener(refreshEditorDomainObjectListener)); session = Optional.empt...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doDestroy() { view = null; decisionNavigator = null; session.ifPresent(s -> s.getCanvasHandler().removeDomainObjectListener(refreshEditorDomainObjectListener)); session = Optional.empt...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override protected void doDestroy() { view = null; decisionNavigator = null; session.ifPresent(s -> s.getCanvasHandler().removeDomainObjectListener(refreshEditorDomainObjectListener)); session = Optional.empt...
@Test public void testOnCanvasFocusedSelectionEventWhenNotBound() { control.onCanvasFocusedSelectionEvent(event); verifyNoMoreInteractions(editor); }
@SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) ...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) ...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) ...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) ...
@Test public void testOnCanvasElementUpdated() { control.bind(session); final CanvasElementUpdatedEvent event = new CanvasElementUpdatedEvent(canvasHandler, node); control.onCanvasElementUpdated(event); verify(editor).handleCanvasElementUpdated(event); }
public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @Inject ExpressionEditorControlImpl(fina...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @Inject ExpressionEditorControlImpl(fina...
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @Inject ExpressionEditorControlImpl(fina...
@Test public void testFromDMNModelUndefinedExpressionType() { setup(false); expression = null; mapper.fromDMNModel(0, 0); assertFromDMNModelUndefinedExpressionType(false); }
@Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasName = this.hasName.get(); final boolean isOnlyVisualChangeAllowed = this.is...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
@Test public void testFromDMNModelWhenOnlyVisualChangeAllowed() { setup(true); expression = null; mapper.fromDMNModel(0, 0); assertFromDMNModelUndefinedExpressionType(true); }
@Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasName = this.hasName.get(); final boolean isOnlyVisualChangeAllowed = this.is...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
ExpressionContainerUIModelMapper extends BaseUIModelMapper<Expression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { final String uuid = nodeUUID.get(); final GridData uiModel = this.uiModel.get(); final Optional<Expression> expression = dmnModel.get(); final Optional<HasName> hasNam...
@Test public void testGetDmnElementRef() { final DMNMarshallerStandalone marshaller = spy(getDMNMarshaller()); final String expected = "localPart"; final DMNShape shape = mock(DMNShape.class); final javax.xml.namespace.QName ref = mock(javax.xml.namespace.QName.class); when(ref.getLocalPart()).thenReturn(expected); whe...
String getDmnElementRef(final DMNShape dmnShape) { return Optional .ofNullable(dmnShape.getDmnElementRef()) .map(QName::getLocalPart) .orElse(""); }
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { String getDmnElementRef(final DMNShape dmnShape) { return Optional .ofNullable(dmnShape.getDmnElementRef()) .map(QName::getLocalPart) .orElse(""); } }
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { String getDmnElementRef(final DMNShape dmnShape) { return Optional .ofNullable(dmnShape.getDmnElementRef()) .map(QName::getLocalPart) .orElse(""); } protected DMNMarshallerStandalone(); @Inject DMNMarshallerStandalone(fi...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { String getDmnElementRef(final DMNShape dmnShape) { return Optional .ofNullable(dmnShape.getDmnElementRef()) .map(QName::getLocalPart) .orElse(""); } protected DMNMarshallerStandalone(); @Inject DMNMarshallerStandalone(fi...
DMNMarshallerStandalone implements DiagramMarshaller<Graph, Metadata, Diagram<Graph, Metadata>> { String getDmnElementRef(final DMNShape dmnShape) { return Optional .ofNullable(dmnShape.getDmnElementRef()) .map(QName::getLocalPart) .orElse(""); } protected DMNMarshallerStandalone(); @Inject DMNMarshallerStandalone(fi...