Skip to content

Commit

Permalink
reverting back the values of the domain names to avoid breaking old c…
Browse files Browse the repository at this point in the history
…ode (#257)

* reverting back the values of the domain names to avoid breaking old
code.

* Update adaptorInterfaceServices.mtl
  • Loading branch information
jadelkhoury committed Oct 23, 2022
1 parent 33db6eb commit 4a303f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public interface [javaInterfaceNameForConstants(aDomainSpecification) /]
// [protected ('user constants')]
// [/protected]

/**
* @deprecated use {@link [javaInterfaceNameForConstants(aDomainSpecification)/]#[domainSpecificationImplicitVocabularyNamespaceConstantName(aDomainSpecification)/]} or {@link [javaInterfaceNameForConstants(aDomainSpecification)/]#[domainSpecificationConstantName(aDomainSpecification)/]} instead
*/
@Deprecated(since = "5.0.1")
public static String [domainSpecificationDeprecatedConstantName(aDomainSpecification)/] = "[domainSpecificationImplicitVocabularyNamespaceValue(aDomainSpecification)/]";
public static String [domainSpecificationConstantName(aDomainSpecification)/] = "[aDomainSpecification.name/]";
public static String [domainSpecificationImplicitVocabularyNamespaceConstantName(aDomainSpecification)/] = "[domainSpecificationImplicitVocabularyNamespaceValue(aDomainSpecification)/]"; //Vocabulary namespace for the resources and resource properties, when no explicit vocabulary (describes, or propertyDefinition) is defined
public static String [domainSpecificationImplicitVocabularyNamespacePrefixConstantName(aDomainSpecification)/] = "[domainSpecificationImplicitVocabularyNamespacePrefixValue(aDomainSpecification)/]"; //Vocabulary prefix for the resources and resource properties, when no explicit vocabulary (describes, or propertyDefinition) is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,14 @@ endif)
javaConstantString(aDomainSpecification.name)
/]

[query public domainSpecificationConstantName(aDomainSpecification : DomainSpecification) : String =
[query public domainSpecificationDeprecatedConstantName(aDomainSpecification : DomainSpecification) : String =
javaConstantName(aDomainSpecification).concat('_DOMAIN')
/]

[query public domainSpecificationConstantName(aDomainSpecification : DomainSpecification) : String =
javaConstantName(aDomainSpecification).concat('_DOMAIN_NAME')
/]

[query public domainSpecificationImplicitVocabularyNamespaceConstantName(aDomainSpecification : DomainSpecification) : String =
javaConstantName(aDomainSpecification).concat('_NAMSPACE')
/]
Expand Down

0 comments on commit 4a303f1

Please sign in to comment.