public class ServiceDescription
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServiceDescription.Image
Class representing an Image attribute of the serviceDescription.
|
Constructor and Description |
---|
ServiceDescription()
Constructor for the ServiceDescription object
|
ServiceDescription(org.dom4j.Element element) |
ServiceDescription(java.lang.String title,
java.lang.String description,
java.lang.String identifier)
Constructor for the ServiceDescription object, given title, description and type values.
|
Modifier and Type | Method and Description |
---|---|
void |
addContact(Contact contact)
Adds a contact instance to the serviceDescription.
|
void |
addContact(java.lang.String name,
java.lang.String email,
java.lang.String info)
Creates a Contact instance and adds it to the serviceDescription.
|
org.dom4j.Element |
asElement()
Returns serviceDescription as an dom4j.Element.
|
java.util.List |
getContacts() |
static ServiceDescription |
getFakeServiceDescription()
Gets the fakeServiceDescription attribute of the ServiceDescription class
|
ServiceDescription.Image |
getImage() |
static void |
main(java.lang.String[] args)
The main program for the ServiceDescription class
|
static ServiceDescription |
makeServiceDescription(DleseCollectionDocReader reader,
NDRConstants.NDRObjectType ndrObjType)
Creates a service description instance based on information provided as DleseCollectionDocReader.
|
static ServiceDescription |
makeServiceDescription(NCSCollectReader ncsDocReader,
NDRConstants.NDRObjectType ndrObjType)
Creates a service description instance based on information provided as NCSCollectReader.
|
void |
setDescription(java.lang.String description)
Sets the description attribute of the ServiceDescription object
|
void |
setIdentifier(java.lang.String type)
Sets the identifier attribute of the ServiceDescription object
|
void |
setImage(ServiceDescription.Image image)
Sets the image attribute of the ServiceDescription object
|
void |
setImage(java.lang.String brandUrl,
java.lang.String title,
java.lang.String width,
java.lang.String height,
java.lang.String alttext)
Creates an image instance and adds it to the ServiceDescription object
|
void |
setTitle(java.lang.String title)
Sets the title attribute of the ServiceDescription object
|
void |
setType(java.lang.String type)
Sets the type attribute of the ServiceDescription object
|
public ServiceDescription()
public ServiceDescription(java.lang.String title, java.lang.String description, java.lang.String identifier)
title
- NOT YET DOCUMENTEDdescription
- NOT YET DOCUMENTEDtype
- NOT YET DOCUMENTEDpublic ServiceDescription(org.dom4j.Element element)
public void addContact(java.lang.String name, java.lang.String email, java.lang.String info)
name
- contact nameemail
- contact emailinfo
- contact infopublic void addContact(Contact contact)
contact
- The Contact to be addedpublic java.util.List getContacts()
public void setImage(java.lang.String brandUrl, java.lang.String title, java.lang.String width, java.lang.String height, java.lang.String alttext)
brandUrl
- image brandUrltitle
- image titlewidth
- image widthheight
- image heightalttext
- image alttextpublic void setImage(ServiceDescription.Image image)
image
- The new image valuepublic ServiceDescription.Image getImage()
public void setTitle(java.lang.String title)
title
- The new title valuepublic void setDescription(java.lang.String description)
description
- The new description valuepublic void setType(java.lang.String type)
type
- The new type valuepublic void setIdentifier(java.lang.String type)
type
- The new identifier valuepublic org.dom4j.Element asElement()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic static ServiceDescription makeServiceDescription(NCSCollectReader ncsDocReader, NDRConstants.NDRObjectType ndrObjType)
ncsDocReader
- reader for a ncs_collect record.public static ServiceDescription makeServiceDescription(DleseCollectionDocReader reader, NDRConstants.NDRObjectType ndrObjType)
reader
- reader representing a dlese_collect recordpublic static ServiceDescription getFakeServiceDescription()