public synchronized Identifier getNetwork(final Integer id) throws Exception { final String network = this.fastIDreverse.get(id); if (network == null) { throw new Exception(); } return new Identifier(network); } }
if (! name.equals(other.name))
if (alertName.equals(new Identifier("*")) || alertName.equals(new Identifier(""))) { // requirement: 3.4.10.2.b invIndexList.add(new UInteger(index)); continue;
if (!isRegistered) { final EntityKeyList lst = new EntityKeyList(); lst.add(new EntityKey(new Identifier("*"), 0L, 0L, 0L)); publisher.register(lst, new PublishInteractionListener()); isRegistered = true; "Generating update for the App: {0} (Identifier: {1})", new Object[]{ appObjId, new Identifier(manager.get(appObjId).getName().toString()) }); final EntityKey ekey = new EntityKey(new Identifier(manager.get(appObjId).getName().toString()), appObjId, null, null); final Time timestamp = HelperTime.getTimestampMillis();
/** * Returns the Name of the COM object from the objectType * * @param objType Object Type * @return Name of the COM object */ public static String objType2string(final ObjectType objType) { final COMObject comObject = HelperCOM.objType2COMObject(objType); String string = MALContextFactory.lookupArea( objType.getArea(), objType.getAreaVersion() ).getName().toString(); string += " - " + MALContextFactory.lookupArea( objType.getArea(), objType.getAreaVersion() ).getServiceByNumber(objType.getService()).getName().toString(); if (comObject != null) { string += ": " + comObject.getObjectName().getValue(); } return string; }
public SingleConnectionDetails get(Identifier id) { return services.get(id.toString()); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (name != null ? name.hashCode() : 0); hash = 83 * hash + (description != null ? description.hashCode() : 0); return hash; }
|| tempActionCreationRequest.getName().equals(new Identifier("*")) || tempActionCreationRequest.getName().equals(new Identifier(""))) { // requirement: 3.2.12.2.b invIndexList.add(new UInteger(index)); continue;
@Override public void run() { this.setName("AppsLauncher_ThreadReader"); try { String line; while ((line = br.readLine()) != null) { buf.append(line); buf.append("\n"); } } catch (IOException ex) { // The App stream is closed! AppDetails details = manager.get(appObjId); Logger.getLogger(AppsLauncherProviderServiceImpl.class.getName()).log( Level.INFO, "The stream of the App " + appObjId + " (name: " + details.getName().toString() + ") has been closed."); close(); } } };
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (name != null ? name.hashCode() : 0); hash = 83 * hash + (description != null ? description.hashCode() : 0); return hash; }
@Override public Identifier decodeIdentifier() throws MALException { return new Identifier(sourceBuffer.getString()); }
|| paramName.equals(new Identifier("*")) || paramName.equals(new Identifier(""))) { // requirement: 3.3.12.2.b invIndexList.add(new UInteger(index)); continue;
if (! name.equals(other.name))
/** * Checks if the provided domain matches the supplied domain with a wildcard * * @param domain Domain * @param wilcardDomain Domain with wildcard * @return True if the domain matches the domain with the wildcard */ public static boolean domainMatchesWildcardDomain(IdentifierList domain, IdentifierList wilcardDomain) { // The domain of the wildcard can never be greater than the real domain if (wilcardDomain.size() > domain.size() + 1) { return false; } // cycle through the parts of the domains for (int i = 0; i < wilcardDomain.size(); i++) { Identifier domainPart1 = wilcardDomain.get(i); if ("*".equals(domainPart1.toString())) { return true; // Wildcard found! } Identifier domainPart2 = domain.get(i); // The parts are different, return false if (!domainPart1.toString().equals(domainPart2.toString())) { return false; } } return false; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (name != null ? name.hashCode() : 0); hash = 83 * hash + (description != null ? description.hashCode() : 0); return hash; }
@Override public Identifier decodeNullableIdentifier() throws MALException { final String s = sourceBuffer.getString(); if (null != s) { return new Identifier(s); } return null; }
/** * Return an object identified by its name. * * @param opName The name of the object. * @return The found operation or null. */ public COMObject getObjectByName(final Identifier opName) { return objectsByName.get(opName.getValue()); }
if (aggrName.equals(new Identifier("*")) || aggrName.equals(new Identifier(""))) { // requirement: 3.7.10.2.2 invIndexList.add(new UInteger(index)); continue;