use of com.helger.photon.uictrls.prism.HCPrismJS in project phoss-smp by phax.
the class SMPCommonUI method getExtensionDisplay.
@Nullable
public static IHCNode getExtensionDisplay(@Nonnull final ISMPHasExtension aHasExtension) {
final ICommonsList<com.helger.xsds.bdxr.smp1.ExtensionType> aExtensions = aHasExtension.extensions();
if (aExtensions.isEmpty())
return null;
final HCNodeList aNL = new HCNodeList();
for (final com.helger.xsds.bdxr.smp1.ExtensionType aExtension : aExtensions) {
if (aNL.hasChildren()) {
// add a separator line
aNL.addChild(new HCHR());
}
// Use only the XML element of the first extension
final Element aAny = (Element) aExtension.getAny();
final String sXML = XMLWriter.getNodeAsString(aAny);
aNL.addChild(new HCPrismJS(EPrismLanguage.MARKUP).addChild(sXML));
}
return aNL;
}
Aggregations