All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vrap.codegen.languages.extensions.PropertyExtensions.kt Maven / Gradle / Ivy

Go to download

RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework

The newest version!
package io.vrap.codegen.languages.extensions

import io.vrap.rmf.raml.model.elements.NamedElement

/**
 * Returns true if this property is a pattern property.
 *
 * @return true iff. this is a pattern property
 */
fun NamedElement.isPatternProperty() = this.name.startsWith("/") && this.name.endsWith("/")


/**
 * Returns true if this property is an Attribute property.
 *
 * need to be implemented
 */
fun NamedElement.isAttributeProperty() = this.name.lowercase().contains("attribute")




© 2015 - 2024 Weber Informatics LLC | Privacy Policy