diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java index a951d4be49d..5f1fa9d8c78 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java @@ -126,9 +126,9 @@ public class JsonParser extends BaseParser implements IParser { private boolean myPrettyPrint; /** - * Do not use this constructor, the recommended way to obtain a new instance of the JSON parser is to invoke - * {@link FhirContext#newJsonParser()}. - * @param theParserErrorHandler + * Do not use this constructor, the recommended way to obtain a new instance of the JSON parser is to invoke {@link FhirContext#newJsonParser()}. + * + * @param theParserErrorHandler */ public JsonParser(FhirContext theContext, IParserErrorHandler theParserErrorHandler) { super(theContext, theParserErrorHandler); @@ -433,10 +433,8 @@ public class JsonParser extends BaseParser implements IParser { case CONTAINED_RESOURCE_LIST: case CONTAINED_RESOURCES: { /* - * Disabled per #103 ContainedDt value = (ContainedDt) theNextValue; for (IResource next : - * value.getContainedResources()) { if (getContainedResources().getResourceId(next) != null) { continue; } - * encodeResourceToJsonStreamWriter(theResDef, next, theWriter, null, true, - * fixContainedResourceId(next.getId().getValue())); } + * Disabled per #103 ContainedDt value = (ContainedDt) theNextValue; for (IResource next : value.getContainedResources()) { if (getContainedResources().getResourceId(next) != null) { + * continue; } encodeResourceToJsonStreamWriter(theResDef, next, theWriter, null, true, fixContainedResourceId(next.getId().getValue())); } */ List containedResources = getContainedResources().getContainedResources(); if (containedResources.size() > 0) { @@ -513,7 +511,7 @@ public class JsonParser extends BaseParser implements IParser { } continue; } - + List values = nextChild.getAccessor().getValues(theNextValue); if (values == null || values.isEmpty()) { continue; @@ -545,7 +543,7 @@ public class JsonParser extends BaseParser implements IParser { } boolean primitive = childDef.getChildType() == ChildTypeEnum.PRIMITIVE_DATATYPE; - if ((childDef.getChildType() == ChildTypeEnum.CONTAINED_RESOURCES||childDef.getChildType()==ChildTypeEnum.CONTAINED_RESOURCE_LIST) && theContainedResource) { + if ((childDef.getChildType() == ChildTypeEnum.CONTAINED_RESOURCES || childDef.getChildType() == ChildTypeEnum.CONTAINED_RESOURCE_LIST) && theContainedResource) { continue; } @@ -670,7 +668,7 @@ public class JsonParser extends BaseParser implements IParser { } } else if (theResource instanceof IAnyResource) { IAnyResource res = (IAnyResource) theResource; - if (/*theContainedResource && */ StringUtils.isNotBlank(res.getIdElement().getIdPart())) { + if (/* theContainedResource && */StringUtils.isNotBlank(res.getIdElement().getIdPart())) { resourceId = res.getIdElement().getIdPart(); } } @@ -678,11 +676,12 @@ public class JsonParser extends BaseParser implements IParser { if (isOmitResourceId() && !theContainedResource) { resourceId = null; } - + encodeResourceToJsonStreamWriter(theResDef, theResource, theEventWriter, theObjectNameOrNull, theContainedResource, resourceId); } - private void encodeResourceToJsonStreamWriter(RuntimeResourceDefinition theResDef, IBaseResource theResource, JsonGenerator theEventWriter, String theObjectNameOrNull, boolean theContainedResource, String theResourceId) throws IOException { + private void encodeResourceToJsonStreamWriter(RuntimeResourceDefinition theResDef, IBaseResource theResource, JsonGenerator theEventWriter, String theObjectNameOrNull, + boolean theContainedResource, String theResourceId) throws IOException { if (!theContainedResource) { super.containResourcesForEncoding(theResource); } @@ -807,10 +806,10 @@ public class JsonParser extends BaseParser implements IParser { } /** - * This is useful only for the two cases where extensions are encoded as direct children (e.g. not in some object - * called _name): resource extensions, and extension extensions + * This is useful only for the two cases where extensions are encoded as direct children (e.g. not in some object called _name): resource extensions, and extension extensions */ - private void extractAndWriteExtensionsAsDirectChild(IBase theElement, JsonGenerator theEventWriter, BaseRuntimeElementDefinition theElementDef, RuntimeResourceDefinition theResDef, IBaseResource theResource, String theParentExtensionUrl) throws IOException { + private void extractAndWriteExtensionsAsDirectChild(IBase theElement, JsonGenerator theEventWriter, BaseRuntimeElementDefinition theElementDef, RuntimeResourceDefinition theResDef, + IBaseResource theResource, String theParentExtensionUrl) throws IOException { List extensions = new ArrayList(0); List modifierExtensions = new ArrayList(0); @@ -944,7 +943,8 @@ public class JsonParser extends BaseParser implements IParser { object = reader.readObject(); } catch (JsonParsingException e) { if (e.getMessage().startsWith("Unexpected char 39")) { - throw new DataFormatException("Failed to parse JSON encoded FHIR content: " + e.getMessage() + " - This may indicate that single quotes are being used as JSON escapes where double quotes are required", e); + throw new DataFormatException("Failed to parse JSON encoded FHIR content: " + e.getMessage() + + " - This may indicate that single quotes are being used as JSON escapes where double quotes are required", e); } throw new DataFormatException("Failed to parse JSON encoded FHIR content: " + e.getMessage(), e); } @@ -1205,21 +1205,21 @@ public class JsonParser extends BaseParser implements IParser { try { JsonReader reader = Json.createReader(theReader); JsonObject object = reader.readObject(); - + JsonValue resourceTypeObj = object.get("resourceType"); assertObjectOfType(resourceTypeObj, JsonValue.ValueType.STRING, "resourceType"); String resourceType = ((JsonString) resourceTypeObj).getString(); - + ParserState state = ParserState.getPreResourceInstance(theResourceType, myContext, true, getErrorHandler()); state.enteringNewElement(null, resourceType); - + parseChildren(object, state); - + state.endingElement(); - + @SuppressWarnings("unchecked") T retVal = (T) state.getObject(); - + return retVal; } catch (JsonParsingException e) { throw new DataFormatException("Failed to parse JSON: " + e.getMessage(), e); @@ -1308,7 +1308,8 @@ public class JsonParser extends BaseParser implements IParser { } } - private void writeExtensionsAsDirectChild(IBaseResource theResource, JsonGenerator theEventWriter, RuntimeResourceDefinition resDef, List extensions, List modifierExtensions, String theParentExtensionUrl) throws IOException { + private void writeExtensionsAsDirectChild(IBaseResource theResource, JsonGenerator theEventWriter, RuntimeResourceDefinition resDef, List extensions, + List modifierExtensions, String theParentExtensionUrl) throws IOException { if (extensions.isEmpty() == false) { theEventWriter.writeStartArray("extension"); for (HeldExtension next : extensions) { diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java index 96774956ad6..dc3e454c597 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java @@ -212,7 +212,7 @@ class ParserState { myState.xmlEvent(theNextEvent); } - public static ParserState getPreAtomInstance(FhirContext theContext, Class theResourceType, boolean theJsonMode, IParserErrorHandler theErrorHandler) + static ParserState getPreAtomInstance(FhirContext theContext, Class theResourceType, boolean theJsonMode, IParserErrorHandler theErrorHandler) throws DataFormatException { ParserState retVal = new ParserState(theContext, theJsonMode, theErrorHandler); if (theContext.getVersion().getVersion() == FhirVersionEnum.DSTU1) { @@ -227,7 +227,7 @@ class ParserState { * @param theResourceType * May be null */ - public static ParserState getPreResourceInstance(Class theResourceType, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) + static ParserState getPreResourceInstance(Class theResourceType, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) throws DataFormatException { ParserState retVal = new ParserState(theContext, theJsonMode, theErrorHandler); if (theResourceType == null) { @@ -246,13 +246,13 @@ class ParserState { return retVal; } - public static ParserState getPreTagListInstance(FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) { + static ParserState getPreTagListInstance(FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) { ParserState retVal = new ParserState(theContext, theJsonMode, theErrorHandler); retVal.push(retVal.new PreTagListState()); return retVal; } - public class AtomAuthorState extends BaseState { + private class AtomAuthorState extends BaseState { private BaseBundle myInstance; @@ -355,7 +355,7 @@ class ParserState { } - public class AtomDeletedEntryByState extends BaseState { + private class AtomDeletedEntryByState extends BaseState { private BundleEntry myEntry; @@ -382,7 +382,7 @@ class ParserState { } - public class AtomDeletedEntryState extends AtomEntryState { + private class AtomDeletedEntryState extends AtomEntryState { public AtomDeletedEntryState(Bundle theInstance, Class theResourceType) { super(theInstance, theResourceType); @@ -450,7 +450,7 @@ class ParserState { } - public class AtomEntryState extends BaseState { + private class AtomEntryState extends BaseState { private boolean myDeleted; private BundleEntry myEntry; @@ -995,7 +995,7 @@ class ParserState { } - public class BundleEntrySearchState extends BaseState { + private class BundleEntrySearchState extends BaseState { private BundleEntry myEntry; @@ -1022,7 +1022,7 @@ class ParserState { } - public class BundleEntryState extends BaseState { + private class BundleEntryState extends BaseState { private BundleEntry myEntry; private Class myResourceType; @@ -1120,7 +1120,7 @@ class ParserState { } - public class BundleEntryTransactionState extends BaseState { + private class BundleEntryTransactionState extends BaseState { private BundleEntry myEntry; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OperationParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OperationParam.java index ad938edbc6c..98a60f3feb2 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OperationParam.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OperationParam.java @@ -36,7 +36,7 @@ public @interface OperationParam { /** * Value for {@link OperationParam#max()} indicating no maximum */ - int MAX_UNLIMITED = -1; + final int MAX_UNLIMITED = -1; /** * The name of the parameter diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseClient.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseClient.java index b08cb731599..3eb7fcf0e7f 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseClient.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseClient.java @@ -71,7 +71,7 @@ public abstract class BaseClient implements IRestfulClient { private String myLastResponseBody; private Boolean myPrettyPrint = false; private final String myUrlBase; - + BaseClient(HttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) { super(); myClient = theClient; @@ -95,6 +95,10 @@ public abstract class BaseClient implements IRestfulClient { return retVal; } + void forceConformanceCheck() { + myFactory.validateServerBase(myUrlBase, myClient, this); + } + /** * Returns the encoding that will be used on requests. Default is null, which means the client will not explicitly request an encoding. (This is standard behaviour according to the * FHIR specification) @@ -111,6 +115,10 @@ public abstract class BaseClient implements IRestfulClient { return myClient; } + public List getInterceptors() { + return Collections.unmodifiableList(myInterceptors); + } + /** * For now, this is a part of the internal API of HAPI - Use with caution as this method may change! */ @@ -144,7 +152,7 @@ public abstract class BaseClient implements IRestfulClient { public String getUrlBase() { return myUrlBase; } - + T invokeClient(FhirContext theContext, IClientResponseHandler binding, BaseHttpClientInvocation clientInvocation) { return invokeClient(theContext, binding, clientInvocation, false); } @@ -153,39 +161,35 @@ public abstract class BaseClient implements IRestfulClient { return invokeClient(theContext, binding, clientInvocation, null, null, theLogRequestAndResponse); } - void forceConformanceCheck() { - myFactory.validateServerBase(myUrlBase, myClient, this); - } - - T invokeClient(FhirContext theContext, IClientResponseHandler binding, BaseHttpClientInvocation clientInvocation, EncodingEnum theEncoding, Boolean thePrettyPrint, boolean theLogRequestAndResponse) { + T invokeClient(FhirContext theContext, IClientResponseHandler binding, BaseHttpClientInvocation clientInvocation, EncodingEnum theEncoding, Boolean thePrettyPrint, + boolean theLogRequestAndResponse) { if (!myDontValidateConformance) { myFactory.validateServerBaseIfConfiguredToDoSo(myUrlBase, myClient, this); } - + // TODO: handle non 2xx status codes by throwing the correct exception, // and ensure it's passed upwards HttpRequestBase httpRequest; HttpResponse response; try { Map> params = createExtraParams(); - + if (theEncoding == EncodingEnum.XML) { params.put(Constants.PARAM_FORMAT, Collections.singletonList("xml")); } else if (theEncoding == EncodingEnum.JSON) { params.put(Constants.PARAM_FORMAT, Collections.singletonList("json")); } - + if (thePrettyPrint == Boolean.TRUE) { params.put(Constants.PARAM_PRETTY, Collections.singletonList(Constants.PARAM_PRETTY_VALUE_TRUE)); } - EncodingEnum encoding = getEncoding(); if (theEncoding != null) { - encoding=theEncoding; + encoding = theEncoding; } - + httpRequest = clientInvocation.asHttpRequest(myUrlBase, params, encoding, thePrettyPrint); if (theLogRequestAndResponse) { @@ -223,7 +227,7 @@ public abstract class BaseClient implements IRestfulClient { ContentType ct = ContentType.get(response.getEntity()); mimeType = ct != null ? ct.getMimeType() : null; } - + Map> headers = new HashMap>(); if (response.getAllHeaders() != null) { for (Header next : response.getAllHeaders()) { @@ -250,7 +254,7 @@ public abstract class BaseClient implements IRestfulClient { } String message = "HTTP " + response.getStatusLine().getStatusCode() + " " + response.getStatusLine().getReasonPhrase(); - BaseOperationOutcome oo=null; + BaseOperationOutcome oo = null; if (Constants.CT_TEXT.equals(mimeType)) { message = message + ": " + body; } else { @@ -259,8 +263,8 @@ public abstract class BaseClient implements IRestfulClient { IParser p = enc.newParser(theContext); try { // TODO: handle if something other than OO comes back - oo = (BaseOperationOutcome) p.parseResource( body); - if (oo.getIssueFirstRep().getDetailsElement().isEmpty()==false) { + oo = (BaseOperationOutcome) p.parseResource(body); + if (oo.getIssueFirstRep().getDetailsElement().isEmpty() == false) { message = message + ": " + oo.getIssueFirstRep().getDetailsElement().getValue(); } } catch (Exception e) { @@ -273,7 +277,7 @@ public abstract class BaseClient implements IRestfulClient { BaseServerResponseException exception = BaseServerResponseException.newInstance(response.getStatusLine().getStatusCode(), message); exception.setOperationOutcome(oo); - + if (body != null) { exception.setResponseBody(body); } @@ -368,27 +372,27 @@ public abstract class BaseClient implements IRestfulClient { ourLog.trace("FHIR response:\n{}\n{}", response, responseString); } } - + public void registerInterceptor(IClientInterceptor theInterceptor) { Validate.notNull(theInterceptor, "Interceptor can not be null"); myInterceptors.add(theInterceptor); } /** - * This method is an internal part of the HAPI API and may change, use with caution. If you - * want to disable the loading of conformance statements, use {@link IRestfulClientFactory#setServerValidationModeEnum(ServerValidationModeEnum)} + * This method is an internal part of the HAPI API and may change, use with caution. If you want to disable the loading of conformance statements, use + * {@link IRestfulClientFactory#setServerValidationModeEnum(ServerValidationModeEnum)} */ public void setDontValidateConformance(boolean theDontValidateConformance) { myDontValidateConformance = theDontValidateConformance; } /** - * Sets the encoding that will be used on requests. Default is null, which means the client will not explicitly request an encoding. (This is perfectly acceptable behaviour according to the FHIR - * specification. In this case, the server will choose which encoding to return, and the client can handle either XML or JSON) + * Sets the encoding that will be used on requests. Default is null, which means the client will not explicitly request an encoding. (This is perfectly acceptable behaviour according + * to the FHIR specification. In this case, the server will choose which encoding to return, and the client can handle either XML or JSON) */ public void setEncoding(EncodingEnum theEncoding) { myEncoding = theEncoding; -// return this; + // return this; } /** @@ -418,7 +422,7 @@ public abstract class BaseClient implements IRestfulClient { */ public void setPrettyPrint(Boolean thePrettyPrint) { myPrettyPrint = thePrettyPrint; -// return this; + // return this; } public void unregisterInterceptor(IClientInterceptor theInterceptor) { @@ -447,8 +451,4 @@ public abstract class BaseClient implements IRestfulClient { return reader; } - public List getInterceptors() { - return Collections.unmodifiableList(myInterceptors); - } - } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java index 72b59edc145..9f50860ac3d 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java @@ -1,19 +1,3 @@ - - - - - - - - - - - - - - - - package ca.uhn.fhir.rest.param; /* @@ -49,8 +33,7 @@ import ca.uhn.fhir.model.primitive.CodeDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.UriDt; -public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype -{ +public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype { /** * Constructor @@ -67,64 +50,44 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype setCode(theCode); } - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identity of the terminology system", - formalDefinition="The identification of the code system that defines the meaning of the symbol in the code." - ) + @Child(name = "system", type = UriDt.class, order = 0, min = 0, max = 1) + @Description(shortDefinition = "Identity of the terminology system", formalDefinition = "The identification of the code system that defines the meaning of the symbol in the code.") private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Version of the system - if relevant", - formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged" - ) + + @Child(name = "version", type = StringDt.class, order = 1, min = 0, max = 1) + @Description(shortDefinition = "Version of the system - if relevant", formalDefinition = "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged") private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Symbol in syntax defined by the system", - formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)" - ) + + @Child(name = "code", type = CodeDt.class, order = 2, min = 0, max = 1) + @Description(shortDefinition = "Symbol in syntax defined by the system", formalDefinition = "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)") private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Representation defined by the system", - formalDefinition="A representation of the meaning of the code in the system, following the rules of the system." - ) + + @Child(name = "display", type = StringDt.class, order = 3, min = 0, max = 1) + @Description(shortDefinition = "Representation defined by the system", formalDefinition = "A representation of the meaning of the code in the system, following the rules of the system.") private StringDt myDisplay; - - @Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="If this code was chosen directly by the user", - formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)" - ) + + @Child(name = "primary", type = BooleanDt.class, order = 4, min = 0, max = 1) + @Description(shortDefinition = "If this code was chosen directly by the user", formalDefinition = "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)") private BooleanDt myPrimary; - - @Override public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary); + return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mySystem, myVersion, myCode, myDisplay, myPrimary); } - + @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myDisplay, myPrimary); } /** - * Gets the value(s) for system (Identity of the terminology system). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for system (Identity of the terminology system). creating it if it does not exist. Will not return null. * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

+ *

+ * Definition: The identification of the code system that defines the meaning of the symbol in the code. + *

*/ - public UriDt getSystemElement() { + public UriDt getSystemElement() { if (mySystem == null) { mySystem = new UriDt(); } @@ -134,41 +97,36 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype /** * Sets the value(s) for system (Identity of the terminology system) * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

+ *

+ * Definition: The identification of the code system that defines the meaning of the symbol in the code. + *

*/ public InternalCodingDt setSystem(UriDt theValue) { mySystem = theValue; return this; } - /** + /** * Sets the value for system (Identity of the terminology system) * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

+ *

+ * Definition: The identification of the code system that defines the meaning of the symbol in the code. + *

*/ - public InternalCodingDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; + public InternalCodingDt setSystem(String theUri) { + mySystem = new UriDt(theUri); + return this; } - /** - * Gets the value(s) for version (Version of the system - if relevant). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for version (Version of the system - if relevant). creating it if it does not exist. Will not return null. * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

+ *

+ * Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes + * is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged + *

*/ - public StringDt getVersion() { + public StringDt getVersion() { if (myVersion == null) { myVersion = new StringDt(); } @@ -178,41 +136,37 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype /** * Sets the value(s) for version (Version of the system - if relevant) * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

+ *

+ * Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes + * is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged + *

*/ public InternalCodingDt setVersion(StringDt theValue) { myVersion = theValue; return this; } - /** + /** * Sets the value for version (Version of the system - if relevant) * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

+ *

+ * Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes + * is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged + *

*/ - public InternalCodingDt setVersion( String theString) { - myVersion = new StringDt(theString); - return this; + public InternalCodingDt setVersion(String theString) { + myVersion = new StringDt(theString); + return this; } - /** - * Gets the value(s) for code (Symbol in syntax defined by the system). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for code (Symbol in syntax defined by the system). creating it if it does not exist. Will not return null. * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

+ *

+ * Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) + *

*/ - public CodeDt getCodeElement() { + public CodeDt getCodeElement() { if (myCode == null) { myCode = new CodeDt(); } @@ -222,41 +176,35 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype /** * Sets the value(s) for code (Symbol in syntax defined by the system) * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

+ *

+ * Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) + *

*/ public InternalCodingDt setCode(CodeDt theValue) { myCode = theValue; return this; } - /** + /** * Sets the value for code (Symbol in syntax defined by the system) * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

+ *

+ * Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) + *

*/ - public InternalCodingDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; + public InternalCodingDt setCode(String theCode) { + myCode = new CodeDt(theCode); + return this; } - /** - * Gets the value(s) for display (Representation defined by the system). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for display (Representation defined by the system). creating it if it does not exist. Will not return null. * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

+ *

+ * Definition: A representation of the meaning of the code in the system, following the rules of the system. + *

*/ - public StringDt getDisplay() { + public StringDt getDisplay() { if (myDisplay == null) { myDisplay = new StringDt(); } @@ -266,41 +214,35 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype /** * Sets the value(s) for display (Representation defined by the system) * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

+ *

+ * Definition: A representation of the meaning of the code in the system, following the rules of the system. + *

*/ public InternalCodingDt setDisplay(StringDt theValue) { myDisplay = theValue; return this; } - /** + /** * Sets the value for display (Representation defined by the system) * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

+ *

+ * Definition: A representation of the meaning of the code in the system, following the rules of the system. + *

*/ - public InternalCodingDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; + public InternalCodingDt setDisplay(String theString) { + myDisplay = new StringDt(theString); + return this; } - /** - * Gets the value(s) for primary (If this code was chosen directly by the user). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for primary (If this code was chosen directly by the user). creating it if it does not exist. Will not return null. * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

+ *

+ * Definition: Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) + *

*/ - public BooleanDt getPrimary() { + public BooleanDt getPrimary() { if (myPrimary == null) { myPrimary = new BooleanDt(); } @@ -310,56 +252,38 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype /** * Sets the value(s) for primary (If this code was chosen directly by the user) * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

+ *

+ * Definition: Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) + *

*/ public InternalCodingDt setPrimary(BooleanDt theValue) { myPrimary = theValue; return this; } - /** + /** * Sets the value for primary (If this code was chosen directly by the user) * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

+ *

+ * Definition: Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) + *

*/ - public InternalCodingDt setPrimary( boolean theBoolean) { - myPrimary = new BooleanDt(theBoolean); - return this; + public InternalCodingDt setPrimary(boolean theBoolean) { + myPrimary = new BooleanDt(theBoolean); + return this; } - /** - * Gets the value(s) for valueSet (Set this coding was chosen from). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for valueSet (Set this coding was chosen from). creating it if it does not exist. Will not return null. * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

+ *

+ * Definition: The set of possible coded values this coding was chosen from or constrained by + *

*/ public BaseResourceReferenceDt getValueSet() { throw new UnsupportedOperationException(); } - /** - * Sets the value(s) for valueSet (Set this coding was chosen from) - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public InternalCodingDt setValueSet(BaseResourceReferenceDt theValue) { - throw new UnsupportedOperationException(); - } - @Override public StringDt getDisplayElement() { return getDisplay(); @@ -375,7 +299,4 @@ public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype throw new UnsupportedOperationException(); } - - - } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalQuantityDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalQuantityDt.java index 0236a82727c..c2a4acc7a97 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalQuantityDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalQuantityDt.java @@ -1,19 +1,3 @@ - - - - - - - - - - - - - - - - package ca.uhn.fhir.rest.param; /* @@ -51,9 +35,10 @@ import ca.uhn.fhir.model.primitive.DecimalDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.UriDt; -class InternalQuantityDt - extends BaseQuantityDt implements ICompositeDatatype -{ +/** + * Base class for QuantityDt of any version + */ +class InternalQuantityDt extends BaseQuantityDt implements ICompositeDatatype { /** * Constructor @@ -66,7 +51,7 @@ class InternalQuantityDt * Constructor */ @SimpleSetter - public InternalQuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) { + public InternalQuantityDt(@SimpleSetter.Parameter(name = "theValue") double theValue) { setValue(theValue); } @@ -74,10 +59,10 @@ class InternalQuantityDt * Constructor */ @SimpleSetter - public InternalQuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) { + public InternalQuantityDt(@SimpleSetter.Parameter(name = "theValue") long theValue) { setValue(theValue); } - + /** * Constructor */ @@ -104,7 +89,8 @@ class InternalQuantityDt * Constructor */ @SimpleSetter - public InternalQuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { + public InternalQuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue, + @SimpleSetter.Parameter(name = "theSystem") String theSystem, @SimpleSetter.Parameter(name = "theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); @@ -115,71 +101,52 @@ class InternalQuantityDt * Constructor */ @SimpleSetter - public InternalQuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { + public InternalQuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue, + @SimpleSetter.Parameter(name = "theSystem") String theSystem, @SimpleSetter.Parameter(name = "theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setUnits(theUnits); } - - @Child(name="value", type=DecimalDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Numerical value (with implicit precision)", - formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value" - ) + @Child(name = "value", type = DecimalDt.class, order = 0, min = 0, max = 1) + @Description(shortDefinition = "Numerical value (with implicit precision)", formalDefinition = "The value of the measured amount. The value includes an implicit precision in the presentation of the value") private DecimalDt myValue; - - @Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="< | <= | >= | > - how to understand the value", - formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value" - ) + + @Child(name = "comparator", type = CodeDt.class, order = 1, min = 0, max = 1) + @Description(shortDefinition = "< | <= | >= | > - how to understand the value", formalDefinition = "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value") private BoundCodeDt myComparator; - - @Child(name="units", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Unit representation", - formalDefinition="A human-readable form of the units" - ) + + @Child(name = "units", type = StringDt.class, order = 2, min = 0, max = 1) + @Description(shortDefinition = "Unit representation", formalDefinition = "A human-readable form of the units") private StringDt myUnits; - - @Child(name="system", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="System that defines coded unit form", - formalDefinition="The identification of the system that provides the coded form of the unit" - ) + + @Child(name = "system", type = UriDt.class, order = 3, min = 0, max = 1) + @Description(shortDefinition = "System that defines coded unit form", formalDefinition = "The identification of the system that provides the coded form of the unit") private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Coded form of the unit", - formalDefinition="A computer processable form of the units in some unit representation system" - ) + + @Child(name = "code", type = CodeDt.class, order = 4, min = 0, max = 1) + @Description(shortDefinition = "Coded form of the unit", formalDefinition = "A computer processable form of the units in some unit representation system") private CodeDt myCode; - @Override public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode); + return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(myValue, myComparator, myUnits, mySystem, myCode); } - + @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myComparator, myUnits, mySystem, myCode); } /** - * Gets the value(s) for value (Numerical value (with implicit precision)). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for value (Numerical value (with implicit precision)). creating it if it does not exist. Will not return null. * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

+ *

+ * Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value + *

*/ - public DecimalDt getValueElement() { + public DecimalDt getValueElement() { if (myValue == null) { myValue = new DecimalDt(); } @@ -189,67 +156,60 @@ class InternalQuantityDt /** * Sets the value(s) for value (Numerical value (with implicit precision)) * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

+ *

+ * Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value + *

*/ public InternalQuantityDt setValue(DecimalDt theValue) { myValue = theValue; return this; } - /** + /** * Sets the value for value (Numerical value (with implicit precision)) * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

+ *

+ * Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value + *

*/ - public InternalQuantityDt setValue( long theValue) { - myValue = new DecimalDt(theValue); - return this; + public InternalQuantityDt setValue(long theValue) { + myValue = new DecimalDt(theValue); + return this; } /** * Sets the value for value (Numerical value (with implicit precision)) * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

+ *

+ * Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value + *

*/ - public InternalQuantityDt setValue( double theValue) { - myValue = new DecimalDt(theValue); - return this; + public InternalQuantityDt setValue(double theValue) { + myValue = new DecimalDt(theValue); + return this; } /** * Sets the value for value (Numerical value (with implicit precision)) * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

+ *

+ * Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value + *

*/ - public InternalQuantityDt setValue( java.math.BigDecimal theValue) { - myValue = new DecimalDt(theValue); - return this; + public InternalQuantityDt setValue(java.math.BigDecimal theValue) { + myValue = new DecimalDt(theValue); + return this; } - /** - * Gets the value(s) for comparator (< | <= | >= | > - how to understand the value). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for comparator (< | <= | >= | > - how to understand the value). creating it if it does not exist. Will not return null. * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

+ *

+ * Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is + * \"<\" , then the real value is < stated value + *

*/ - public BoundCodeDt getComparatorElement() { + public BoundCodeDt getComparatorElement() { if (myComparator == null) { myComparator = new BoundCodeDt(QuantityCompararatorEnum.VALUESET_BINDER); } @@ -259,10 +219,10 @@ class InternalQuantityDt /** * Sets the value(s) for comparator (< | <= | >= | > - how to understand the value) * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

+ *

+ * Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is + * \"<\" , then the real value is < stated value + *

*/ public InternalQuantityDt setComparator(BoundCodeDt theValue) { myComparator = theValue; @@ -272,28 +232,24 @@ class InternalQuantityDt /** * Sets the value(s) for comparator (< | <= | >= | > - how to understand the value) * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

+ *

+ * Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is + * \"<\" , then the real value is < stated value + *

*/ public InternalQuantityDt setComparator(QuantityCompararatorEnum theValue) { getComparatorElement().setValueAsEnum(theValue); return this; } - /** - * Gets the value(s) for units (Unit representation). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for units (Unit representation). creating it if it does not exist. Will not return null. * - *

- * Definition: - * A human-readable form of the units - *

+ *

+ * Definition: A human-readable form of the units + *

*/ - public StringDt getUnitsElement() { + public StringDt getUnitsElement() { if (myUnits == null) { myUnits = new StringDt(); } @@ -303,41 +259,35 @@ class InternalQuantityDt /** * Sets the value(s) for units (Unit representation) * - *

- * Definition: - * A human-readable form of the units - *

+ *

+ * Definition: A human-readable form of the units + *

*/ public InternalQuantityDt setUnits(StringDt theValue) { myUnits = theValue; return this; } - /** + /** * Sets the value for units (Unit representation) * - *

- * Definition: - * A human-readable form of the units - *

+ *

+ * Definition: A human-readable form of the units + *

*/ - public InternalQuantityDt setUnits( String theString) { - myUnits = new StringDt(theString); - return this; + public InternalQuantityDt setUnits(String theString) { + myUnits = new StringDt(theString); + return this; } - /** - * Gets the value(s) for system (System that defines coded unit form). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for system (System that defines coded unit form). creating it if it does not exist. Will not return null. * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

+ *

+ * Definition: The identification of the system that provides the coded form of the unit + *

*/ - public UriDt getSystemElement() { + public UriDt getSystemElement() { if (mySystem == null) { mySystem = new UriDt(); } @@ -347,41 +297,35 @@ class InternalQuantityDt /** * Sets the value(s) for system (System that defines coded unit form) * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

+ *

+ * Definition: The identification of the system that provides the coded form of the unit + *

*/ public InternalQuantityDt setSystem(UriDt theValue) { mySystem = theValue; return this; } - /** + /** * Sets the value for system (System that defines coded unit form) * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

+ *

+ * Definition: The identification of the system that provides the coded form of the unit + *

*/ - public InternalQuantityDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; + public InternalQuantityDt setSystem(String theUri) { + mySystem = new UriDt(theUri); + return this; } - /** - * Gets the value(s) for code (Coded form of the unit). - * creating it if it does - * not exist. Will not return null. + * Gets the value(s) for code (Coded form of the unit). creating it if it does not exist. Will not return null. * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

+ *

+ * Definition: A computer processable form of the units in some unit representation system + *

*/ - public CodeDt getCodeElement() { + public CodeDt getCodeElement() { if (myCode == null) { myCode = new CodeDt(); } @@ -391,27 +335,25 @@ class InternalQuantityDt /** * Sets the value(s) for code (Coded form of the unit) * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

+ *

+ * Definition: A computer processable form of the units in some unit representation system + *

*/ public InternalQuantityDt setCode(CodeDt theValue) { myCode = theValue; return this; } - /** + /** * Sets the value for code (Coded form of the unit) * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

+ *

+ * Definition: A computer processable form of the units in some unit representation system + *

*/ - public InternalQuantityDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; + public InternalQuantityDt setCode(String theCode) { + myCode = new CodeDt(theCode); + return this; } @Override @@ -424,7 +366,4 @@ class InternalQuantityDt throw new UnsupportedOperationException(); } - - - } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/BundleInclusionRule.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/BundleInclusionRule.java index b1d36a028cf..35c9125aacd 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/BundleInclusionRule.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/BundleInclusionRule.java @@ -31,31 +31,30 @@ import ca.uhn.fhir.util.ResourceReferenceInfo; * Controls how bundles decide whether referenced resources should be included */ public enum BundleInclusionRule { - /** - * Decision is based on whether the resource's Include is in the IncludeSet (e.g. DiagnosticReport.result). Note that - * the resource has to be populated to be included. - * - * This is the default behavior - */ - BASED_ON_INCLUDES { - @Override - public boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes) { - return theReferenceInfo.matchesIncludeSet(theIncludes); - } - }, + + /** + * Decision is based on whether the resource's Include is in the IncludeSet (e.g. DiagnosticReport.result). Note that the resource has to be populated to be included. + * + * This is the default behavior + */ + BASED_ON_INCLUDES { + @Override + public boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes) { + return theReferenceInfo.matchesIncludeSet(theIncludes); + } + }, - /** - * Decision is based on whether the resource reference is set to a populated resource (in which case its included) or just - * an id (in which case it's not included) - * - * This is the original HAPI behavior - */ - BASED_ON_RESOURCE_PRESENCE { - @Override - public boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes) { - return true; - } - }; + /** + * Decision is based on whether the resource reference is set to a populated resource (in which case its included) or just an id (in which case it's not included) + * + * This is the original HAPI behavior + */ + BASED_ON_RESOURCE_PRESENCE { + @Override + public boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes) { + return true; + } + }; - public abstract boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes); + public abstract boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set theIncludes); } diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index 6319038d848..57d4d0d6b59 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -3,207 +3,180 @@ "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> - - To completely disable a check, just comment it out or delete it from the file. - - Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov. - - --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +