Java源码示例:org.apache.commons.lang3.NotImplementedException

示例1
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");
  }
 
示例2
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");
}
 
示例3
@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...");
}
 
示例4
@Override
public CompletableFuture<Void> deleteActivity(
    TurnContext context,
    ConversationReference reference
) {
    CompletableFuture<Void> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("deleteActivity"));
    return result;
}
 
示例5
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);
}
 
示例6
@Override
    public boolean remove(Object o) {
//        Object p;
//        for (Iterator it = this.iterator(); it.hasNext(); o.equals(p)){
//            p = it.next();
//        }
        throw new NotImplementedException("");
    }
 
示例7
@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");
}
 
示例8
@Override
public CompletableFuture<ResourceResponse[]> sendActivities(
    TurnContext context,
    List<Activity> activities
) {
    CompletableFuture<ResourceResponse[]> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("sendActivities"));
    return result;
}
 
示例9
protected <T> CompletableFuture<T> notImplemented(String message) {
    CompletableFuture<T> result = new CompletableFuture<>();
    result.completeExceptionally(
        new NotImplementedException(message)
    );
    return result;
}
 
示例10
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);
}
 
示例11
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);
}
 
示例12
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+")");
	//    }
}
 
示例13
@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");
}
 
示例14
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);
}
 
示例15
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);
}
 
示例16
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);
}
 
示例17
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+")");
//    }
	}
 
示例18
@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.");
}
 
示例19
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);
    }
  }
}
 
示例20
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);
}
 
示例21
@Override
public CompletableFuture<ResourceResponse> updateActivity(
    TurnContext context,
    Activity activity
) {
    CompletableFuture<ResourceResponse> result = new CompletableFuture<>();
    result.completeExceptionally(new NotImplementedException("updateActivity"));
    return result;
}
 
示例22
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);
}
 
示例23
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);
}
 
示例24
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);
}
 
示例25
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);
}
 
示例26
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+")");
	//    }
}
 
示例27
@Override
public boolean addAll(int index, Collection<? extends E> c) {
    throw new NotImplementedException("");
}
 
示例28
@Override
public Set<Pet> findAllByType(PetType type) {
    throw new NotImplementedException("Not needed for this stub.");
}
 
示例29
@Override
public void deleteQualifier(RepositoryConnection aConnection, KnowledgeBase kb,
        KBQualifier oldQualifier)
{
    throw new NotImplementedException("Qualifiers are not supported.");
}
 
示例30
/**
 * Return cache iterator maintained for this table.
 */
default Iterator<Map.Entry<CacheKey<KEY>, CacheValue<VALUE>>>
    cacheIterator() {
  throw new NotImplementedException("cacheIterator is not implemented");
}