public class LayoutParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static Layout |
parseAppId(String appId)
Parse the layout associated with the specified application id.
|
static Layout |
parseDocument(Document document)
Parse the layout from an XML document.
|
static Layout |
parseElement(ElementBase root)
Parse the layout from the UI.
|
static Layout |
parseProperty(LayoutIdentifier layoutId)
Parse the layout from a stored layout.
|
static Layout |
parseResource(String resource)
Loads a layout from the specified resource, using a registered layout loader or, failing
that, using the default loadFromUrl method.
|
static Layout |
parseStream(InputStream stream)
Parse layout from an input stream.
|
static Layout |
parseText(String xml)
Parse the layout from XML content.
|
public static Layout parseResource(String resource)
resource - The resource to be loaded.public static Layout parseText(String xml)
xml - The XML content to parse.public static Layout parseStream(InputStream stream)
stream - The input stream.public static Layout parseProperty(LayoutIdentifier layoutId)
layoutId - Layout identifier.public static Layout parseAppId(String appId)
appId - An application id.public static Layout parseDocument(Document document)
document - An XML document.public static Layout parseElement(ElementBase root)
root - Root UI element.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.