Java Code Examples for org.apache.commons.lang3.NotImplementedException

The following examples show how to use org.apache.commons.lang3.NotImplementedException. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: org.hl7.fhir.core   Source File: ValueSetExpanderSimple.java    License: Apache License 2.0 6 votes vote down vote up
private void excludeCodes(ConceptSetComponent inc, List<ValueSetExpansionParameterComponent> params) throws TerminologyServiceException {
	  ValueSet cs = context.fetchCodeSystem(inc.getSystem().toString());
	  if (cs == null)
	  	throw new TerminologyServiceException("unable to find value set "+inc.getSystem().toString());
    if (inc.getConcept().size() == 0 && inc.getFilter().size() == 0) {
      // special case - add all the code system
//      for (ConceptDefinitionComponent def : cs.getDefine().getConcept()) {
//!!!!        addCodeAndDescendents(inc.getSystem(), def);
//      }
    }
      

	  for (ConceptReferenceComponent c : inc.getConcept()) {
	  	// we don't need to check whether the codes are valid here- they can't have gotten into this list if they aren't valid
	  	map.remove(key(inc.getSystem(), c.getCode()));
	  }
	  if (inc.getFilter().size() > 0)
	  	throw new NotImplementedException("not done yet");
  }
 
Example 2
Source Project: org.hl7.fhir.core   Source File: ValueSetExpanderSimple.java    License: Apache License 2.0 6 votes vote down vote up
private void excludeCodes(ConceptSetComponent exc, List<ValueSetExpansionParameterComponent> params) throws TerminologyServiceException {
  if (exc.hasSystem() && exc.getConcept().size() == 0 && exc.getFilter().size() == 0) {
    excludeSystems.add(exc.getSystem());
  }

  if (exc.hasValueSet())
    throw new Error("Processing Value set references in exclude is not yet done");
  // importValueSet(imp.getValue(), params, profile);

  CodeSystem cs = context.fetchCodeSystem(exc.getSystem());
  if ((cs == null || cs.getContent() != CodeSystemContentMode.COMPLETE) && context.supportsSystem(exc.getSystem())) {
    excludeCodes(context.expandVS(exc, false), params);
    return;
  }

  for (ConceptReferenceComponent c : exc.getConcept()) {
    excludeCode(exc.getSystem(), c.getCode());
  }

  if (exc.getFilter().size() > 0)
    throw new NotImplementedException("not done yet");
}
 
Example 3
Source Project: canon-sdk-java   Source File: SetPropertyCommand.java    License: MIT License 6 votes vote down vote up
@Override
protected R runInternal() throws InterruptedException {
    /*
     * Implementation to simplify set values so less duplicate code in runInternal() for set commands.
     *
     * This implementation might not fit for all set, if it is the case then sub-class should override runInternal().
     */
    final EdsdkLibrary.EdsBaseRef targetRef = getTargetRefInternal();

    if (nativeEnum != null) {
        CanonFactory.propertySetLogic().setPropertyData(targetRef, propertyID, nativeEnum);
        return null;
    }

    if (value != null) {
        CanonFactory.propertySetLogic().setPropertyDataAdvanced(targetRef, propertyID, value);
        return null;
    }

    // well not sure there is much to do or change
    throw new NotImplementedException("that's a pity...");
}
 
Example 4
Source Project: botbuilder-java   Source File: TeamsActivityHandlerTests.java    License: MIT License 5 votes vote down vote up
@Override
public CompletableFuture<Void> deleteActivity(
    TurnContext context,
    ConversationReference reference
) {
    CompletableFuture<Void> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("deleteActivity"));
    return result;
}
 
Example 5
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Coding c1, Coding c2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(c1.getSystem(), c2.getSystem(), null) && matches(c1.getCode(), c2.getCode(), null);
}
 
Example 6
Source Project: bartworks   Source File: AccessPriorityList.java    License: MIT License 5 votes vote down vote up
@Override
    public boolean remove(Object o) {
//        Object p;
//        for (Iterator it = this.iterator(); it.hasNext(); o.equals(p)){
//            p = it.next();
//        }
        throw new NotImplementedException("");
    }
 
Example 7
Source Project: org.hl7.fhir.core   Source File: SnapShotGenerationTests.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean conformsToProfile(Object appContext, Base item, String url) throws FHIRException {
  IResourceValidator val = TestingUtilities.context().newValidator();
  List<ValidationMessage> valerrors = new ArrayList<ValidationMessage>();
  if (item instanceof Resource) {
    val.validate(appContext, valerrors, (Resource) item, url);
    boolean ok = true;
    for (ValidationMessage v : valerrors)
      ok = ok && v.getLevel().isError();
    return ok;
  }
  throw new NotImplementedException("Not done yet (IGPublisherHostServices.SnapShotGenerationTestsContext), when item is element");
}
 
Example 8
Source Project: botbuilder-java   Source File: TeamsActivityHandlerTests.java    License: MIT License 5 votes vote down vote up
@Override
public CompletableFuture<ResourceResponse[]> sendActivities(
    TurnContext context,
    List<Activity> activities
) {
    CompletableFuture<ResourceResponse[]> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("sendActivities"));
    return result;
}
 
Example 9
Source Project: botbuilder-java   Source File: MemoryConversations.java    License: MIT License 5 votes vote down vote up
protected <T> CompletableFuture<T> notImplemented(String message) {
    CompletableFuture<T> result = new CompletableFuture<>();
    result.completeExceptionally(
        new NotImplementedException(message)
    );
    return result;
}
 
Example 10
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Identifier i1, Identifier i2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(i1.getSystem(), i2.getSystem(), null) && matches(i1.getValue(), i2.getValue(), null);
}
 
Example 11
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we insist on system
 return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null);
}
 
Example 12
Source Project: org.hl7.fhir.core   Source File: ToolsHelper.java    License: Apache License 2.0 5 votes vote down vote up
private void generateSnapshots(String[] args) throws IOException, FHIRException {
	if (args.length == 1) {
		System.out.println("tools.jar snapshot-maker [source] -defn [definitions]");
		System.out.println("");
		System.out.println("Generates a snapshot from a differential. The nominated profile must have a single struture that has a differential");
		System.out.println("");
		System.out.println("source - the profile to generate the snapshot for. Maybe a file name, or a URL reference to a server running FHIR RESTful API");
		System.out.println("definitions - filename for local copy of the validation.zip file");			
	}
	String address = args[1];
	String definitions = args[3];

	SimpleWorkerContext context = SimpleWorkerContext.fromDefinitions(getDefinitions(definitions));

	//    if (address.startsWith("http:") || address.startsWith("http:")) {
	//    	// this is on a restful interface
	//    	String[] parts = address.split("\\/Profile\\/");
	//    	if (parts.length != 2)
	//    		throw new FHIRException("Unable to understand address of profile");
	//    	StructureDefinition profile = context.fetchResource(StructureDefinition.class, parts[1]);
	//    	ProfileUtilities utils = new ProfileUtilities(context);
	//    	StructureDefinition base = utils.getProfile(profile, profile.getBase());
	//    	if (base == null)
	//    		throw new FHIRException("Unable to resolve profile "+profile.getBase());
	//    	utils.generateSnapshot(base, profile, address, profile.getName(), null, null);
	//    	// client.update(StructureDefinition.class, profile, parts[1]);
	//    } else {
	throw new NotImplementedException("generating snapshots not done yet (address = "+address+")");
	//    }
}
 
Example 13
Source Project: org.hl7.fhir.core   Source File: ValidationTestSuite.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean conformsToProfile(Object appContext, Base item, String url) throws FHIRException {
  IResourceValidator val = TestingUtilities.context(version).newValidator();
  List<ValidationMessage> valerrors = new ArrayList<ValidationMessage>();
  if (item instanceof Resource) {
    val.validate(appContext, valerrors, (Resource) item, url);
    boolean ok = true;
    for (ValidationMessage v : valerrors)
      ok = ok && v.getLevel().isError();
    return ok;
  }
  throw new NotImplementedException("Not done yet (IGPublisherHostServices.conformsToProfile), when item is element");
}
 
Example 14
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Coding c1, Coding c2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(c1.getSystem(), c2.getSystem(), null) && matches(c1.getCode(), c2.getCode(), null);
}
 
Example 15
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Identifier i1, Identifier i2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(i1.getSystem(), i2.getSystem(), null) && matches(i1.getValue(), i2.getValue(), null);
}
 
Example 16
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we insist on system
 return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null);
}
 
Example 17
Source Project: org.hl7.fhir.core   Source File: ToolsHelper.java    License: Apache License 2.0 5 votes vote down vote up
private void generateSnapshots(String[] args) throws IOException, FHIRException {
		if (args.length == 1) {
			System.out.println("tools.jar snapshot-maker [source] -defn [definitions]");
			System.out.println("");
			System.out.println("Generates a snapshot from a differential. The nominated profile must have a single struture that has a differential");
			System.out.println("");
			System.out.println("source - the profile to generate the snapshot for. Maybe a file name, or a URL reference to a server running FHIR RESTful API");
			System.out.println("definitions - filename for local copy of the validation.zip file");			
		}
	  String address = args[1];
	  String definitions = args[3];
	  
    SimpleWorkerContext context = SimpleWorkerContext.fromDefinitions(getDefinitions(definitions));

//    if (address.startsWith("http:") || address.startsWith("http:")) {
//    	// this is on a restful interface
//    	String[] parts = address.split("\\/Profile\\/");
//    	if (parts.length != 2)
//    		throw new FHIRException("Unable to understand address of profile");
//    	StructureDefinition profile = context.fetchResource(StructureDefinition.class, parts[1]);
//    	ProfileUtilities utils = new ProfileUtilities(context);
//    	StructureDefinition base = utils.getProfile(profile, profile.getBase());
//    	if (base == null)
//    		throw new FHIRException("Unable to resolve profile "+profile.getBase());
//    	utils.generateSnapshot(base, profile, address, profile.getName(), null, null);
//    	// client.update(StructureDefinition.class, profile, parts[1]);
//    } else {
    	throw new NotImplementedException("generating snapshots not done yet (address = "+address+")");
//    }
	}
 
Example 18
Source Project: freeacs   Source File: DefaultRetriever.java    License: MIT License 5 votes vote down vote up
@Override
public Report<?> generateReport(
    PeriodType periodType,
    Date start,
    Date end,
    List<Unittype> unittypes,
    List<Profile> profiles,
    Group group)
    throws SQLException, IOException {
  throw new NotImplementedException("The report is not implemented correctly.");
}
 
Example 19
Source Project: org.hl7.fhir.core   Source File: QuestionnaireBuilder.java    License: Apache License 2.0 5 votes vote down vote up
private void addExtensionQuestions(StructureDefinition profile, QuestionnaireItemComponent group, ElementDefinition element, String path, String url, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { 
  // if this a  profiled extension, then we add it
	if (!Utilities.noString(url)) {
		StructureDefinition ed =  context.fetchResource(StructureDefinition.class, url);
		if (ed != null) {
      if (answerGroups.size() > 0)
        throw new NotImplementedException("Debug this");
			buildQuestion(group, profile, ed.getSnapshot().getElement().get(0), path+".extension["+url+"]", answerGroups);
    }
  }
}
 
Example 20
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Coding c1, Coding c2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(c1.getSystem(), c2.getSystem(), null) && matches(c1.getCode(), c2.getCode(), null);
}
 
Example 21
Source Project: botbuilder-java   Source File: TeamsActivityHandlerTests.java    License: MIT License 5 votes vote down vote up
@Override
public CompletableFuture<ResourceResponse> updateActivity(
    TurnContext context,
    Activity activity
) {
    CompletableFuture<ResourceResponse> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("updateActivity"));
    return result;
}
 
Example 22
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we insist on system
 return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null);
}
 
Example 23
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Coding c1, Coding c2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(c1.getSystem(), c2.getSystem(), null) && matches(c1.getCode(), c2.getCode(), null);
}
 
Example 24
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(Identifier i1, Identifier i2, MatchProfile profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we ignore version
 return matches(i1.getSystem(), i2.getSystem(), null) && matches(i1.getValue(), i2.getValue(), null);
}
 
Example 25
Source Project: org.hl7.fhir.core   Source File: Comparison.java    License: Apache License 2.0 5 votes vote down vote up
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) {
 if (profile != null) 
 	throw new NotImplementedException("Not Implemented Yet");

 // in the absence of a profile, we insist on system
 return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null);
}
 
Example 26
Source Project: org.hl7.fhir.core   Source File: ToolsHelper.java    License: Apache License 2.0 5 votes vote down vote up
private void generateSnapshots(String[] args) throws IOException, FHIRException {
	if (args.length == 1) {
		System.out.println("tools.jar snapshot-maker [source] -defn [definitions]");
		System.out.println("");
		System.out.println("Generates a snapshot from a differential. The nominated profile must have a single struture that has a differential");
		System.out.println("");
		System.out.println("source - the profile to generate the snapshot for. Maybe a file name, or a URL reference to a server running FHIR RESTful API");
		System.out.println("definitions - filename for local copy of the validation.zip file");			
	}
	String address = args[1];
	String definitions = args[3];

	SimpleWorkerContext context = SimpleWorkerContext.fromDefinitions(getDefinitions(definitions));

	//    if (address.startsWith("http:") || address.startsWith("http:")) {
	//    	// this is on a restful interface
	//    	String[] parts = address.split("\\/Profile\\/");
	//    	if (parts.length != 2)
	//    		throw new FHIRException("Unable to understand address of profile");
	//    	StructureDefinition profile = context.fetchResource(StructureDefinition.class, parts[1]);
	//    	ProfileUtilities utils = new ProfileUtilities(context);
	//    	StructureDefinition base = utils.getProfile(profile, profile.getBase());
	//    	if (base == null)
	//    		throw new FHIRException("Unable to resolve profile "+profile.getBase());
	//    	utils.generateSnapshot(base, profile, address, profile.getName(), null, null);
	//    	// client.update(StructureDefinition.class, profile, parts[1]);
	//    } else {
	throw new NotImplementedException("generating snapshots not done yet (address = "+address+")");
	//    }
}
 
Example 27
Source Project: bartworks   Source File: AccessPriorityList.java    License: MIT License 4 votes vote down vote up
@Override
public boolean addAll(int index, Collection<? extends E> c) {
    throw new NotImplementedException("");
}
 
Example 28
Source Project: Spring   Source File: StubPetRepo.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Set<Pet> findAllByType(PetType type) {
    throw new NotImplementedException("Not needed for this stub.");
}
 
Example 29
Source Project: inception   Source File: NoReification.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void deleteQualifier(RepositoryConnection aConnection, KnowledgeBase kb,
        KBQualifier oldQualifier)
{
    throw new NotImplementedException("Qualifiers are not supported.");
}
 
Example 30
Source Project: hadoop-ozone   Source File: Table.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Return cache iterator maintained for this table.
 */
default Iterator<Map.Entry<CacheKey<KEY>, CacheValue<VALUE>>>
    cacheIterator() {
  throw new NotImplementedException("cacheIterator is not implemented");
}