Exemplo n.º 1
0
 private bool isAttribute(JProperty property)
 {
     return property.IsValueProperty() ||
         property.Name == SPEC_CHILD_ID ||               // id attr that all types can have
         (property.Name == SPEC_CHILD_URL && position.Element.Name == "extension") ||     // url attr of extension
         (property.Name == SPEC_CHILD_URL && position.Element.Name == "modifierExtension") ||     // url attr of modifierExtension parent
         (property.Name == SPEC_CHILD_CONTENTTYPE && position.Element.Name == "Binary");     // contentType attr of Binary resource
 }