Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.StringName


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


        return( new AttributeDefinitionREF());
    }

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

        baseClasses     = null;
        allDerived      = null;
        allowedSubcomps = null;
        attachedActions = null;
        allActions      = null;
      nameKey     = new StringName();
    }
View Full Code Here

     
      Iterator<String> attrNames = uco.getAttributeNames();
      if (attrNames != null){
        while(attrNames.hasNext()){
          String    name = attrNames.next();
          StringName   attr = new StringName(name);
          if (!isAllowedAttribute(attr)){
            if (getClassType() == ClassTypeEnum.EXTENSIBLE){
              // Add the appropriate import for the attribute's type
              AttributeDefinition ad = sm.isAttribute(name);
             
View Full Code Here

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

        return( new SliceDefinitionREF());
    }

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

     
        StringBuffer   attrNameCapped   = new StringBuffer();
        attrNameCapped.append(attrName);
        attrNameCapped.setCharAt(0,Character.toUpperCase(attrNameCapped.charAt(0)));

        if (cd.isAllowedAttribute(new StringName(attrName))){
        if (attrDef.getValueType() == ValueTypeEnum.SINGLE){
          String value = obj.getSV(attrName);
                out.write("            _" + pf.sprintf(objName));
          out.write(".set" + attrNameCapped + "(");
          out.write("\"" + value + "\");\n");
View Full Code Here

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

        return( new ExtendedReferenceTypeDefinitionREF());
    }

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

   
    TestBasicNamedObjectFixedBinding  binding = new TestBasicNamedObjectFixedBinding();
    binding.setTracker(tracker);
   
    TestBasicNamedObjectFixedDMO  editObject = new TestBasicNamedObjectFixedDMO();
    editObject.setName(new StringName("object 1"));
    editObject.setSvString("single valued string");
   
    TestBasicObjectFixedDMO  obj1 = new TestBasicObjectFixedDMO();
    obj1.setSvBoolean(true);
    obj1.setSvString("object 1");
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.