// // * (non-Javadoc) // * // * @see org.cip4.jdflib.core.JDFElement#getInvalidAttributes(org.cip4.jdflib. core.KElement.EnumValidationLevel, // * boolean, int) // public override VString getInvalidAttributes(EnumValidationLevel level, bool bIgnorePrivate, int nMax) { VString v = base.getInvalidAttributes(level, bIgnorePrivate, nMax); JDFResourceLink rl = (JDFResourceLink)getDeepParentChild(ElementName.RESOURCELINKPOOL); if (rl != null) { JDFAttributeMap rlMap = rl.getAttributeMap(); if (rlMap != null) { JDFAttributeMap map = getAttributeMap(); if (map != null) { IEnumerator <string> it = map.getKeyIterator(); while (it.MoveNext()) { string s = it.Current; if (rlMap.ContainsKey(s)) { v.Add(s); } } } } } return(v); }
/// /// <summary> * fitsMap - tests whether attribute map 'm' has a key specified by /// * BasicPreflightTest/@Name. If this the case, it is checked whether its /// * value fits the testlist. /// * </summary> /// * <param name="m"> /// * key-value pair attribute map to take the value from </param> /// * <returns> boolean - true, if 'm' has a key specified by BasicPreflightTest/@Name /// * and fitsValue(value) returns true </returns> /// public override sealed bool fitsMap(JDFAttributeMap m) { JDFBasicPreflightTest basicPreflightTest = getBasicPreflightTest(); if (basicPreflightTest == null) { return(false); } string n = basicPreflightTest.getName(); if (m.ContainsKey(n)) { string val = m.get(n); return(fitsValue(val)); } return(false); // __Lena__ ? false or smth else }