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

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

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

origin: org.activecomponents.jadex/jadex-rules

/**
 *  Create a string representation of this OAV object id.
 */
public String	toString()
{
  return type.getName()+"_"+id;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Create a string representation of this OAV object id.
 */
public String	toString()
{
  return type.getName()+"_"+id;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Create a string representation of this OAV object id.
 */
public String	toString()
{
  return type.getName()+"_"+id;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Create a string representation of this OAV object id.
 */
public String	toString()
{
  return type.getName()+"_"+id;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Test if two types are equal.
 *  @return True if equal.
 */
public boolean equals(Object object)
{
  return object instanceof OAVObjectType && ((OAVObjectType)object).getName().equals(name);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Test if two types are equal.
 *  @return True if equal.
 */
public boolean equals(Object object)
{
  return object instanceof OAVObjectType && ((OAVObjectType)object).getName().equals(name);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get a string representation of this existential declaration.
 */
public String	toString()
{
  return type.getName()+" "+variable.getName();
}
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get a string representation of this existential declaration.
 */
public String	toString()
{
  return type.getName()+" "+variable.getName();
}
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove an existing type.
 *  Deletes the type from the state.
 *  @param type The object type.
 *  @return True, if could be removed.
 */
public boolean removeType(OAVObjectType type)
{
  boolean ret = types.remove(type.getName())!=null;
  for(int i=0; !ret && tmodels!=null && i<tmodels.length; i++)
    ret = tmodels[i].removeType(type);
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Remove an existing type.
 *  Deletes the type from the state.
 *  @param type The object type.
 *  @return True, if could be removed.
 */
public boolean removeType(OAVObjectType type)
{
  boolean ret = types.remove(type.getName())!=null;
  for(int i=0; !ret && tmodels!=null && i<tmodels.length; i++)
    ret = tmodels[i].removeType(type);
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

  /**
   *  Get the string representation.
   *  @return The string representation.
   */
  public String toString()
  {
    StringBuffer ret = new StringBuffer();
    ret.append("(");
    ret.append(type.getName());
    for(int i=0; i<getConstraints().size(); i++)
    {
      ret.append(" ");
      ret.append(getConstraints().get(i).toString());//+"\n");
    }
    ret.append(")");
    return ret.toString();
  }
}
origin: net.sourceforge.jadex/jadex-rules

  /**
   *  Get the string representation.
   *  @return The string representation.
   */
  public String toString()
  {
    StringBuffer ret = new StringBuffer();
    ret.append("(");
    ret.append(type.getName());
    for(int i=0; i<getConstraints().size(); i++)
    {
      ret.append(" ");
      ret.append(getConstraints().get(i).toString());//+"\n");
    }
    ret.append(")");
    return ret.toString();
  }
}
origin: org.activecomponents.jadex/jadex-rules

buf.append(type.getName());
buf.append("_");
buf.append(id);
origin: org.activecomponents.jadex/jadex-rules

String tmpnamesin = tmptype.getName()+"_has_"+attrname;
String tmpnameplu = tmptype.getName()+"_has_"+attrnameplu;
origin: net.sourceforge.jadex/jadex-rules

String tmpnamesin = tmptype.getName()+"_has_"+attrname;
String tmpnameplu = tmptype.getName()+"_has_"+attrnameplu;
origin: net.sourceforge.jadex/jadex-kernel-bdi

String    kind    = state.getType(mgoal).getName();
kind    = kind.substring(1, kind.length()-4); // 'm<xyz>goal'
String type    = (String)state.getAttributeValue(mgoal, OAVBDIMetaModel.modelelement_has_name);
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the tag name for an object.
 */
public QName getTagName(Object object, IContext context)
{
  QName ret;
  IOAVState state = (IOAVState)context;
  
  if(state.containsObject(object))
  {
    String typename = state.getType(object).getName();
    ret = new QName(typename);
  }
  else
  {
    String clazzname = SReflect.getClassName(object.getClass());
    Namespace ns;
    int idx = clazzname.lastIndexOf(".");
    String pck = SXML.PROTOCOL_TYPEINFO+clazzname.substring(0, idx);
    String tag = clazzname.substring(idx+1);
    
    AWriteContext wc = (AWriteContext)context;
    ns = wc.getNamespace(pck);
    ret = new QName(ns.getURI(), tag, ns.getPrefix());
  }
  
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the tag name for an object.
 */
public QName getTagName(Object object, IContext context)
{
  QName ret;
  IOAVState state = (IOAVState)context;
  
  if(state.containsObject(object))
  {
    String typename = state.getType(object).getName();
    ret = new QName(typename);
  }
  else
  {
    String clazzname = SReflect.getClassName(object.getClass());
    Namespace ns;
    int idx = clazzname.lastIndexOf(".");
    String pck = SXML.PROTOCOL_TYPEINFO+clazzname.substring(0, idx);
    String tag = clazzname.substring(idx+1);
    
    AWriteContext wc = (AWriteContext)context;
    ns = wc.getNamespace(pck);
    ret = new QName(ns.getURI(), tag, ns.getPrefix());
  }
  
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-kernel-bdi

  public String getObjectName(Object obj)
  {
    String    name    = null;
    if(state.getType(obj).isSubtype(OAVBDIMetaModel.modelelement_type))
    {
      name    = (String)state.getAttributeValue(obj, OAVBDIMetaModel.modelelement_has_name);
    }
    
    if(name==null && state.getType(obj).isSubtype(OAVBDIMetaModel.elementreference_type))
    {
      name    = (String)state.getAttributeValue(obj, OAVBDIMetaModel.elementreference_has_concrete);
    }
    
    if(name==null && state.getType(obj).isSubtype(OAVBDIMetaModel.expression_type))
    {
      IParsedExpression    exp    =(IParsedExpression)state.getAttributeValue(obj, OAVBDIMetaModel.expression_has_parsed);
      String    text    = (String)state.getAttributeValue(obj, OAVBDIMetaModel.expression_has_text);
      name    = exp!=null ? exp.getExpressionText() : text!=null ? text.trim() : null;
    }
    
    if(name==null)
    {
      name    = ""+obj;
    }
    
    return obj instanceof String ? (String)obj : state.getType(obj).getName().substring(1) + " " + name;
  }
}
origin: net.sourceforge.jadex/jadex-rules

&& BasicTypeConverter.isBuiltInType(((OAVJavaType)state.getType(elem)).getClazz())))
linked = internalLinkObjects(state.getType(elem).getName(), elem, parent, state);	
jadex.rules.stateOAVObjectTypegetName

Javadoc

Get the name of the OAV object type.

Popular methods of OAVObjectType

  • getSupertype
    Get the supertype of this typ.
  • 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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ 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