/** * <p> This constructor initialises this object by setting the symbolMap and * passing in the command object that is being visited.</p> * @param symbolMap A map of virtual elements/groups to their physical counterparts */ public StaticSymbolMappingVisitor(Map symbolMap) { super(); Assertion.isNotNull(symbolMap); this.symbolMap = symbolMap; }
public Message(Severity severity, String msg) { this.severity = severity; Assertion.isNotNull(msg); this.value = msg; }
public Message(Severity severity, String msg) { this.severity = severity; Assertion.isNotNull(msg); this.value = msg; }
public BinaryType(byte[] bytes) { Assertion.isNotNull(bytes); //to be truly immutable we should clone here this.bytes = bytes; }
/** * <p> This constructor initialises this object by setting the symbolMap and * passing in the command object that is being visited.</p> * @param symbolMap A map of virtual elements/groups to their physical counterparts */ public StaticSymbolMappingVisitor(Map symbolMap) { super(); Assertion.isNotNull(symbolMap); this.symbolMap = symbolMap; }
/** * Add a new item to the report. * @param item Item being added */ public void addItem(R item) { Assertion.isNotNull(item); this.items.add(item); }
/** * Add a new item to the report. * @param item Item being added */ public void addItem(R item) { Assertion.isNotNull(item); this.items.add(item); }
public CacheID(ParseInfo pi, String sql, String vdbName, String vdbVersion, String sessionId, String userName){ Assertion.isNotNull(sql); this.sql = sql; this.vdbInfo = new VDBKey(vdbName, vdbVersion); this.ansiIdentifiers = pi.ansiQuotedIdentifiers; this.originalSessionId = sessionId; this.originalUserName = userName; }
public CacheID(ParseInfo pi, String sql, String vdbName, String vdbVersion, String sessionId, String userName){ Assertion.isNotNull(sql); this.sql = sql; this.vdbInfo = new VDBKey(vdbName, vdbVersion); this.ansiIdentifiers = pi.ansiQuotedIdentifiers; this.originalSessionId = sessionId; this.originalUserName = userName; }
private static Class<?>[] getTypeClasses(final List<? extends Expression> elements) { Class<?>[] types = new Class[elements.size()]; for (ListIterator<? extends Expression> i = elements.listIterator(); i.hasNext();) { Expression expr = i.next(); Class<?> type = expr.getType(); Assertion.isNotNull(type); types[i.previousIndex()] = type; } return types; }
/** * Add a new collection of items to the report. * @param items Items being added */ public void addItems(Collection<R> items) { Assertion.isNotNull(items); for (R r : items) { addItem(r); } }
public MappingSourceNode addSourceNode(MappingSourceNode elem) { Assertion.isNotNull(elem); setRoot(elem); return elem; }
/** * Add a new collection of items to the report. * @param items Items being added */ public void addItems(Collection<R> items) { Assertion.isNotNull(items); for (R r : items) { addItem(r); } }
private static Class<?>[] getTypeClasses(final List<? extends Expression> elements) { Class<?>[] types = new Class[elements.size()]; for (ListIterator<? extends Expression> i = elements.listIterator(); i.hasNext();) { Expression expr = i.next(); Class<?> type = expr.getType(); Assertion.isNotNull(type); types[i.previousIndex()] = type; } return types; }
public CacheID(ParseInfo pi, String sql, String vdbName, String vdbVersion, String sessionId, String userName){ Assertion.isNotNull(sql); this.sql = sql; this.vdbInfo = new VDBKey(vdbName, vdbVersion); this.ansiIdentifiers = pi.ansiQuotedIdentifiers; this.originalSessionId = sessionId; this.originalUserName = userName; }
private void addAliasType(String alias) { Class<?> typeClass = DataTypeManager.getDataTypeClass(alias); String primaryType = DataTypeManager.getDataTypeName(typeClass); Datatype dt = typeMap.get(primaryType); Assertion.isNotNull(dt, alias); typeMap.put(alias, dt); }
private void addAliasType(String alias) { Class<?> typeClass = DataTypeManager.getDataTypeClass(alias); String primaryType = DataTypeManager.getDataTypeName(typeClass); Datatype dt = typeMap.get(primaryType); Assertion.isNotNull(dt, alias); typeMap.put(alias, dt); }
private void addAliasType(String alias) { Class<?> typeClass = DataTypeManager.getDataTypeClass(alias); String primaryType = DataTypeManager.getDataTypeName(typeClass); Datatype dt = typeMap.get(primaryType); Assertion.isNotNull(dt, alias); typeMap.put(alias, dt); }
public void testIsNotNullObject() { Assertion.isNotNull(""); //$NON-NLS-1$ try { Assertion.isNotNull(null); fail(); } catch ( AssertionError e ) { // expected, but check the message final String msg = CorePlugin.Util.getString("Assertion.isNotNull"); //$NON-NLS-1$ assertEquals(msg, e.getMessage()); } }