@(identity: IdentitySchemaNode)
identity @{identity.getQName().getLocalName()} {
- @if(identity.getBaseIdentity() != null) {
- base "(@writeIdentityNs(identity.getBaseIdentity()))@{identity.getBaseIdentity()}";
+ @for(baseIdentity <- identity.getBaseIdentities()) {
+ base "(@writeIdentityNs(baseIdentity))@{baseIdentity}";
}
- @if(identity.getDescription() != null && !identity.getDescription().isEmpty()) {
- description "@{identity.getDescription()}";
+ @if(identity.getDescription().isPresent()) {
+ description "@{identity.getDescription().get()}";
}
- @if(identity.getReference() != null && !identity.getReference().isEmpty()) {
- reference "@{identity.getReference()}";
+ @if(identity.getReference().isPresent()) {
+ reference "@{identity.getReference().get()}";
}
@if(identity.getStatus() != Status.CURRENT) {
status @{identity.getStatus()};
@if(identity.getQName().getNamespace() != null) {
@{identity.getQName().getNamespace()}:
}
-}
\ No newline at end of file
+}