public static Code codeValue(Attribute attr) throws NamingException { return attr != null ? new Code((String) attr.get()) : null; }
private void startCode(String codeValue, String codingSchemeDesignator, String codingSchemeVersion, String codeMeaning) throws SAXException { if (codeValue == null) throw new SAXException("missing codeValue attribute"); if (codingSchemeDesignator == null) throw new SAXException("missing codingSchemeDesignator attribute"); if (codeMeaning == null) throw new SAXException("missing codeMeaning attribute"); codes.add(new Code(codeValue, codingSchemeDesignator, codingSchemeVersion, codeMeaning)); }
public static Code[] codeArray(Attribute attr) throws NamingException { if (attr == null) return EMPTY_CODES; Code[] codes = new Code[attr.size()]; for (int i = 0; i < codes.length; i++) codes[i] = new Code((String) attr.get(i)); return codes; }
public static Code[] codeArray(Attribute attr) throws NamingException { if (attr == null) return EMPTY_CODES; Code[] codes = new Code[attr.size()]; for (int i = 0; i < codes.length; i++) codes[i] = new Code((String) attr.get(i)); return codes; }
public Code[] codeArray() { next(); expect(JsonParser.Event.START_ARRAY); ArrayList<Code> a = new ArrayList<>(); while (next() == JsonParser.Event.VALUE_STRING) a.add(new Code(getString())); expect(JsonParser.Event.END_ARRAY); return a.toArray(EMPTY_CODES); }
private static String[] toStringArray(EventTypeCode... a) { String[] ss = new String[a.length]; for (int i = 0; i < a.length; i++) { ss[i] = new Code( a[i].getCsdCode(), a[i].getCodeSystemName(), null, a[i].getOriginalText()) .toString(); } return ss; }
private static String[] toStringArray(RoleIDCode... a) { String[] ss = new String[a.length]; for (int i = 0; i < a.length; i++) { ss[i] = new Code( a[i].getCsdCode(), a[i].getCodeSystemName(), null, a[i].getOriginalText()) .toString(); } return ss; }
@Override public String toConfigNode(EventTypeCode object, ConfigProperty property, SavingContext ctx) throws ConfigurationException { return new Code( object.getCode(), object.getCodeSystemName(), null, object.getOriginalText()) .toString(); } }
@Override public String toConfigNode(EventID object, ConfigProperty property, SavingContext ctx) throws ConfigurationException { return new Code( object.getCode(), object.getCodeSystemName(), null, object.getOriginalText()) .toString(); } }
private static String[] toStringArray(EventID... a) { String[] ss = new String[a.length]; for (int i = 0; i < a.length; i++) { ss[i] = new Code( a[i].getCsdCode(), a[i].getCodeSystemName(), null, a[i].getOriginalText()) .toString(); } return ss; }
private static String[] toStringArray(EventID... a) { String[] ss = new String[a.length]; for (int i = 0; i < a.length; i++) { ss[i] = new Code( a[i].getCsdCode(), a[i].getCodeSystemName(), null, a[i].getOriginalText()) .toString(); } return ss; }
private static String[] toStringArray(EventTypeCode... a) { String[] ss = new String[a.length]; for (int i = 0; i < a.length; i++) { ss[i] = new Code( a[i].getCsdCode(), a[i].getCodeSystemName(), null, a[i].getOriginalText()) .toString(); } return ss; }
@Override public EventTypeCode fromConfigNode(String configNode, ConfigProperty property, LoadingContext ctx, Object parent) throws ConfigurationException { Code code = new Code(configNode); EventTypeCode eventTypeCode = new EventTypeCode(); eventTypeCode.setCode(code.getCodeValue()); eventTypeCode.setCodeSystemName(code.getCodingSchemeDesignator()); eventTypeCode.setOriginalText(code.getCodeMeaning()); return eventTypeCode; }
@Override public RoleIDCode fromConfigNode(String configNode, ConfigProperty property, LoadingContext ctx, Object parent) throws ConfigurationException { Code code = new Code(configNode); RoleIDCode roleIDcode = new RoleIDCode(); roleIDcode.setCode(code.getCodeValue()); roleIDcode.setCodeSystemName(code.getCodingSchemeDesignator()); roleIDcode.setOriginalText(code.getCodeMeaning()); return roleIDcode; }
private static EventTypeCode[] toEventTypeCodeArray(String... ss) { EventTypeCode[] a = new EventTypeCode[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new EventTypeCode(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; }
private static RoleIDCode[] toRoleIDCodeArray(String... ss) { RoleIDCode[] a = new RoleIDCode[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new RoleIDCode(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; } }
private static EventID[] toEventIDArray(String... ss) { EventID[] a = new EventID[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new EventID(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; }
private static EventID[] toEventIDArray(String... ss) { EventID[] a = new EventID[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new EventID(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; }
private static EventTypeCode[] toEventTypeCodeArray(String... ss) { EventTypeCode[] a = new EventTypeCode[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new EventTypeCode(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; }
private static RoleIDCode[] toRoleIDCodeArray(String... ss) { RoleIDCode[] a = new RoleIDCode[ss.length]; for (int i = 0; i < ss.length; i++) { Code code = new Code(ss[i]); a[i] = new RoleIDCode(); a[i].setCsdCode(code.getCodeValue()); a[i].setCodeSystemName(code.getCodingSchemeDesignator()); a[i].setOriginalText(code.getCodeMeaning()); } return a; } }