Package org.dmd.dmc.types

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


     * 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

     * 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

     * 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

     * @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

        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

        }
       
        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

        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

    /**
     * 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

     */
    public Dictionary getDict(){
        if (dict == null){
            Iterator<StringName>    it  = allDefs.keySet().iterator();
            int         id = Token.CUSTOM+1;
            StringName  key = null;

            dict = new Dictionary();
            while(it.hasNext()){
                key = (StringName)it.next();
                dict.add(new Token(key.getNameString(),id++,allDefs.get(key)));
            }
        }
        return(dict);
    }
View Full Code Here

TOP

Related Classes of org.dmd.dmc.types.StringName

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.