public class CustomFieldContainer extends Object implements Iterable<CustomField>
Constructor and Description |
---|
CustomFieldContainer() |
Modifier and Type | Method and Description |
---|---|
CustomField |
add(FieldType field)
Add a new custom field.
|
void |
deregisterValue(CustomFieldValueItem item)
Remove a value from the custom field value index.
|
CustomField |
get(FieldType field)
Retrieve configuration details for a given field.
|
List<CustomField> |
getCustomFieldsByFieldTypeClass(FieldTypeClass typeClass)
Retrieve a list of custom fields by type class.
|
CustomFieldValueItem |
getCustomFieldValueItemByGuid(UUID guid)
Retrieve a custom field value item by its guid.
|
CustomFieldValueItem |
getCustomFieldValueItemByUniqueID(int uniqueID)
Retrieve a custom field value item by its unique ID.
|
FieldType |
getFieldTypeByAlias(FieldTypeClass typeClass,
String alias)
Retrieve a field type from a particular entity using its alias.
|
CustomField |
getOrCreate(FieldType field)
Retrieve configuration details for a given field,
create a new CustomField entry if one does not exist.
|
Iterator<CustomField> |
iterator() |
void |
registerValue(CustomFieldValueItem item)
Add a value to the custom field value index.
|
void |
remove(FieldType field)
Remove a custom field.
|
int |
size()
Return the number of custom fields.
|
Stream<CustomField> |
stream()
Return a stream of CustomField instances.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CustomField get(FieldType field)
field
- target field typepublic CustomField getOrCreate(FieldType field)
field
- required fieldpublic CustomField add(FieldType field)
field
- field typepublic void remove(FieldType field)
field
- field type to removepublic FieldType getFieldTypeByAlias(FieldTypeClass typeClass, String alias)
typeClass
- the type of entity we are interested inalias
- the aliaspublic List<CustomField> getCustomFieldsByFieldTypeClass(FieldTypeClass typeClass)
typeClass
- required type classpublic int size()
public Iterator<CustomField> iterator()
iterator
in interface Iterable<CustomField>
public CustomFieldValueItem getCustomFieldValueItemByUniqueID(int uniqueID)
uniqueID
- custom field value unique IDpublic CustomFieldValueItem getCustomFieldValueItemByGuid(UUID guid)
guid
- custom field value guidpublic void registerValue(CustomFieldValueItem item)
item
- custom field value itempublic void deregisterValue(CustomFieldValueItem item)
item
- custom field value itempublic Stream<CustomField> stream()
Copyright © 2000–2024 Packwood Software. All rights reserved.