Codota Logo
OAVObjectType.getAttributeType
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain OAVObjectType
private void myMethod () {
OAVObjectType o =
  • Codota IconIOAVState state;Object object;state.getType(object)
  • Codota IconOAVAttributeType oAVAttributeType;oAVAttributeType.getType()
  • Codota IconMap map;Object key;(OAVObjectType) map.get(key)
  • Smart code suggestions by Codota
}
origin: net.sourceforge.jadex/jadex-rules-tools

try
  name = type.getAttributeType("element_has_name");
origin: org.activecomponents.jadex/jadex-rules

    OAVAttributeType attr = otype.getAttributeType(attrname);
    aret.add(new Object[]{attr, key});
    otype    = attr.getType();
    OAVAttributeType attr = otype.getAttributeType(attrname);
    aret.add(attr);
    otype    = attr.getType();
ret    = otype.getAttributeType(slotname);
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Ensure that a type has an attribute.
 *  @param object The object.
 *  @param attribute The attribute.
 *  @throws RuntimeException if value is not allowed.
 */
protected boolean checkTypeHasAttribute(Object object, OAVAttributeType attribute)
{
  if(attribute==null)
    throw new IllegalArgumentException("Attribute must not null.");
  
  OAVObjectType type = attribute.getObjectType() instanceof OAVJavaType
    ? tmodel.getJavaType(object.getClass())    : (OAVObjectType)types.get(object);
  if(type==null)
    throw new RuntimeException("Unknown object type of: "+object);
  OAVAttributeType attr    = type.getAttributeType(attribute.getName());
  if(!attribute.equals(attr))
    throw new RuntimeException("Attribute must belong to object type: "+attribute+", "+type);
  
  return true;
}
 
origin: net.sourceforge.jadex/jadex-rules

    OAVAttributeType attr = otype.getAttributeType(attrname);
    aret.add(new Object[]{attr, key});
    otype    = attr.getType();
    OAVAttributeType attr = otype.getAttributeType(attrname);
    aret.add(attr);
    otype    = attr.getType();
ret    = otype.getAttributeType(slotname);
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Ensure that a type has an attribute.
 *  @param object The object.
 *  @param attribute The attribute.
 *  @throws RuntimeException if value is not allowed.
 */
protected boolean checkTypeHasAttribute(Object object, OAVAttributeType attribute)
{
  if(attribute==null)
    throw new IllegalArgumentException("Attribute must not null.");
  
  OAVObjectType type = attribute.getObjectType() instanceof OAVJavaType
    ? tmodel.getJavaType(object.getClass())    : (OAVObjectType)types.get(object);
  if(type==null)
    throw new RuntimeException("Unknown object type of: "+object);
  OAVAttributeType attr    = type.getAttributeType(attribute.getName());
  if(!attribute.equals(attr))
    throw new RuntimeException("Attribute must belong to object type: "+attribute+", "+type);
  
  return true;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Ensure that a type has an attribute.
 *  @param id The object (oid).
 *  @param attribute The attribute.
 *  @throws RuntimeException if value is not allowed.
 */
protected boolean checkTypeHasAttribute(Object id, OAVAttributeType attribute)
{
  // #ifndef MIDP
  assert nocheck || generator.isId(id);
  // #endif
  if(attribute==null)
    throw new IllegalArgumentException("Attribute must not null.");
  
  OAVObjectType    type    = attribute.getObjectType() instanceof OAVJavaType
    ? tmodel.getJavaType(id.getClass())    : getType(id);
  OAVAttributeType attr    = type.getAttributeType(attribute.getName());
  if(!attribute.equals(attr))
    throw new RuntimeException("Attribute must belong to object type: "+attribute+", "+type);
  
  return true;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Ensure that a type has an attribute.
 *  @param id The object (oid).
 *  @param attribute The attribute.
 *  @throws RuntimeException if value is not allowed.
 */
protected boolean checkTypeHasAttribute(Object id, OAVAttributeType attribute)
{
  // #ifndef MIDP
  assert nocheck || generator.isId(id);
  // #endif
  if(attribute==null)
    throw new IllegalArgumentException("Attribute must not null.");
  
  OAVObjectType    type    = attribute.getObjectType() instanceof OAVJavaType
    ? tmodel.getJavaType(id.getClass())    : getType(id);
  OAVAttributeType attr    = type.getAttributeType(attribute.getName());
  if(!attribute.equals(attr))
    throw new RuntimeException("Attribute must belong to object type: "+attribute+", "+type);
  
  return true;
}
 
origin: net.sourceforge.jadex/jadex-rules

OAVAttributeType    attr    = type.getAttributeType(
  ((FieldAccess)suffixes[i]).getName());
suffs.add(attr);
origin: org.activecomponents.jadex/jadex-rules

OAVAttributeType    attr    = type.getAttributeType(
  ((FieldAccess)suffixes[i]).getName());
suffs.add(attr);
jadex.rules.stateOAVObjectTypegetAttributeType

Javadoc

Get an attribute type description.

Popular methods of OAVObjectType

  • getName
    Get the name of the OAV object type.
  • getSupertype
    Get the supertype of this typ.
  • createAttributeType
    Create a new attribute type.
  • equals
    Test if two types are equal.
  • 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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now