Package org.dmd.dmc

Examples of org.dmd.dmc.DmcClassInfo


    boolean rc = false;
    Iterator<ClassDefinitionREF> refs= obj.getObjectClass();
    while(refs.hasNext()){
      ClassDefinitionREF ref = refs.next();
      if (ref.getObject() == null){
        DmcClassInfo info = DmcOmni.instance().getClassInfo(ref.getObjectName().getNameString());
        if (ci.isInstanceOf(ref.getObjectName().getNameString())){
          rc = true;
          break;
        }
      }
View Full Code Here


   * also for any classes from which it is derived.
   * @param obj The object to be added.
   */
  public void addToIndices(DmwNamedObjectWrapper obj){
    synchronized (indices) {
      DmcClassInfo currentClass = obj.getConstructionClassInfo();
      HashMap<DmcObjectName, DmwNamedObjectWrapper> index = null;
     
      while(currentClass != null){
        index = indices.get(currentClass);
        if (index != null){
View Full Code Here

   * had been previously added.
   * @param obj
   */
  public void deleteFromIndices(DmwNamedObjectWrapper obj){
    synchronized (indices) {
      DmcClassInfo currentClass = obj.getConstructionClassInfo();
      HashMap<DmcObjectName, DmwNamedObjectWrapper> index = null;
     
      while(currentClass != null){
        index = indices.get(currentClass);
        if (index != null){
View Full Code Here

   * that may have to be applied.
   * @param ark the starting rule key
   * @param ruleList the rule list for the specified key.
   */
  private void initializeFromHere(AttributeRuleKey ark, RuleList<I> ruleList){
    DmcClassInfo base = ark.classInfo.derivedFrom;
   
    while(base != null){
      AttributeRuleKey baseKey = new AttributeRuleKey(ark.attrInfo, base);
      RuleList<I> baseRules = rules.get(baseKey);
     
View Full Code Here

   * The generated derived class will check for global class rules that may have to be applied.
   * @param ark the starting rule key
   * @param ruleList the rule list for the specified key.
   */
  private void initializeFromHere(ClassRuleKey crk, RuleList<I> ruleList){
    DmcClassInfo base = crk.classInfo.derivedFrom;
   
    while(base != null){
      ClassRuleKey baseKey = new ClassRuleKey(base);
      RuleList<I> baseRules = rules.get(baseKey);
     
View Full Code Here

        if (this.getIsNamedBy() != null){
          na = this.getIsNamedBy().getAttributeInfo();
        }
       
        if (getDerivedFrom() == null)
            classInfo = new DmcClassInfo(getName().getNameString(), getDmoImport(), getDmdID(), getClassType(), getDataType(), null, na);
        else
          classInfo = new DmcClassInfo(getName().getNameString(), getDmoImport(), getDmdID(), getClassType(), getDataType(), getDerivedFrom().getDynamicClassInfo(), na);

        if (getMaySize() > 0){
          for(AttributeDefinition ad: getMay())
            classInfo.addMay(ad.getAttributeInfo());
        }
View Full Code Here

      rc = (ClassFilter) value;
    else if (value instanceof DmcClassInfo){
      rc = new ClassFilter((DmcClassInfo)value);
    }
    else if (value instanceof String){
      DmcClassInfo info = DmcOmni.instance().getClassInfo((String)value);
      if (info == null)
        throw(new DmcValueException("Unknown class passed to ClassFilter: " + value.toString()));
      rc = new ClassFilter(info);
    }
    else{
View Full Code Here

    /**
     * @param obj The object to be initialized
     */
    public void execute(DmcObject obj) throws DmcRuleExceptionSet {
        DmcRuleExceptionSet rc = null;
        DmcClassInfo        cI = obj.getConstructionClassInfo();
        ArrayList<InitializationIF> ruleList = super.getRules(cI);

        if (ruleList != null){
            for(InitializationIF rule: ruleList){
                if (DmcOmni.instance().ruleTracing())
View Full Code Here

     * @param attribute The attribute to be validated
     */
    public void execute(DmcObject obj, DmcAttribute<?> attribute) throws DmcRuleExceptionSet {
        DmcRuleExceptionSet rc = null;
        DmcAttributeInfo    aI = attribute.getAttributeInfo();
        DmcClassInfo        cI = obj.getConstructionClassInfo();
        ArrayList<AttributeValidationIF> ruleList = super.getRules(aI,cI);

        if (ruleList != null){
            for(AttributeValidationIF rule: ruleList){
                if (DmcOmni.instance().ruleTracing())
View Full Code Here

    /**
     * @param obj The object to be validated:
     */
    public void execute(DmcUncheckedObject obj) throws DmcRuleExceptionSet {
        DmcRuleExceptionSet rc = null;
        DmcClassInfo        cI = DmcOmni.instance().getClassInfo(obj.getConstructionClass());
        ArrayList<UCOValidationIF> ruleList = super.getRules(cI);

        if (ruleList != null){
            for(UCOValidationIF rule: ruleList){
                if (DmcOmni.instance().ruleTracing())
View Full Code Here

TOP

Related Classes of org.dmd.dmc.DmcClassInfo

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.