Class LookupTable
java.lang.Object
com.aquima.interactions.ds.xml.model.LookupTable
Implementation of the lookup table interface.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(IElementDefinition definition) This method may be used to add an element definition to the lookup table.This method returns the element definition for the specified ID.This method returns the element definition for the specified name.int
This method returns the number of elements that are present in this table.protected List<IElementDefinition>
This functions returns all the currently known elements of a lookup table.protected GUID[]
getGuids()
protected String[]
getNames()
boolean
hasElementForGuid
(GUID guid) This method returns a boolean indicating if an element definition is present for the specified ID.boolean
hasElementForName
(String name) This method returns a boolean indicating if an element definition is present for the specified name.protected void
replaceElement
(IElementDefinition definition) protected void
-
Constructor Details
-
LookupTable
public LookupTable()
-
-
Method Details
-
addElement
This method may be used to add an element definition to the lookup table.- Parameters:
definition
- The element definition that should be added.
-
getElements
This functions returns all the currently known elements of a lookup table.- Returns:
- A list containing all known elements
-
replaceElement
-
getGuids
-
hasElementForGuid
This method returns a boolean indicating if an element definition is present for the specified ID.- Parameters:
guid
- The ID for which the presence of an element definition should be checked.- Returns:
- a boolean indicating if an element definition is present for the specified ID.
-
getByGuid
This method returns the element definition for the specified ID.- Parameters:
guid
- The ID for which the definition is requested.- Returns:
- The element definition with the specified ID.
-
getNames
-
hasElementForName
This method returns a boolean indicating if an element definition is present for the specified name.- Parameters:
name
- The name for which the presence of an element definition should be checked.- Returns:
- a boolean indicating if an element definition is present for the specified name.
-
getByName
This method returns the element definition for the specified name.- Parameters:
name
- The name for which the definition is requested.- Returns:
- The element definition with the specified name.
-
getElementCount
public int getElementCount()This method returns the number of elements that are present in this table.- Returns:
- the number of elements that are present in this table.
-
toArray
-