Example #1
0
 /**
  * Generates the prefixes for the specified construct.
  *
  * @param reifiable The construct to generate the prefixes for.
  */
 private void _generatePrefixes(final Reifiable reifiable) {
   if (reifiable instanceof Typed) {
     _getTopicReference(((Typed) reifiable).getType());
   }
   if (reifiable instanceof Scoped) {
     _generateTopicReferences(((Scoped) reifiable).getScope());
   }
   if (reifiable.getReifier() != null) {
     _getTopicReference(reifiable.getReifier());
   }
 }
Example #2
0
 /**
  * Adds the reifier (if any) to the attributes.
  *
  * @param reifiable The reifiable construct.
  */
 private void _addReifier(final Reifiable reifiable) {
   if (reifiable.getReifier() != null) {
     _addToAttributes("reifier", reifiable.getReifier());
   }
 }