public static interface IConfig.IPackage
Modifier and Type | Method and Description |
---|---|
IConfig.Location |
getLocation()
Returns the value of the
location property of the package. |
String |
getMain()
Returns resolved value of the
main propery of the package. |
String |
getName()
Returns the value of the
name property of the package. |
String getName()
name
property of the package.IConfig.Location getLocation()
location
property of the package.
Locations are relative to the baseUrl configuration value, unless they contain a protocol or start with a front slash (/).
String getMain()
main
propery of the package.
The main module is returned when someone does a require for the
package. The default config value is ./main
, so it needs to
be specified only if it differs from the default. Note that unlike
location
, which specifies the URI to a resource on the
server, main specifies a module id that is mapped to a server
resource using the defined paths and packages. The value returned by
this method is the resolved module id obtained by combining the
package name with the value specified for the main property in the
config JavaScript if the main property is relative, or the value of the
main property if it is non-relative.
main
property of the
package, or <package-name>/main
if no main property
is specified.Copyright © 2011-2015 IBM. All Rights Reserved.