public string GetMaskedValue(IObjectFacade objectFacade) { var mask = nakedObjectActionParameter.GetFacet <IMaskFacet>(); if (objectFacade == null) { return(null); } var no = ((ObjectFacade)objectFacade).WrappedNakedObject; return(mask != null?no.Spec.GetFacet <ITitleFacet>().GetTitleWithMask(mask.Value, no, framework.NakedObjectManager) : no.TitleString()); }
public static bool IsParseableOrCollectionOfParseable(this INakedObjectsFramework framework, IActionParameterSpec parmSpec) { var spec = parmSpec.Spec; return(spec.IsParseable || (spec.IsCollection && parmSpec.GetFacet <IElementTypeFacet>().ValueSpec.IsParseable)); }