private static StringBuffer promptUID(String uid, StringBuffer sb) { return sb.append(uid).append(" - ").append( UIDDictionary.getDictionary().nameOf(uid)); }
public static UIDDictionary getDictionary() { if (inst == null) loadDictionary(); return inst; }
private PresentationContext pcFor(String cuid, String tsuid) throws NoPresentationContextException { Map<String,PresentationContext> ts2pc = acceptedPCs.get(cuid); if (ts2pc == null) throw new NoPresentationContextException("Abstract Syntax " + UIDDictionary.getDictionary().prompt(cuid) + " not supported"); if (tsuid == null) return ts2pc.values().iterator().next(); PresentationContext pc = ts2pc.get(tsuid); if (pc == null) throw new NoPresentationContextException("Abstract Syntax " + UIDDictionary.getDictionary().prompt(cuid) + " with Transfer Syntax " + UIDDictionary.getDictionary().prompt(tsuid) + " not supported"); return pc; }
public String prompt(String uid) { return uid + "/" + nameOf(uid); }
public static void main(String args[]) { if (args.length == 0) { System.out.println(USAGE); System.exit(1); } UIDDictionary dict = new UIDDictionary(250); try { for (int i = 0; i < args.length; i++) { dict.loadXML(new File(args[i])); } File ofile = new File(FILE_NAME); ResourceLocator.serializeTo(dict, ofile); System.out.println("Create Dictionary Resource - " + ofile); } catch (Exception e) { e.printStackTrace(); } }
if (tc == null) { System.out.println(); System.out.println(UIDDictionary.getDictionary().prompt( info.cuid) + " not supported by " + remoteAE.getAETitle()); if (tsuid == null) { System.out.println(); System.out.println(UIDDictionary.getDictionary().prompt( info.cuid) + " with " + UIDDictionary.getDictionary().prompt( fileref ? DCM4CHEE_URI_REFERENCED_TS_UID : info.tsuid)
if (tc == null) { System.out.println(); System.out.println(UIDDictionary.getDictionary().prompt( info.cuid) + " not supported by " + remoteAE.getAETitle()); if (tsuid == null) { System.out.println(); System.out.println(UIDDictionary.getDictionary().prompt( info.cuid) + " with " + UIDDictionary.getDictionary().prompt( fileref ? DCM4CHEE_URI_REFERENCED_TS_UID : info.tsuid)
private static StringBuffer promptUID(String uid, StringBuffer sb) { return sb.append(uid).append(" - ").append( UIDDictionary.getDictionary().nameOf(uid)); }
UIDDictionary dict = UIDDictionary.getDictionary(); StringBuilder sb = new StringBuilder(64); switch (cmd.getInt(Tag.CommandField)) .append(NL) .append("\tcuid=") .append(dict.prompt(cmd.getString(Tag.AffectedSOPClassUID))) .append(NL) .append("\tiuid=") .append(NL) .append("\tcuid=") .append(dict.prompt(cmd.getString(Tag.AffectedSOPClassUID))); break; case C_FIND_RQ: .append(NL) .append("\tcuid=") .append(dict.prompt(cmd.getString(Tag.AffectedSOPClassUID))); break; case C_MOVE_RQ: .append(pcid) .append(", aet=") .append(dict.prompt(cmd.getString(Tag.MoveDestination))) .append(", prior=") .append(cmd.getInt(Tag.Priority)) .append(NL) .append("\tcuid=")