Examples of StringName


Examples of org.dmd.dmc.types.StringName

     * This function indicates if the specified string the name of an AttributeDefinition.
     * @param name the name of a suspected attribute definition.
     * @return If the name is an attribute, its AttributeDefinition is returned; otherwise null is returned.
     */
    public AttributeDefinition isAttribute(String name){
      StringName nameKey = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

//    }
        return((AttributeDefinition)attrDefs.get(nameKey));
    }
   
    public EnumDefinition isEnum(String name){
      StringName nameKey = new StringName(name);
      return(enumDefs.get(nameKey));
    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

     * This function indicates if the specified string the name of an ActionDefinition.
     * @param name the name of a suspected action definition.
     * @return If the name is an action, its ActionDefinition is returned; otherwise null is returned.
     */
    public ActionDefinition isAction(String name){
      StringName nameKey = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

     * This function indicates if the specified string the name of a ClassDefinition.
     * @param name the name of a suspected class definition.
     * @return If the name is a class, its ClassDefinition is returned; otherwise null is returned.
     */
    public ClassDefinition isClass(String name){
      StringName nameKey = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

     * This function indicates if the specified string the name of a SchemaDefinition.
     * @param name the name of a suspected class definition.
     * @return If the name is a schema, its SchemaDefinition is returned; otherwise null is returned.
     */
    public SchemaDefinition isSchema(String name){
      StringName nameKey = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

     * @param name the name of a suspected definition.
     * @return If the name is that of any kind of definition, the definition is
     * returned as a generic object; otherwise null is returned.
     */
    public DmsDefinition isDefinition(String name){
      StringName nameKey = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

        ex.moreMessages(dve.getMessage());
      }
      throw(ex);
    }
     
      StringName ruleClassName = new StringName(rd.getName().getNameString() + "Data");
     
        if (checkAndAdd(rd.getObjectName(),rd,ruleDefs) == false){
          ResultException ex = new ResultException();
          ex.addError(clashMsg(rd.getObjectName(),rd,ruleDefs,"rule definitions"));
          throw(ex);
View Full Code Here

Examples of org.dmd.dmc.types.StringName

        }
       
        if (cd.getAbbrev() != null){
            // We have an abbreviation - so it must also be unique and
            // added to the appropriate maps
          StringName abbrevName = new StringName(cd.getAbbrev());
            if (checkAndAdd(abbrevName,cd,classDefs) == false){
              ResultException ex = new ResultException();
              ex.addError(clashMsg(abbrevName,cd,classDefs,"class abbreviations"));
              throw(ex);
            }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

        attrByID.put(ad.getDmdID(), ad);
       
        if (ad.getAbbrev() != null){
            // We have an abbreviation - so it must also be unique and
            // added to the appropriate maps
          StringName abbrevName = new StringName(ad.getAbbrev());
            if (checkAndAdd(abbrevName,ad,attrDefs) == false){
              ResultException ex = new ResultException();
              ex.addError(clashMsg(ad.getObjectName(),ad,attrDefs,"attribute abbreviation"));
              throw(ex);
            }
View Full Code Here

Examples of org.dmd.dmc.types.StringName

    /**
     * Returns the definition with the specified name if it exists.
     */
    public DmcNamedObjectIF findNamedObject(String name){
//      DebugInfo.debug("Looking for: " + name);
      StringName key = new StringName(name);
//      try {
//      nameKey.setNameString(name);
//    } catch (DmcValueException e) {
//      e.printStackTrace();
//    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.