protected override DomObject SetNameCore(DomName name) { var newAttr = OwnerDocument.CreateAttribute(name); newAttr.DomValue = DomValue.Clone(); newAttr.CopyAnnotationsFrom(AnnotationList); return(ReplaceWith(newAttr)); }
protected virtual DomAttribute CloneCore() { var result = OwnerDocument.CreateAttribute(Name, Value); result.DomValue = DomValue.Clone(); result.CopyAnnotationsFrom(AnnotationList); return(result); }
public DomValue() { if (HasOverriddenConversion) { _impl = DomValue.CreateUserDefinedImpl(Convert, ConvertBack); } else { _impl = DomValue.CreateImpl <T>(); } }
private DomAttribute ApplySchema(DomAttribute attr) { if (Schema == null) { return(attr); } var def = Schema.AttributeDefinitions[attr.Name]; if (def != null && def.ValueType != null) { attr.DomValue = DomValue.Create(def.ValueType); } return(attr); }
public DomAttribute AppendValue(object value) { InvalidatingValue(() => DomValue.AppendValue(value)); return(this); }