private void parseInspireId(ProcessType pt, Process process) { IdentifierType identifier = pt.getInspireId().getIdentifier(); String localId = identifier.getLocalId(); String namespace = identifier.getNamespace(); CodeWithAuthority codeWithAuthority; if (localId.contains(namespace)) { codeWithAuthority = new CodeWithAuthority(localId, namespace); } else { codeWithAuthority = new CodeWithAuthority(getIdentifier(localId, namespace), namespace); } process.setIdentifier(codeWithAuthority); }
private void checkForInspireId(ProcessType pt, Process process) throws OwsExceptionReport { if (pt.getInspireId() == null) { if (process.isSetIdentifier()) { addInspireId(pt, process); } else { InspireId iId = pt.addNewInspireId(); iId.setNil(); iId.setNilReason("unknown"); } } }
private void checkForInspireId(ProcessType pt, Process process) throws EncodingException { if (pt.getInspireId() == null) { if (process.isSetIdentifier()) { addInspireId(pt, process); } else { InspireId iId = pt.addNewInspireId(); iId.setNil(); iId.setNilReason("unknown"); } } }
private void parseInspireId(ProcessType pt, Process process) { IdentifierType identifier = pt.getInspireId().getIdentifier(); String localId = identifier.getLocalId(); String namespace = identifier.getNamespace(); CodeWithAuthority codeWithAuthority; if (localId.contains(namespace)) { codeWithAuthority = new CodeWithAuthority(localId, namespace); } else { codeWithAuthority = new CodeWithAuthority(getIdentifier(localId, namespace), namespace); } process.setIdentifier(codeWithAuthority); }