Replies the canonical name of the given object.

@param object the object.
@return the canonical name or <code>null</code> if it cannot be computed.
482018
protected String canonicalName(EObject object) {
		if (object instanceof JvmIdentifiableElement) {
			return ((JvmIdentifiableElement) object).getQualifiedName();
		}
		final EObject jvmElement = this.associations.getPrimaryJvmElement(object);
		if (jvmElement instanceof JvmIdentifiableElement) {
			return ((JvmIdentifiableElement) jvmElement).getQualifiedName();
		}
		return null;
	}
1276680
public static Collection<String> getPropertyNames(
                    final Object object
                    )
    {
        if (object == null) {
            throw new IllegalArgumentException( "no object specified" );
        }

        return getPropertyNames( object.getClass() );
    }
242015
public Optional<UUID> getId(final Object object) {
        return Optional.ofNullable(objectToId.get(object));
    }
1368573
public Object read(Object object) {
        if(object == null) {
            String msg = "Can not evaluate the identifier \"" + _identifier + "\" on a null object.";
            LOGGER.error(msg);
            throw new RuntimeException(msg);
        }

        if(TRACE_ENABLED)
            LOGGER.trace("Read property " + _identifier + " on object of type " + object.getClass().getName());

        if(object instanceof Map)
            return mapLookup((Map)object, _identifier);
        else if(object instanceof List) {
            int i = parseIndex(_identifier);
            return listLookup((List)object, i);
        }
        else if(object.getClass().isArray()) {
            int i = parseIndex(_identifier);
            return arrayLookup(object, i);
        }
        else return beanLookup(object, _identifier);
    }
1166753
@Nullable
  public static <T> T assertNull(@Nullable final T object) {
    return assertNull(null, object);
  }
1306677
private void addObjectIdentity(final Object object) {

        if (object == null) {
            _buffer.append("null");
        } else {
            _buffer.append(object.getClass().getName());
            _buffer.append("@");
            _buffer
                    .append(Integer
                            .toHexString(System.identityHashCode(object)));
        }

    }
1112495
public int compareTo(Object object)
   {

      if (object == null || !(object instanceof Named))

      {

         return -1;

      }
      else

      {

         Named vo = (Named) object;

         return getName().compareTo(vo.getName());

      }

   }
635128
public static String getName(DistributedObject distributedObject) {
        /*
         * The motivation of this behaviour is that some distributed objects (`ICache`) can have prefixed name.
         * For example, for the point of view of cache,
         * it has pure name and full name which contains prefixes also.
         *
         * However both of our `DistributedObject` and `javax.cache.Cache` (from JCache spec) interfaces
         * have same method name with same signature. It is `String getName()`.
         *
         * From the distributed object side, name must be fully qualified name of object,
         * but from the JCache spec side (also for backward compatibility),
         * it must be pure cache name without any prefix.
         * So there is same method name with same signature for different purposes.
         * Therefore, `PrefixedDistributedObject` has been introduced to retrieve the
         * fully qualified name of distributed object when it is needed.
         *
         * For cache case, the fully qualified name is full cache name contains Hazelcast prefix (`/hz`),
         * cache name prefix regarding to URI and/or classloader if specified and pure cache name.
         */
        if (distributedObject instanceof PrefixedDistributedObject) {
            return ((PrefixedDistributedObject) distributedObject).getPrefixedName();
        } else {
            return distributedObject.getName();
        }
    }
1005695
@Override
    public final byte[] toBytes(Object object)
    {
        if (object != null)
        {
            Long l = (Long) object;
            ByteBuffer buffer = ByteBuffer.allocate(8);
            buffer.putLong(l);
            return buffer.array();
        }
        if (log.isWarnEnabled())
        {
            log.warn("Object is null.");
        }
        return null;
    }
1153675
public static Class<?> getType(Object object) {
        Class<?> type = null;
        if (isClass(object)) {
            type = (Class<?>) object;
        } else if (object != null) {
            type = object.getClass();
        }
        return type;
    }
425694
public static String getUserNameFromSubject(Subject subject) {
        Iterator<Principal> it = subject.getPrincipals().iterator();
        String username = it.next().getName();
        return username;
    }
568177
@Override
  public String asString(Object object)
  {
    // at this point object is guaranteed to be enumeration
    Enum<?> e = (Enum<?>)object;
    if(object instanceof OrdinalEnum) {
      return Integer.toString(e.ordinal());
    }
    return e.name();
  }
225789
@Nullable
  public static String getClassLocalName (@Nullable final Object aObject)
  {
    return aObject == null ? null : getClassLocalName (aObject.getClass ());
  }
1170584
private Long getValue(final Object _object)
    {
        final Long ret;
        if (_object == null) {
            ret = null;
        } else if (_object instanceof Number) {
            ret = ((Number) _object).longValue();
        } else {
            ret = NumberUtils.toLong(_object.toString());
        }
        return ret;
    }
448010
protected static String poa(Object o) {
        if (o == null) {
            return "<<null>>";
        }

        return o.toString() + " " + getObjectAddress(o);
    }
261377
public static QName getQualifiedName(Object obj) {
		return new QName(STIXSchema.getNamespaceURI(obj),
				STIXSchema.getName(obj));
	}
274937
protected QualifiedName getOrComputeFullyQualifiedName(final EObject obj) {
		return cache.get(Tuples.pair(obj, "fqn"), obj.eResource(), ()->computeFullyQualifiedName(obj));
	}