public class Type<T extends Type<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Type.TypeResources
Child mutators for Type
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
classification(Classification value)
Add the Classification object to the list of subresources
|
T |
classification(ClassificationSupplier supplier)
Install a supplied Classification object to the list of subresources
|
T |
classification(String childKey)
Create and configure a Classification object to the list of subresources
|
T |
classification(String childKey,
ClassificationConsumer consumer)
Create and configure a Classification object to the list of subresources
|
T |
classifications(List<Classification> value)
Add all Classification objects to this subresource
|
String |
getKey() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Type.TypeResources |
subresources() |
public Type(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Type.TypeResources subresources()
public T classifications(List<Classification> value)
value
- List of Classification objects.public T classification(Classification value)
value
- The Classification to addpublic T classification(String childKey, ClassificationConsumer consumer)
key
- The key for the Classification resourceconfig
- The ClassificationConsumer to usepublic T classification(String childKey)
key
- The key for the Classification resourcepublic T classification(ClassificationSupplier supplier)
Copyright © 2019 JBoss by Red Hat. All rights reserved.