Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.StringName


        return(new SomeRelation());
    }

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


   
    @Override
    // org.dmd.dms.util.GenUtility.dumpMVType(GenUtility.java:2363)
    public StringName add(Object v) throws DmcValueException {
        synchronized(this){
            StringName rc = typeCheck(v);
            if (value == null)
                value = new ArrayList<StringName>();
            value.add(rc);
            return(rc);
        }
View Full Code Here

    public StringName del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            StringName key = null;
            StringName rc = null;
            try {
                key = typeCheck(v);
            } catch (DmcValueException e) {
                throw(new IllegalStateException("Incompatible type passed to del():" + getName(),e));
            }
View Full Code Here

                throw(new IllegalStateException("Attribute: " + getAttributeInfo().name + " is not indexed. You can't use setMVnth()."));
           
            if ( (index < 0) || (index >= getAttributeInfo().indexSize))
                throw(new IllegalStateException("Index " + index + " for attribute: " + getAttributeInfo().name + " is out of range: 0 <= index < " + getAttributeInfo().indexSize));
           
            StringName rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

        synchronized(this){
            if (value == null)
                return(false);

            try {
                StringName val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
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

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

        return( new DmsDefinitionREF());
    }

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