test_class.declarator: expectedEx = ExpectedException.none()
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public ExpectedException expectedEx = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedEx
test_class.file: nimbus-core/src/test/java/com/antheminc/oss/nimbus/domain/cmd/CommandTest.java
test_class.identifier: CommandTest
test_case.body: @Test
  	public void t0_relativeUri_domainRoot_provided_1() {
  		Command in = CommandBuilder.withUri("/anthem/fep/icr/p/umcase_view/pageCreateCaseInfo/tileCreateCaseInfo/sectionUMCaseInfo/formUMCaseInfo/_get").getCommand();
  		
  		String configUri = "/p/staticCodeValue/_search?fn=lookup&where=staticCodeValue.paramCode.eq('/requestType')";
  		String out = in.getRelativeUri(configUri);
  		System.out.println(out);
  		assertEquals("/anthem/fep/icr"+configUri, out);
  	}
test_case.class_method_signature: CommandTest.t0_relativeUri_domainRoot_provided_1()
test_case.full_signature: @Test public void t0_relativeUri_domainRoot_provided_1()
test_case.identifier: t0_relativeUri_domainRoot_provided_1
test_case.invocations: getCommand withUri getRelativeUri println assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void t0_relativeUri_domainRoot_provided_1()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: MISSING_COMMAND_ARGUMENTS_MSG = "Command with URI: %s cannot have null %s."
focal_class.modifier: private static final
focal_class.original_string: private static final String MISSING_COMMAND_ARGUMENTS_MSG = "Command with URI: %s cannot have null %s.";
focal_class.type: String
focal_class.var_name: MISSING_COMMAND_ARGUMENTS_MSG
focal_class.declarator: absoluteUri
focal_class.modifier: private final
focal_class.original_string: private final String absoluteUri;
focal_class.type: String
focal_class.var_name: absoluteUri
focal_class.declarator: clientUserId
focal_class.modifier: private
focal_class.original_string: private String clientUserId;
focal_class.type: String
focal_class.var_name: clientUserId
focal_class.declarator: root
focal_class.modifier: @Getter(value=AccessLevel.PROTECTED)
  	private
focal_class.original_string: @Getter(value=AccessLevel.PROTECTED)
  	private CommandElementLinked root;
focal_class.type: CommandElementLinked
focal_class.var_name: root
focal_class.declarator: action
focal_class.modifier: private
focal_class.original_string: private Action action;
focal_class.type: Action
focal_class.var_name: action
focal_class.declarator: event
focal_class.modifier: private
focal_class.original_string: private String event;
focal_class.type: String
focal_class.var_name: event
focal_class.declarator: behaviors
focal_class.modifier: private
focal_class.original_string: private List<Behavior> behaviors;
focal_class.type: List<Behavior>
focal_class.var_name: behaviors
focal_class.declarator: requestParams
focal_class.modifier: private
focal_class.original_string: private Map<String, String[]> requestParams;
focal_class.type: Map<String, String[]>
focal_class.var_name: requestParams
focal_class.declarator: createdInstant = Instant.now()
focal_class.modifier: @JsonIgnore
  	private final
focal_class.original_string: @JsonIgnore
  	private final Instant createdInstant = Instant.now();
focal_class.type: Instant
focal_class.var_name: createdInstant
focal_class.declarator: templateBehaviors = CollectionsTemplate.linked(()->getBehaviors(), s->setBehaviors(s))
focal_class.modifier: @JsonIgnore @Getter(value=AccessLevel.PRIVATE)
  	private final transient
focal_class.original_string: @JsonIgnore @Getter(value=AccessLevel.PRIVATE)
  	private final transient CollectionsTemplate<List<Behavior>, Behavior> templateBehaviors = CollectionsTemplate.linked(()->getBehaviors(), s->setBehaviors(s));
focal_class.type: CollectionsTemplate<List<Behavior>, Behavior>
focal_class.var_name: templateBehaviors
focal_class.file: nimbus-core/src/main/java/com/antheminc/oss/nimbus/domain/cmd/Command.java
focal_class.identifier: Command
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: Command.Command(String absoluteUri)
focal_class.full_signature: public  Command(String absoluteUri)
focal_class.identifier: Command
focal_class.modifiers: public
focal_class.parameters: (String absoluteUri)
focal_class.signature:  Command(String absoluteUri)
focal_class.class_method_signature: Command.Command(Command source)
focal_class.full_signature: public  Command(Command source)
focal_class.identifier: Command
focal_class.modifiers: public
focal_class.parameters: (Command source)
focal_class.signature:  Command(Command source)
focal_class.class_method_signature: Command.templateBehaviors()
focal_class.full_signature: public CollectionsTemplate<List<Behavior>, Behavior> templateBehaviors()
focal_class.identifier: templateBehaviors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CollectionsTemplate<List<Behavior>, Behavior>
focal_class.signature: CollectionsTemplate<List<Behavior>, Behavior> templateBehaviors()
focal_class.class_method_signature: Command.validate()
focal_class.full_signature: public void validate()
focal_class.identifier: validate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void validate()
focal_class.class_method_signature: Command.validateCommandArgument(Type type)
focal_class.full_signature: private void validateCommandArgument(Type type)
focal_class.identifier: validateCommandArgument
focal_class.modifiers: private
focal_class.parameters: (Type type)
focal_class.return: void
focal_class.signature: void validateCommandArgument(Type type)
focal_class.class_method_signature: Command.getMissingArgumentErrorMsg(Type type)
focal_class.full_signature: private String getMissingArgumentErrorMsg(Type type)
focal_class.identifier: getMissingArgumentErrorMsg
focal_class.modifiers: private
focal_class.parameters: (Type type)
focal_class.return: String
focal_class.signature: String getMissingArgumentErrorMsg(Type type)
focal_class.class_method_signature: Command.isRootDomainOnly()
focal_class.full_signature: public boolean isRootDomainOnly()
focal_class.identifier: isRootDomainOnly
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRootDomainOnly()
focal_class.class_method_signature: Command.root()
focal_class.full_signature: public CommandElementLinked root()
focal_class.identifier: root
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CommandElementLinked
focal_class.signature: CommandElementLinked root()
focal_class.class_method_signature: Command.isEvent()
focal_class.full_signature: public boolean isEvent()
focal_class.identifier: isEvent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEvent()
focal_class.class_method_signature: Command.createRootDomainCommand()
focal_class.full_signature: public Command createRootDomainCommand()
focal_class.identifier: createRootDomainCommand
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Command
focal_class.signature: Command createRootDomainCommand()
focal_class.class_method_signature: Command.getAliasUri(Type type)
focal_class.full_signature: public String getAliasUri(Type type)
focal_class.identifier: getAliasUri
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: String
focal_class.signature: String getAliasUri(Type type)
focal_class.class_method_signature: Command.getRefId(Type type)
focal_class.full_signature: public RefId<?> getRefId(Type type)
focal_class.identifier: getRefId
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: RefId<?>
focal_class.signature: RefId<?> getRefId(Type type)
focal_class.class_method_signature: Command.getAbsoluteUri(Type type)
focal_class.full_signature: public String getAbsoluteUri(Type type)
focal_class.identifier: getAbsoluteUri
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: String
focal_class.signature: String getAbsoluteUri(Type type)
focal_class.class_method_signature: Command.getAlias(Type type)
focal_class.full_signature: public String getAlias(Type type)
focal_class.identifier: getAlias
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: String
focal_class.signature: String getAlias(Type type)
focal_class.class_method_signature: Command.getElement(Type type)
focal_class.full_signature: public Optional<CommandElementLinked> getElement(Type type)
focal_class.identifier: getElement
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: Optional<CommandElementLinked>
focal_class.signature: Optional<CommandElementLinked> getElement(Type type)
focal_class.class_method_signature: Command.getElementSafely(Type type)
focal_class.full_signature: public CommandElementLinked getElementSafely(Type type)
focal_class.identifier: getElementSafely
focal_class.modifiers: public
focal_class.parameters: (Type type)
focal_class.return: CommandElementLinked
focal_class.signature: CommandElementLinked getElementSafely(Type type)
focal_class.class_method_signature: Command.getRelativeUri(String input)
focal_class.full_signature: public String getRelativeUri(String input)
focal_class.identifier: getRelativeUri
focal_class.modifiers: public
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String getRelativeUri(String input)
focal_class.class_method_signature: Command.isView()
focal_class.full_signature: public boolean isView()
focal_class.identifier: isView
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isView()
focal_class.class_method_signature: Command.getAppAlias()
focal_class.full_signature: public String getAppAlias()
focal_class.identifier: getAppAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAppAlias()
focal_class.class_method_signature: Command.getRootClientAlias()
focal_class.full_signature: public String getRootClientAlias()
focal_class.identifier: getRootClientAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRootClientAlias()
focal_class.class_method_signature: Command.getRootDomainElement()
focal_class.full_signature: public CommandElement getRootDomainElement()
focal_class.identifier: getRootDomainElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CommandElement
focal_class.signature: CommandElement getRootDomainElement()
focal_class.class_method_signature: Command.getRootDomainAlias()
focal_class.full_signature: public String getRootDomainAlias()
focal_class.identifier: getRootDomainAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRootDomainAlias()
focal_class.class_method_signature: Command.getRootDomainUri()
focal_class.full_signature: public String getRootDomainUri()
focal_class.identifier: getRootDomainUri
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRootDomainUri()
focal_class.class_method_signature: Command.getAbsoluteDomainAlias()
focal_class.full_signature: public String getAbsoluteDomainAlias()
focal_class.identifier: getAbsoluteDomainAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAbsoluteDomainAlias()
focal_class.class_method_signature: Command.getAbsoluteDomainUri()
focal_class.full_signature: public String getAbsoluteDomainUri()
focal_class.identifier: getAbsoluteDomainUri
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAbsoluteDomainUri()
focal_class.class_method_signature: Command.getProcessAlias()
focal_class.full_signature: public String getProcessAlias()
focal_class.identifier: getProcessAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getProcessAlias()
focal_class.class_method_signature: Command.getProcessUri()
focal_class.full_signature: public String getProcessUri()
focal_class.identifier: getProcessUri
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getProcessUri()
focal_class.class_method_signature: Command.getAbsoluteAlias()
focal_class.full_signature: public String getAbsoluteAlias()
focal_class.identifier: getAbsoluteAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAbsoluteAlias()
focal_class.class_method_signature: Command.getAbsoluteAliasWithAction()
focal_class.full_signature: public String getAbsoluteAliasWithAction()
focal_class.identifier: getAbsoluteAliasWithAction
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAbsoluteAliasWithAction()
focal_class.class_method_signature: Command.getAbsoluteAliasTillRootDomain()
focal_class.full_signature: public String getAbsoluteAliasTillRootDomain()
focal_class.identifier: getAbsoluteAliasTillRootDomain
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAbsoluteAliasTillRootDomain()
focal_class.class_method_signature: Command.buildAlias(CommandElementLinked startElem)
focal_class.full_signature: public String buildAlias(CommandElementLinked startElem)
focal_class.identifier: buildAlias
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem)
focal_class.return: String
focal_class.signature: String buildAlias(CommandElementLinked startElem)
focal_class.class_method_signature: Command.buildAlias(Type endWhentype)
focal_class.full_signature: public String buildAlias(Type endWhentype)
focal_class.identifier: buildAlias
focal_class.modifiers: public
focal_class.parameters: (Type endWhentype)
focal_class.return: String
focal_class.signature: String buildAlias(Type endWhentype)
focal_class.class_method_signature: Command.buildAlias(CommandElementLinked startElem, Type endWhentype)
focal_class.full_signature: public String buildAlias(CommandElementLinked startElem, Type endWhentype)
focal_class.identifier: buildAlias
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, Type endWhentype)
focal_class.return: String
focal_class.signature: String buildAlias(CommandElementLinked startElem, Type endWhentype)
focal_class.class_method_signature: Command.buildUri(CommandElementLinked startElem)
focal_class.full_signature: public String buildUri(CommandElementLinked startElem)
focal_class.identifier: buildUri
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem)
focal_class.return: String
focal_class.signature: String buildUri(CommandElementLinked startElem)
focal_class.class_method_signature: Command.buildUri(Type endWhenType)
focal_class.full_signature: public String buildUri(Type endWhenType)
focal_class.identifier: buildUri
focal_class.modifiers: public
focal_class.parameters: (Type endWhenType)
focal_class.return: String
focal_class.signature: String buildUri(Type endWhenType)
focal_class.class_method_signature: Command.buildUri(CommandElementLinked startElem, Type endWhenType)
focal_class.full_signature: public String buildUri(CommandElementLinked startElem, Type endWhenType)
focal_class.identifier: buildUri
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, Type endWhenType)
focal_class.return: String
focal_class.signature: String buildUri(CommandElementLinked startElem, Type endWhenType)
focal_class.class_method_signature: Command.traverseElements(CommandElementLinked startElem, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.full_signature: public String traverseElements(CommandElementLinked startElem, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.identifier: traverseElements
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.return: String
focal_class.signature: String traverseElements(CommandElementLinked startElem, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.class_method_signature: Command.traverseElements(CommandElementLinked startElem, Consumer<CommandElement> cb)
focal_class.full_signature: public void traverseElements(CommandElementLinked startElem, Consumer<CommandElement> cb)
focal_class.identifier: traverseElements
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, Consumer<CommandElement> cb)
focal_class.return: void
focal_class.signature: void traverseElements(CommandElementLinked startElem, Consumer<CommandElement> cb)
focal_class.class_method_signature: Command.traverseElements(CommandElementLinked startElem, Type type, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.full_signature: public String traverseElements(CommandElementLinked startElem, Type type, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.identifier: traverseElements
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, Type type, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.return: String
focal_class.signature: String traverseElements(CommandElementLinked startElem, Type type, BiConsumer<CommandElement, StringBuilder> cb)
focal_class.class_method_signature: Command.traverseElements(CommandElementLinked startElem, Type type, Consumer<CommandElement> cb)
focal_class.full_signature: public void traverseElements(CommandElementLinked startElem, Type type, Consumer<CommandElement> cb)
focal_class.identifier: traverseElements
focal_class.modifiers: public
focal_class.parameters: (CommandElementLinked startElem, Type type, Consumer<CommandElement> cb)
focal_class.return: void
focal_class.signature: void traverseElements(CommandElementLinked startElem, Type type, Consumer<CommandElement> cb)
focal_class.class_method_signature: Command.createRoot(Type type, String uri)
focal_class.full_signature: public CommandElementLinked createRoot(Type type, String uri)
focal_class.identifier: createRoot
focal_class.modifiers: public
focal_class.parameters: (Type type, String uri)
focal_class.return: CommandElementLinked
focal_class.signature: CommandElementLinked createRoot(Type type, String uri)
focal_class.class_method_signature: Command.toUri()
focal_class.full_signature: public String toUri()
focal_class.identifier: toUri
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toUri()
focal_class.class_method_signature: Command.toRemoteUri(Type endWhenType, Action withAction, Behavior withBehavior)
focal_class.full_signature: public String toRemoteUri(Type endWhenType, Action withAction, Behavior withBehavior)
focal_class.identifier: toRemoteUri
focal_class.modifiers: public
focal_class.parameters: (Type endWhenType, Action withAction, Behavior withBehavior)
focal_class.return: String
focal_class.signature: String toRemoteUri(Type endWhenType, Action withAction, Behavior withBehavior)
focal_class.class_method_signature: Command.addRequestParamsToUri(StringBuilder sb)
focal_class.full_signature: private void addRequestParamsToUri(StringBuilder sb)
focal_class.identifier: addRequestParamsToUri
focal_class.modifiers: private
focal_class.parameters: (StringBuilder sb)
focal_class.return: void
focal_class.signature: void addRequestParamsToUri(StringBuilder sb)
focal_class.class_method_signature: Command.getParameterValue(String requestParameter)
focal_class.full_signature: public String[] getParameterValue(String requestParameter)
focal_class.identifier: getParameterValue
focal_class.modifiers: public
focal_class.parameters: (String requestParameter)
focal_class.return: String[]
focal_class.signature: String[] getParameterValue(String requestParameter)
focal_class.class_method_signature: Command.getFirstParameterValue(String requestParameter)
focal_class.full_signature: public String getFirstParameterValue(String requestParameter)
focal_class.identifier: getFirstParameterValue
focal_class.modifiers: public
focal_class.parameters: (String requestParameter)
focal_class.return: String
focal_class.signature: String getFirstParameterValue(String requestParameter)
focal_class.class_method_signature: Command.hasRawPayload()
focal_class.full_signature: public boolean hasRawPayload()
focal_class.identifier: hasRawPayload
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasRawPayload()
focal_class.class_method_signature: Command.getRawPayload()
focal_class.full_signature: public String getRawPayload()
focal_class.identifier: getRawPayload
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRawPayload()
focal_class.class_method_signature: Command.containsFunction()
focal_class.full_signature: public boolean containsFunction()
focal_class.identifier: containsFunction
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean containsFunction()
focal_method.body: public String getRelativeUri(String input) {
  		// input doesn't have /p/ : prefix client/org/app/p/{domain-root} from incoming command 
  		int iFirstQ = StringUtils.indexOf(input, "?");
  		final String searchSeq = (iFirstQ != StringUtils.INDEX_NOT_FOUND) ? StringUtils.substring(input, 0, iFirstQ) : input;
  		
  		if(!StringUtils.contains(searchSeq, Constants.SEGMENT_PLATFORM_MARKER.code)) {
  			String prefix = buildUri(Type.PlatformMarker) + getRootDomainUri();
  			return prefix + input;
  		}
  		
  		// input starts with /p/ : prefix client/org/app from incoming command
  		if(StringUtils.startsWith(input, Constants.SEGMENT_PLATFORM_MARKER.code)) {
  			String prefix = buildUri(Type.AppAlias);
  			return prefix + input;
  		}
  		
  		// input is complete: use as is
  		return input;
  	}
focal_method.class_method_signature: Command.getRelativeUri(String input)
focal_method.full_signature: public String getRelativeUri(String input)
focal_method.identifier: getRelativeUri
focal_method.invocations: indexOf substring contains buildUri getRootDomainUri startsWith buildUri
focal_method.modifiers: public
focal_method.parameters: (String input)
focal_method.return: String
focal_method.signature: String getRelativeUri(String input)