예제 #1
0
 public object Clone()
 {
     return(new SCIMSchemaAttribute(Id)
     {
         CanonicalValues = CanonicalValues == null ? new List <string>() : CanonicalValues.ToList(),
         CaseExact = CaseExact,
         Description = Description,
         MultiValued = MultiValued,
         Mutability = Mutability,
         Name = Name,
         ReferenceTypes = ReferenceTypes.ToList(),
         Required = Required,
         Returned = Returned,
         SubAttributes = SubAttributes.Select(s => (SCIMSchemaAttribute)s.Clone()).ToList(),
         Type = Type,
         Uniqueness = Uniqueness,
         DefaultValueInt = DefaultValueInt == null ? new List <int>() : DefaultValueInt.ToList(),
         DefaultValueString = DefaultValueString == null ? new List <string>() : DefaultValueString.ToList(),
         Id = Id
     });
 }
예제 #2
0
 public bool HasAttribute(SCIMSchemaAttribute attribute)
 {
     return(SubAttributes.Any(attr => attr.Id == attribute.Id || attr.HasAttribute(attribute)));
 }
예제 #3
0
 public void AddSubAttribute(SCIMSchemaAttribute subAttribute)
 {
     SubAttributes.Add(subAttribute);
 }
예제 #4
0
 public bool ShouldSerializeSubAttributes()
 {
     return(SubAttributes != null && SubAttributes.Any());
 }