Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.StringName


        return(new WrapperGeneratorREF());
    }

    @Override
    protected StringName getNewName(){
        return(new StringName());
    }
View Full Code Here


        return(false);
    }

    // org.dmd.dms.util.DmoFormatter.getAccessFunctions(DmoFormatter.java:776)
    public int hashCode(){
        StringName objn = getObjectName();
        if (objn == null)
            return(0);
       
        return(objn.hashCode());
    }
View Full Code Here

    public MethodGeneratorREF add(Object v) throws DmcValueException {
        synchronized(this){
            MethodGeneratorREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            MethodGeneratorREF oldval = value.put(key,newval);
           
            if (oldval != null){
                // We had a value with this key, ensure that the value actually changed
                if (oldval.valuesAreEqual(newval))
View Full Code Here

        return(new MethodGeneratorREF());
    }

    @Override
    protected StringName getNewName(){
        return(new StringName());
    }
View Full Code Here

    public WrapperGeneratorREF add(Object v) throws DmcValueException {
        synchronized(this){
            WrapperGeneratorREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            WrapperGeneratorREF oldval = value.put(key,newval);
           
            if (oldval != null){
                // We had a value with this key, ensure that the value actually changed
                if (oldval.valuesAreEqual(newval))
View Full Code Here

            rc = new DependencyImplementationREF();
            rc.setName((DmcObjectName)value);
        }
        else if (value instanceof String){
            rc = new DependencyImplementationREF();
            rc.setName(new StringName((String)value));
        }
        else
            throw(new DmcValueException("Object of class:" + value.getClass().getName() + " passed where a DependencyImplementationREF/DMO or DmcObjectName expected."));
        return(rc);
    }
View Full Code Here

        return( new DependencyImplementationREF());
    }

    @Override
    protected StringName getNewName(){
        return( new StringName());
    }
View Full Code Here

        StringBuffer    sb  = new StringBuffer();
        initIndex();

        it = schema.allDefs.keySet().iterator();
        while(it.hasNext()){
            StringName  key         = it.next();
            String  firstChar   = key.getNameString().substring(0,1).toUpperCase();
            TreeMap<String,Token> charTree    = index.get(firstChar);

            charTree.put(key.getNameString().toUpperCase(), new Token(key.getNameString(),0,schema.allDefs.get(key)));
        }

        // Generate the index reference header in HTML format - this will be
        // placed at the top of each index page.
        sb.append("<P> <HR SIZE=3 NOSHADE>");
View Full Code Here

     * This function indicates if the specified string the name of a TypeDefinition.
     * @param name the name of a suspected type definition.
     * @return If the name is a type, its TypeDefinition is returned; otherwise null is returned.
     */
    public TypeDefinition isType(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 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

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.