Example #1
0
 internal SupportedClass(
     SupportedClassAttribute supportedClassAttribute,
     string contextPrefix,
     NodeShape?nodeShape = null)
 {
     Description    = supportedClassAttribute.Description;
     Id             = new Uri($"{contextPrefix}:{supportedClassAttribute.Id}");
     PropertyShapes = nodeShape?.WithContextPrefix(contextPrefix).PropertyShapes;
     Title          = supportedClassAttribute.Title;
     Types          = nodeShape == null ? new[] { "Class" } : new[] { "Class", "NodeShape" };
 }
Example #2
0
 internal SupportedClass(SupportedClassAttribute supportedClassAttribute)
 {
     Description = supportedClassAttribute.Description;
     Id          = supportedClassAttribute.Id;
     Title       = supportedClassAttribute.Title;
 }