Example #1
0
 public static boolean isAttribute(SNode node) {
   if (node == null) {
     return false;
   }
   SContainmentLink role = node.getContainmentLink();
   if (role == null) {
     return false;
   }
   return role.equals(
       MetaAdapterFactory.getContainmentLink(
           0xceab519525ea4f22L,
           0x9b92103b95ca8c0cL,
           0x10802efe25aL,
           0x47bf8397520e5942L,
           "smodelAttribute"));
 }
Example #2
0
 public static void setLink(SNode attribute, SContainmentLink link) {
   attribute.setProperty(
       MetaAdapterFactory.getProperty(
           0xceab519525ea4f22L,
           0x9b92103b95ca8c0cL,
           0x9d98713f247885aL,
           0x9d98713f249b587L,
           "linkId"),
       MetaIdHelper.getAggregation(link).serialize());
   attribute.setProperty(
       MetaAdapterFactory.getProperty(
           0xceab519525ea4f22L,
           0x9b92103b95ca8c0cL,
           0x9d98713f247885aL,
           0x9d98713f249b585L,
           "linkRole"),
       link.getName());
 }