Package org.dmd.dmt.shared.generated.types

Examples of org.dmd.dmt.shared.generated.types.SomeRelation


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


    public SomeRelation del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            SomeRelation key = null;
            SomeRelation 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));
           
            SomeRelation rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

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

            try {
                SomeRelation val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

    }
   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSVType(GenUtility.java:2010)
    public SomeRelation set(Object v) throws DmcValueException {
        SomeRelation rc = typeCheck(v);
        // We only return a value if the value actually changed. This supports
        // the applyModifier() mechanism on DmcObject where we only return true
        // if something changed as a result of the modifier
        if (value == null)
            value = rc;
View Full Code Here

    /**
     * @return The SomeRelation object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1827)
    public ObjWithRefs getNthMvIdxExtendedRef(int index){
        SomeRelation ref = ((ExtendedRefMVIDXDMO) core).getNthMvIdxExtendedRef(index);
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ObjWithRefs)ref.getObject().getContainer());
    }
View Full Code Here

    /**
     * @return The reference to the SomeRelation object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1873)
    public SomeRelation getNthMvIdxExtendedRefREF(int index){
        SomeRelation ref = ((ExtendedRefMVIDXDMO) core).getNthMvIdxExtendedRefREF(index);
        return(ref);
    }
View Full Code Here

    /**
     * @return The SomeRelation object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1827)
    public ObjWithRefs getNthSomeRelationIndexed(int index){
        SomeRelation ref = ((UsingIndexedAttributesDMO) core).getNthSomeRelationIndexed(index);
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ObjWithRefs)ref.getObject().getContainer());
    }
View Full Code Here

    /**
     * @return The reference to the SomeRelation object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1873)
    public SomeRelation getNthSomeRelationIndexedREF(int index){
        SomeRelation ref = ((UsingIndexedAttributesDMO) core).getNthSomeRelationIndexedREF(index);
        return(ref);
    }
View Full Code Here

    /**
     * @return The SomeRelation object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1827)
    public ObjWithRefs getNthSomeRelationMVI(int index){
        SomeRelation ref = ((TestAbstractExtendedDMO) core).getNthSomeRelationMVI(index);
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ObjWithRefs)ref.getObject().getContainer());
    }
View Full Code Here

TOP

Related Classes of org.dmd.dmt.shared.generated.types.SomeRelation

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.