Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.StringName


    schema     = sm;
    FQNAD    = schema.adef("FQN");
    parentFQNAD  = schema.adef("parentFQN");
    parser    = new DmcUncheckedOIFParser(this);
    factory    = new DmwObjectFactory(schema);
    nameKey    = new StringName();
  }
View Full Code Here


   
    // All objects have a well known construction class which is the first
    // entry in their objectClass attribute.
        DmcAttribute<?> attr = new DmcTypeClassDefinitionREFMV(__objectClass);
        try {
            attr.add(new StringName(oc));
      add(__objectClass,attr);
    } catch (DmcValueException e) {
      throw(new IllegalStateException("Setting the objectClass using a String shouldn't ever croak!", e));
    }
  }
View Full Code Here

    }
   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSVType(GenUtility.java:2010)
    public StringName set(Object v) throws DmcValueException {
        StringName 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(new TestOneLevelSubpackageREF());
    }

    @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

    }

    // If the class is auxiliary, we need the DmcTypeString to manipulate the ocl attribute
    if (cd != null){
      if (cd.getClassType() == ClassTypeEnum.AUXILIARY){
        types.put(new StringName("String"), MetaSchema._String);
      }
    }

    Iterator<TypeDefinition> t = types.values().iterator();
    while(t.hasNext()){
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 TestDerivedSubpackageREF add(Object v) throws DmcValueException {
        synchronized(this){
            TestDerivedSubpackageREF newval = typeCheck(v);
            if (value == null)
                initValue();
            StringName key = (StringName)((DmcMappedAttributeIF)newval).getKey();
            TestDerivedSubpackageREF 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(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

        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

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.