Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.StringName


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


        return( new RunContextREF());
    }

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

        return(new ObjWithRefsREF());
    }

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

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

        return( new ClassDefinitionREF());
    }

    @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 TestDerivedDiffSubpackageREF add(Object v) throws DmcValueException {
        synchronized(this){
            TestDerivedDiffSubpackageREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            TestDerivedDiffSubpackageREF 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 TestBasicNamedObjectExtendedREF());
    }

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

    public TestBasicNamedObjectFixedREF add(Object v) throws DmcValueException {
        synchronized(this){
            TestBasicNamedObjectFixedREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            TestBasicNamedObjectFixedREF 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

    public TestMultiLevelSubpackageREF add(Object v) throws DmcValueException {
        synchronized(this){
            TestMultiLevelSubpackageREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            TestMultiLevelSubpackageREF 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

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.