com.adyen.model.nexo.MenuEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
package com.adyen.model.nexo;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
/**
* Definition: An entryof the menu to present to the Cashier -- Usage: It conveys messageType text and parameters of the menu entry. This output data could be only provided for an input command, in order to choose an entryof the menu.
*
* Java class for MenuEntry complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MenuEntry">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PredefinedContent" type="{}PredefinedContent" minOccurs="0"/>
* <element name="OutputText" type="{}OutputText" maxOccurs="unbounded" minOccurs="0"/>
* <element name="OutputXHTML" type="{}OutputXHTML" minOccurs="0"/>
* </sequence>
* <attribute name="MenuEntryTag" type="{}MenuEntryTagType" default="Selectable" />
* <attribute name="OutputFormat" use="required" type="{}OutputFormatType" />
* <attribute name="DefaultSelectedFlag" type="{}DefaultSelectedFlag" default="false" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MenuEntry", propOrder = {
"predefinedContent",
"outputText",
"outputXHTML"
})
public class MenuEntry {
/**
* The Predefined content.
*/
@XmlElement(name = "PredefinedContent")
protected PredefinedContent predefinedContent;
/**
* The Output text.
*/
@XmlElement(name = "OutputText")
protected List outputText;
/**
* The Output xhtml.
*/
@XmlElement(name = "OutputXHTML")
protected byte[] outputXHTML;
/**
* The Menu entry tag.
*/
@XmlAttribute(name = "MenuEntryTag")
protected MenuEntryTagType menuEntryTag;
/**
* The Output format.
*/
@XmlAttribute(name = "OutputFormat", required = true)
protected OutputFormatType outputFormat;
/**
* The Default selected flag.
*/
@XmlAttribute(name = "DefaultSelectedFlag")
protected Boolean defaultSelectedFlag;
/**
* Gets the value of the predefinedContent property.
*
* @return possible object is {@link PredefinedContent }
*/
public PredefinedContent getPredefinedContent() {
return predefinedContent;
}
/**
* Sets the value of the predefinedContent property.
*
* @param value allowed object is {@link PredefinedContent }
*/
public void setPredefinedContent(PredefinedContent value) {
this.predefinedContent = value;
}
/**
* Gets the value of the outputText property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the outputText property.
*
*
* For example, to add a new item, do as follows:
*
* getOutputText().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OutputText }
*
* @return the output text
*/
public List getOutputText() {
if (outputText == null) {
outputText = new ArrayList();
}
return this.outputText;
}
/**
* Gets the value of the outputXHTML property.
*
* @return possible object is byte[]
*/
public byte[] getOutputXHTML() {
return outputXHTML;
}
/**
* Sets the value of the outputXHTML property.
*
* @param value allowed object is byte[]
*/
public void setOutputXHTML(byte[] value) {
this.outputXHTML = value;
}
/**
* Gets the value of the menuEntryTag property.
*
* @return possible object is {@link MenuEntryTagType }
*/
public MenuEntryTagType getMenuEntryTag() {
if (menuEntryTag == null) {
return MenuEntryTagType.SELECTABLE;
} else {
return menuEntryTag;
}
}
/**
* Sets the value of the menuEntryTag property.
*
* @param value allowed object is {@link MenuEntryTagType }
*/
public void setMenuEntryTag(MenuEntryTagType value) {
this.menuEntryTag = value;
}
/**
* Gets the value of the outputFormat property.
*
* @return possible object is {@link OutputFormatType }
*/
public OutputFormatType getOutputFormat() {
return outputFormat;
}
/**
* Sets the value of the outputFormat property.
*
* @param value allowed object is {@link OutputFormatType }
*/
public void setOutputFormat(OutputFormatType value) {
this.outputFormat = value;
}
/**
* Gets the value of the defaultSelectedFlag property.
*
* @return possible object is {@link Boolean }
*/
public boolean isDefaultSelectedFlag() {
if (defaultSelectedFlag == null) {
return false;
} else {
return defaultSelectedFlag;
}
}
/**
* Sets the value of the defaultSelectedFlag property.
*
* @param value allowed object is {@link Boolean }
*/
public void setDefaultSelectedFlag(Boolean value) {
this.defaultSelectedFlag = value;
}
}