public class BeanDatabaseImpl extends Object implements BeanDatabase
Modifier and Type | Method and Description |
---|---|
void |
dumpDatabase()
Dumps the type and instance names to stderr
|
void |
dumpDatabase(PrintStream output)
Dumps the type and instance names to the given stream
|
String |
dumpDatabaseAsString()
Dumps the type and instance names to a String for debugging
|
Set<Type> |
getAllTypes()
Gets an unmodifiable set of all the types in the bean database
|
Instance |
getInstance(String type,
String instanceKey)
Returns the instance with the given instanceKey from the
type with the given name
|
Type |
getType(String type)
Gets the type with the given name
|
String |
toString() |
public Set<Type> getAllTypes()
BeanDatabase
getAllTypes
in interface BeanDatabase
public Instance getInstance(String type, String instanceKey)
BeanDatabase
getInstance
in interface BeanDatabase
type
- The non-null name of the type to get the instance frominstanceKey
- The non-null key of the instancepublic Type getType(String type)
BeanDatabase
getType
in interface BeanDatabase
type
- The non-null namepublic void dumpDatabase()
BeanDatabase
dumpDatabase
in interface BeanDatabase
public void dumpDatabase(PrintStream output)
BeanDatabase
dumpDatabase
in interface BeanDatabase
output
- - The non-null outut stream to write the database topublic String dumpDatabaseAsString()
BeanDatabase
dumpDatabaseAsString
in interface BeanDatabase
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.