Tabnine Logo
OAVObjectType.getSupertype
Code IndexAdd Tabnine to your IDE (free)

How to use
getSupertype
method
in
jadex.rules.state.OAVObjectType

Best Java code snippets using jadex.rules.state.OAVObjectType.getSupertype (Showing top 13 results out of 315)

origin: net.sourceforge.jadex/jadex-kernel-bdi

public void objectAdded(Object id, OAVObjectType type, boolean root)
{
  // Add the type and its supertypes (if not already contained).
  while(type!=null && types.add(type))
    type    = type.getSupertype();
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get an attribute type description.
 *  @param attribute    The name of the attribute.
 *  @return The OAV attribute type.
 */
public OAVAttributeType	getAttributeType0(String attribute)
{
  OAVAttributeType ret = (OAVAttributeType)(attributes!=null? attributes.get(attribute): null);
  if(ret==null)
  {
    OAVObjectType    type    = this.getSupertype();
    while(ret==null && type!=null)
    {
      ret = type.getAttributeType0(attribute);
      type = type.getSupertype();
    }
  }
  
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get an attribute type description.
 *  @param attribute    The name of the attribute.
 *  @return The OAV attribute type.
 */
public OAVAttributeType	getAttributeType0(String attribute)
{
  OAVAttributeType ret = (OAVAttributeType)(attributes!=null? attributes.get(attribute): null);
  if(ret==null)
  {
    OAVObjectType    type    = this.getSupertype();
    while(ret==null && type!=null)
    {
      ret = type.getAttributeType0(attribute);
      type = type.getSupertype();
    }
  }
  
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Test if this type is same type or subtype of another type.
 *  @param type The type to test.
 *  @return True, if this object is same type or subtype.
 */
public boolean isSubtype(OAVObjectType type)
{
  boolean ret = false;
  
  OAVObjectType tmp = this;
  while(tmp!=null && !ret)
  {
    if(type.equals(tmp))
      ret = true;
    else
      tmp = tmp.getSupertype();
  }
  
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Test if this type is same type or subtype of another type.
 *  @param type The type to test.
 *  @return True, if this object is same type or subtype.
 */
public boolean isSubtype(OAVObjectType type)
{
  boolean ret = false;
  
  OAVObjectType tmp = this;
  while(tmp!=null && !ret)
  {
    if(type.equals(tmp))
      ret = true;
    else
      tmp = tmp.getSupertype();
  }
  
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the properties of an object. 
 */
protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields)
{
  Collection ret = new LinkedHashSet();
  IOAVState state = (IOAVState)context;
  OAVObjectType type = state.getType(object);
  
  
  while(type!=null && !(type instanceof OAVJavaType))
  {
    Collection props = type.getDeclaredAttributeTypes();
    ret.addAll(props);
    type = type.getSupertype();
  }
  
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the properties of an object. 
 */
protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields)
{
  Collection ret = new LinkedHashSet();
  IOAVState state = (IOAVState)context;
  OAVObjectType type = state.getType(object);
  
  
  while(type!=null && !(type instanceof OAVJavaType))
  {
    Collection props = type.getDeclaredAttributeTypes();
    ret.addAll(props);
    type = type.getSupertype();
  }
  
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-rules-tools

type    = type.getSupertype();
origin: net.sourceforge.jadex/jadex-rules-tools

type    = type.getSupertype();
origin: org.activecomponents.jadex/jadex-rules

tmptype = tmptype.getSupertype();
origin: net.sourceforge.jadex/jadex-rules

tmptype = tmptype.getSupertype();
origin: org.activecomponents.jadex/jadex-rules

tmptype = tmptype.getSupertype();
origin: net.sourceforge.jadex/jadex-rules

tmptype = tmptype.getSupertype();
jadex.rules.stateOAVObjectTypegetSupertype

Javadoc

Get the supertype of this typ.

Popular methods of OAVObjectType

  • getName
    Get the name of the OAV object type.
  • createAttributeType
    Create a new attribute type.
  • equals
    Test if two types are equal.
  • getAttributeType
    Get an attribute type description.
  • getDeclaredAttributeTypes
    Get the declared attribute types (i.e. not those of super types).
  • isSubtype
    Test if this type is same type or subtype of another type.
  • <init>
    Create a new OAV object type.
  • addAttributeType
    Add an attribute type description.
  • getAttributeType0
    Get an attribute type description.
  • getDeclaredAttributeType0
    Get an attribute type description.
  • hashCode
    Get the hash code.
  • hashCode

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Path (java.nio.file)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now