Package com.yahoo.searchdefinition
Class Application
- java.lang.Object
-
- com.yahoo.searchdefinition.Application
-
public class Application extends Object
A collection of objects representing the content of an application package. This is created, then added to, and lastly validated when there is no more content to add. At that point it is ready to use for deriving configuration.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description Application(com.yahoo.config.application.api.ApplicationPackage applicationPackage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Schema schema)
com.yahoo.config.application.api.ApplicationPackage
applicationPackage()
Map<String,Schema>
schemas()
Returns an unmodifiable list of the schemas of this applicationString
toString()
void
validate(com.yahoo.config.application.api.DeployLogger logger)
Validates this.
-
-
-
Method Detail
-
applicationPackage
public com.yahoo.config.application.api.ApplicationPackage applicationPackage()
-
add
public void add(Schema schema)
-
schemas
public Map<String,Schema> schemas()
Returns an unmodifiable list of the schemas of this application
-
validate
public void validate(com.yahoo.config.application.api.DeployLogger logger)
Validates this. Must be called after all content is added to it.
-
-