com.sun.xml.registry.uddi.infomodel
Class SlotImpl

java.lang.Object
  extended by 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
SlotImpl()
          Default constructor
SlotImpl(String name, Collection values, String type)
          Utility constructor when name, type, and values are known.
SlotImpl(String name, String value, String type)
          Utility constructor when name, type, and one value are known.
 
Method Summary
 String getName()
          Getter for Slot name.
 String getSlotType()
          Getter for Slot type.
 Collection getValues()
          Getter for the Slot values
 void setName(String name)
          Setter for Slot name
 void setSlotType(String slotType)
          Setter for Slot type
 void setValues(Collection values)
          Setter for values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getName in interface Slot
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:
setName in interface Slot
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:
getSlotType in interface Slot
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:
setSlotType in interface Slot
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:
getValues in interface Slot
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:
setValues in interface Slot
Parameters:
values - the values for this Slot
Throws:
JAXRException - If the JAXR provider encounters an internal error


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.