com.imsweb.staging.cs.CsSchemaLookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of staging-client-java Show documentation
Show all versions of staging-client-java Show documentation
A cancer staging client library
/*
* Copyright (C) 2015 Information Management Services, Inc.
*/
package com.imsweb.staging.cs;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import com.imsweb.staging.SchemaLookup;
public class CsSchemaLookup extends SchemaLookup {
private static final Set _ALLOWED_KEYS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(CsStagingData.PRIMARY_SITE_KEY,
CsStagingData.HISTOLOGY_KEY, CsStagingData.SSF25_KEY)));
/**
* Constructor
* @param site primary site
* @param histology histology
*/
public CsSchemaLookup(String site, String histology) {
super(site, histology);
}
/**
* Constructor
* @param site primary site
* @param histology histology
* @param discriminator ssf25
*/
public CsSchemaLookup(String site, String histology, String discriminator) {
super(site, histology);
setInput(CsStagingData.SSF25_KEY, discriminator);
}
@Override
public Set getAllowedKeys() {
return _ALLOWED_KEYS;
}
}