Package javax.jmi.reflect

Examples of javax.jmi.reflect.RefClass


  public boolean isInstanceOf(Object object, String instanceName)
  {
    //System.out.println("isInstanceOf(Object=" + object.getClass().getName() + ")" );
    if(object instanceof RefObject)
    {
      RefClass conceptClass = getRefClassByConceptName(instanceName);
      return conceptClass.refAllOfType().contains(object);
      //return ((RefObject)object).refIsInstanceOf( conceptClass.refMetaObject(), true );
      //return ((RefObject)object).refClass() == conceptClass;
    }
    else if(object instanceof RefStruct)
    {
View Full Code Here


   * @return boolean
   */
  public boolean isOfClass(Object modelElement, String instanceName)
  {
    //
    RefClass conceptClass = getRefClassByConceptName(instanceName);
    //System.out.println("isInstanceOf(Object=" + object.getClass().getName() + ")" );
    if(modelElement instanceof RefObject)
    {

      //return conceptClass.refAllOfClass().contains(modelElement);
View Full Code Here

TOP

Related Classes of javax.jmi.reflect.RefClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.