Class SlotImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.SlotImpl
-
- All Implemented Interfaces:
Serializable,Slot
public class SlotImpl extends Object implements Slot, Serializable
Implementation of JAXR Slot.- Author:
- Bobby Bissett
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface javax.xml.registry.infomodel.Slot
ADDRESS_LINES_SLOT, AUTHORIZED_NAME_SLOT, OPERATOR_SLOT, SORT_CODE_SLOT
-
-
Constructor Summary
Constructors Constructor Description SlotImpl()Default constructorSlotImpl(String name, String value, String type)Utility constructor when name, type, and one value are known.SlotImpl(String name, Collection values, String type)Utility constructor when name, type, and values are known.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Getter for Slot name.StringgetSlotType()Getter for Slot type.CollectiongetValues()Getter for the Slot valuesvoidsetName(String name)Setter for Slot namevoidsetSlotType(String slotType)Setter for Slot typevoidsetValues(Collection values)Setter for values.
-
-
-
Constructor Detail
-
SlotImpl
public SlotImpl()
Default constructor
-
SlotImpl
public SlotImpl(String name, String value, String type)
Utility constructor when name, type, and one value are known.
-
SlotImpl
public SlotImpl(String name, Collection values, String type)
Utility constructor when name, type, and values are known.
-
-
Method Detail
-
getName
public String getName() throws JAXRException
Getter for Slot name. Default is a null string.- Specified by:
getNamein interfaceSlot- Returns:
- the name
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setName
public void setName(String name) throws JAXRException
Setter for Slot name- Specified by:
setNamein interfaceSlot- Parameters:
name- the name- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getSlotType
public String getSlotType() throws JAXRException
Getter for Slot type. Default is a null string.- Specified by:
getSlotTypein interfaceSlot- Returns:
- the slot type which is an arbitrary String
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setSlotType
public void setSlotType(String slotType) throws JAXRException
Setter for Slot type- Specified by:
setSlotTypein interfaceSlot- Parameters:
slotType- the slot type which is an arbitrary String- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getValues
public Collection getValues() throws JAXRException
Getter for the Slot values- Specified by:
getValuesin interfaceSlot- Returns:
- Collection of String instances representing the values for this Slot. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
String
-
setValues
public void setValues(Collection values) throws JAXRException
Setter for values. Null param will be treated as an empty collection.- Specified by:
setValuesin interfaceSlot- Parameters:
values- the values for this Slot- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-