Examples of DmcTypeAttributeDefinitionREFSV


Examples of org.dmd.dms.generated.types.DmcTypeAttributeDefinitionREFSV

    /**
     * Returns the reference to AttributeDefinition without attempting lazy resolution (if turned on).
     */
    public AttributeDefinitionREF getApplyToAttributeREF(){
        DmcTypeAttributeDefinitionREFSV attr = (DmcTypeAttributeDefinitionREFSV) get(MetaDMSAG.__applyToAttribute);
        if (attr == null)
            return(null);

        return(attr.getSV());
    }
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeAttributeDefinitionREFSV

     */
    // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:699)
    public void setApplyToAttribute(AttributeDefinitionDMO value) {
        DmcAttribute<?> attr = get(MetaDMSAG.__applyToAttribute);
        if (attr == null)
            attr = new DmcTypeAttributeDefinitionREFSV(MetaDMSAG.__applyToAttribute);
        else
            ((DmcTypeAttributeDefinitionREFSV)attr).removeBackReferences();
       
        try{
            attr.set(value);
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeAttributeDefinitionREFSV

     * Sets applyToAttribute to the specified value.
     * @param value A value compatible with DmcTypeAttributeDefinitionREFSV
     */
    // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:867)
    public void setApplyToAttribute(Object value) throws DmcValueException {
        DmcTypeAttributeDefinitionREFSV attr  = (DmcTypeAttributeDefinitionREFSV) get(MetaDMSAG.__applyToAttribute);
        if (attr == null)
            attr = new DmcTypeAttributeDefinitionREFSV(MetaDMSAG.__applyToAttribute);
        else
            attr.removeBackReferences();
       
        attr.set(value);
        set(MetaDMSAG.__applyToAttribute,attr);
    }
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeAttributeDefinitionREFSV

    // The attribute passed here will always be an AttributeDefinition reference; this
    // is enforced by rules. We just have to handle things differently for single versus
    // multi-valued attributes.
   
    if (attribute.getAttributeInfo().valueType == ValueTypeEnum.SINGLE){
      DmcTypeAttributeDefinitionREFSV refsv = (DmcTypeAttributeDefinitionREFSV) attribute;
      AttributeDefinitionREF ref = refsv.getSV();
     
      try {
        checkReferencedAttribute(obj, attribute, ref.getObjectName().getNameString());
      } catch (DmcRuleException e) {
        rc = new DmcRuleExceptionSet();
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeAttributeDefinitionREFSV

      out.write("      </td>\n");
     
      out.write("    </tr>\n");
     
      DmcTypeClassDefinitionREFSV   applyToClass   = (DmcTypeClassDefinitionREFSV) ruleDMO.get(MetaDMSAG.__applyToClass);
      DmcTypeAttributeDefinitionREFSV  applyToAttr   = (DmcTypeAttributeDefinitionREFSV) ruleDMO.get(MetaDMSAG.__applyToAttribute);
      DmcTypeStringSV          description   = (DmcTypeStringSV) ruleDMO.get(MetaDMSAG.__description);
     
      if (applyToClass != null){
        out.write("    <tr>\n");
        out.write("      <td class=\"spacer\"> </td>\n");
        out.write("      <td class=\"spacer\"> </td>\n");
        out.write("      <td> Apply to class: </td>\n");
        out.write("      <td> " + applyToClass.getSV().getObjectName() + " </td>\n");
        out.write("    </tr>\n");
      }
     
      if (applyToAttr != null){
        out.write("    <tr>\n");
        out.write("      <td class=\"spacer\"> </td>\n");
        out.write("      <td class=\"spacer\"> </td>\n");
        out.write("      <td> Apply to attribute: </td>\n");
        out.write("      <td> " + applyToAttr.getSV().getObjectName() + " </td>\n");
        out.write("    </tr>\n");
      }
     
      if (description != null){
        out.write("    <tr>\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.