file_id
int64 1
215k
| content
stringlengths 7
454k
| repo
stringlengths 6
113
| path
stringlengths 6
251
|
---|---|---|---|
213,380 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.app.plugin.core.programtree;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.dnd.*;
import java.awt.event.KeyEvent;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.tree.*;
import docking.DockingUtils;
import docking.actions.KeyBindingUtils;
import docking.dnd.*;
import docking.widgets.table.AutoscrollAdapter;
import generic.theme.GColor;
import generic.theme.GThemeDefaults.Colors;
/**
* Class to support Drag and Drop; it is also responsible for
* rendering the icons, and for editing a node name.
* <p>The nodes that are used in this class are ProgramNode objects.</p>
*/
public abstract class DragNDropTree extends JTree implements Draggable, Droppable, Autoscroll {
private static final Color BG_COLOR_DRAG_NO_SELECTION = new GColor("color.bg.tree.drag");
private AutoscrollAdapter autoscroller;
protected DefaultTreeModel treeModel;
protected DragSource dragSource;
protected DragGestureAdapter dragGestureAdapter;
protected TreeDragSrcAdapter dragSourceAdapter;
protected int dragAction = DnDConstants.ACTION_COPY_OR_MOVE;
protected DropTarget dropTarget;
protected DropTgtAdapter dropTargetAdapter;
protected ProgramNode root;
protected ProgramTreeCellEditor cellEditor;
protected Color plafSelectionColor;
protected DnDTreeCellRenderer dndCellRenderer;
protected boolean drawFeedback;
protected ProgramNode[] draggedNodes; // node being transferred
protected ProgramNode destinationNode; // target for drop site
// data flavors that this tree can support
protected DataFlavor[] acceptableFlavors; // filled in by the
// getAcceptableDataFlavors() method
protected TreeTransferable transferable;
protected Color nonSelectionDragColor;
protected int relativeMousePos; // mouse position within the node:
public DragNDropTree(DefaultTreeModel model) {
super(model);
setBackground(new GColor("color.bg.tree"));
treeModel = model;
this.root = (ProgramNode) model.getRoot();
//setEditable(true); // edit interferes with drag gesture listener
setShowsRootHandles(true); // need this to "drill down"
cellEditor = new ProgramTreeCellEditor();
setCellEditor(cellEditor);
dndCellRenderer = new DnDTreeCellRenderer();
setCellRenderer(dndCellRenderer);
plafSelectionColor = dndCellRenderer.getBackgroundSelectionColor();
nonSelectionDragColor = BG_COLOR_DRAG_NO_SELECTION;
initDragNDrop();
ToolTipManager.sharedInstance().registerComponent(this);
autoscroller = new AutoscrollAdapter(this, getRowHeight());
disableJTreeTransferActions();
}
//// Draggable interface methods
/**
* Return true if the location in the event is draggable.
*/
@Override
public boolean isStartDragOk(DragGestureEvent e) {
synchronized (root) {
Point p = e.getDragOrigin();
ProgramNode node = getTreeNode(p);
if (node == null || node.equals(root)) {
return false;
}
if (isEditing()) {
stopEditing();
}
return true;
}
}
/**
* Called by the DragGestureAdapter to start the drag.
*/
@Override
public DragSourceListener getDragSourceListener() {
return dragSourceAdapter;
}
/**
* Called by the DragGestureAdapter and the DragSourceAdapter to
* know what actions this component allows.
*/
@Override
public int getDragAction() {
return DnDConstants.ACTION_COPY_OR_MOVE;
}
/**
* Called by the DragGestureAdapter when the drag is about to
* start.
*/
@Override
public Transferable getTransferable(Point p) {
synchronized (root) {
TreePath[] selectionPaths = getSelectionPaths();
if (selectionPaths == null || selectionPaths.length == 0) {
return null;
}
ProgramNode[] nodes = new ProgramNode[selectionPaths.length];
for (int i = 0; i < nodes.length; i++) {
nodes[i] = (ProgramNode) selectionPaths[i].getLastPathComponent();
}
transferable = new TreeTransferable(nodes);
draggedNodes = nodes;
return transferable;
}
}
/**
* Do the move operation. Called from the DragSourceAdapter
* when the drop completes and the user action was a
* DnDConstants.MOVE.
*/
@Override
public abstract void move();
/**
* Called from the DragSourceAdapter when the drag operation exits the
* drop target without dropping.
*/
@Override
public void dragCanceled(DragSourceDropEvent event) {
draggedNodes = null;
dndCellRenderer.setBackgroundSelectionColor(plafSelectionColor);
dndCellRenderer
.setBackgroundNonSelectionColor(dndCellRenderer.getBackgroundNonSelectionColor());
}
//////////////////////////////////////////////////////////////////////
// Droppable interface methods
/**
* Return true if OK to drop at the location specified in the event.
*/
@Override
public boolean isDropOk(DropTargetDragEvent e) {
synchronized (root) {
Point p = e.getLocation();
ProgramNode targetNode = getTreeNode(p);
if (isEditing()) {
stopEditing();
}
if (targetNode == null) {
return false;
}
if (dragSelectionContainsTarget(targetNode)) {
return false;
}
if (draggedNodes == null) {
// could be another kind of transferable
return isDropSiteOk(targetNode, e);
}
// This is tree node transferable...
if (draggedNodes.length > 0 && draggedNodes[0].equals(root)) {
return false;
}
return !dragSelectionContainsDescendant(targetNode);
}
}
private boolean dragSelectionContainsTarget(ProgramNode targetNode) {
if (draggedNodes == null) {
return false;
}
for (ProgramNode draggedNode : draggedNodes) {
if (targetNode.equals(draggedNode)) {
return true;
}
}
return false;
}
private boolean dragSelectionContainsDescendant(ProgramNode targetNode) {
if (draggedNodes == null) {
return false;
}
for (ProgramNode draggedNode : draggedNodes) {
if (targetNode.isNodeAncestor(draggedNode)) {
return true;
}
}
return false;
}
/**
* Called from the DropTgtAdapter when the drag operation is going over a drop site; indicate
* when the drop is OK by providing appropriate feedback.
* @param ok true means OK to drop
*/
@Override
public void dragUnderFeedback(boolean ok, DropTargetDragEvent e) {
synchronized (root) {
drawFeedback = true;
cancelEditing();
if (ok) {
Point p = e.getLocation();
TreePath path = getPathForLocation(p.x, p.y);
if (path == null) {
return;
}
destinationNode = (ProgramNode) path.getLastPathComponent();
relativeMousePos = comparePointerLocation(p, destinationNode);
int action = e.getDropAction();
dragSourceAdapter.setFeedbackCursor(null);
Cursor c = dragSourceAdapter.getDropOkCursor(action);
if (relativeMousePos != 0) {
drawFeedback = false;
c = dragSourceAdapter.getCursor(action, relativeMousePos);
}
else {
dndCellRenderer.setSelectionForDrag(plafSelectionColor);
dndCellRenderer.setNonSelectionForDrag(nonSelectionDragColor);
}
dragSourceAdapter.setFeedbackCursor(c);
}
else {
destinationNode = null;
dndCellRenderer.setSelectionForDrag(Colors.ERROR);
dndCellRenderer.setNonSelectionForDrag(Colors.ERROR);
}
Point p = e.getLocation();
dndCellRenderer.setRowForFeedback(getRowForLocation(p.x, p.y));
repaint();
}
}
/**
* Called from the DropTgtAdapter to revert any feedback
* changes back to normal.
*/
@Override
public void undoDragUnderFeedback() {
synchronized (root) {
drawFeedback = false;
}
repaint();
}
/**
* Add the data to the tree. Called from the DropTgtAdapter
* when the drop completes and the user action was a
* DnDConstants.COPY.
*/
@Override
public abstract void add(Object data, DropTargetDropEvent e, DataFlavor chosen);
///////////////////////////////////////////////////////////
// Autoscroll Interface methods
///////////////////////////////////////////////////////////
/**
* This method returns the <code>Insets</code> describing
* the autoscrolling region or border relative
* to the geometry of the implementing Component; called
* repeatedly while dragging.
* @return the Insets
*/
@Override
public Insets getAutoscrollInsets() {
return autoscroller.getAutoscrollInsets();
}
/**
* Notify the <code>Component</code> to autoscroll; called repeatedly
* while dragging.
* <P>
* @param p A <code>Point</code> indicating the
* location of the cursor that triggered this operation.
*/
@Override
public void autoscroll(Point p) {
autoscroller.autoscroll(p);
}
///////////////////////////////////////////////////////////////
// protected methods
///////////////////////////////////////////////////////////////
/**
* Get the data flavors that this tree supports.
*/
protected abstract DataFlavor[] getAcceptableDataFlavors();
/**
* Return true if the node can accept the drop as indicated by the event.
* @param e event that has current state of drag and drop operation
* @return true if drop is OK
*/
protected abstract boolean isDropSiteOk(ProgramNode node, DropTargetDragEvent e);
/**
* Get the string to use as the tool tip for the specified node.
*/
protected abstract String getToolTipText(ProgramNode node);
/**
* Get the node at the given point.
* @return null if there is no node a the point p.
*/
protected ProgramNode getTreeNode(Point p) {
TreePath path = getPathForLocation(p.x, p.y);
if (path != null) {
return (ProgramNode) path.getLastPathComponent();
}
return null;
}
/**
* Return the drawFeedback state.
*/
boolean getDrawFeedbackState() {
return drawFeedback;
}
//////////////////////////////////////////////////////////////////////
// *** private methods
//////////////////////////////////////////////////////////////////////
/**
* Set up the drag and drop stuff.
*/
private void initDragNDrop() {
acceptableFlavors = getAcceptableDataFlavors();
// set up drop stuff
dropTargetAdapter =
new DropTgtAdapter(this, DnDConstants.ACTION_COPY_OR_MOVE, acceptableFlavors);
dropTarget =
new DropTarget(this, DnDConstants.ACTION_COPY_OR_MOVE, dropTargetAdapter, true);
dropTarget.setActive(true);
// set up drag stuff
dragSource = DragSource.getDefaultDragSource();
dragGestureAdapter = new DragGestureAdapter(this);
dragSourceAdapter = new TreeDragSrcAdapter(this);
dragSource.createDefaultDragGestureRecognizer(this, dragAction, dragGestureAdapter);
}
private void disableJTreeTransferActions() {
KeyBindingUtils.clearKeyBinding(this,
KeyStroke.getKeyStroke(KeyEvent.VK_C, DockingUtils.CONTROL_KEY_MODIFIER_MASK));
KeyBindingUtils.clearKeyBinding(this,
KeyStroke.getKeyStroke(KeyEvent.VK_V, DockingUtils.CONTROL_KEY_MODIFIER_MASK));
KeyBindingUtils.clearKeyBinding(this,
KeyStroke.getKeyStroke(KeyEvent.VK_X, DockingUtils.CONTROL_KEY_MODIFIER_MASK));
}
/**
* Determine where the mouse pointer is within the node.
* @return -1 if the mouse pointer is in the upper quarter of the node, 1 if the mouse pointer
* is in the lower quarter of the node, or 0 if the mouse pointer is in the center of the node.
*/
int comparePointerLocation(Point p, ProgramNode node) {
int localRowHeight = getRowHeight();
int row = this.getRowForPath(node.getTreePath());
Rectangle rect = getRowBounds(row);
if (p.y == rect.y) {
return 1;
}
if ((p.y - rect.y) <= localRowHeight) {
int delta = localRowHeight - (p.y - rect.y);
int sliceSize = localRowHeight / 4;
if (delta < sliceSize) {
return 1; // in the lower part of the node
}
if (delta > (sliceSize * 3)) {
return -1; // in the upper part of the node
}
}
return 0;
}
//////////////////////////////////////////////////////////////////////
/**
* TreeCellEditor for the program tree.
*/
protected class ProgramTreeCellEditor extends DefaultTreeCellEditor {
/**
* Construct a new ProgramTreeCellEditor.
*/
public ProgramTreeCellEditor() {
super(DragNDropTree.this, null);
}
/**
* Override this method in order to select the contents of
* the editing component which is a JTextField.
*/
@Override
public boolean shouldSelectCell(EventObject anEvent) {
((JTextField) editingComponent).selectAll();
return super.shouldSelectCell(anEvent);
}
}
}
| NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/DragNDropTree.java |
213,381 | package jmri.jmrit.display.palette;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.HashMap;
import java.util.Map.Entry;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import jmri.jmrit.catalog.CatalogPanel;
import jmri.jmrit.catalog.NamedIcon;
import jmri.util.swing.ImagePanel;
import jmri.util.swing.JmriJOptionPane;
/**
* This class is used when FamilyItemPanel classes add, modify or delete icon
* families.
*
* Note this class cannot be used with super classes of FamilyItemPanel
* (ItemPanel etc) since there are several casts to FamilyItemPanel.
*
* @author Pete Cressman Copyright (c) 2010, 2011, 2020
*/
public class IconDialog extends ItemDialog {
protected String _family;
protected HashMap<String, NamedIcon> _iconMap;
protected ImagePanel _iconEditPanel;
protected CatalogPanel _catalog;
protected final JLabel _nameLabel;
/**
* Constructor for an existing family to change icons, add/delete icons, or to
* delete the family entirely.
* @param type itemType
* @param family icon family name
* @param parent the ItemPanel calling this class
*/
public IconDialog(String type, String family, FamilyItemPanel parent) {
super(type, Bundle.getMessage("ShowIconsTitle", family), parent);
_family = family;
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.add(Box.createVerticalStrut(ItemPalette.STRUT_SIZE));
JPanel p = new JPanel();
_nameLabel = new JLabel(Bundle.getMessage("FamilyName", family));
p.add(_nameLabel);
panel.add(p);
_iconEditPanel = new ImagePanel();
_iconEditPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black, 1),
Bundle.getMessage("PreviewBorderTitle")));
if (!_parent.isUpdate()) {
_iconEditPanel.setImage(_parent._frame.getPreviewBackground());
} else {
_iconEditPanel.setImage(_parent._frame.getBackground(0)); //update always should be the panel background
}
panel.add(_iconEditPanel); // put icons above buttons
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
makeDoneButtonPanel(buttonPanel, "ButtonDone");
panel.add(buttonPanel);
p = new JPanel();
p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
p.add(panel);
_catalog = makeCatalog();
p.add(_catalog);
JScrollPane sp = new JScrollPane(p);
setContentPane(sp);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
cancel();
}
});
}
protected void setMap(HashMap<String, NamedIcon> iconMap) {
if (iconMap != null) {
_iconMap = IconDialog.clone(iconMap);
} else {
_iconMap = _parent.makeNewIconMap(_type);
}
if (!(_type.equals("MultiSensor") || _type.equals("SignalHead"))) {
ItemPanel.checkIconMap(_type, _iconMap);
}
_parent.addIconsToPanel(_iconMap, _iconEditPanel, true);
setLocationRelativeTo(_parent);
setVisible(true);
pack();
log.debug("setMap: initialization done.");
}
private CatalogPanel makeCatalog() {
CatalogPanel catalog = CatalogPanel.makeDefaultCatalog(false, false, true);
catalog.setToolTipText(Bundle.getMessage("ToolTipDragIcon"));
ImagePanel panel = catalog.getPreviewPanel();
if (!_parent.isUpdate()) {
panel.setImage(_parent._frame.getPreviewBackground());
} else {
panel.setImage(_parent._frame.getBackground(0)); //update always should be the panel background
}
return catalog;
}
// for _parent to update when background is changed
protected ImagePanel getIconEditPanel() {
return _iconEditPanel;
}
// for _parent to update when background is changed
protected ImagePanel getCatalogPreviewPanel() {
return _catalog.getPreviewPanel();
}
/**
* Action for both create new family and change existing family.
* @return true if success
*/
protected boolean doDoneAction() {
if (log.isDebugEnabled()) {
log.debug("doDoneAction: {} for {} family= {}", (_parent._update?"Update":""), _type, _family);
}
if (_family == null || _family.isEmpty()) {
JmriJOptionPane.showMessageDialog(this, Bundle.getMessage("NoFamilyName"),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
HashMap<String, HashMap<String, NamedIcon>> families = ItemPalette.getFamilyMaps(_type);
String family;
HashMap<String, NamedIcon> catalogSet = families.get(_family);
boolean nameUsed;
if (catalogSet == null) {
family = _parent.findFamilyOfMap(null, _iconMap, families);
nameUsed = false;
} else {
family = _parent.findFamilyOfMap(_family, _iconMap, families);
nameUsed = true; // the map is found under another name than _family
}
if (family != null ) { // "new" map is stored
boolean sameMap = _parent.mapsAreEqual(_iconMap, families.get(family));
if (!mapInCatalogOK(sameMap, nameUsed, _family, family)) {
return false;
}
} else {
boolean sameMap;
if (catalogSet == null) {
sameMap = false;
} else {
sameMap = _parent.mapsAreEqual(catalogSet, _iconMap);
}
if (!mapNotInCatalogOK(sameMap, nameUsed, _family)) {
return false;
}
}
_parent.dialogDoneAction(_family, _iconMap);
return true;
}
/**
*
* @param sameMap Map edited in dialog is the same as map found in catalog
* @param nameUsed Name as edited in dialog is the same as name found in catalog
* @param editFamily Map name as edited in this dialog
* @param catalogFamily Map name as found in the catalog
* @return false if not OK
*/
protected boolean mapInCatalogOK(boolean sameMap, boolean nameUsed, String editFamily, String catalogFamily) {
log.debug("doDoneAction: map of {} in storage with name= {}", editFamily, catalogFamily);
if (_parent._update) {
if (!catalogFamily.equals(editFamily)) {
JmriJOptionPane.showMessageDialog(this, Bundle.getMessage("CannotChangeName", editFamily, catalogFamily),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
} else {
log.debug("doDoneAction: name {} {} used and map {} same as {}",
editFamily, (nameUsed?"is":"NOT"), (sameMap?"":"NOT"), catalogFamily);
if (catalogFamily.equals(editFamily)) {
if (!sameMap) {
JmriJOptionPane.showMessageDialog(this,
Bundle.getMessage("DuplicateFamilyName", editFamily, _type, Bundle.getMessage("UseAnotherName")),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
} else {
if (sameMap) {
String oldFamily = _parent.getFamilyName(); // if oldFamily != null, this is an edit, not new set
if (oldFamily != null) { // editing an catalog set
if (nameUsed) {
JmriJOptionPane.showMessageDialog(this, Bundle.getMessage("SameNameSet", editFamily, catalogFamily),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
} else {
if (!nameUsed) {
JmriJOptionPane.showMessageDialog(this,
Bundle.getMessage("DuplicateFamilyName", editFamily,
_type, Bundle.getMessage("CannotUseName", catalogFamily)),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
}
}
}
}
return true;
}
/**
* Edited map is not in the catalog.
*
* @param sameMap Map edited in dialog is the same as map currently held in parent item panel
* @param nameUsed Name as edited in dialog is the same as a name found in catalog
* @param editFamily Map name as edited in this dialog
* @return false if not OK
*/
protected boolean mapNotInCatalogOK(boolean sameMap, boolean nameUsed, String editFamily) {
String oldFamily = _parent.getFamilyName();
if (_parent._update) {
if (nameUsed) { // name is a key to stored map
log.debug("{} keys a stored map. name is used", editFamily);
JmriJOptionPane.showMessageDialog(this, Bundle.getMessage("NeedDifferentName", editFamily),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
} else {
if (oldFamily != null) { // editing an catalog set from parent
log.debug("Editing set {}. {} {} a stored map.", oldFamily, editFamily, (nameUsed?"is":"NOT"));
if (nameUsed) { // map in catalog under another name
if (!editFamily.equals(oldFamily)) { // named changed
if (!sameMap) { // also map changed
JmriJOptionPane.showMessageDialog(this, Bundle.getMessage("badReplaceIconSet", oldFamily, editFamily),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
}
} else {
int result = JmriJOptionPane.showOptionDialog(this,
Bundle.getMessage("ReplaceFamily", oldFamily, editFamily),
Bundle.getMessage("QuestionTitle"), JmriJOptionPane.DEFAULT_OPTION,
JmriJOptionPane.QUESTION_MESSAGE, null,
new Object[] {oldFamily, editFamily, Bundle.getMessage("ButtonCancel")},
Bundle.getMessage("ButtonCancel"));
switch (result) {
case 0: // array position 0, oldFamily
_family = oldFamily;
break;
case 2: // array position 2 Cancel Button
case JmriJOptionPane.CLOSED_OPTION: // Dialog closed
return true;
case 1: // array position 1 editFamily
default:
break;
}
}
} else {
if (nameUsed) { // map in catalog under another name
JmriJOptionPane.showMessageDialog(this,
Bundle.getMessage("DuplicateFamilyName", editFamily, _type, Bundle.getMessage("UseAnotherName")),
Bundle.getMessage("MessageTitle"), JmriJOptionPane.INFORMATION_MESSAGE);
return false;
}
}
}
return true;
}
/**
* Action item to rename an icon family.
*/
protected void renameFamily() {
String family = _parent.getValidFamilyName(null, _iconMap);
if (family != null) {
_family = family;
_nameLabel.setText(Bundle.getMessage("FamilyName", _family));
invalidate();
}
}
protected void makeDoneButtonPanel(JPanel buttonPanel, String text) {
JPanel panel = new JPanel();
panel.setLayout(new FlowLayout());
JButton doneButton = new JButton(Bundle.getMessage(text));
doneButton.addActionListener(a -> {
if (doDoneAction()) {
dispose();
}
});
panel.add(doneButton);
JButton renameButton = new JButton(Bundle.getMessage("renameFamily"));
renameButton.addActionListener(a -> renameFamily());
panel.add(renameButton);
JButton cancelButton = new JButton(Bundle.getMessage("ButtonCancel"));
cancelButton.addActionListener(a -> cancel());
panel.add(cancelButton);
buttonPanel.add(panel);
}
protected void cancel() {
_parent.setFamily();
_parent._cntlDown = false;
super.dispose();
}
static protected HashMap<String, NamedIcon> clone(HashMap<String, NamedIcon> map) {
HashMap<String, NamedIcon> clone = null;
if (map != null) {
clone = new HashMap<>();
for (Entry<String, NamedIcon> entry : map.entrySet()) {
clone.put(entry.getKey(), new NamedIcon(entry.getValue()));
}
}
return clone;
}
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(IconDialog.class);
}
| bobjacobsen/JMRI | java/src/jmri/jmrit/display/palette/IconDialog.java |
213,382 | package catdata.ide;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ActionMap;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.InputMap;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.KeyStroke;
import javax.swing.ListSelectionModel;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.border.Border;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.JTextComponent;
import javax.swing.text.Position;
/************************************************************
* Copyright 2004-2005,2007-2008 Masahiko SAWAI All Rights Reserved.
************************************************************/
/**
* The <code>JFontChooser</code> class is a swing component for font selection.
* This class has <code>JFileChooser</code> like APIs. The following code pops
* up a font chooser dialog.
*
* <pre>
* JFontChooser fontChooser = new JFontChooser(); int result =
* fontChooser.showDialog(parent); if (result == JFontChooser.OK_OPTION) { Font
* font = fontChooser.getSelectedFont(); }
*
* <pre>
**/
@SuppressWarnings({ "rawtypes", "serial", "unchecked", "static-method" })
public class JFontChooser extends JComponent {
// class variables
/**
* Return value from <code>showDialog()</code>.
*
* @see #showDialog
**/
public static final int OK_OPTION = 0;
/**
* Return value from <code>showDialog()</code>.
*
* @see #showDialog
**/
public static final int CANCEL_OPTION = 1;
/**
* Return value from <code>showDialog()</code>.
*
* @see #showDialog
**/
public static final int ERROR_OPTION = -1;
private static final Font DEFAULT_SELECTED_FONT = new Font("Serif", Font.PLAIN, 12);
private static final Font DEFAULT_FONT = new Font("Dialog", Font.PLAIN, 10);
private static final int[] FONT_STYLE_CODES = { Font.PLAIN, Font.BOLD, Font.ITALIC, Font.BOLD | Font.ITALIC };
private static final String[] DEFAULT_FONT_SIZE_STRINGS = { "8", "9", "10", "11", "12", "14", "16", "18", "20",
"22", "24", "26", "28", "36", "48", "72", };
// instance variables
protected int dialogResultValue = ERROR_OPTION;
private String[] fontStyleNames = null;
private String[] fontFamilyNames = null;
private String[] fontSizeStrings = null;
private JTextField fontFamilyTextField = null;
private JTextField fontStyleTextField = null;
private JTextField fontSizeTextField = null;
private JList fontNameList = null;
private JList fontStyleList = null;
private JList fontSizeList = null;
private JPanel fontNamePanel = null;
private JPanel fontStylePanel = null;
private JPanel fontSizePanel = null;
private JPanel samplePanel = null;
private JTextField sampleText = null;
/**
* Constructs a <code>JFontChooser</code> object.
**/
public JFontChooser() {
this(DEFAULT_FONT_SIZE_STRINGS);
}
/**
* Constructs a <code>JFontChooser</code> object using the given font size
* array.
*
* @param fontSizeStrings the array of font size string.
**/
public JFontChooser(String[] fontSizeStrings) {
if (fontSizeStrings == null) {
fontSizeStrings = DEFAULT_FONT_SIZE_STRINGS;
}
this.fontSizeStrings = fontSizeStrings;
JPanel selectPanel = new JPanel();
selectPanel.setLayout(new BoxLayout(selectPanel, BoxLayout.X_AXIS));
selectPanel.add(getFontFamilyPanel());
selectPanel.add(getFontStylePanel());
selectPanel.add(getFontSizePanel());
JPanel contentsPanel = new JPanel();
contentsPanel.setLayout(new GridLayout(2, 1));
contentsPanel.add(selectPanel, BorderLayout.NORTH);
contentsPanel.add(getSamplePanel(), BorderLayout.CENTER);
this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
this.add(contentsPanel);
this.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
this.setSelectedFont(DEFAULT_SELECTED_FONT);
}
public JTextField getFontFamilyTextField() {
if (fontFamilyTextField == null) {
fontFamilyTextField = new JTextField();
fontFamilyTextField.addFocusListener(new TextFieldFocusHandlerForTextSelection(fontFamilyTextField));
fontFamilyTextField.addKeyListener(new TextFieldKeyHandlerForListSelectionUpDown(getFontFamilyList()));
fontFamilyTextField.getDocument()
.addDocumentListener(new ListSearchTextFieldDocumentHandler(getFontFamilyList()));
fontFamilyTextField.setFont(DEFAULT_FONT);
}
return fontFamilyTextField;
}
public JTextField getFontStyleTextField() {
if (fontStyleTextField == null) {
fontStyleTextField = new JTextField();
fontStyleTextField.addFocusListener(new TextFieldFocusHandlerForTextSelection(fontStyleTextField));
fontStyleTextField.addKeyListener(new TextFieldKeyHandlerForListSelectionUpDown(getFontStyleList()));
fontStyleTextField.getDocument()
.addDocumentListener(new ListSearchTextFieldDocumentHandler(getFontStyleList()));
fontStyleTextField.setFont(DEFAULT_FONT);
}
return fontStyleTextField;
}
public JTextField getFontSizeTextField() {
if (fontSizeTextField == null) {
fontSizeTextField = new JTextField();
fontSizeTextField.addFocusListener(new TextFieldFocusHandlerForTextSelection(fontSizeTextField));
fontSizeTextField.addKeyListener(new TextFieldKeyHandlerForListSelectionUpDown(getFontSizeList()));
fontSizeTextField.getDocument()
.addDocumentListener(new ListSearchTextFieldDocumentHandler(getFontSizeList()));
fontSizeTextField.setFont(DEFAULT_FONT);
}
return fontSizeTextField;
}
public JList getFontFamilyList() {
if (fontNameList == null) {
fontNameList = new JList(getFontFamilies());
fontNameList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
fontNameList.addListSelectionListener(new ListSelectionHandler(getFontFamilyTextField()));
fontNameList.setSelectedIndex(0);
fontNameList.setFont(DEFAULT_FONT);
fontNameList.setFocusable(false);
}
return fontNameList;
}
public JList getFontStyleList() {
if (fontStyleList == null) {
fontStyleList = new JList(getFontStyleNames());
fontStyleList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
fontStyleList.addListSelectionListener(new ListSelectionHandler(getFontStyleTextField()));
fontStyleList.setSelectedIndex(0);
fontStyleList.setFont(DEFAULT_FONT);
fontStyleList.setFocusable(false);
}
return fontStyleList;
}
public JList getFontSizeList() {
if (fontSizeList == null) {
fontSizeList = new JList(this.fontSizeStrings);
fontSizeList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
fontSizeList.addListSelectionListener(new ListSelectionHandler(getFontSizeTextField()));
fontSizeList.setSelectedIndex(0);
fontSizeList.setFont(DEFAULT_FONT);
fontSizeList.setFocusable(false);
}
return fontSizeList;
}
/**
* Get the family name of the selected font.
*
* @return the font family of the selected font.
*
* @see #setSelectedFontFamily
**/
public String getSelectedFontFamily() {
String fontName = (String) getFontFamilyList().getSelectedValue();
return fontName;
}
/**
* Get the style of the selected font.
*
* @return the style of the selected font. <code>Font.PLAIN</code>,
* <code>Font.BOLD</code>, <code>Font.ITALIC</code>,
* <code>Font.BOLD|Font.ITALIC</code>
*
* @see java.awt.Font#PLAIN
* @see java.awt.Font#BOLD
* @see java.awt.Font#ITALIC
* @see #setSelectedFontStyle
**/
public int getSelectedFontStyle() {
int index = getFontStyleList().getSelectedIndex();
return FONT_STYLE_CODES[index];
}
/**
* Get the size of the selected font.
*
* @return the size of the selected font
*
* @see #setSelectedFontSize
**/
public int getSelectedFontSize() {
int fontSize = 1;
String fontSizeString = getFontSizeTextField().getText();
while (true) {
try {
fontSize = Integer.parseInt(fontSizeString);
break;
} catch (NumberFormatException e) {
fontSizeString = (String) getFontSizeList().getSelectedValue();
getFontSizeTextField().setText(fontSizeString);
}
}
return fontSize;
}
/**
* Get the selected font.
*
* @return the selected font
*
* @see #setSelectedFont
* @see java.awt.Font
**/
public Font getSelectedFont() {
Font font = new Font(getSelectedFontFamily(), getSelectedFontStyle(), getSelectedFontSize());
return font;
}
/**
* Set the family name of the selected font.
*
* @param name the family name of the selected font.
*
* @see getSelectedFontFamily
**/
public void setSelectedFontFamily(String name) {
String[] names = getFontFamilies();
for (int i = 0; i < names.length; i++) {
if (names[i].toLowerCase().equals(name.toLowerCase())) {
getFontFamilyList().setSelectedIndex(i);
break;
}
}
updateSampleFont();
}
/**
* Set the style of the selected font.
*
* @param style the size of the selected font. <code>Font.PLAIN</code>,
* <code>Font.BOLD</code>, <code>Font.ITALIC</code>, or
* <code>Font.BOLD|Font.ITALIC</code>.
*
* @see java.awt.Font#PLAIN
* @see java.awt.Font#BOLD
* @see java.awt.Font#ITALIC
* @see #getSelectedFontStyle
**/
public void setSelectedFontStyle(int style) {
for (int i = 0; i < FONT_STYLE_CODES.length; i++) {
if (FONT_STYLE_CODES[i] == style) {
getFontStyleList().setSelectedIndex(i);
break;
}
}
updateSampleFont();
}
/**
* Set the size of the selected font.
*
* @param size the size of the selected font
*
* @see #getSelectedFontSize
**/
public void setSelectedFontSize(int size) {
String sizeString = String.valueOf(size);
for (int i = 0; i < this.fontSizeStrings.length; i++) {
if (this.fontSizeStrings[i].equals(sizeString)) {
getFontSizeList().setSelectedIndex(i);
break;
}
}
getFontSizeTextField().setText(sizeString);
updateSampleFont();
}
/**
* Set the selected font.
*
* @param font the selected font
*
* @see #getSelectedFont
* @see java.awt.Font
**/
public void setSelectedFont(Font font) {
setSelectedFontFamily(font.getFamily());
setSelectedFontStyle(font.getStyle());
setSelectedFontSize(font.getSize());
}
public String getVersionString() {
return ("Version");
}
/**
* Show font selection dialog.
*
* @param parent Dialog's Parent component.
* @return OK_OPTION, CANCEL_OPTION or ERROR_OPTION
*
* @see #OK_OPTION
* @see #CANCEL_OPTION
* @see #ERROR_OPTION
**/
public int showDialog(Component parent) {
dialogResultValue = ERROR_OPTION;
JDialog dialog = createDialog(parent);
dialog.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
dialogResultValue = CANCEL_OPTION;
}
});
dialog.setVisible(true);
dialog.dispose();
dialog = null;
return dialogResultValue;
}
protected class ListSelectionHandler implements ListSelectionListener {
private JTextComponent textComponent;
ListSelectionHandler(JTextComponent textComponent) {
this.textComponent = textComponent;
}
@Override
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting() == false) {
JList list = (JList) e.getSource();
String selectedValue = (String) list.getSelectedValue();
String oldValue = textComponent.getText();
textComponent.setText(selectedValue);
if (!oldValue.equalsIgnoreCase(selectedValue)) {
textComponent.selectAll();
textComponent.requestFocus();
}
updateSampleFont();
}
}
}
protected class TextFieldFocusHandlerForTextSelection extends FocusAdapter {
private JTextComponent textComponent;
public TextFieldFocusHandlerForTextSelection(JTextComponent textComponent) {
this.textComponent = textComponent;
}
@Override
public void focusGained(FocusEvent e) {
textComponent.selectAll();
}
@Override
public void focusLost(FocusEvent e) {
textComponent.select(0, 0);
updateSampleFont();
}
}
protected class TextFieldKeyHandlerForListSelectionUpDown extends KeyAdapter {
private JList targetList;
public TextFieldKeyHandlerForListSelectionUpDown(JList list) {
this.targetList = list;
}
@Override
public void keyPressed(KeyEvent e) {
int i = targetList.getSelectedIndex();
switch (e.getKeyCode()) {
case KeyEvent.VK_UP:
i = targetList.getSelectedIndex() - 1;
if (i < 0) {
i = 0;
}
targetList.setSelectedIndex(i);
break;
case KeyEvent.VK_DOWN:
int listSize = targetList.getModel().getSize();
i = targetList.getSelectedIndex() + 1;
if (i >= listSize) {
i = listSize - 1;
}
targetList.setSelectedIndex(i);
break;
default:
break;
}
}
}
protected class ListSearchTextFieldDocumentHandler implements DocumentListener {
JList targetList;
public ListSearchTextFieldDocumentHandler(JList targetList) {
this.targetList = targetList;
}
@Override
public void insertUpdate(DocumentEvent e) {
update(e);
}
@Override
public void removeUpdate(DocumentEvent e) {
update(e);
}
@Override
public void changedUpdate(DocumentEvent e) {
update(e);
}
private void update(DocumentEvent event) {
String newValue = "";
try {
Document doc = event.getDocument();
newValue = doc.getText(0, doc.getLength());
} catch (BadLocationException e) {
e.printStackTrace();
}
if (newValue.length() > 0) {
int index = targetList.getNextMatch(newValue, 0, Position.Bias.Forward);
if (index < 0) {
index = 0;
}
targetList.ensureIndexIsVisible(index);
String matchedName = targetList.getModel().getElementAt(index).toString();
if (newValue.equalsIgnoreCase(matchedName)) {
if (index != targetList.getSelectedIndex()) {
SwingUtilities.invokeLater(new ListSelector(index));
}
}
}
}
public class ListSelector implements Runnable {
private int index;
public ListSelector(int index) {
this.index = index;
}
@Override
public void run() {
targetList.setSelectedIndex(this.index);
}
}
}
protected class DialogOKAction extends AbstractAction {
protected static final String ACTION_NAME = "OK";
private JDialog dialog;
protected DialogOKAction(JDialog dialog) {
this.dialog = dialog;
putValue(Action.DEFAULT, ACTION_NAME);
putValue(Action.ACTION_COMMAND_KEY, ACTION_NAME);
putValue(Action.NAME, (ACTION_NAME));
}
@Override
public void actionPerformed(ActionEvent e) {
dialogResultValue = OK_OPTION;
dialog.setVisible(false);
}
}
protected class DialogCancelAction extends AbstractAction {
protected static final String ACTION_NAME = "Cancel";
private JDialog dialog;
protected DialogCancelAction(JDialog dialog) {
this.dialog = dialog;
putValue(Action.DEFAULT, ACTION_NAME);
putValue(Action.ACTION_COMMAND_KEY, ACTION_NAME);
putValue(Action.NAME, (ACTION_NAME));
}
@Override
public void actionPerformed(ActionEvent e) {
dialogResultValue = CANCEL_OPTION;
dialog.setVisible(false);
}
}
protected JDialog createDialog(Component parent) {
Frame frame = parent instanceof Frame ? (Frame) parent
: (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent);
JDialog dialog = new JDialog(frame, ("Select Font"), true);
Action okAction = new DialogOKAction(dialog);
Action cancelAction = new DialogCancelAction(dialog);
JButton okButton = new JButton(okAction);
okButton.setFont(DEFAULT_FONT);
JButton cancelButton = new JButton(cancelAction);
cancelButton.setFont(DEFAULT_FONT);
JPanel buttonsPanel = new JPanel();
buttonsPanel.setLayout(new GridLayout(2, 1));
buttonsPanel.add(okButton);
buttonsPanel.add(cancelButton);
buttonsPanel.setBorder(BorderFactory.createEmptyBorder(25, 0, 10, 10));
ActionMap actionMap = buttonsPanel.getActionMap();
actionMap.put(cancelAction.getValue(Action.DEFAULT), cancelAction);
actionMap.put(okAction.getValue(Action.DEFAULT), okAction);
InputMap inputMap = buttonsPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
inputMap.put(KeyStroke.getKeyStroke("ESCAPE"), cancelAction.getValue(Action.DEFAULT));
inputMap.put(KeyStroke.getKeyStroke("ENTER"), okAction.getValue(Action.DEFAULT));
JPanel dialogEastPanel = new JPanel();
dialogEastPanel.setLayout(new BorderLayout());
dialogEastPanel.add(buttonsPanel, BorderLayout.NORTH);
dialog.getContentPane().add(this, BorderLayout.CENTER);
dialog.getContentPane().add(dialogEastPanel, BorderLayout.EAST);
dialog.pack();
dialog.setLocationRelativeTo(frame);
return dialog;
}
protected void updateSampleFont() {
Font font = getSelectedFont();
getSampleTextField().setFont(font);
}
protected JPanel getFontFamilyPanel() {
if (fontNamePanel == null) {
fontNamePanel = new JPanel();
fontNamePanel.setLayout(new BorderLayout());
fontNamePanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
fontNamePanel.setPreferredSize(new Dimension(180, 130));
JScrollPane scrollPane = new JScrollPane(getFontFamilyList());
scrollPane.getVerticalScrollBar().setFocusable(false);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
JPanel p = new JPanel();
p.setLayout(new BorderLayout());
p.add(getFontFamilyTextField(), BorderLayout.NORTH);
p.add(scrollPane, BorderLayout.CENTER);
JLabel label = new JLabel(("Font Name"));
label.setHorizontalAlignment(SwingConstants.LEFT);
label.setHorizontalTextPosition(SwingConstants.LEFT);
label.setLabelFor(getFontFamilyTextField());
label.setDisplayedMnemonic('F');
fontNamePanel.add(label, BorderLayout.NORTH);
fontNamePanel.add(p, BorderLayout.CENTER);
}
return fontNamePanel;
}
protected JPanel getFontStylePanel() {
if (fontStylePanel == null) {
fontStylePanel = new JPanel();
fontStylePanel.setLayout(new BorderLayout());
fontStylePanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
fontStylePanel.setPreferredSize(new Dimension(140, 130));
JScrollPane scrollPane = new JScrollPane(getFontStyleList());
scrollPane.getVerticalScrollBar().setFocusable(false);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
JPanel p = new JPanel();
p.setLayout(new BorderLayout());
p.add(getFontStyleTextField(), BorderLayout.NORTH);
p.add(scrollPane, BorderLayout.CENTER);
JLabel label = new JLabel(("Font Style"));
label.setHorizontalAlignment(SwingConstants.LEFT);
label.setHorizontalTextPosition(SwingConstants.LEFT);
label.setLabelFor(getFontStyleTextField());
label.setDisplayedMnemonic('Y');
fontStylePanel.add(label, BorderLayout.NORTH);
fontStylePanel.add(p, BorderLayout.CENTER);
}
return fontStylePanel;
}
protected JPanel getFontSizePanel() {
if (fontSizePanel == null) {
fontSizePanel = new JPanel();
fontSizePanel.setLayout(new BorderLayout());
fontSizePanel.setPreferredSize(new Dimension(70, 130));
fontSizePanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
JScrollPane scrollPane = new JScrollPane(getFontSizeList());
scrollPane.getVerticalScrollBar().setFocusable(false);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
JPanel p = new JPanel();
p.setLayout(new BorderLayout());
p.add(getFontSizeTextField(), BorderLayout.NORTH);
p.add(scrollPane, BorderLayout.CENTER);
JLabel label = new JLabel(("Font Size"));
label.setHorizontalAlignment(SwingConstants.LEFT);
label.setHorizontalTextPosition(SwingConstants.LEFT);
label.setLabelFor(getFontSizeTextField());
label.setDisplayedMnemonic('S');
fontSizePanel.add(label, BorderLayout.NORTH);
fontSizePanel.add(p, BorderLayout.CENTER);
}
return fontSizePanel;
}
protected JPanel getSamplePanel() {
if (samplePanel == null) {
Border titledBorder = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), ("Sample"));
Border empty = BorderFactory.createEmptyBorder(5, 10, 10, 10);
Border border = BorderFactory.createCompoundBorder(titledBorder, empty);
samplePanel = new JPanel();
samplePanel.setLayout(new BorderLayout());
samplePanel.setBorder(border);
samplePanel.add(getSampleTextField(), BorderLayout.CENTER);
}
return samplePanel;
}
protected JTextField getSampleTextField() {
if (sampleText == null) {
Border lowered = BorderFactory.createLoweredBevelBorder();
sampleText = new JTextField(("AaBbYyZz"));
sampleText.setBorder(lowered);
sampleText.setPreferredSize(new Dimension(300, 100));
}
return sampleText;
}
protected String[] getFontFamilies() {
if (fontFamilyNames == null) {
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
fontFamilyNames = env.getAvailableFontFamilyNames();
}
return fontFamilyNames;
}
protected String[] getFontStyleNames() {
if (fontStyleNames == null) {
int i = 0;
fontStyleNames = new String[4];
fontStyleNames[i++] = ("Plain");
fontStyleNames[i++] = ("Bold");
fontStyleNames[i++] = ("Italic");
fontStyleNames[i++] = ("BoldItalic");
}
return fontStyleNames;
}
} | CategoricalData/CQL | src/catdata/ide/JFontChooser.java |
213,383 | package com.example.securingweb; // cf. https://spring.io/guides/gs/securing-web/
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
@Configuration
@EnableWebSecurity
public class WebSecurityConfigCsrfDisable extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
// ruleid: spring-csrf-disabled
http
.csrf().disable()
.authorizeRequests()
.antMatchers("/", "/home").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.permitAll()
.and()
.logout()
.permitAll();
}
}
public class WebSecurityConfigOK extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
// ok
http
.authorizeRequests()
.antMatchers("/", "/home").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.permitAll()
.and()
.logout()
.permitAll();
}
} | Sjord/semgrep-rules | java/spring/security/audit/spring-csrf-disabled.java |
213,386 | package antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
*
* $Id: //depot/code/org.antlr/release/antlr-2.7.5/antlr/LexerGrammar.java#1 $
*/
import java.util.Hashtable;
import java.util.Enumeration;
import java.io.IOException;
import antlr.collections.impl.BitSet;
import antlr.collections.impl.Vector;
/** Lexer-specific grammar subclass */
class LexerGrammar extends Grammar {
// character set used by lexer
protected BitSet charVocabulary;
// true if the lexer generates literal testing code for nextToken
protected boolean testLiterals = true;
// true if the lexer generates case-sensitive LA(k) testing
protected boolean caseSensitiveLiterals = true;
/** true if the lexer generates case-sensitive literals testing */
protected boolean caseSensitive = true;
/** true if lexer is to ignore all unrecognized tokens */
protected boolean filterMode = false;
/** if filterMode is true, then filterRule can indicate an optional
* rule to use as the scarf language. If null, programmer used
* plain "filter=true" not "filter=rule".
*/
protected String filterRule = null;
LexerGrammar(String className_, Tool tool_, String superClass) {
super(className_, tool_, superClass);
// by default, use 0..127 for ASCII char vocabulary
BitSet cv = new BitSet();
for (int i = 0; i <= 127; i++) {
cv.add(i);
}
setCharVocabulary(cv);
// Lexer usually has no default error handling
defaultErrorHandler = false;
}
/** Top-level call to generate the code */
public void generate() throws IOException {
generator.gen(this);
}
public String getSuperClass() {
// If debugging, use debugger version of scanner
if (debuggingOutput)
return "debug.DebuggingCharScanner";
return "CharScanner";
}
// Get the testLiterals option value
public boolean getTestLiterals() {
return testLiterals;
}
/**Process command line arguments.
* -trace have all rules call traceIn/traceOut
* -traceLexer have lexical rules call traceIn/traceOut
* -debug generate debugging output for parser debugger
*/
public void processArguments(String[] args) {
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-trace")) {
traceRules = true;
antlrTool.setArgOK(i);
}
else if (args[i].equals("-traceLexer")) {
traceRules = true;
antlrTool.setArgOK(i);
}
else if (args[i].equals("-debug")) {
debuggingOutput = true;
antlrTool.setArgOK(i);
}
}
}
/** Set the character vocabulary used by the lexer */
public void setCharVocabulary(BitSet b) {
charVocabulary = b;
}
/** Set lexer options */
public boolean setOption(String key, Token value) {
String s = value.getText();
if (key.equals("buildAST")) {
antlrTool.warning("buildAST option is not valid for lexer", getFilename(), value.getLine(), value.getColumn());
return true;
}
if (key.equals("testLiterals")) {
if (s.equals("true")) {
testLiterals = true;
}
else if (s.equals("false")) {
testLiterals = false;
}
else {
antlrTool.warning("testLiterals option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("interactive")) {
if (s.equals("true")) {
interactive = true;
}
else if (s.equals("false")) {
interactive = false;
}
else {
antlrTool.error("interactive option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("caseSensitive")) {
if (s.equals("true")) {
caseSensitive = true;
}
else if (s.equals("false")) {
caseSensitive = false;
}
else {
antlrTool.warning("caseSensitive option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("caseSensitiveLiterals")) {
if (s.equals("true")) {
caseSensitiveLiterals = true;
}
else if (s.equals("false")) {
caseSensitiveLiterals = false;
}
else {
antlrTool.warning("caseSensitiveLiterals option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("filter")) {
if (s.equals("true")) {
filterMode = true;
}
else if (s.equals("false")) {
filterMode = false;
}
else if (value.getType() == ANTLRTokenTypes.TOKEN_REF) {
filterMode = true;
filterRule = s;
}
else {
antlrTool.warning("filter option must be true, false, or a lexer rule name", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("longestPossible")) {
antlrTool.warning("longestPossible option has been deprecated; ignoring it...", getFilename(), value.getLine(), value.getColumn());
return true;
}
if (key.equals("className")) {
super.setOption(key, value);
return true;
}
if (super.setOption(key, value)) {
return true;
}
antlrTool.error("Invalid option: " + key, getFilename(), value.getLine(), value.getColumn());
return false;
}
}
| boo-lang/boo | lib/antlr-2.7.5/antlr/LexerGrammar.java |
213,387 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.framework.main.datatree;
import java.awt.*;
import java.awt.datatransfer.Transferable;
import java.awt.dnd.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.*;
import javax.swing.event.ListSelectionListener;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
import docking.ActionContext;
import docking.action.*;
import docking.dnd.*;
import docking.widgets.OptionDialog;
import docking.widgets.table.*;
import ghidra.app.util.GenericHelpTopics;
import ghidra.framework.client.ClientUtil;
import ghidra.framework.main.GetDomainObjectTask;
import ghidra.framework.model.*;
import ghidra.framework.plugintool.PluginTool;
import ghidra.framework.store.ItemCheckoutStatus;
import ghidra.framework.store.Version;
import ghidra.util.*;
import ghidra.util.task.*;
/**
* Panel that shows version history in a JTable
*/
public class VersionHistoryPanel extends JPanel implements Draggable {
private static final HelpLocation HELP =
new HelpLocation(GenericHelpTopics.VERSION_CONTROL, "Show History");
private PluginTool tool;
private DomainFile domainFile;
private String domainFilePath;
private VersionHistoryTableModel tableModel;
private GTable table;
private DragSource dragSource;
private DragGestureAdapter dragGestureAdapter;
private DragSrcAdapter dragSourceAdapter;
private int dragAction = DnDConstants.ACTION_COPY_OR_MOVE;
/**
* Constructor
* @param tool tool
* @param domainFile domain file; may be null
* @throws IOException if there was a problem accessing the
* version history
*/
public VersionHistoryPanel(PluginTool tool, DomainFile domainFile) throws IOException {
this(tool, domainFile, false);
}
/**
* Constructor
* @param tool tool
* @param domainFile domain file
* @param enableUserInteraction if true Draggable support will be enabled
*/
VersionHistoryPanel(PluginTool tool, DomainFile domainFile, boolean enableUserInteraction) {
super(new BorderLayout());
this.tool = tool;
create();
if (enableUserInteraction) {
setUpDragSite();
table.addMouseListener(new MyMouseListener());
}
setDomainFile(domainFile);
}
/**
* Set the domain file to show its history.
* If file not found a null file will be set.
* @param domainFile the file
*/
public void setDomainFile(DomainFile domainFile) {
this.domainFile = domainFile;
this.domainFilePath = domainFile != null ? domainFile.getPathname() : null;
try {
refresh();
}
catch (FileNotFoundException e) {
this.domainFile = null;
this.domainFilePath = null;
}
}
/**
* Get current domain file
* @return current domain file
*/
public DomainFile getDomainFile() {
return domainFile;
}
/**
* Get current domain file path or null
* @return domain file path
*/
public String getDomainFilePath() {
return domainFilePath;
}
/**
* Add the list selection listener to the history table
* @param selectionListener the listener
*/
public void addListSelectionListener(ListSelectionListener selectionListener) {
table.getSelectionModel().addListSelectionListener(selectionListener);
}
/**
* Remove the list selection listener from history table.
* @param selectionListener the listener
*/
public void removeListSelectionListener(ListSelectionListener selectionListener) {
table.getSelectionModel().removeListSelectionListener(selectionListener);
}
/**
* Get the selected {@link Version}.
* @return selected {@link Version} or null if no selection
*/
public Version getSelectedVersion() {
int row = table.getSelectedRow();
if (row >= 0) {
return tableModel.getVersionAt(row);
}
return null;
}
/**
* Determine if a version selection has been made.
* @return true if version selection has been made, esle false
*/
public boolean isVersionSelected() {
return !table.getSelectionModel().isSelectionEmpty();
}
/**
* Get the selected version number or {@link DomainFile#DEFAULT_VERSION} if no selection.
* @return selected version number
*/
public int getSelectedVersionNumber() {
int row = table.getSelectedRow();
if (row >= 0) {
Version version = tableModel.getVersionAt(row);
return version.getVersion();
}
return DomainFile.DEFAULT_VERSION;
}
@Override
public void dragCanceled(DragSourceDropEvent event) {
// no-op
}
@Override
public int getDragAction() {
return dragAction;
}
@Override
public DragSourceListener getDragSourceListener() {
return dragSourceAdapter;
}
@Override
public Transferable getTransferable(Point p) {
int row = table.rowAtPoint(p);
if (row >= 0) {
Version version = tableModel.getVersionAt(row);
return new VersionInfoTransferable(domainFile.getPathname(), version.getVersion());
}
return null;
}
@Override
public boolean isStartDragOk(DragGestureEvent e) {
int row = table.rowAtPoint(e.getDragOrigin());
if (row >= 0) {
return true;
}
return false;
}
@Override
public void move() {
// no-op
}
// For Junit tests
VersionHistoryTableModel getVersionHistoryTableModel() {
return tableModel;
}
private void create() {
tableModel = new VersionHistoryTableModel(new Version[0]);
table = new GTable(tableModel);
JScrollPane sp = new JScrollPane(table);
table.setPreferredScrollableViewportSize(new Dimension(600, 120));
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
add(sp, BorderLayout.CENTER);
TableColumnModel columnModel = table.getColumnModel();
MyCellRenderer cellRenderer = new MyCellRenderer();
for (int i = 0; i < columnModel.getColumnCount(); i++) {
TableColumn column = columnModel.getColumn(i);
GTableHeaderRenderer headRenderer = new GTableHeaderRenderer();
column.setHeaderRenderer(headRenderer);
column.setCellRenderer(cellRenderer);
String name = (String) column.getIdentifier();
if (name.equals(VersionHistoryTableModel.VERSION)) {
column.setPreferredWidth(80);
}
else if (name.equals(VersionHistoryTableModel.DATE)) {
column.setPreferredWidth(210);
}
else if (name.equals(VersionHistoryTableModel.COMMENTS)) {
column.setPreferredWidth(250);
}
else if (name.equals(VersionHistoryTableModel.USER)) {
column.setPreferredWidth(125);
}
}
}
/**
* Set up the drag and drop stuff.
*/
private void setUpDragSite() {
// set up drag stuff
dragSource = DragSource.getDefaultDragSource();
dragGestureAdapter = new DragGestureAdapter(this);
dragSourceAdapter = new DragSrcAdapter(this);
dragSource.createDefaultDragGestureRecognizer(table, dragAction, dragGestureAdapter);
}
private DomainObject getVersionedObject(Object consumer, int versionNumber, boolean immutable) {
GetDomainObjectTask task =
new GetDomainObjectTask(consumer, domainFile, versionNumber, immutable);
tool.execute(task, 1000);
return task.getDomainObject();
}
private void delete() {
int row = table.getSelectedRow();
if (row != 0 && row != tableModel.getRowCount() - 1) {
Msg.showError(this, this, "Cannot Delete Version",
"Only first and last version may be deleted.");
return;
}
Version version = tableModel.getVersionAt(row);
try {
for (ItemCheckoutStatus status : domainFile.getCheckouts()) {
if (status.getCheckoutVersion() == version.getVersion()) {
Msg.showError(this, this, "Cannot Delete Version",
"File version has one or more checkouts.");
return;
}
}
if (confirmDelete()) {
DeleteTask task = new DeleteTask(version.getVersion());
new TaskLauncher(task, this);
}
}
catch (IOException e) {
ClientUtil.handleException(tool.getProject().getRepository(), e, "Delete Version",
this);
}
}
private boolean confirmDelete() {
String message;
int messageType;
if (tableModel.getRowCount() == 1) {
message = "Deleting the only version will permanently delete the file.\n" +
"Are you sure you want to continue?";
messageType = OptionDialog.WARNING_MESSAGE;
}
else {
message = "Are you sure you want to delete the selected version?";
messageType = OptionDialog.QUESTION_MESSAGE;
}
return OptionDialog.showOptionDialog(table, "Delete Version", message, "Delete",
messageType) == OptionDialog.OPTION_ONE;
}
void refresh() throws FileNotFoundException {
try {
Version[] history = null;
if (domainFile != null) {
history = domainFile.getVersionHistory();
}
if (history == null) {
history = new Version[0];
}
tableModel.refresh(history);
}
catch (FileNotFoundException e) {
throw e;
}
catch (IOException e) {
ClientUtil.handleException(tool.getProject().getRepository(), e, "Get Version History",
this);
}
}
private void openWith(String toolName) {
int row = table.getSelectedRow();
Version version = tableModel.getVersionAt(row);
DomainObject versionedObj = getVersionedObject(this, version.getVersion(), true);
if (versionedObj != null) {
try {
if (toolName != null) {
tool.getToolServices()
.launchTool(toolName, List.of(versionedObj.getDomainFile()));
}
else {
tool.getToolServices().launchDefaultTool(List.of(versionedObj.getDomainFile()));
}
}
finally {
versionedObj.release(this);
}
}
}
private void open() {
openWith(null);
}
public List<DockingActionIf> createPopupActions() {
List<DockingActionIf> list = new ArrayList<>();
list.add(new DeleteAction());
Project project = tool.getProject();
ToolChest toolChest = project.getLocalToolChest();
if (toolChest == null) {
return list;
}
ToolTemplate[] templates = toolChest.getToolTemplates();
if (templates.length == 0) {
return list;
}
list.add(new OpenDefaultAction());
for (ToolTemplate toolTemplate : templates) {
list.add(new OpenWithAction(toolTemplate.getName()));
}
return list;
}
GTable getTable() {
return table;
}
//==================================================================================================
// Inner Classes
//==================================================================================================
private class MyCellRenderer extends GTableCellRenderer {
@Override
public Component getTableCellRendererComponent(GTableCellRenderingData data) {
super.getTableCellRendererComponent(data);
Object value = data.getValue();
int row = data.getRowViewIndex();
int col = data.getColumnModelIndex();
if (value instanceof Date) {
setText(DateUtils.formatDateTimestamp((Date) value));
}
setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0));
String toolTipText = null;
Version version = tableModel.getVersionAt(row);
if (col == VersionHistoryTableModel.COMMENTS_COL) {
String comments = version.getComment();
if (comments != null) {
toolTipText = HTMLUtilities.toHTML(comments);
}
}
else if (col == VersionHistoryTableModel.DATE_COL) {
toolTipText = "Date when version was created";
}
setToolTipText(toolTipText);
return this;
}
}
private abstract class HistoryTableAction extends DockingAction {
HistoryTableAction(String name) {
super(name, "Version History Panel", false);
setHelpLocation(HELP);
}
@Override
public boolean isEnabledForContext(ActionContext context) {
MouseEvent mouseEvent = context.getMouseEvent();
if (mouseEvent == null) {
return false;
}
if (context.getSourceComponent() != table) {
return false;
}
if (domainFile == null) {
return false;
}
int rowAtPoint = table.rowAtPoint(mouseEvent.getPoint());
return rowAtPoint >= 0;
}
}
private class DeleteAction extends HistoryTableAction {
DeleteAction() {
super("Delete Version");
setDescription(
"Deletes the selected version (Only first and last version can be deleted)");
setPopupMenuData(new MenuData(new String[] { "Delete" }, "AAA"));
}
@Override
public void actionPerformed(ActionContext context) {
delete();
}
}
private class OpenDefaultAction extends HistoryTableAction {
OpenDefaultAction() {
super("Open In Default Tool");
setDescription("Opens the selected version in the default tool.");
MenuData data = new MenuData(new String[] { "Open in Default Tool" }, "AAB");
data.setMenuSubGroup("1"); // before the specific tool 'open' actions
setPopupMenuData(data);
}
@Override
public void actionPerformed(ActionContext context) {
open();
}
}
private class OpenWithAction extends HistoryTableAction {
private String toolName;
OpenWithAction(String toolName) {
super("Open With " + toolName);
this.toolName = toolName;
setDescription("Opens the version using the " + toolName + " tool.");
MenuData data = new MenuData(new String[] { "Open With", toolName }, "AAB");
setPopupMenuData(data);
}
@Override
public void actionPerformed(ActionContext context) {
openWith(toolName);
}
}
private class MyMouseListener extends MouseAdapter {
@Override
public void mouseClicked(MouseEvent e) {
handleMouseClick(e);
}
private void handleMouseClick(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {
int row = table.rowAtPoint(e.getPoint());
if (row < 0) {
return;
}
open();
}
}
}
private class DeleteTask extends Task {
private int versionNumber;
DeleteTask(int versionNumber) {
super("Delete Version", false, false, true);
this.versionNumber = versionNumber;
}
@Override
public void run(TaskMonitor monitor) {
try {
domainFile.delete(versionNumber);
}
catch (IOException e) {
ClientUtil.handleException(tool.getProject().getRepository(), e, "Delete Version",
VersionHistoryPanel.this);
}
}
}
}
| NationalSecurityAgency/ghidra | Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/VersionHistoryPanel.java |
213,388 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.app.util.viewer.listingpanel;
import java.awt.*;
import java.awt.event.*;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swing.*;
import javax.swing.event.ChangeListener;
import docking.action.DockingActionIf;
import docking.widgets.EventTrigger;
import docking.widgets.fieldpanel.*;
import docking.widgets.fieldpanel.field.Field;
import docking.widgets.fieldpanel.listener.*;
import docking.widgets.fieldpanel.support.*;
import docking.widgets.indexedscrollpane.IndexedScrollPane;
import generic.theme.GThemeDefaults.Colors;
import ghidra.app.plugin.core.codebrowser.LayeredColorModel;
import ghidra.app.plugin.core.codebrowser.hover.ListingHoverService;
import ghidra.app.services.ButtonPressedListener;
import ghidra.app.util.ListingHighlightProvider;
import ghidra.app.util.viewer.field.*;
import ghidra.app.util.viewer.format.FieldHeader;
import ghidra.app.util.viewer.format.FormatManager;
import ghidra.app.util.viewer.util.*;
import ghidra.program.model.address.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.program.util.*;
import ghidra.util.Msg;
import ghidra.util.Swing;
import ghidra.util.layout.HorizontalLayout;
public class ListingPanel extends JPanel implements FieldMouseListener, FieldLocationListener,
FieldSelectionListener, LayoutListener {
public static final int DEFAULT_DIVIDER_LOCATION = 70;
private FormatManager formatManager;
private ListingModelAdapter layoutModel;
private FieldPanel fieldPanel;
private IndexedScrollPane scroller;
private JSplitPane splitPane;
private int splitPaneDividerLocation = DEFAULT_DIVIDER_LOCATION;
private ProgramLocationListener programLocationListener;
private ProgramSelectionListener programSelectionListener;
private StringSelectionListener stringSelectionListener;
private ListingModel listingModel;
private FieldHeader headerPanel;
private ButtonPressedListener[] buttonListeners = new ButtonPressedListener[0];
private List<ChangeListener> indexMapChangeListeners = new ArrayList<>();
private ListingHoverProvider listingHoverHandler;
private List<MarginProvider> marginProviders = new ArrayList<>();
private List<OverviewProvider> overviewProviders = new ArrayList<>();
private VerticalPixelAddressMapImpl pixmap;
private PropertyBasedBackgroundColorModel propertyBasedColorModel;
private LayeredColorModel layeredColorModel;
private LayoutModelListener layoutModelListener = new LayoutModelListener() {
@Override
public void modelSizeChanged(IndexMapper mapper) {
updateProviders();
}
@Override
public void dataChanged(BigInteger start, BigInteger end) {
// don't care
}
};
private List<AddressSetDisplayListener> displayListeners = new ArrayList<>();
private String currentTextSelection;
/**
* Constructs a new ListingPanel using the given FormatManager and ServiceProvider.
*
* @param manager the FormatManager to use.
*/
public ListingPanel(FormatManager manager) {
super(new BorderLayout());
this.formatManager = manager;
layoutModel = createLayoutModel(null);
fieldPanel = createFieldPanel(layoutModel);
fieldPanel.addFieldMouseListener(this);
fieldPanel.addFieldLocationListener(this);
fieldPanel.addFieldSelectionListener(this);
fieldPanel.addLayoutListener(this);
propertyBasedColorModel = new PropertyBasedBackgroundColorModel();
fieldPanel.setBackgroundColorModel(propertyBasedColorModel);
scroller = new IndexedScrollPane(fieldPanel);
listingHoverHandler = new ListingHoverProvider();
add(scroller, BorderLayout.CENTER);
fieldPanel.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
for (MarginProvider provider : marginProviders) {
provider.getComponent().invalidate();
}
validate();
}
});
String viewName = "Assembly Listing View";
fieldPanel.setName(viewName);
fieldPanel.getAccessibleContext().setAccessibleName(viewName);
}
/**
* Constructs a new ListingPanel for the given program.
*
* @param mgr the FormatManager to use.
* @param program the program for which to create a new ListingPanel
*/
public ListingPanel(FormatManager mgr, Program program) {
this(mgr);
setProgram(program);
}
/**
* Constructs a new ListingPanel with the given FormatManager and ListingLayoutModel
*
* @param mgr the FormatManager to use
* @param model the ListingLayoutModel to use.
*/
public ListingPanel(FormatManager mgr, ListingModel model) {
this(mgr);
setListingModel(model);
listingHoverHandler.setProgram(model.getProgram());
}
@Override
public Dimension getPreferredSize() {
Dimension preferredSize = super.getPreferredSize();
// give new snapshots some decent room
preferredSize.width = Math.max(preferredSize.width, getNewWindowDefaultWidth());
return preferredSize;
}
/**
* A width for new windows that shows a reasonable amount of the Listing
* @return the width
*/
protected int getNewWindowDefaultWidth() {
return 500;
}
// extension point
protected FieldPanel createFieldPanel(LayoutModel model) {
FieldPanel fp = new FieldPanel(model, "Listing");
fp.setFieldDescriptionProvider(new ListingFieldDescriptionProvider());
return fp;
}
// extension point
protected ListingModel createListingModel(Program program) {
if (program == null) {
return null;
}
return new ProgramBigListingModel(program, formatManager);
}
// extension point
protected ListingModelAdapter createLayoutModel(ListingModel model) {
ListingModelAdapter modelAdapter = new ListingModelAdapter(model);
modelAdapter.addLayoutModelListener(layoutModelListener);
return modelAdapter;
}
/**
* Sets the ProgramLocationListener. Only one listener is supported
*
* @param listener the ProgramLocationListener to use.
*/
public void setProgramLocationListener(ProgramLocationListener listener) {
this.programLocationListener = listener;
}
/**
* Sets the ProgramSelectionListener. Only one listener is supported
*
* @param listener the ProgramSelectionListener to use.
*/
public void setProgramSelectionListener(ProgramSelectionListener listener) {
programSelectionListener = listener;
}
public void setStringSelectionListener(StringSelectionListener listener) {
stringSelectionListener = listener;
}
/**
* Sets the ListingLayoutModel to use.
*
* @param newModel the model to use.
*/
public void setListingModel(ListingModel newModel) {
layoutModel.dispose();
listingModel = newModel;
layoutModel = createLayoutModel(newModel);
fieldPanel.setLayoutModel(layoutModel);
Swing.runLater(() -> updateProviders());
}
/**
* Returns the current ListingModel used by this panel.
* @return the model
*/
public ListingModel getListingModel() {
return listingModel;
}
/**
* Sets whether or not the field header component is visible at the top of the listing panel
*
* @param show if true, the header component will be show, otherwise it will be hidden.
*/
public void showHeader(boolean show) {
if (show) {
headerPanel = new FieldHeader(formatManager, scroller, fieldPanel);
// set the model to that of the field at the cursor location
Field f = fieldPanel.getCurrentField();
if (f instanceof ListingField currentField) {
headerPanel.setSelectedFieldFactory(currentField.getFieldFactory());
}
}
else {
headerPanel.setViewComponent(null);
headerPanel = null;
}
buildPanels();
}
public List<DockingActionIf> getHeaderActions(String ownerName) {
if (headerPanel != null) {
return headerPanel.getActions(ownerName);
}
return null;
}
/**
* Returns true if the field header component is showing.
* @return true if showing
*/
public boolean isHeaderShowing() {
return headerPanel != null;
}
private void updateProviders() {
AddressIndexMap addressIndexMap = layoutModel.getAddressIndexMap();
for (OverviewProvider element : overviewProviders) {
element.setProgram(getProgram(), addressIndexMap);
}
for (ChangeListener indexMapChangeListener : indexMapChangeListeners) {
indexMapChangeListener.stateChanged(null);
}
if (layeredColorModel != null) {
layeredColorModel.modelDataChanged(this);
}
else {
propertyBasedColorModel.modelDataChanged(this);
}
}
public FieldHeader getFieldHeader() {
return headerPanel;
}
public void updateDisplay(boolean updateImmediately) {
layoutModel.dataChanged(updateImmediately);
}
/**
* Adds the MarginProvider to this panel
*
* @param provider the MarginProvider that will provide components to display in this panel's
* left margin area.
*/
public void addMarginProvider(MarginProvider provider) {
if (provider.isResizeable()) {
marginProviders.add(0, provider);
}
else {
marginProviders.add(provider);
}
provider.setProgram(getProgram(), layoutModel.getAddressIndexMap(), pixmap);
buildPanels();
}
private void buildPanels() {
boolean fieldPanelHasFocus = fieldPanel.hasFocus();
removeAll();
add(buildLeftComponent(), BorderLayout.WEST);
add(buildCenterComponent(), BorderLayout.CENTER);
JComponent overviewComponent = buildOverviewComponent();
if (overviewComponent != null) {
scroller.setScrollbarSideKickComponent(buildOverviewComponent());
}
revalidate();
repaint();
if (fieldPanelHasFocus) {
fieldPanel.requestFocusInWindow();
}
}
private JComponent buildOverviewComponent() {
if (overviewProviders.isEmpty()) {
return null;
}
JPanel rightPanel = new JPanel(new HorizontalLayout(0));
for (OverviewProvider overviewProvider : overviewProviders) {
rightPanel.add(overviewProvider.getComponent());
}
return rightPanel;
}
private JComponent buildLeftComponent() {
List<MarginProvider> marginProviderList = getNonResizeableMarginProviders();
JPanel leftPanel = new JPanel(new ScrollpaneAlignedHorizontalLayout(scroller));
for (MarginProvider marginProvider : marginProviderList) {
leftPanel.add(marginProvider.getComponent());
}
return leftPanel;
}
private List<MarginProvider> getNonResizeableMarginProviders() {
if (marginProviders.isEmpty()) {
return marginProviders;
}
MarginProvider firstMarginProvider = marginProviders.get(0);
if (firstMarginProvider.isResizeable()) {
return marginProviders.subList(1, marginProviders.size());
}
return marginProviders;
}
private JComponent buildCenterComponent() {
JComponent centerComponent = scroller;
MarginProvider resizeableMarginProvider = getResizeableMarginProvider();
if (resizeableMarginProvider != null) {
if (splitPane != null) {
splitPaneDividerLocation = splitPane.getDividerLocation();
}
JPanel resizeablePanel = new JPanel(new ScrollpanelResizeablePanelLayout(scroller));
resizeablePanel.setBackground(Colors.BACKGROUND);
resizeablePanel.add(resizeableMarginProvider.getComponent());
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, resizeablePanel, scroller);
splitPane.setDividerSize(4);
splitPane.setDividerLocation(splitPaneDividerLocation);
splitPane.setContinuousLayout(true);
splitPane.setBorder(null);
centerComponent = splitPane;
}
if (headerPanel != null) {
headerPanel.setViewComponent(centerComponent);
centerComponent = headerPanel;
}
return centerComponent;
}
private MarginProvider getResizeableMarginProvider() {
if (marginProviders.isEmpty()) {
return null;
}
MarginProvider marginProvider = marginProviders.get(0);
return marginProvider.isResizeable() ? marginProvider : null;
}
/**
* Add a change listener to be notified whenever the indexMap changes.
*
* @param listener the listener to be added.
*/
public void addIndexMapChangeListener(ChangeListener listener) {
indexMapChangeListeners.add(listener);
}
/**
* Removes the change listener to be notified when the indexMap changes.
*
* @param listener the listener to be removed.
*/
public void removeIndexMapChangeListener(ChangeListener listener) {
indexMapChangeListeners.remove(listener);
}
/**
* Removes the given margin provider from this panel
*
* @param provider the MarginProvider to remove.
*/
public void removeMarginProvider(MarginProvider provider) {
marginProviders.remove(provider);
buildPanels();
}
/**
* Adds the given OverviewProvider with will be displayed in this panels right margin area.
*
* @param provider the OverviewProvider to display.
*/
public void addOverviewProvider(OverviewProvider provider) {
overviewProviders.add(provider);
provider.setProgram(getProgram(), layoutModel.getAddressIndexMap());
buildPanels();
}
/**
* Removes the given OverviewProvider from this panel
*
* @param provider the OverviewProvider to remove.
*/
public void removeOverviewProvider(OverviewProvider provider) {
overviewProviders.remove(provider);
buildPanels();
}
/**
* Adds a ButtonPressedListener to be notified when the user presses the mouse button while over
* this panel
*
* @param listener the ButtonPressedListener to add.
*/
public void addButtonPressedListener(ButtonPressedListener listener) {
List<ButtonPressedListener> list = new ArrayList<>(Arrays.asList(buttonListeners));
list.add(listener);
buttonListeners = list.toArray(new ButtonPressedListener[list.size()]);
}
/**
* Removes the given ButtonPressedListener.
*
* @param listener the ButtonPressedListener to remove.
*/
public void removeButtonPressedListener(ButtonPressedListener listener) {
List<ButtonPressedListener> list = new ArrayList<>(Arrays.asList(buttonListeners));
list.remove(listener);
buttonListeners = list.toArray(new ButtonPressedListener[list.size()]);
}
/**
* Removes the given {@link ListingHighlightProvider} from this listing.
*
* @param highlightProvider The provider to remove.
* @see #addHighlightProvider(ListingHighlightProvider)
*/
public void removeHighlightProvider(ListingHighlightProvider highlightProvider) {
formatManager.removeHighlightProvider(highlightProvider);
}
/**
* Adds a {@link ListingHighlightProvider} to this listing. This highlight provider will be used with
* any other registered providers to paint all the highlights for this listing.
*
* @param highlightProvider The provider to add
*/
public void addHighlightProvider(ListingHighlightProvider highlightProvider) {
formatManager.addHighlightProvider(highlightProvider);
}
/**
* Returns the FieldPanel used by this ListingPanel.
* @return the field panel
*/
public FieldPanel getFieldPanel() {
return fieldPanel;
}
@Override
public void layoutsChanged(List<AnchoredLayout> layouts) {
AddressIndexMap addrMap = layoutModel.getAddressIndexMap();
this.pixmap = new VerticalPixelAddressMapImpl(layouts, addrMap);
for (MarginProvider element : marginProviders) {
element.setProgram(getProgram(), addrMap, pixmap);
}
for (AddressSetDisplayListener listener : displayListeners) {
notifyDisplayListener(listener);
}
}
private void notifyDisplayListener(AddressSetDisplayListener listener) {
AddressSetView displayAddresses = pixmap.getAddressSet();
try {
listener.visibleAddressesChanged(displayAddresses);
}
catch (Throwable t) {
Msg.showError(this, fieldPanel, "Error in Display Listener",
"Exception encountered when notifying listeners of change in display", t);
}
}
/**
* Returns the divider location between the left margin areas and the main display.
* @return the location
*/
public int getDividerLocation() {
if (splitPane != null) {
return splitPane.getDividerLocation();
}
return splitPaneDividerLocation;
}
/**
* Sets the divider location between the left margin areas and the main display.
*
* @param dividerLocation the location to set on the divider.
*/
public void setDividerLocation(int dividerLocation) {
splitPaneDividerLocation = dividerLocation;
if (splitPane != null) {
splitPane.setDividerLocation(dividerLocation);
}
}
public void setListingHoverHandler(ListingHoverProvider handler) {
if (handler == null) {
throw new IllegalArgumentException("Cannot set the hover handler to null!");
}
if (listingHoverHandler != null) {
if (listingHoverHandler.isShowing()) {
listingHoverHandler.closeHover();
}
listingHoverHandler.initializeListingHoverHandler(handler);
listingHoverHandler.dispose();
}
listingHoverHandler = handler;
fieldPanel.setHoverProvider(listingHoverHandler);
}
public void dispose() {
if (listingModel != null) {
listingModel.dispose();
listingModel = null;
}
setListingModel(null);
removeAll();
listingHoverHandler.dispose();
layoutModel.dispose();
layoutModel = createLayoutModel(null);
layoutModel.dispose();
buttonListeners = null;
fieldPanel.dispose();
}
/**
* Moves the cursor to the given program location and repositions the scrollbar to show that
* location in the screen.
*
* @param loc the location to move to.
* @return true if successful
*/
public boolean goTo(ProgramLocation loc) {
return goTo(loc, true);
}
/**
* Moves the cursor to the given program location. Also, repositions the scrollbar to show that
* location, if the location is not on the screen.
*
* @param loc the location to move to.
* @param centerWhenNotVisible this variable only has an effect if the given location is not on
* the screen. In that case, when this parameter is true, then the given location
* will be placed in the center of the screen; when the parameter is false, then the
* screen will be scrolled only enough to show the cursor.
* @return true if successful
*/
public boolean goTo(ProgramLocation loc, boolean centerWhenNotVisible) {
Swing.assertSwingThread("goTo() must be called on the Swing thread");
final FieldLocation floc = getFieldLocation(loc);
if (floc == null) {
return false;
}
if (centerWhenNotVisible) {
fieldPanel.goTo(floc.getIndex(), floc.getFieldNum(), floc.getRow(), floc.getCol(),
false);
}
else {
fieldPanel.setCursorPosition(floc.getIndex(), floc.getFieldNum(), floc.getRow(),
floc.getCol());
fieldPanel.scrollToCursor();
}
return true;
}
/**
* Scroll the view of the listing to the given location.
*
* <p>
* If the given location is not displayed, this has no effect.
* @param location the location
*/
public void scrollTo(ProgramLocation location) {
FieldLocation fieldLocation = getFieldLocation(location);
if (fieldLocation == null) {
return;
}
fieldPanel.scrollTo(fieldLocation);
}
/**
* Center the view of the listing around the given location.
* @param location the location
*/
public void center(ProgramLocation location) {
FieldLocation fieldLocation = getFieldLocation(location);
fieldPanel.center(fieldLocation);
}
private FieldLocation getFieldLocation(ProgramLocation loc) {
Program program = getProgram();
if (program == null) {
return null;
}
openDataAsNeeded(loc);
FieldLocation floc = layoutModel.getFieldLocation(loc);
if (floc != null) {
return floc;
}
Address address = loc.getAddress();
AddressSpace locAddressSpace = address.getAddressSpace();
AddressSpace programAddressSpace =
program.getAddressFactory().getAddressSpace(locAddressSpace.getSpaceID());
if (programAddressSpace != locAddressSpace) {
FieldLocation compatibleLocation =
getFieldLocationForDifferingAddressSpaces(loc, program);
return compatibleLocation;
}
return layoutModel.getFieldLocation(new ProgramLocation(program, address));
}
private FieldLocation getFieldLocationForDifferingAddressSpaces(ProgramLocation loc,
Program program) {
Address address = DiffUtility.getCompatibleMemoryAddress(loc.getAddress(), program);
if (address == null) {
return null;
}
CodeUnit cu = program.getListing().getCodeUnitContaining(address);
if (cu instanceof Data) {
Data data = (Data) cu;
if (!cu.getMinAddress().equals(address)) {
return getFieldLocationForDataAndOpenAsNeeded(data, address);
}
else if (!cu.getMinAddress().equals(loc.getByteAddress())) {
return getFieldLocationForDataAndOpenAsNeeded(data, loc.getByteAddress());
}
}
return layoutModel.getFieldLocation(new ProgramLocation(program, address));
}
private void openDataAsNeeded(ProgramLocation location) {
Address address = location.getByteAddress();
Program program = getProgram();
CodeUnit cu = program.getListing().getCodeUnitContaining(address);
if (!(cu instanceof Data)) {
return;
}
Data data = (Data) cu;
if (data.getComponent(0) == null) {
// not sub data to open
return;
}
Data subData = data.getPrimitiveAt((int) address.subtract(data.getMinAddress()));
if (subData == null) {
return;
}
if (openAllData(subData)) {
layoutModel.dataChanged(true);
}
}
private FieldLocation getFieldLocationForDataAndOpenAsNeeded(Data data, Address address) {
Data subData = data.getPrimitiveAt((int) address.subtract(data.getMinAddress()));
if (subData != null) {
boolean didOpen = openAllData(subData);
if (didOpen) {
layoutModel.dataChanged(true);
}
}
while (subData != null) {
Address addr = subData.getMinAddress();
Program program = subData.getProgram();
ProgramLocation location = new AddressFieldLocation(program, addr,
subData.getComponentPath(), addr.toString(), 0);
FieldLocation floc = layoutModel.getFieldLocation(location);
if (floc != null) {
return floc;
}
subData = subData.getParent();
}
return null;
}
private boolean openAllData(Data data) {
boolean didOpen = false;
while (data != null) {
if (!listingModel.isOpen(data)) {
didOpen |= listingModel.openData(data);
}
data = data.getParent();
}
return didOpen;
}
/**
* Positions the ListingPanel to the given address.
*
* @param addr the address at which to position the listing.
* @return true if successful
*/
public boolean goTo(Address addr) {
Program p = getProgram();
if (p != null) {
return goTo(new ProgramLocation(p, addr));
}
return false;
}
/**
* Positions the ListingPanel to the given address.
*
* @param currentAddress used to determine which symbol to goto if the goto address has more
* than one
* @param gotoAddress the address at which to position to listing.
* @return true if the address exists
*/
public boolean goTo(Address currentAddress, Address gotoAddress) {
Program program = getProgram();
if (program == null) {
return false;
}
SymbolTable symTable = program.getSymbolTable();
ReferenceManager refMgr = program.getReferenceManager();
Reference ref = refMgr.getReference(currentAddress, gotoAddress, 0);
Symbol symbol = symTable.getSymbol(ref);
if (symbol != null) {
ProgramLocation loc = symbol.getProgramLocation();
if (loc != null) {
return goTo(loc, true);
}
}
return goTo(gotoAddress);
}
@Override
public void buttonPressed(FieldLocation fieldLocation, Field field, MouseEvent mouseEvent) {
if (fieldLocation == null || !(field instanceof ListingField listingField)) {
return;
}
ProgramLocation programLocation =
layoutModel.getProgramLocation(fieldLocation, listingField);
if (programLocation == null) {
return;
}
for (ButtonPressedListener element : buttonListeners) {
element.buttonPressed(programLocation, fieldLocation, listingField, mouseEvent);
}
}
/**
* Sets the program to be displayed by this listing panel
*
* @param program the program to display.
*/
public void setProgram(Program program) {
listingHoverHandler.setProgram(program);
setListingModel(createListingModel(program));
}
@Override
public void fieldLocationChanged(FieldLocation location, Field field, EventTrigger trigger) {
if (!(field instanceof ListingField lf)) {
return;
}
if (isHeaderShowing()) {
FieldFactory selectedFieldFactory = headerPanel.getSelectedFieldFactory();
if (lf.getFieldFactory() != selectedFieldFactory) {
headerPanel.setSelectedFieldFactory(lf.getFieldFactory());
headerPanel.repaint();
}
headerPanel.setTabLock(false);
}
if (programLocationListener != null) {
ProgramLocation pLoc = layoutModel.getProgramLocation(location, field);
if (pLoc != null) {
programLocationListener.programLocationChanged(pLoc, trigger);
}
}
}
/**
* Restricts the program's view to the given address set
*
* @param view the set of address to include in the view.
*/
public void setView(AddressSetView view) {
layoutModel.setAddressSet(view);
updateProviders();
}
/**
* Gets the view of this listing panel (meant to be used in conjunction with
* {@link #setView(AddressSetView)}.
* @return the addresses
*/
public AddressSetView getView() {
AddressIndexMap map = layoutModel.getAddressIndexMap();
return map.getOriginalAddressSet();
}
/**
* Sets the externally supplied {@link ListingBackgroundColorModel} to be blended with its own
* {@link PropertyBasedBackgroundColorModel}.
*
* @param colorModel the {@link ListingBackgroundColorModel} to use in conjunction with the
* built-in {@link PropertyBasedBackgroundColorModel}
*/
public void setBackgroundColorModel(ListingBackgroundColorModel colorModel) {
if (colorModel == null) {
fieldPanel.setBackgroundColorModel(propertyBasedColorModel);
layeredColorModel = null;
}
else {
colorModel.modelDataChanged(this);
layeredColorModel = new LayeredColorModel(colorModel, propertyBasedColorModel);
fieldPanel.setBackgroundColorModel(layeredColorModel);
}
}
/**
* Sets the background color for the listing panel. This will set the background for the main
* listing display.
* @param c the color
*/
public void setTextBackgroundColor(Color c) {
if (fieldPanel != null) {
fieldPanel.setBackgroundColor(c);
}
}
public Color getTextBackgroundColor() {
if (fieldPanel != null) {
return fieldPanel.getBackgroundColor();
}
return null;
}
/**
* Returns true if this component has focus.
* @return true if this component has focus.
*/
public boolean isActive() {
return fieldPanel.isFocused();
}
/**
* Returns the current program location of the cursor.
* @return the location
*/
public ProgramLocation getProgramLocation() {
FieldLocation loc = fieldPanel.getCursorLocation();
if (loc == null) {
return null;
}
Field field = fieldPanel.getCurrentField();
return layoutModel.getProgramLocation(loc, field);
}
/**
* Get a program location for the given point.
* @param point the point
* @return program location, or null if point does not correspond to a program location
*/
public ProgramLocation getProgramLocation(Point point) {
FieldLocation dropLoc = new FieldLocation();
Field field = fieldPanel.getFieldAt(point.x, point.y, dropLoc);
if (field instanceof ListingField lf) {
return lf.getFieldFactory().getProgramLocation(dropLoc.getRow(), dropLoc.getCol(), lf);
}
return null;
}
/**
* Get the margin providers in this ListingPanel.
* @return the providers
*/
public List<MarginProvider> getMarginProviders() {
return marginProviders;
}
/**
* Get the overview providers in this ListingPanel.
* @return the providers
*/
public List<OverviewProvider> getOverviewProviders() {
return overviewProviders;
}
/**
* Returns true if the mouse is at a location that can be dragged.
* @return true if the mouse is at a location that can be dragged.
*/
public boolean isStartDragOk() {
return fieldPanel.isStartDragOK();
}
/**
* Sets the cursor to the given program location.
*
* @param loc the location at which to move the cursor.
*/
public void setCursorPosition(ProgramLocation loc) {
setCursorPosition(loc, EventTrigger.API_CALL);
}
/**
* Sets the cursor to the given program location with a given trigger
*
* This method should only be used in automated testing to programmatically simulate a user
* navigating within the listing panel.
*
* @param loc the location at which to move the cursor.
* @param trigger the event trigger
*/
public void setCursorPosition(ProgramLocation loc, EventTrigger trigger) {
FieldLocation floc = getFieldLocation(loc);
if (floc != null) {
fieldPanel.setCursorPosition(floc.getIndex(), floc.getFieldNum(), floc.getRow(),
floc.getCol(), trigger);
}
}
public ProgramLocation getCursorLocation() {
FieldLocation cursorPosition = fieldPanel.getCursorLocation();
if (cursorPosition == null) {
return null;
}
return layoutModel.getProgramLocation(cursorPosition, fieldPanel.getCurrentField());
}
public Point getCursorPoint() {
return fieldPanel.getCursorPoint();
}
public Rectangle getCursorBounds() {
return fieldPanel.getCursorBounds();
}
/**
* Returns the AddressIndexMap currently used by this listing panel.
* @return the map
*/
public AddressIndexMap getAddressIndexMap() {
return layoutModel.getAddressIndexMap();
}
/**
* Returns the vertical scrollbar used by this panel.
* @return the scroll bar
*/
public JScrollBar getVerticalScrollBar() {
return scroller.getVerticalScrollBar();
}
/**
* Returns the FormatManager used by this listing panel.
* @return the format manager
*/
public FormatManager getFormatManager() {
return formatManager;
}
public Layout getLayout(Address addr) {
return layoutModel.getLayout(addr);
}
public void addHoverService(ListingHoverService hoverService) {
listingHoverHandler.addHoverService(hoverService);
}
public void removeHoverService(ListingHoverService hoverService) {
listingHoverHandler.removeHoverService(hoverService);
}
public void setHoverMode(boolean enabled) {
listingHoverHandler.setHoverEnabled(enabled);
if (enabled) {
fieldPanel.setHoverProvider(listingHoverHandler);
}
else {
fieldPanel.setHoverProvider(null);
}
}
public boolean isHoverShowing() {
return listingHoverHandler.isShowing();
}
public Program getProgram() {
if (listingModel != null) {
return listingModel.getProgram();
}
return null;
}
/**
* Returns the current program selection.
* @return the selection
*/
public ProgramSelection getProgramSelection() {
return layoutModel.getProgramSelection(fieldPanel.getSelection());
}
public ProgramSelection getProgramSelection(FieldSelection fieldSelection) {
return layoutModel.getProgramSelection(fieldSelection);
}
/**
* Sets the selection to the entire listing view.
*/
public void selectAll() {
fieldPanel.requestFocus();
ProgramSelection sel = layoutModel.getAllProgramSelection();
setSelection(sel);
}
/**
* Sets the selection to the complement of the current selection in the listing view.
* @return the addresses
*/
public AddressSet selectComplement() {
fieldPanel.requestFocus();
AddressIndexMap addrIndexMap = layoutModel.getAddressIndexMap();
AddressSetView viewSet = addrIndexMap.getOriginalAddressSet();
AddressSetView selectionSet = addrIndexMap.getAddressSet(fieldPanel.getSelection());
AddressSet complementSet = viewSet.subtract(selectionSet);
fieldPanel.setSelection(addrIndexMap.getFieldSelection(complementSet));
return complementSet;
}
/**
* Sets the selection.
*
* @param sel the new selection
*/
public void setSelection(ProgramSelection sel) {
setSelection(sel, EventTrigger.API_CALL);
}
/**
* Sets the selection.
*
* @param sel the new selection
* @param trigger the cause of the change
*/
public void setSelection(ProgramSelection sel, EventTrigger trigger) {
if (sel == null) {
fieldPanel.setSelection(layoutModel.getFieldSelection(null), trigger);
return;
}
InteriorSelection interior = sel.getInteriorSelection();
if (interior != null) {
FieldLocation loc1 = layoutModel.getFieldLocation(interior.getFrom());
FieldLocation loc2 = layoutModel.getFieldLocation(interior.getTo());
if (loc1 != null && loc2 != null) {
FieldSelection fieldSel = new FieldSelection();
int fieldNum1 = -1;
Layout layout = layoutModel.getLayout(loc1.getIndex());
if (layout != null) {
fieldNum1 = layout.getBeginRowFieldNum(loc1.getFieldNum());
}
Layout layout2 = layoutModel.getLayout(loc2.getIndex());
if (fieldNum1 >= 0 && layout2 != null) {
BigInteger index2 = loc2.getIndex();
int fieldNum2 = layout.getEndRowFieldNum(loc2.getFieldNum());
if (fieldNum2 >= layout2.getNumFields()) {
index2 = loc2.getIndex().add(BigInteger.valueOf(layout2.getIndexSize()));
fieldNum2 = 0;
}
fieldSel.addRange(new FieldLocation(loc1.getIndex(), fieldNum1, 0, 0),
new FieldLocation(index2, fieldNum2, 0, 0));
fieldPanel.setSelection(fieldSel, trigger);
return;
}
}
}
fieldPanel.setSelection(layoutModel.getFieldSelection(sel), trigger);
}
/**
* Sets the highlight.
*
* @param highlight the new highlight.
*/
public void setHighlight(ProgramSelection highlight) {
fieldPanel.setHighlight(layoutModel.getFieldSelection(highlight));
}
public ProgramSelection getProgramHighlight() {
return layoutModel.getProgramSelection(fieldPanel.getHighlight());
}
@Override
public void selectionChanged(FieldSelection selection, EventTrigger trigger) {
if (listingModel == null) {
// Dragging in a popup window that contains a listing while that window
// closes can trigger this condition
return;
}
String text = FieldSelectionHelper.getFieldSelectionText(selection, fieldPanel);
if (stringSelectionListener != null) {
stringSelectionListener.setStringSelection(text);
}
currentTextSelection = text;
if (text != null) {
return;
}
if (listingModel.getProgram() == null || programSelectionListener == null) {
return;
}
ProgramSelection ps = layoutModel.getProgramSelection(selection);
if (ps != null) {
programSelectionListener.programSelectionChanged(ps, trigger);
}
}
/**
* Returns the currently selected text. The value will only be non-null for selections within a
* single field.
*
* @return the selected text or null
*/
public String getTextSelection() {
return currentTextSelection;
}
public void enablePropertyBasedColorModel(boolean b) {
propertyBasedColorModel.setEnabled(b);
}
/**
* Sets listing panel to never show scroll bars. This is useful when you want this listing's
* parent to always be as big as this listing.
*/
public void setNeverSroll() {
scroller.setNeverScroll(true);
}
public void setFormatManager(FormatManager formatManager) {
List<ListingHighlightProvider> highlightProviders =
this.formatManager.getHighlightProviders();
this.formatManager = formatManager;
for (ListingHighlightProvider provider : highlightProviders) {
this.formatManager.addHighlightProvider(provider);
}
if (headerPanel != null) {
showHeader(false);
}
if (listingModel != null) {
listingModel.setFormatManager(formatManager);
}
layoutModel.dataChanged(true);
}
public void addDisplayListener(AddressSetDisplayListener listener) {
displayListeners.add(listener);
}
public void removeDisplayListener(AddressSetDisplayListener listener) {
displayListeners.remove(listener);
}
}
| NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/listingpanel/ListingPanel.java |
213,389 | package antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
*
* $Id: //depot/code/org.antlr/release/antlr-2.7.5/antlr/ParserGrammar.java#1 $
*/
import java.util.Hashtable;
import java.util.Enumeration;
import java.io.IOException;
import antlr.collections.impl.BitSet;
import antlr.collections.impl.Vector;
/** Parser-specific grammar subclass */
class ParserGrammar extends Grammar {
ParserGrammar(String className_, Tool tool_, String superClass) {
super(className_, tool_, superClass);
}
/** Top-level call to generate the code for this grammar */
public void generate() throws IOException {
generator.gen(this);
}
// Get name of class from which generated parser/lexer inherits
protected String getSuperClass() {
// if debugging, choose the debugging version of the parser
if (debuggingOutput)
return "debug.LLkDebuggingParser";
return "LLkParser";
}
/**Process command line arguments.
* -trace have all rules call traceIn/traceOut
* -traceParser have parser rules call traceIn/traceOut
* -debug generate debugging output for parser debugger
*/
public void processArguments(String[] args) {
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-trace")) {
traceRules = true;
antlrTool.setArgOK(i);
}
else if (args[i].equals("-traceParser")) {
traceRules = true;
antlrTool.setArgOK(i);
}
else if (args[i].equals("-debug")) {
debuggingOutput = true;
antlrTool.setArgOK(i);
}
}
}
/** Set parser options -- performs action on the following options:
*/
public boolean setOption(String key, Token value) {
String s = value.getText();
if (key.equals("buildAST")) {
if (s.equals("true")) {
buildAST = true;
}
else if (s.equals("false")) {
buildAST = false;
}
else {
antlrTool.error("buildAST option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("interactive")) {
if (s.equals("true")) {
interactive = true;
}
else if (s.equals("false")) {
interactive = false;
}
else {
antlrTool.error("interactive option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("ASTLabelType")) {
super.setOption(key, value);
return true;
}
if (key.equals("className")) {
super.setOption(key, value);
return true;
}
if (super.setOption(key, value)) {
return true;
}
antlrTool.error("Invalid option: " + key, getFilename(), value.getLine(), value.getColumn());
return false;
}
}
| boo-lang/boo | lib/antlr-2.7.5/antlr/ParserGrammar.java |
213,391 | /*
*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*
*/
package mage.cards.i;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.delayed.WhenTargetDiesDelayedTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.FlipSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.permanent.WasDealtDamageThisTurnPredicate;
import mage.game.permanent.token.TokenImpl;
import mage.target.common.TargetCreaturePermanent;
/**
* @author awjackson
*/
public final class InitiateOfBlood extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature that was dealt damage this turn");
static {
filter.add(WasDealtDamageThisTurnPredicate.instance);
}
public InitiateOfBlood(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}");
this.subtype.add(SubType.OGRE, SubType.SHAMAN);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
this.flipCard = true;
this.flipCardName = "Goka the Unjust";
// {T}: Initiate of Blood deals 1 damage to target creature that was dealt damage this turn.
// When that creature dies this turn, flip Initiate of Blood.
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new WhenTargetDiesDelayedTriggeredAbility(
new FlipSourceEffect(new GokaTheUnjust()).setText("flip {this}")
)));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}
private InitiateOfBlood(final InitiateOfBlood card) {
super(card);
}
@Override
public InitiateOfBlood copy() {
return new InitiateOfBlood(this);
}
}
class GokaTheUnjust extends TokenImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature that was dealt damage this turn");
static {
filter.add(WasDealtDamageThisTurnPredicate.instance);
}
GokaTheUnjust() {
super("Goka the Unjust", "");
this.supertype.add(SuperType.LEGENDARY);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add(SubType.OGRE, SubType.SHAMAN);
power = new MageInt(4);
toughness = new MageInt(4);
// {T}: Goka the Unjust deals 4 damage to target creature that was dealt damage this turn.
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(4), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}
private GokaTheUnjust(final GokaTheUnjust token) {
super(token);
}
public GokaTheUnjust copy() {
return new GokaTheUnjust(this);
}
}
| Ebola16/mage | Mage.Sets/src/mage/cards/i/InitiateOfBlood.java |
213,392 | package org.knowm.xchange.okex.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
/* Author: Ali Gokalp Peker ([email protected]) Created: 23-10-2021 */
/** <a href="https://www.okex.com/docs-v5/en/#rest-api-funding-get-balance">...</a> * */
@Getter
@NoArgsConstructor
public class OkexAssetBalance {
@JsonProperty("ccy")
private String currency;
@JsonProperty("bal")
private String balance;
@JsonProperty("availBal")
private String availableBalance;
@JsonProperty("frozenBal")
private String frozenBalance;
}
| knowm/XChange | xchange-okex/src/main/java/org/knowm/xchange/okex/dto/account/OkexAssetBalance.java |
213,393 | package org.osm2world.viewer.view;
import static java.util.Arrays.stream;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.dnd.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import javax.swing.*;
/*
* the initial version of this class has been copied from the Public Domain resource
* http://www.iharder.net/current/java/filedrop/
*/
/**
* This class makes it easy to drag and drop files from the operating
* system to a Java program. Any <tt>java.awt.Component</tt> can be
* dropped onto, but only <tt>javax.swing.JComponent</tt>s will indicate
* the drop event with a changed border.
* <p/>
* To use this class, construct a new <tt>FileDrop</tt> by passing
* it the target component and a <tt>Listener</tt> to receive notification
* when file(s) have been dropped. Here is an example:
* <p/>
* <code><pre>
* JPanel myPanel = new JPanel();
* new FileDrop( myPanel, new FileDrop.Listener()
* { public void filesDropped( java.io.File[] files )
* {
* // handle file drop
* ...
* } // end filesDropped
* }); // end FileDrop.Listener
* </pre></code>
* <p/>
* You can specify the border that will appear when files are being dragged by
* calling the constructor with a <tt>javax.swing.border.Border</tt>. Only
* <tt>JComponent</tt>s will show any indication with a border.
* <p/>
* You can turn on some debugging features by passing a <tt>PrintStream</tt>
* object (such as <tt>System.out</tt>) into the full constructor. A <tt>null</tt>
* value will result in no extra debugging information being output.
* <p/>
*
* <p>I'm releasing this code into the Public Domain. Enjoy.
* </p>
* <p><em>Original author: Robert Harder, [email protected]</em></p>
* <p>2007-09-12 Nathan Blomquist -- Linux (KDE/Gnome) support added.</p>
*
* @author Robert Harder
* @author [email protected]
* @version 1.0.1
*/
class FileDrop
{
private transient javax.swing.border.Border normalBorder;
private transient DropTargetListener dropListener;
private static Boolean supportsDnD;
// Default border color
private static final java.awt.Color defaultBorderColor = new java.awt.Color( 0f, 0f, 1f, 0.25f );
/**
* Constructs a {@link FileDrop} with a default light-blue border
* and, if <var>c</var> is a {@link Container}, recursively
* sets all elements contained within as drop targets, though only
* the top level container will change borders.
*
* @param c Component on which files will be dropped.
* @param listener Listens for <tt>filesDropped</tt>.
*/
public FileDrop(final Component c, final Consumer<File[]> listener) {
this(
c,
javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, defaultBorderColor), // Drag border
true,
listener);
}
/**
* Full constructor with a specified border.
*
* @param c Component on which files will be dropped.
* @param dragBorder Border to use on <tt>JComponent</tt> when dragging occurs.
* @param recursive Recursively set children as drop targets.
* @param listener Listens for <tt>filesDropped</tt>.
*/
public FileDrop(
final Component c,
final javax.swing.border.Border dragBorder,
final boolean recursive,
final Consumer<File[]> listener) {
if (supportsDnD()) {
// Make a drop listener
dropListener = new DropTargetListener() {
public void dragEnter(DropTargetDragEvent evt) {
// Is this an acceptable drag event?
if (isDragOk(evt)) {
// If it's a Swing component, set its border
if (c instanceof JComponent jc) {
normalBorder = jc.getBorder();
jc.setBorder(dragBorder);
}
// Acknowledge that it's okay to enter
evt.acceptDrag(DnDConstants.ACTION_COPY);
} else { // Reject the drag event
evt.rejectDrag();
}
}
public void dragOver(DropTargetDragEvent evt) {
// This is called continually as long as the mouse is over the drag target.
}
public void drop(DropTargetDropEvent evt) {
try { // Get whatever was dropped
Transferable tr = evt.getTransferable();
// Is it a file list?
if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
// Say we'll take it.
evt.acceptDrop(DnDConstants.ACTION_COPY);
@SuppressWarnings("unchecked")
List<File> fileList = (List<File>) tr.getTransferData(DataFlavor.javaFileListFlavor);
final File[] files = fileList.toArray(new File[0]);
// Alert listener to drop.
if (listener != null) {
listener.accept(files);
}
// Mark that drop is completed.
evt.getDropTargetContext().dropComplete(true);
} else {
// this section will check for a reader flavor.
DataFlavor[] flavors = tr.getTransferDataFlavors();
boolean handled = false;
for (DataFlavor flavor : flavors) {
if (flavor.isRepresentationClassReader()) {
// Say we'll take it.
evt.acceptDrop(DnDConstants.ACTION_COPY);
Reader reader = flavor.getReaderForText(tr);
BufferedReader br = new BufferedReader(reader);
if (listener != null) {
listener.accept(createFileArray(br));
}
// Mark that drop is completed.
evt.getDropTargetContext().dropComplete(true);
handled = true;
break;
}
}
if (!handled) {
System.err.println("FileDrop: not a file list or reader - abort.");
evt.rejectDrop();
}
}
} catch (IOException | UnsupportedFlavorException e) {
System.err.println("FileDrop: IOException - abort:");
e.printStackTrace();
evt.rejectDrop();
} finally {
// If it's a Swing component, reset its border
if (c instanceof JComponent jc) {
jc.setBorder(normalBorder);
}
}
}
public void dragExit(java.awt.dnd.DropTargetEvent evt) {
// If it's a Swing component, reset its border
if (c instanceof JComponent jc) {
jc.setBorder(normalBorder);
}
}
public void dropActionChanged(DropTargetDragEvent evt) {
if (isDragOk(evt)) {
evt.acceptDrag(DnDConstants.ACTION_COPY);
} else {
evt.rejectDrag();
}
}
};
// Make the component (and possibly children) drop targets
makeDropTarget(c, recursive);
} else {
System.err.println("FileDrop: Drag and drop is not supported with this JVM");
}
}
/** Discover if the running JVM is modern enough to have drag and drop. */
private static boolean supportsDnD() {
if (supportsDnD == null) {
try {
// attempt to load an arbitrary DnD class
Class.forName("java.awt.dnd.DnDConstants");
supportsDnD = true;
} catch (Exception e) {
supportsDnD = false;
}
}
return supportsDnD;
}
private static File[] createFileArray(BufferedReader bReader) {
List<File> result = new ArrayList<>();
bReader.lines()
.filter(line -> !("" + (char) 0).equals(line)) // kde seems to append a 0 char to the end of the reader
.forEach(line -> {
try {
result.add(new File(new URI(line)));
} catch (URISyntaxException e) {
System.err.println("Error with " + line + ": " + e.getMessage());
}
});
return result.toArray(new File[0]);
}
private void makeDropTarget(final Component c, boolean recursive) {
// Listen for hierarchy changes and remove the drop target when the parent gets cleared out.
c.addHierarchyListener(evt -> {
if (c.getParent() == null) {
c.setDropTarget(null);
} else {
new DropTarget(c, dropListener);
}
});
if (c.getParent() != null) {
new DropTarget(c, dropListener);
}
if (recursive && c instanceof Container cont) {
// Set the container's components as listeners also
for (Component comp : cont.getComponents()) {
makeDropTarget(comp, true);
}
}
}
/** Determine if the dragged data is a file list. */
private boolean isDragOk(final DropTargetDragEvent evt) {
return stream(evt.getCurrentDataFlavors()).anyMatch((DataFlavor curFlavor) ->
curFlavor.equals(DataFlavor.javaFileListFlavor) || curFlavor.isRepresentationClassReader());
}
/**
* Removes the drag-and-drop hooks from the component and optionally from the all children.
* You should call this if you add and remove components after you've set up the drag-and-drop.
*
* @param c The component to unregister
* @param recursive Recursively unregister components within a container
*/
public static boolean remove(Component c, boolean recursive) {
if (supportsDnD()) {
c.setDropTarget(null);
if (recursive && (c instanceof Container container)) {
for (Component comp : container.getComponents()) {
remove(comp, true);
}
return true;
}
}
return false;
}
}
| tordanik/OSM2World | src/main/java/org/osm2world/viewer/view/FileDrop.java |
213,394 | package org.wysaid.view;
/**
* Created by wangyang on 15/7/27.
*/
import android.content.Context;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.util.AttributeSet;
import android.util.Log;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.ShortBuffer;
/**
* Created by wangyang on 15/7/17.
*/
public class CameraRecordGLSurfaceView extends CameraGLSurfaceViewWithTexture {
public CameraRecordGLSurfaceView(Context context, AttributeSet attrs) {
super(context, attrs);
}
private boolean mShouldRecord = false;
public synchronized boolean isRecording() {
return mShouldRecord;
}
private final Object mRecordStateLock = new Object();
private AudioRecordRunnable mAudioRecordRunnable;
private Thread mAudioThread;
public interface StartRecordingCallback {
void startRecordingOver(boolean success);
}
public void startRecording(final String filename) {
startRecording(filename, null);
}
public void startRecording(final String filename, final StartRecordingCallback recordingCallback) {
queueEvent(new Runnable() {
@Override
public void run() {
if (mFrameRecorder == null) {
Log.e(LOG_TAG, "Error: startRecording after release!!");
if (recordingCallback != null) {
recordingCallback.startRecordingOver(false);
}
return;
}
if (!mFrameRecorder.startRecording(30, filename)) {
Log.e(LOG_TAG, "start recording failed!");
if (recordingCallback != null)
recordingCallback.startRecordingOver(false);
return;
}
Log.i(LOG_TAG, "glSurfaceView recording, file: " + filename);
synchronized (mRecordStateLock) {
mShouldRecord = true;
mAudioRecordRunnable = new AudioRecordRunnable(recordingCallback);
if (mAudioRecordRunnable.audioRecord != null) {
mAudioThread = new Thread(mAudioRecordRunnable);
mAudioThread.start();
}
}
}
});
}
public interface EndRecordingCallback {
void endRecordingOK();
}
public void endRecording() {
endRecording(null, true);
}
public void endRecording(final EndRecordingCallback callback) {
endRecording(callback, true);
}
// The video may be invalid if "shouldSave" is false;
public void endRecording(final EndRecordingCallback callback, final boolean shouldSave) {
Log.i(LOG_TAG, "notify quit...");
synchronized (mRecordStateLock) {
mShouldRecord = false;
}
if (mFrameRecorder == null) {
Log.e(LOG_TAG, "Error: endRecording after release!!");
return;
}
joinAudioRecording();
queueEvent(new Runnable() {
@Override
public void run() {
if (mFrameRecorder != null)
mFrameRecorder.endRecording(shouldSave);
if (callback != null) {
callback.endRecordingOK();
}
}
});
}
@Override
protected void onRelease() {
synchronized (mRecordStateLock) {
mShouldRecord = false;
}
joinAudioRecording();
super.onRelease();
}
@Override
public void stopPreview() {
synchronized (mRecordStateLock) {
if (mShouldRecord) {
Log.e(LOG_TAG, "The camera is recording! cannot stop!");
return;
}
}
super.stopPreview();
}
public void joinAudioRecording() {
if (mAudioThread != null) {
try {
mAudioThread.join();
mAudioThread = null;
} catch (Exception e) {
e.printStackTrace();
}
}
}
class AudioRecordRunnable implements Runnable {
int bufferSize;
// short[] audioData;
int bufferReadResult;
public AudioRecord audioRecord;
public volatile boolean isInitialized;
private static final int sampleRate = 44100;
ByteBuffer audioBufferRef;
ShortBuffer audioBuffer;
StartRecordingCallback recordingCallback;
private AudioRecordRunnable(StartRecordingCallback callback) {
recordingCallback = callback;
try {
bufferSize = AudioRecord.getMinBufferSize(sampleRate,
AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT);
Log.i(LOG_TAG, "audio min buffer size: " + bufferSize);
audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate,
AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize);
// audioData = new short[bufferSize];
audioBufferRef = ByteBuffer.allocateDirect(bufferSize * 2).order(ByteOrder.nativeOrder());
audioBuffer = audioBufferRef.asShortBuffer();
} catch (Exception e) {
if (audioRecord != null) {
audioRecord.release();
audioRecord = null;
}
}
if (audioRecord == null && recordingCallback != null) {
recordingCallback.startRecordingOver(false);
recordingCallback = null;
}
}
public void run() {
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);
this.isInitialized = false;
if (this.audioRecord == null) {
recordingCallback.startRecordingOver(false);
recordingCallback = null;
return;
}
//判断音频录制是否被初始化
while (this.audioRecord.getState() == 0) {
try {
Thread.sleep(100L);
} catch (InterruptedException localInterruptedException) {
localInterruptedException.printStackTrace();
}
}
this.isInitialized = true;
try {
this.audioRecord.startRecording();
} catch (Exception e) {
if (recordingCallback != null) {
recordingCallback.startRecordingOver(false);
recordingCallback = null;
}
return;
}
if (this.audioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) {
if (recordingCallback != null) {
recordingCallback.startRecordingOver(false);
recordingCallback = null;
}
return;
}
if (recordingCallback != null) {
recordingCallback.startRecordingOver(true);
recordingCallback = null;
}
while (true) {
synchronized (mRecordStateLock) {
if (!mShouldRecord) //&& mFrameRecorder.getVideoStreamtime() <= mFrameRecorder.getAudioStreamtime()
break;
}
audioBufferRef.position(0);
bufferReadResult = this.audioRecord.read(audioBufferRef, bufferSize * 2);
if (mShouldRecord && bufferReadResult > 0 && mFrameRecorder != null &&
mFrameRecorder.getTimestamp() > mFrameRecorder.getAudioStreamtime()) {
// Log.e(LOG_TAG, "buffer Result: " + bufferReadResult);
audioBuffer.position(0);
// audioBuffer.put(audioData).position(0);
mFrameRecorder.recordAudioFrame(audioBuffer, bufferReadResult / 2);
}
}
this.audioRecord.stop();
this.audioRecord.release();
Log.i(LOG_TAG, "Audio thread end!");
}
}
}
| nhancv/nc-ad-facemask | library/src/main/java/org/wysaid/view/CameraRecordGLSurfaceView.java |
213,395 | package antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
*
* $Id: //depot/code/org.antlr/release/antlr-2.7.5/antlr/TreeWalkerGrammar.java#1 $
*/
import java.util.Hashtable;
import java.util.Enumeration;
import java.io.IOException;
import antlr.collections.impl.BitSet;
import antlr.collections.impl.Vector;
/** Parser-specific grammar subclass */
class TreeWalkerGrammar extends Grammar {
// true for transform mode
protected boolean transform = false;
TreeWalkerGrammar(String className_, Tool tool_, String superClass) {
super(className_, tool_, superClass);
}
/** Top-level call to generate the code for this grammar */
public void generate() throws IOException {
generator.gen(this);
}
// Get name of class from which generated parser/lexer inherits
protected String getSuperClass() {
return "TreeParser";
}
/**Process command line arguments.
* -trace have all rules call traceIn/traceOut
* -traceParser have parser rules call traceIn/traceOut
* -debug generate debugging output for parser debugger
*/
public void processArguments(String[] args) {
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-trace")) {
traceRules = true;
antlrTool.setArgOK(i);
}
else if (args[i].equals("-traceTreeParser")) {
traceRules = true;
antlrTool.setArgOK(i);
}
// else if ( args[i].equals("-debug") ) {
// debuggingOutput = true;
// superClass = "parseview.DebuggingTreeWalker";
// Tool.setArgOK(i);
// }
}
}
/** Set tree parser options */
public boolean setOption(String key, Token value) {
if (key.equals("buildAST")) {
if (value.getText().equals("true")) {
buildAST = true;
}
else if (value.getText().equals("false")) {
buildAST = false;
}
else {
antlrTool.error("buildAST option must be true or false", getFilename(), value.getLine(), value.getColumn());
}
return true;
}
if (key.equals("ASTLabelType")) {
super.setOption(key, value);
return true;
}
if (key.equals("className")) {
super.setOption(key, value);
return true;
}
if (super.setOption(key, value)) {
return true;
}
antlrTool.error("Invalid option: " + key, getFilename(), value.getLine(), value.getColumn());
return false;
}
}
| boo-lang/boo | lib/antlr-2.7.5/antlr/TreeWalkerGrammar.java |
213,396 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.app.plugin.core.codebrowser;
import java.awt.Component;
import java.awt.Point;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.dnd.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.*;
import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import docking.*;
import docking.action.*;
import docking.actions.PopupActionProvider;
import docking.dnd.*;
import docking.widgets.EventTrigger;
import docking.widgets.fieldpanel.FieldPanel;
import docking.widgets.fieldpanel.HoverHandler;
import docking.widgets.fieldpanel.internal.FieldPanelCoordinator;
import docking.widgets.fieldpanel.support.*;
import docking.widgets.tab.GTabPanel;
import generic.theme.GIcon;
import ghidra.app.context.ListingActionContext;
import ghidra.app.nav.ListingPanelContainer;
import ghidra.app.nav.LocationMemento;
import ghidra.app.plugin.core.clipboard.CodeBrowserClipboardProvider;
import ghidra.app.plugin.core.codebrowser.actions.*;
import ghidra.app.plugin.core.codebrowser.hover.ListingHoverService;
import ghidra.app.plugin.core.progmgr.ProgramTabActionContext;
import ghidra.app.services.*;
import ghidra.app.util.*;
import ghidra.app.util.viewer.field.ListingField;
import ghidra.app.util.viewer.format.*;
import ghidra.app.util.viewer.listingpanel.*;
import ghidra.app.util.viewer.multilisting.MultiListingLayoutModel;
import ghidra.app.util.viewer.options.ListingDisplayOptionsEditor;
import ghidra.app.util.viewer.util.FieldNavigator;
import ghidra.framework.options.SaveState;
import ghidra.framework.plugintool.NavigatableComponentProviderAdapter;
import ghidra.framework.plugintool.PluginTool;
import ghidra.program.model.address.*;
import ghidra.program.model.listing.*;
import ghidra.program.util.*;
import ghidra.util.HelpLocation;
import ghidra.util.Swing;
public class CodeViewerProvider extends NavigatableComponentProviderAdapter
implements ProgramLocationListener, ProgramSelectionListener, Draggable, Droppable,
ChangeListener, StringSelectionListener, PopupActionProvider {
private static final String OLD_NAME = "CodeBrowserPlugin";
private static final String NAME = "Listing";
private static final String TITLE = NAME + ": ";
private static final Icon LISTING_FORMAT_EXPAND_ICON =
new GIcon("icon.plugin.codebrowser.format.expand");
private static final Icon LISTING_FORMAT_COLLAPSE_ICON =
new GIcon("icon.plugin.codebrowser.format.collapse");
private static final Icon HOVER_ON_ICON = new GIcon("icon.plugin.codebrowser.hover.on");
private static final Icon HOVER_OFF_ICON = new GIcon("icon.plugin.codebrowser.hover.off");
private static final String HOVER_MODE = "Hover Mode";
private static final String DIVIDER_LOCATION = "DividerLocation";
private Map<Program, ListingHighlightProvider> programHighlighterMap = new HashMap<>();
private ProgramHighlighterProvider highlighterAdapter;
private ListingPanel listingPanel;
private CodeBrowserPluginInterface plugin;
private Program program;
private DragSource dragSource;
private DragGestureAdapter dragGestureAdapter;
private DragSrcAdapter dragSourceAdapter;
private int dragAction = DnDConstants.ACTION_MOVE;
private DropTgtAdapter dropTargetAdapter;
private DataFlavor[] acceptableFlavors = new DataFlavor[0];
private ProgramDropProvider[] dropProviders = new ProgramDropProvider[0];
private ProgramDropProvider curDropProvider;
private ToggleDockingAction toggleHoverAction;
private ProgramLocation currentLocation;
private ListingPanel otherPanel;
private CoordinatedListingPanelListener coordinatedListingPanelListener;
private FormatManager formatMgr;
private FieldPanelCoordinator coordinator;
private FocusingMouseListener focusingMouseListener;
private CodeBrowserClipboardProvider codeViewerClipboardProvider;
private ClipboardService clipboardService;
private ListingPanelContainer decorationPanel;
private CloneCodeViewerAction cloneCodeViewerAction;
private ProgramSelection currentSelection;
private ProgramSelection currentHighlight;
private String currentStringSelection;
private FieldNavigator fieldNavigator;
private MultiListingLayoutModel multiModel;
public CodeViewerProvider(CodeBrowserPluginInterface plugin, FormatManager formatMgr,
boolean isConnected) {
super(plugin.getTool(), NAME, plugin.getName(), CodeViewerActionContext.class);
this.plugin = plugin;
this.formatMgr = formatMgr;
// note: the owner has not changed, just the name; remove sometime after version 10
String owner = plugin.getName();
ComponentProvider.registerProviderNameOwnerChange(OLD_NAME, owner, NAME, owner);
registerAdjustableFontId(ListingDisplayOptionsEditor.DEFAULT_FONT_ID);
setConnected(isConnected);
setIcon(new GIcon("icon.plugin.codebrowser.provider"));
if (!isConnected) {
setTransient();
}
else {
addToToolbar();
}
setHelpLocation(new HelpLocation("CodeBrowserPlugin", "Code_Browser"));
setDefaultWindowPosition(WindowPosition.RIGHT);
listingPanel = new ListingPanel(formatMgr);
listingPanel.enablePropertyBasedColorModel(true);
decorationPanel = new ListingPanelContainer(listingPanel, isConnected);
ListingMiddleMouseHighlightProvider listingHighlighter =
createListingHighlighter(listingPanel, tool, decorationPanel);
highlighterAdapter = new ProgramHighlighterProvider(listingHighlighter);
listingPanel.addHighlightProvider(highlighterAdapter);
setWindowMenuGroup("Listing");
setIntraGroupPosition(WindowPosition.RIGHT);
setTitle(isConnected ? TITLE : "[" + TITLE + "]");
fieldNavigator = new FieldNavigator(tool, this);
listingPanel.addButtonPressedListener(fieldNavigator);
addToTool();
createActions();
listingPanel.setProgramLocationListener(this);
listingPanel.setProgramSelectionListener(this);
listingPanel.setStringSelectionListener(this);
listingPanel.addIndexMapChangeListener(this);
codeViewerClipboardProvider = newClipboardProvider();
tool.addPopupActionProvider(this);
setDefaultFocusComponent(listingPanel.getFieldPanel());
}
protected CodeBrowserClipboardProvider newClipboardProvider() {
return new CodeBrowserClipboardProvider(tool, this);
}
@Override
public boolean isSnapshot() {
// we are a snapshot when we are 'disconnected'
return !isConnected();
}
/**
* TODO: Remove or rename this to something that accommodates redirecting writes, e.g., to a
* debug target process, particularly for assembly, which may involve code unit modification
* after a successful write, reported asynchronously :/ .
*
* @return true if this listing represents a read-only view
*/
public boolean isReadOnly() {
return false;
}
private ListingMiddleMouseHighlightProvider createListingHighlighter(ListingPanel panel,
PluginTool pluginTool, Component repaintComponent) {
ListingMiddleMouseHighlightProvider listingHighlighter =
new ListingMiddleMouseHighlightProvider(pluginTool, repaintComponent);
panel.addButtonPressedListener(listingHighlighter);
return listingHighlighter;
}
public void setClipboardService(ClipboardService service) {
clipboardService = service;
if (clipboardService != null) {
clipboardService.registerClipboardContentProvider(codeViewerClipboardProvider);
}
}
@Override
public String getWindowGroup() {
if (isConnected()) {
return "Core"; // this lets other components place themselves around us
}
return "Core.disconnected";
}
@Override
public WindowPosition getIntraGroupPosition() {
if (isConnected()) {
return WindowPosition.TOP;
}
// disconnected/snapshot providers should go to the right
return WindowPosition.RIGHT;
}
@Override
public void closeComponent() {
if (!isConnected()) {
plugin.providerClosed(this);
return;
}
boolean closedListing = false;
// If a second listing panel is showing then this should close it.
// Otherwise just hide this provider.
if (otherPanel != null && coordinatedListingPanelListener != null) {
closedListing = coordinatedListingPanelListener.listingClosed();
}
if (!closedListing) {
tool.showComponentProvider(this, false);
}
}
@Override
public void dispose() {
super.dispose();
tool.removePopupActionProvider(this);
if (clipboardService != null) {
clipboardService.deRegisterClipboardContentProvider(codeViewerClipboardProvider);
}
listingPanel.dispose();
program = null;
currentLocation = null;
currentSelection = null;
currentHighlight = null;
}
@Override
public JComponent getComponent() {
return decorationPanel;
}
protected ListingActionContext newListingActionContext() {
return new CodeViewerActionContext(this);
}
@Override
public ActionContext getActionContext(MouseEvent event) {
if (program == null) {
return null;
}
if (event == null) {
return newListingActionContext();
}
Object source = event.getSource();
if (source == null || source == listingPanel.getFieldPanel()) {
Point point = event.getPoint();
ProgramLocation programLocation = listingPanel.getProgramLocation(point);
if (programLocation == null) {
return null;
}
return newListingActionContext();
}
FieldHeader headerPanel = listingPanel.getFieldHeader();
if (headerPanel != null && source instanceof FieldHeaderComp) {
FieldHeaderLocation fhLoc = headerPanel.getFieldHeaderLocation(event.getPoint());
return createContext(fhLoc);
}
if (otherPanel != null && otherPanel.isAncestorOf((Component) source)) {
Object obj = getContextForMarginPanels(otherPanel, event);
if (obj != null) {
return createContext(obj);
}
return new OtherPanelContext(this, program);
}
JComponent northPanel = decorationPanel.getNorthPanel();
if (northPanel != null && northPanel.isAncestorOf((Component) source)) {
if (northPanel instanceof GTabPanel tabPanel) {
Program tabValue = (Program) tabPanel.getValueFor(event);
if (tabValue != null) {
return new ProgramTabActionContext(this, tabValue, tabPanel);
}
}
}
return createContext(getContextForMarginPanels(listingPanel, event));
}
private Object getContextForMarginPanels(ListingPanel lp, MouseEvent event) {
Object source = event.getSource();
List<MarginProvider> marginProviders = lp.getMarginProviders();
for (MarginProvider marginProvider : marginProviders) {
JComponent c = marginProvider.getComponent();
if (c == source) {
MarkerLocation loc = marginProvider.getMarkerLocation(event.getX(), event.getY());
if (loc != null) {
if (lp == listingPanel) {
return loc;
}
return source;
}
}
}
List<OverviewProvider> overviewProviders = lp.getOverviewProviders();
for (OverviewProvider overviewProvider : overviewProviders) {
JComponent c = overviewProvider.getComponent();
if (c == source) {
return source;
}
}
return null;
}
@Override
public void dragCanceled(DragSourceDropEvent event) {
// nothing to do
}
@Override
public int getDragAction() {
return dragAction;
}
@Override
public DragSourceListener getDragSourceListener() {
return dragSourceAdapter;
}
@Override
public Transferable getTransferable(Point p) {
ProgramSelection ps = listingPanel.getProgramSelection();
return new SelectionTransferable(
new SelectionTransferData(ps, program.getDomainFile().getPathname()));
}
@Override
public boolean isStartDragOk(DragGestureEvent e) {
if (program == null) {
return false;
}
return listingPanel.isStartDragOk();
}
@Override
public void move() {
// nothing to do
}
@Override
public void add(Object obj, DropTargetDropEvent event, DataFlavor f) {
Point p = event.getLocation();
ProgramLocation loc = listingPanel.getProgramLocation(p);
CodeViewerActionContext context = new CodeViewerActionContext(this, loc);
if (loc != null && curDropProvider != null) {
curDropProvider.add(context, obj, f);
}
}
@Override
public void dragUnderFeedback(boolean ok, DropTargetDragEvent e) {
// nothing to do
}
@Override
public boolean isDropOk(DropTargetDragEvent e) {
curDropProvider = null;
Point p = e.getLocation();
ProgramLocation loc = listingPanel.getProgramLocation(p);
if (loc == null) {
return false;
}
CodeViewerActionContext context = new CodeViewerActionContext(this, loc);
for (ProgramDropProvider dropProvider : dropProviders) {
if (dropProvider.isDropOk(context, e)) {
curDropProvider = dropProvider;
return true;
}
}
return false;
}
@Override
public void removeHighlightProvider(ListingHighlightProvider highlightProvider,
Program highlightProgram) {
programHighlighterMap.remove(highlightProgram);
updateHighlightProvider();
}
@Override
public void setHighlightProvider(ListingHighlightProvider highlightProvider,
Program highlightProgram) {
programHighlighterMap.put(highlightProgram, highlightProvider);
updateHighlightProvider();
}
public void updateHighlightProvider() {
listingPanel.getFieldPanel().repaint();
if (otherPanel != null) {
otherPanel.getFieldPanel().repaint();
}
}
@Override
public void undoDragUnderFeedback() {
// nothing to do
}
protected void doSetProgram(Program newProgram) {
currentLocation = null;
program = newProgram;
updateTitle();
listingPanel.setProgram(program);
codeViewerClipboardProvider.setProgram(program);
codeViewerClipboardProvider.setListingLayoutModel(listingPanel.getListingModel());
if (coordinatedListingPanelListener != null) {
coordinatedListingPanelListener.activeProgramChanged(newProgram);
}
contextChanged();
}
protected void updateTitle() {
String subTitle = program == null ? "" : ' ' + program.getDomainFile().getName();
String newTitle = TITLE + subTitle;
if (!isConnected()) {
newTitle = '[' + newTitle + ']';
}
setTitle(newTitle);
}
@Override
public void stateChanged(ChangeEvent e) {
codeViewerClipboardProvider.setListingLayoutModel(listingPanel.getListingModel());
}
private void createActions() {
tool.addLocalAction(this, new ToggleHeaderAction());
toggleHoverAction = new ToggleHoverAction();
tool.addLocalAction(this, toggleHoverAction);
tool.addLocalAction(this, new ExpandAllDataAction(this));
tool.addLocalAction(this, new CollapseAllDataAction(this));
tool.addLocalAction(this, new ToggleExpandCollapseDataAction(this));
cloneCodeViewerAction = new CloneCodeViewerAction(getName(), this);
addLocalAction(cloneCodeViewerAction);
DockingAction action = new GotoPreviousFunctionAction(tool, plugin.getName());
tool.addAction(action);
action = new GotoNextFunctionAction(tool, plugin.getName());
tool.addAction(action);
}
void fieldOptionChanged(String fieldName, Object newValue) {
//TODO if (name.startsWith(OPERAND_OPTIONS_PREFIX) && (newValue instanceof Boolean)) {
// for (int i = 0; i < toggleOperandMarkupActions.length; i++) {
// ToggleOperandMarkupAction action = toggleOperandMarkupActions[i];
// if (name.equals(action.getOptionName())) {
// boolean newState = ((Boolean)newValue).booleanValue();
// if (action.isSelected() != newState) {
// action.setSelected(newState);
// }
// break;
// }
// }
// }
}
public ListingPanel getListingPanel() {
return listingPanel;
}
protected void addProgramDropProvider(ProgramDropProvider dndProvider) {
List<ProgramDropProvider> list = new ArrayList<>(Arrays.asList(dropProviders));
if (list.contains(dndProvider)) {
return;
}
list.add(dndProvider);
Collections.sort(list, (pdp1, pdp2) -> {
int p1 = pdp1.getPriority();
int p2 = pdp2.getPriority();
return p2 - p1;
});
dropProviders = list.toArray(new ProgramDropProvider[list.size()]);
if (dropTargetAdapter == null) {
setUpDragDrop();
}
else {
setAcceptableFlavors();
dropTargetAdapter.setAcceptableDropFlavors(acceptableFlavors);
}
}
@Override
public void programLocationChanged(ProgramLocation loc, EventTrigger trigger) {
if (plugin.isDisposed()) {
return;
}
if (!loc.equals(currentLocation)) {
codeViewerClipboardProvider.setLocation(loc);
currentLocation = loc;
plugin.locationChanged(this, loc);
contextChanged();
}
}
@Override
public void programSelectionChanged(ProgramSelection selection, EventTrigger trigger) {
if (trigger != EventTrigger.GUI_ACTION) {
return;
}
doSetSelection(selection);
}
@Override
public void setSelection(ProgramSelection selection) {
if (selection == null) {
selection = new ProgramSelection();
}
else {
selection = adjustSelection(selection);
}
doSetSelection(selection);
}
private void doSetSelection(ProgramSelection selection) {
currentSelection = selection;
codeViewerClipboardProvider.setSelection(currentSelection);
listingPanel.setSelection(currentSelection);
plugin.selectionChanged(this, currentSelection);
contextChanged();
String selectionInfo = null;
if (!selection.isEmpty()) {
long n = selection.getNumAddresses();
String nString = Long.toString(n);
if (n == 1) {
selectionInfo = "(1 address selected)";
}
else {
selectionInfo = '(' + nString + " addresses selected)";
}
}
setSubTitle(selectionInfo);
}
private ProgramSelection adjustSelection(ProgramSelection selection) {
if (selection.isEmpty()) {
return selection;
}
if (selection.getInteriorSelection() != null) {
return selection;
}
if (program == null) {
return selection;
}
AddressSet set = new AddressSet();
AddressRangeIterator it = selection.getAddressRanges();
while (it.hasNext()) {
AddressRange range = it.next();
Address min = getMinCodeUnitAddress(range.getMinAddress());
Address max = getMaxCodeUnitAddress(range.getMaxAddress());
if (min != null && max != null && min.compareTo(max) <= 0) {
set.addRange(min, max);
}
}
return new ProgramSelection(set);
}
private Address getMinCodeUnitAddress(Address address) {
Listing listing = program.getListing();
CodeUnit cu = listing.getCodeUnitContaining(address);
if (cu != null) {
return cu.getMinAddress();
}
cu = listing.getCodeUnitAfter(address);
if (cu != null) {
return cu.getMinAddress();
}
return null;
}
private Address getMaxCodeUnitAddress(Address address) {
Listing listing = program.getListing();
CodeUnit cu = listing.getCodeUnitContaining(address);
if (cu != null) {
return cu.getMaxAddress();
}
cu = listing.getCodeUnitBefore(address);
if (cu != null) {
return cu.getMaxAddress();
}
return null;
}
@Override
public void setHighlight(ProgramSelection highlight) {
if (highlight == null) {
highlight = new ProgramSelection();
}
else {
highlight = adjustSelection(highlight);
}
doSetHighlight(highlight);
}
@Override
public boolean supportsHighlight() {
return true;
}
private void doSetHighlight(ProgramSelection highlight) {
listingPanel.setHighlight(highlight);
currentHighlight = highlight;
plugin.highlightChanged(this, highlight);
contextChanged();
}
@Override
public void setStringSelection(String string) {
this.currentStringSelection = string;
codeViewerClipboardProvider.setStringContent(string);
contextChanged();
}
public String getStringSelection() {
return codeViewerClipboardProvider.getStringContent();
}
// set up the drag stuff
private void setUpDragDrop() {
setUpDrop();
// set up drag stuff
dragSource = DragSource.getDefaultDragSource();
dragGestureAdapter = new DragGestureAdapter(this);
dragSourceAdapter = new DragSrcAdapter(this);
dragSource.createDefaultDragGestureRecognizer(listingPanel.getFieldPanel(), dragAction,
dragGestureAdapter);
}
private void setUpDrop() {
setAcceptableFlavors();
// set up drop stuff
dropTargetAdapter =
new DropTgtAdapter(this, DnDConstants.ACTION_COPY_OR_MOVE, acceptableFlavors);
new DropTarget(listingPanel.getFieldPanel(), DnDConstants.ACTION_COPY_OR_MOVE,
dropTargetAdapter, true);
}
private void setAcceptableFlavors() {
Set<DataFlavor> flavors = new HashSet<>();
for (ProgramDropProvider dropProvider : dropProviders) {
DataFlavor[] dfs = dropProvider.getDataFlavors();
for (DataFlavor df : dfs) {
flavors.add(df);
}
}
acceptableFlavors = new DataFlavor[flavors.size()];
flavors.toArray(acceptableFlavors);
}
boolean setLocation(ProgramLocation location) {
if (!listingPanel.goTo(location, true)) {
ViewManagerService viewManager = plugin.getViewManager(this);
if (viewManager != null) {
AddressSetView newView = viewManager.addToView(location);
listingPanel.setView(newView);
if (!listingPanel.goTo(location, true)) {
return false;
}
if (otherPanel != null) {
otherPanel.setView(newView);
otherPanel.goTo(location, true);
}
}
}
currentLocation = listingPanel.getProgramLocation();
codeViewerClipboardProvider.setLocation(location);
return true;
}
/**
* Extension point to specify titles when dual panels are active
*
* @param panelProgram the program assigned to the panel whose title is requested
* @return the title of the panel for the given program
*/
protected String computePanelTitle(Program panelProgram) {
return panelProgram.getDomainFile().toString();
}
public void setPanel(ListingPanel lp) {
Program myProgram = listingPanel.getListingModel().getProgram();
Program otherProgram = lp.getListingModel().getProgram();
String myName = "<EMPTY>";
String otherName = myName;
if (myProgram != null) {
myName = computePanelTitle(myProgram);
}
if (otherProgram != null) {
otherName = computePanelTitle(otherProgram);
}
if (otherPanel != null) {
removeHoverServices(otherPanel);
}
otherPanel = lp;
AddressSet viewAddrs =
ProgramMemoryComparator.getCombinedAddresses(myProgram, otherProgram);
decorationPanel.setOtherPanel(lp, myName, otherName);
multiModel = new MultiListingLayoutModel(formatMgr,
new Program[] { myProgram, otherProgram }, viewAddrs);
ListingModel myAlignedModel = multiModel.getAlignedModel(0);
ListingModel otherAlignedModel = multiModel.getAlignedModel(1);
listingPanel.setListingModel(myAlignedModel);
lp.setListingModel(otherAlignedModel);
coordinator = new FieldPanelCoordinator(
new FieldPanel[] { listingPanel.getFieldPanel(), lp.getFieldPanel() });
addHoverServices(otherPanel);
HoverHandler hoverHandler = listingPanel.getFieldPanel().getHoverHandler();
otherPanel.setHoverMode(hoverHandler != null && hoverHandler.isEnabled());
}
public ListingPanel getOtherPanel() {
return otherPanel;
}
public void clearPanel() {
if (otherPanel != null) {
removeHoverServices(otherPanel);
programSelectionChanged(new ProgramSelection(), EventTrigger.GUI_ACTION);
FieldPanel fp = listingPanel.getFieldPanel();
FieldLocation loc = fp.getCursorLocation();
ViewerPosition vp = fp.getViewerPosition();
listingPanel.setProgram(listingPanel.getProgram());
coordinator.remove(otherPanel.getFieldPanel());
coordinator.remove(listingPanel.getFieldPanel());
coordinator = null;
otherPanel = null;
decorationPanel.clearOtherPanel();
fp.setViewerPosition(vp.getIndex(), vp.getXOffset(), vp.getYOffset());
fp.setCursorPosition(loc.getIndex(), loc.fieldNum, loc.row, loc.col);
multiModel = null;
}
}
private void addHoverServices(ListingPanel panel) {
ListingHoverService[] hoverServices = tool.getServices(ListingHoverService.class);
for (ListingHoverService hoverService : hoverServices) {
panel.addHoverService(hoverService);
}
}
private void removeHoverServices(ListingPanel panel) {
ListingHoverService[] hoverServices = tool.getServices(ListingHoverService.class);
for (ListingHoverService hoverService : hoverServices) {
panel.removeHoverService(hoverService);
}
}
public void setNorthComponent(JComponent comp) {
decorationPanel.setNorthPanel(comp);
}
void saveState(SaveState saveState) {
saveState.putInt(DIVIDER_LOCATION, getListingPanel().getDividerLocation());
saveState.putBoolean(HOVER_MODE, toggleHoverAction.isSelected());
}
void readState(SaveState saveState) {
getListingPanel().setDividerLocation(
saveState.getInt(DIVIDER_LOCATION, ListingPanel.DEFAULT_DIVIDER_LOCATION));
toggleHoverAction.setSelected(saveState.getBoolean(HOVER_MODE, true));
}
private void setHoverEnabled(boolean enabled) {
getListingPanel().setHoverMode(enabled);
if (otherPanel != null) {
otherPanel.setHoverMode(enabled);
}
}
public void setCoordinatedListingPanelListener(CoordinatedListingPanelListener listener) {
this.coordinatedListingPanelListener = listener;
}
@Override
public ProgramLocation getLocation() {
if (otherPanel != null && otherPanel.getFieldPanel().isFocused()) {
return otherPanel.getProgramLocation();
}
return currentLocation;
}
@Override
public ProgramSelection getSelection() {
if (otherPanel != null && otherPanel.getFieldPanel().isFocused()) {
return otherPanel.getProgramSelection();
}
return currentSelection;
}
@Override
public ProgramSelection getHighlight() {
if (otherPanel != null && otherPanel.getFieldPanel().isFocused()) {
return otherPanel.getProgramHighlight();
}
return currentHighlight;
}
@Override
public String getTextSelection() {
return currentStringSelection;
}
@Override
public Icon getNavigatableIcon() {
return getIcon();
}
@Override
public Program getProgram() {
return program;
}
@Override
public LocationMemento getMemento() {
int cursorOffset = listingPanel.getFieldPanel().getCursorOffset();
return new CodeViewerLocationMemento(program, currentLocation, cursorOffset);
}
@Override
public void setMemento(LocationMemento memento) {
CodeViewerLocationMemento cvMemento = (CodeViewerLocationMemento) memento;
int cursorOffset = cvMemento.getCursorOffset();
listingPanel.getFieldPanel().positionCursor(cursorOffset);
}
@Override
public boolean goTo(Program gotoProgram, ProgramLocation location) {
if (gotoProgram != program) {
if (!isConnected()) {
tool.setStatusInfo("Program location not applicable for this provider!");
return false;
}
ProgramManager programManagerService = tool.getService(ProgramManager.class);
if (programManagerService != null) {
programManagerService.setCurrentProgram(gotoProgram);
}
}
setLocation(location);
return true;
}
@Override
public void writeDataState(SaveState saveState) {
super.writeDataState(saveState);
writeLocationState(saveState);
}
private void writeLocationState(SaveState saveState) {
if (currentLocation != null) {
currentLocation.saveState(saveState);
}
ViewerPosition vp = listingPanel.getFieldPanel().getViewerPosition();
saveState.putInt("INDEX", vp.getIndexAsInt());
saveState.putInt("Y_OFFSET", vp.getYOffset());
}
@Override
public void readDataState(SaveState saveState) {
super.readDataState(saveState);
readLocationState(saveState);
}
private void readLocationState(SaveState saveState) {
int index = saveState.getInt("INDEX", 0);
int yOffset = saveState.getInt("Y_OFFSET", 0);
ViewerPosition vp = new ViewerPosition(index, 0, yOffset);
listingPanel.getFieldPanel()
.setViewerPosition(vp.getIndex(), vp.getXOffset(), vp.getYOffset());
if (program != null) {
currentLocation = ProgramLocation.getLocation(program, saveState);
if (currentLocation != null) {
setLocation(currentLocation);
}
}
}
public void cloneWindow() {
final CodeViewerProvider newProvider = plugin.createNewDisconnectedProvider();
final ViewerPosition vp = listingPanel.getFieldPanel().getViewerPosition();
// invoke later to give the window manage a chance to create the new window
// (its done in an invoke later)
Swing.runLater(() -> {
newProvider.doSetProgram(program);
newProvider.listingPanel.getFieldPanel()
.setViewerPosition(vp.getIndex(), vp.getXOffset(), vp.getYOffset());
newProvider.setLocation(currentLocation);
});
}
public void selectAll() {
listingPanel.getFieldPanel().requestFocus();
ProgramSelection sel = new ProgramSelection(program.getAddressFactory(),
listingPanel.getAddressIndexMap().getOriginalAddressSet());
doSetSelection(sel);
}
public void selectComplement() {
AddressSet complement = listingPanel.selectComplement();
ProgramSelection sel = new ProgramSelection(program.getAddressFactory(), complement);
doSetSelection(sel);
}
protected FieldNavigator getFieldNavigator() {
return fieldNavigator;
}
public void setView(AddressSetView view) {
// If we are using a MultiListingLayoutModel then adjust the view address set.
AddressSetView adjustedView = view;
if (multiModel != null) {
if ((program != null) && view.contains(new AddressSet(program.getMemory()))) {
Program otherProgram = otherPanel.getProgram();
adjustedView = ProgramMemoryComparator.getCombinedAddresses(program, otherProgram);
}
multiModel.setAddressSet(adjustedView);
}
listingPanel.setView(adjustedView);
if (otherPanel != null) {
// Convert the view addresses to ones compatible with the otherPanel's model.
AddressSet compatibleAddressSet =
DiffUtility.getCompatibleAddressSet(adjustedView, otherPanel.getProgram());
otherPanel.setView(compatibleAddressSet);
}
}
@Override
public List<DockingActionIf> getPopupActions(Tool dt, ActionContext context) {
if (context.getComponentProvider() == this) {
return listingPanel.getHeaderActions(getName());
}
return null;
}
/**
* Add the {@link AddressSetDisplayListener} to the listing panel
*
* @param listener the listener to add
*/
public void addDisplayListener(AddressSetDisplayListener listener) {
listingPanel.addDisplayListener(listener);
}
/**
* Remove the {@link AddressSetDisplayListener} from the listing panel
*
* @param listener the listener to remove
*/
public void removeDisplayListener(AddressSetDisplayListener listener) {
listingPanel.removeDisplayListener(listener);
}
private synchronized void createFocusingMouseListener() {
if (focusingMouseListener == null) {
focusingMouseListener = new FocusingMouseListener();
}
}
public void addOverviewProvider(OverviewProvider overviewProvider) {
createFocusingMouseListener();
JComponent component = overviewProvider.getComponent();
// just in case we get repeated calls
component.removeMouseListener(focusingMouseListener);
component.addMouseListener(focusingMouseListener);
overviewProvider.setNavigatable(this);
getListingPanel().addOverviewProvider(overviewProvider);
}
public void addMarginProvider(MarginProvider marginProvider) {
createFocusingMouseListener();
JComponent component = marginProvider.getComponent();
// just in case we get repeated calls
component.removeMouseListener(focusingMouseListener);
component.addMouseListener(focusingMouseListener);
getListingPanel().addMarginProvider(marginProvider);
}
public void removeOverviewProvider(OverviewProvider overviewProvider) {
JComponent component = overviewProvider.getComponent();
component.removeMouseListener(focusingMouseListener);
getListingPanel().removeOverviewProvider(overviewProvider);
}
public void removeMarginProvider(MarginProvider marginProvider) {
JComponent component = marginProvider.getComponent();
component.removeMouseListener(focusingMouseListener);
getListingPanel().removeMarginProvider(marginProvider);
}
//==================================================================================================
// Inner Classes
//==================================================================================================
private class ToggleHeaderAction extends ToggleDockingAction {
ToggleHeaderAction() {
super("Toggle Header", plugin.getName());
setEnabled(true);
setToolBarData(new ToolBarData(LISTING_FORMAT_EXPAND_ICON, "zzz"));
setDescription("Edit the Listing fields");
}
@Override
public void actionPerformed(ActionContext context) {
boolean show = !listingPanel.isHeaderShowing();
listingPanel.showHeader(show);
getToolBarData()
.setIcon(show ? LISTING_FORMAT_COLLAPSE_ICON : LISTING_FORMAT_EXPAND_ICON);
}
}
private class ToggleHoverAction extends ToggleDockingAction {
ToggleHoverAction() {
super("Toggle Mouse Hover Popups", CodeViewerProvider.this.getOwner());
setEnabled(true);
setToolBarData(new ToolBarData(HOVER_ON_ICON, "yyyz"));
setSelected(true);
setHelpLocation(new HelpLocation(HelpTopics.CODE_BROWSER, "Hover"));
setHover(true);
}
@Override
public void actionPerformed(ActionContext context) {
setHover(isSelected());
}
private void setHover(boolean enabled) {
getToolBarData().setIcon(enabled ? HOVER_ON_ICON : HOVER_OFF_ICON);
setHoverEnabled(enabled);
}
}
/**
* A class that allows clients to install transient highlighters while keeping the middle-mouse
* highlighting on at the same time.
*/
private class ProgramHighlighterProvider implements ListingHighlightProvider {
private final ListingMiddleMouseHighlightProvider listingHighlighter;
ProgramHighlighterProvider(ListingMiddleMouseHighlightProvider listingHighlighter) {
this.listingHighlighter = listingHighlighter;
}
@Override
public Highlight[] createHighlights(String text, ListingField field, int cursorTextOffset) {
List<Highlight> list = new ArrayList<>();
ListingHighlightProvider currentExternalHighligter =
programHighlighterMap.get(program);
if (currentExternalHighligter != null) {
Highlight[] highlights = currentExternalHighligter.createHighlights(text, field,
cursorTextOffset);
for (Highlight highlight : highlights) {
list.add(highlight);
}
}
// always call the listing highlighter last so the middle-mouse highlight will always
// be on top of other highlights
Highlight[] highlights =
listingHighlighter.createHighlights(text, field, cursorTextOffset);
for (Highlight highlight : highlights) {
list.add(highlight);
}
return list.toArray(new Highlight[list.size()]);
}
}
private class FocusingMouseListener extends MouseAdapter {
@Override
public void mousePressed(MouseEvent e) {
getListingPanel().getFieldPanel().requestFocus();
}
}
}
| NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeViewerProvider.java |
213,397 | package org.matthiaszimmermann.location.egm96;
import org.matthiaszimmermann.location.Location;
import java.io.BufferedInputStream;
import java.io.InputStream;
/**
* offline <a href="https://en.wikipedia.org/wiki/Geoid">geoid</a> implementation based on the data provided
* by the <a href="http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/intpt.html">online caluclator</a>.
*
* @author matthiaszimmermann
*
*/
public class Geoid {
private static final short OFFSET_INVALID = -0x8000;
private static final int ROWS = 719; // (89.75 + 89.75)/0.25 + 1 = 719
private static final int COLS = 1440; // 359.75/0.25 + 1 = 1440
private static final double LATITUDE_MAX = 90.0;
private static final double LATITUDE_MAX_GRID = 89.74;
private static final double LATITUDE_ROW_FIRST = 89.50;
private static final double LATITUDE_ROW_LAST = -89.50;
private static final double LATITUDE_MIN_GRID = -89.74;
private static final double LATITUDE_MIN = -90.0;
public static final double LATITUDE_STEP = 0.25;
private static final double LONGITIDE_MIN = 0.0;
private static final double LONGITIDE_MIN_GRID = 0.0;
private static final double LONGITIDE_MAX_GRID = 359.75;
private static final double LONGITIDE_MAX = 360.0;
private static final double LONGITIDE_STEP = 0.25;
//Store in 'fixed point format' 16-bit short (in 1/100m (cm)) instead of 64-bit double
private static final short [][] offset = new short[ROWS][COLS];
private static short offset_north_pole = 0;
private static short offset_south_pole = 0;
private static boolean s_model_ok = false;
@SuppressWarnings("UnusedReturnValue")
public static boolean init(InputStream is) {
if(s_model_ok) {
return true;
}
try {
s_model_ok = readGeoidOffsetsD(new BufferedInputStream(is));
}
catch (Exception e) {
s_model_ok = false;
System.err.println("failed to read stream "+e);
}
return s_model_ok;
}
public static double getOffset(double lat, double lon) {
Location location = new Location(lat, lon);
return getOffset(location);
}
private static double getOffset(Location location) {
double lat = location.getLatitude();
double lng = location.getLongitude();
// special case for exact grid positions
if(latIsGridPoint(lat) && lngIsGridPoint(lng)) {
return getGridOffset(lat, lng);
}
Location [][] q = new Location[4][4];
// get four grid locations surrounding the target location
// used for bilinear interpolation
q[1][1] = getGridFloorLocation(lat, lng);
q[1][2] = getUpperLocation(q[1][1]);
q[2][1] = getRightLocation(q[1][1]);
q[2][2] = getUpperLocation(q[2][1]);
// check if we can get points for bicubic interpolation
if(q[1][1].getLatitude() >= LATITUDE_MIN_GRID && q[1][2].getLatitude() <= LATITUDE_MAX_GRID) {
// left column
q[0][1] = getLeftLocation(q[1][1]);
q[0][2] = getUpperLocation(q[0][1]);
q[0][3] = getUpperLocation(q[0][2]);
// top row
q[1][3] = getRightLocation(q[0][3]);
q[2][3] = getRightLocation(q[1][3]);
q[2][3] = getRightLocation(q[1][3]);
q[3][3] = getRightLocation(q[2][3]);
// bottom row
q[0][0] = getLowerLocation(q[0][1]);
q[1][0] = getRightLocation(q[0][0]);
q[1][0] = getRightLocation(q[0][0]);
q[2][0] = getRightLocation(q[1][0]);
// right column
q[3][0] = getRightLocation(q[2][0]);
q[3][1] = getUpperLocation(q[3][0]);
q[3][2] = getUpperLocation(q[3][1]);
// return bilinearInterpolation(location, q[1][1], q[1][2], q[2][1], q[2][2]);
return bicubicSplineInterpolation(location, q);
}
else {
return bilinearInterpolation(location, q[1][1], q[1][2], q[2][1], q[2][2]);
}
}
/**
* bilinearInterpolation according to description on wikipedia
* @see <a href="https://en.wikipedia.org/wiki/Bilinear_interpolation">wikipedia Bilinear_interpolation</a>
* @return the lineary interpolated value
*/
private static double bilinearInterpolation(Location target, Location q11, Location q12, Location q21, Location q22) {
double fq11 = getGridOffset(q11); // lower left
double fq12 = getGridOffset(q12); // upper left
double fq21 = getGridOffset(q21); // lower right
double fq22 = getGridOffset(q22); // upper right
double x1 = q11.getLongitude();
double x2 = q22.getLongitude();
double y1 = q22.getLatitude();
double y2 = q11.getLatitude();
// special case for latitude moving from 359.75 -> 0
if(x1 == 359.75 && x2 == 0.0) {
x2 = 360.0;
}
double x = target.getLongitude();
double y = target.getLatitude();
double f11 = fq11 * (x2 - x) * (y2 - y);
double f12 = fq12 * (x2 - x) * (y - y1);
double f21 = fq21 * (x - x1) * (y2 - y);
double f22 = fq22 * (x - x1) * (y - y1);
return (f11 + f12 + f21 + f22) / ((x2 - x1) * (y2 - y1));
}
/**
* Bicubic spline: If you provide a 4x4 grid of values for geometric quantities in u and v,
* this class creates an object that will interpolate a Bicubic spline to give you the value
* within any point of a unit tile in (u,v) space.
* If you want to create a spline surface, you can make a two dimensional array of such objects.
*
* @see <a href="http://mrl.nyu.edu/~perlin/cubic/Cubic_java.html">Gubic</a>
* @return bicubic spline
*/
private static double bicubicSplineInterpolation(Location target, Location[][] grid) {
double[][] G = new double [4][4];
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
G[i][j] = getGridOffset(grid[i][j]);
}
}
double u1 = grid[1][1].getLatitude();
double v1 = grid[1][1].getLongitude();
double u = (target.getLatitude() - u1 + LATITUDE_STEP) / (4 * LATITUDE_STEP);
double v = (target.getLongitude() - v1 + LONGITIDE_STEP) / (4 * LONGITIDE_STEP);
Cubic c = new Cubic(G);
return c.eval(u, v);
}
private static Location getUpperLocation(Location location) {
double lat = location.getLatitude();
double lng = location.getLongitude();
if(lat == LATITUDE_MAX_GRID) {
lat = LATITUDE_MAX;
}
else if(lat == LATITUDE_ROW_FIRST) {
lat = LATITUDE_MAX_GRID;
}
else if(lat == LATITUDE_MIN) {
lat = LATITUDE_MIN_GRID;
}
else if(lat == LATITUDE_MIN_GRID) {
lat = LATITUDE_ROW_LAST;
}
else {
lat += LATITUDE_STEP;
}
return new Location(lat, lng);
}
private static Location getLowerLocation(Location location) {
double lat = location.getLatitude();
double lng = location.getLongitude();
if(lat == LATITUDE_MIN_GRID) {
lat = LATITUDE_MIN;
}
else if(lat == LATITUDE_ROW_FIRST) {
lat = LATITUDE_MIN_GRID;
}
else if(lat == LATITUDE_MAX) {
lat = LATITUDE_MAX_GRID;
}
else if(lat == LATITUDE_MAX_GRID) {
lat = LATITUDE_ROW_FIRST;
}
else {
lat -= LATITUDE_STEP;
}
return new Location(lat, lng);
}
private static Location getLeftLocation(Location location) {
double lat = location.getLatitude();
double lng = location.getLongitude();
return new Location(lat, lng - LATITUDE_STEP);
}
private static Location getRightLocation(Location location) {
double lat = location.getLatitude();
double lng = location.getLongitude();
return new Location(lat, lng + LATITUDE_STEP);
}
private static Location getGridFloorLocation(double lat, double lng) {
Location floor = (new Location(lat, lng)).floor();
double latFloor = floor.getLatitude();
if(lat >= LATITUDE_MAX_GRID && lat < LATITUDE_MAX) {
latFloor = LATITUDE_MAX_GRID;
}
else if(lat < LATITUDE_MIN_GRID) {
latFloor = LATITUDE_MIN;
}
else if(lat < LATITUDE_ROW_LAST) {
latFloor = LATITUDE_MIN_GRID;
}
return new Location(latFloor, floor.getLongitude());
}
private static double getGridOffset(Location location) {
return getGridOffset(location.getLatitude(), location.getLongitude());
}
private static double getGridOffset(double lat, double lng) {
return getGridOffsetS(lat, lng)/100.0d;
}
private static short getGridOffsetS(double lat, double lng) {
if(!s_model_ok) {
return OFFSET_INVALID;
}
if(!latIsGridPoint(lat) || !lngIsGridPoint(lng)) {
return OFFSET_INVALID;
}
if(latIsPole(lat)) {
if(lat == LATITUDE_MAX) {
return offset_north_pole;
}
else {
return offset_south_pole;
}
}
int i = latToI(lat);
int j = lngToJ(lng);
return offset[i][j];
}
//Get offsets from a definition file where the data is stored in a compressed format
//The file is created from the standard file with the following snippet:
// cat /cygdrive/f/temp/EGM96complete.dat | perl -ne 'BEGIN{open F,">egm96-delta.dat";$e0=0;} \
//; if(/^\s*([-\d.]+)\s+([-\d.]+)\s+([-\d.]+)/){$e1=sprintf "%.0f", $3*100;$e=$e1-$e0; $e0=$e1; \
//; if(-0x40<=$e && $e <0x40){$e+=0x40; print F pack "C",$e; \
//; }elsif (-0x4000<=$e && $e<0x4000){$e+=0xc000; print F pack "n",$e;}else{die "offset out of bounds";}} \
//; END{print F pack "n",0xc000-$e1; close F}'
//Only the offset is stored, assuming coordinates are OK
//Data is stored in 'fixed point', resolution 1/100m (cm)
//The data is stored as difference to the previous value (as the values are correlated and can be fit in one byte normally)
//If the difference is more than fit in 7 bits (+/-0.64m), two bytes are used
//One byte data is stored with an offset of 64, so the first bit is never set
//For two bytes, the data is stored as 0xc000+offset, so first bit is always set
//Last, the south pole offset is added negatively, to get last offset as 0 (used as a check)
private static boolean readGeoidOffsetsD(BufferedInputStream is) throws Exception {
//BufferedReader _may_ increase the performance
final byte[] buf = new byte[1000];
int bufRead = 0;
byte prevByte=0;
int off = 0;
int offsetCount = -1; //NorthPole is first
boolean allRead = false;
boolean prevIsTwo=false;
do {
int i = 0;
while (i < bufRead) {
byte c = buf[i];
i++;
if (prevIsTwo) {
off += ((((prevByte&0xff) <<8) |(c&0xff))-0xc000);
prevIsTwo=false;
} else if ((c & 0x80) == 0) {
off += ((c&0xff) - 0x40);
} else {
prevIsTwo = true;
}
prevByte=c;
if (!prevIsTwo) {
if (offsetCount < 0) {
offset_north_pole = (short) off;
} else if (offsetCount == ROWS * COLS) {
offset_south_pole = (short) off;
} else if (offsetCount == 1 + ROWS * COLS) {
if (off == 0) {
allRead = true;
} else {
System.err.println("Offset is not 0 at southpole "+offsetCount / COLS + " "+offsetCount % COLS + " "+off+" "+c);
}
} else if (offsetCount > ROWS * COLS) {
//Should not occur
allRead = false;
System.err.println("Unexpected data "+offsetCount / COLS + " "+offsetCount % COLS + " "+off+" "+c);
} else {
offset[offsetCount / COLS][offsetCount % COLS] = (short) off;
}
offsetCount++;
}
}
bufRead = is.read(buf);
} while (bufRead > 0);
return allRead;
}
private static boolean latOk(double lat) {
return lat >= LATITUDE_MIN && lat <= LATITUDE_MAX;
}
@SuppressWarnings("unused")
private static boolean lngOk(double lng) {
return lng >= LONGITIDE_MIN && lng <= LONGITIDE_MAX;
}
private static boolean lngOkGrid(double lng) {
return lng >= LONGITIDE_MIN_GRID && lng <= LONGITIDE_MAX_GRID;
}
private static boolean latIsGridPoint(double lat) {
return latOk(lat) && (latIsPole(lat) || lat == LATITUDE_MAX_GRID || lat == LATITUDE_MIN_GRID || lat <= LATITUDE_ROW_FIRST && lat >= LATITUDE_ROW_LAST && lat / LATITUDE_STEP == Math.round(lat / LATITUDE_STEP));
}
private static boolean lngIsGridPoint(double lng) {
return lngOkGrid(lng) && lng / LONGITIDE_STEP == Math.round(lng / LONGITIDE_STEP);
}
private static boolean latIsPole(double lat) {
return lat == LATITUDE_MAX || lat == LATITUDE_MIN;
}
private static int latToI(double lat) {
if(lat == LATITUDE_MAX_GRID) { return 0; }
if(lat == LATITUDE_MIN_GRID) { return ROWS - 1; }
else { return (int)((LATITUDE_ROW_FIRST - lat) / LATITUDE_STEP) + 1; }
}
private static int lngToJ(double lng) {
return (int)(lng / LONGITIDE_STEP);
}
}
| dainiuxt/runnerup | app/src/main/org/matthiaszimmermann/location/egm96/Geoid.java |
213,398 | /*
* Zettelkasten - nach Luhmann
* Copyright (C) 2001-2015 by Daniel Lüdecke (http://www.danielluedecke.de)
*
* Homepage: http://zettelkasten.danielluedecke.de
*
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program;
* if not, see <http://www.gnu.org/licenses/>.
*
*
* Dieses Programm ist freie Software. Sie können es unter den Bedingungen der GNU
* General Public License, wie von der Free Software Foundation veröffentlicht, weitergeben
* und/oder modifizieren, entweder gemäß Version 3 der Lizenz oder (wenn Sie möchten)
* jeder späteren Version.
*
* Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, daß es Ihnen von Nutzen sein
* wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der MARKTREIFE oder
* der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in der
* GNU General Public License.
*
* Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Programm
* erhalten haben. Falls nicht, siehe <http://www.gnu.org/licenses/>.
*/
package de.danielluedecke.zettelkasten;
import de.danielluedecke.zettelkasten.database.Settings;
import de.danielluedecke.zettelkasten.util.Constants;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JComponent;
import javax.swing.KeyStroke;
import org.jdesktop.application.Action;
/**
*
* @author danielludecke
*/
public class CDesktopDisplayItems extends javax.swing.JDialog {
/**
* return value for the main window so we know whether we have to update the
* display
*/
private boolean needsupdate = false;
/**
*
* @return
*/
public boolean isNeedsUpdate() {
return needsupdate;
}
/**
*
*/
private boolean savesettingok = true;
/**
*
* @return
*/
public boolean isSaveSettingsOk() {
return savesettingok;
}
/**
* Reference to the settings class
*/
private final Settings settingsObj;
/**
* wm,
*
* @param parent
* @param s
*/
public CDesktopDisplayItems(java.awt.Frame parent, Settings s) {
super(parent);
initComponents();
// set application icon
setIconImage(Constants.zknicon.getImage());
settingsObj = s;
if (settingsObj.isSeaGlass()) {
jButtonApply.putClientProperty("JComponent.sizeVariant", "small");
jButtonCancel.putClientProperty("JComponent.sizeVariant", "small");
}
// these codelines add an escape-listener to the dialog. so, when the user
// presses the escape-key, the same action is performed as if the user
// presses the cancel button...
KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
ActionListener cancelAction = new java.awt.event.ActionListener() {
@Override
public void actionPerformed(ActionEvent evt) {
cancelWindow();
}
};
getRootPane().registerKeyboardAction(cancelAction, stroke, JComponent.WHEN_IN_FOCUSED_WINDOW);
// init option-checkboxes
int items = settingsObj.getDesktopDisplayItems();
jCheckBoxRemarks.setSelected((items & Constants.DESKTOP_SHOW_REMARKS) != 0);
jCheckBoxAuthors.setSelected((items & Constants.DESKTOP_SHOW_AUTHORS) != 0);
jCheckBoxAttachments.setSelected((items & Constants.DESKTOP_SHOW_ATTACHMENTS) != 0);
jCheckBoxKeywords.setSelected((items & Constants.DESKTOP_SHOW_KEYWORDS) != 0);
}
/**
* Finally, when the user presses the apply-button, all settings are saved.
* this is done in this method. when all changes have been saved, the window
* will be closed and disposed.
*/
@Action(enabledProperty = "modified")
public void applyChanges() {
// reset indicator
int items = 0;
// check which items should be displayed
if (jCheckBoxRemarks.isSelected()) {
items = items | Constants.DESKTOP_SHOW_REMARKS;
}
if (jCheckBoxAuthors.isSelected()) {
items = items | Constants.DESKTOP_SHOW_AUTHORS;
}
if (jCheckBoxAttachments.isSelected()) {
items = items | Constants.DESKTOP_SHOW_ATTACHMENTS;
}
if (jCheckBoxKeywords.isSelected()) {
items = items | Constants.DESKTOP_SHOW_KEYWORDS;
}
// save user settings
settingsObj.setDesktopDisplayItems(items);
// save the changes to the settings-file
savesettingok = settingsObj.saveSettings();
// tell programm that we need to update the display
needsupdate = true;
// close window
closeWindow();
}
/**
* When the user presses the cancel button, no update needed, close window
*/
@Action
public void cancelWindow() {
needsupdate = false;
closeWindow();
}
/**
* Occurs when the user closes the window or presses the ok button. the
* settings-file is then saved and the window disposed.
*/
private void closeWindow() {
dispose();
setVisible(false);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jCheckBoxRemarks = new javax.swing.JCheckBox();
jCheckBoxAuthors = new javax.swing.JCheckBox();
jCheckBoxAttachments = new javax.swing.JCheckBox();
jCheckBoxKeywords = new javax.swing.JCheckBox();
jButtonApply = new javax.swing.JButton();
jButtonCancel = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ZettelkastenApp.class).getContext().getResourceMap(CDesktopDisplayItems.class);
setTitle(resourceMap.getString("FormDesktopDisplayItems.title")); // NOI18N
setModal(true);
setName("FormDesktopDisplayItems"); // NOI18N
setResizable(false);
jPanel1.setName("jPanel1"); // NOI18N
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
jCheckBoxRemarks.setText(resourceMap.getString("jCheckBoxRemarks.text")); // NOI18N
jCheckBoxRemarks.setName("jCheckBoxRemarks"); // NOI18N
jCheckBoxRemarks.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
checkBoxClicked(evt);
}
});
jCheckBoxAuthors.setText(resourceMap.getString("jCheckBoxAuthors.text")); // NOI18N
jCheckBoxAuthors.setName("jCheckBoxAuthors"); // NOI18N
jCheckBoxAuthors.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
checkBoxClicked(evt);
}
});
jCheckBoxAttachments.setText(resourceMap.getString("jCheckBoxAttachments.text")); // NOI18N
jCheckBoxAttachments.setName("jCheckBoxAttachments"); // NOI18N
jCheckBoxAttachments.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
checkBoxClicked(evt);
}
});
jCheckBoxKeywords.setText(resourceMap.getString("jCheckBoxKeywords.text")); // NOI18N
jCheckBoxKeywords.setName("jCheckBoxKeywords"); // NOI18N
jCheckBoxKeywords.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
checkBoxClicked(evt);
}
});
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(ZettelkastenApp.class).getContext().getActionMap(CDesktopDisplayItems.class, this);
jButtonApply.setAction(actionMap.get("applyChanges")); // NOI18N
jButtonApply.setText(resourceMap.getString("jButtonApply.text")); // NOI18N
jButtonApply.setName("jButtonApply"); // NOI18N
jButtonCancel.setAction(actionMap.get("cancelWindow")); // NOI18N
jButtonCancel.setName("jButtonCancel"); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jCheckBoxRemarks)
.addComponent(jCheckBoxAuthors)
.addComponent(jCheckBoxAttachments)
.addComponent(jCheckBoxKeywords)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel1)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(146, Short.MAX_VALUE)
.addComponent(jButtonCancel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButtonApply))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxRemarks)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxAuthors)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxAttachments)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxKeywords)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonApply)
.addComponent(jButtonCancel)))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void checkBoxClicked(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkBoxClicked
setModified(true);
}//GEN-LAST:event_checkBoxClicked
private boolean modified = false;
public boolean isModified() {
return modified;
}
public void setModified(boolean b) {
boolean old = isModified();
this.modified = b;
firePropertyChange("modified", old, isModified());
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButtonApply;
private javax.swing.JButton jButtonCancel;
private javax.swing.JCheckBox jCheckBoxAttachments;
private javax.swing.JCheckBox jCheckBoxAuthors;
private javax.swing.JCheckBox jCheckBoxKeywords;
private javax.swing.JCheckBox jCheckBoxRemarks;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
// End of variables declaration//GEN-END:variables
}
| Elmari/Zettelkasten | src/main/java/de/danielluedecke/zettelkasten/CDesktopDisplayItems.java |
213,399 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* However, if you have executed another commercial license agreement
* with Crate these terms will supersede the license and you may use the
* software solely pursuant to the terms of the relevant commercial agreement.
*/
package io.crate.expression.scalar.postgres;
import static io.crate.metadata.functions.Signature.scalar;
import io.crate.data.Input;
import io.crate.metadata.FunctionName;
import io.crate.metadata.Functions;
import io.crate.metadata.NodeContext;
import io.crate.metadata.Scalar;
import io.crate.metadata.TransactionContext;
import io.crate.metadata.functions.BoundSignature;
import io.crate.metadata.functions.Signature;
import io.crate.metadata.pgcatalog.PgCatalogSchemaInfo;
import io.crate.metadata.settings.session.SessionSetting;
import io.crate.metadata.settings.session.SessionSettingRegistry;
import io.crate.types.DataTypes;
public class CurrentSettingFunction extends Scalar<String, Object> {
private static final String NAME = "current_setting";
private static final FunctionName FQN = new FunctionName(PgCatalogSchemaInfo.NAME, NAME);
public static void register(Functions.Builder builder, SessionSettingRegistry sessionSettingRegistry) {
builder.add(
scalar(
FQN,
DataTypes.STRING.getTypeSignature(),
DataTypes.STRING.getTypeSignature()
).withFeature(Feature.NULLABLE),
(signature, boundSignature) ->
new CurrentSettingFunction(
signature,
boundSignature,
sessionSettingRegistry
)
);
builder.add(
scalar(
FQN,
DataTypes.STRING.getTypeSignature(),
DataTypes.BOOLEAN.getTypeSignature(),
DataTypes.STRING.getTypeSignature()
).withFeature(Feature.NULLABLE),
(signature, boundSignature) ->
new CurrentSettingFunction(
signature,
boundSignature,
sessionSettingRegistry
)
);
}
private final SessionSettingRegistry sessionSettingRegistry;
CurrentSettingFunction(Signature signature, BoundSignature boundSignature, SessionSettingRegistry sessionSettingRegistry) {
super(signature, boundSignature);
this.sessionSettingRegistry = sessionSettingRegistry;
}
@Override
public String evaluate(TransactionContext txnCtx, NodeContext nodeCtx, Input<Object>... args) {
assert args.length == 1 || args.length == 2 : "number of args must be 1 or 2";
final String settingName = (String) args[0].value();
if (settingName == null) {
return null;
}
final Boolean missingOk = (args.length == 2)
? (Boolean) args[1].value()
: Boolean.FALSE;
if (missingOk == null) {
return null;
}
final SessionSetting<?> sessionSetting = sessionSettingRegistry.settings().get(settingName);
if (sessionSetting == null) {
if (missingOk) {
return null;
} else {
throw new IllegalArgumentException("Unrecognised Setting: " + settingName);
}
}
return sessionSetting.getValue(txnCtx.sessionSettings());
}
}
| crate/crate | server/src/main/java/io/crate/expression/scalar/postgres/CurrentSettingFunction.java |
213,400 | package org.aisen.android.common.context;
import android.app.Application;
import android.os.Handler;
import com.squareup.okhttp.OkHttpClient;
import java.util.concurrent.TimeUnit;
public class GlobalContext extends Application {
private static GlobalContext _context;
public final static int CONN_TIMEOUT = 30000;
public final static int READ_TIMEOUT = 30000;
private final static OkHttpClient mOkHttpClient = new OkHttpClient();;
static {
// 初始化OkHttpClient
configOkHttpClient(CONN_TIMEOUT, READ_TIMEOUT);
}
@Override
public void onCreate() {
super.onCreate();
_context = this;
}
public static GlobalContext getInstance() {
return _context;
}
public Handler getHandler() {
return mHandler;
}
Handler mHandler = new Handler() {
};
public static OkHttpClient getOkHttpClient() {
return mOkHttpClient;
}
public static void configOkHttpClient(int connTimeout, int socketTimeout) {
if (mOkHttpClient != null) {
mOkHttpClient.setConnectTimeout(connTimeout, TimeUnit.MILLISECONDS);
mOkHttpClient.setReadTimeout(socketTimeout, TimeUnit.MILLISECONDS);
}
}
} | wangdan/AisenWeiBo | library/src/main/java/org/aisen/android/common/context/GlobalContext.java |
213,401 | /*
* Copyright 2016 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp;
import static com.google.common.base.Preconditions.checkState;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Multimap;
import com.google.javascript.rhino.Node;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* An optimization pass for J2CL-generated code to hoist some constant assignments out clinit method
* to declaration phase so they could be used by other optimization passes for static evaluation.
*/
public class J2clConstantHoisterPass implements CompilerPass {
private final AbstractCompiler compiler;
J2clConstantHoisterPass(AbstractCompiler compiler) {
this.compiler = compiler;
}
@Override
public void process(Node externs, Node root) {
if (!J2clSourceFileChecker.shouldRunJ2clPasses(compiler)) {
return;
}
final Multimap<String, Node> fieldAssignments = ArrayListMultimap.create();
final Set<Node> hoistableFunctions = new LinkedHashSet<>();
NodeTraversal.builder()
.setCompiler(compiler)
.setCallback(
(NodeTraversal t, Node node, Node parent) -> {
// TODO(stalcup): don't gather assignments ourselves, switch to a persistent
// DefinitionUseSiteFinder instead.
if (parent != null && NodeUtil.isLValue(node)) {
fieldAssignments.put(node.getQualifiedName(), parent);
}
// TODO(stalcup): convert to a persistent index of hoistable functions.
if (isHoistableFunction(t, node)) {
hoistableFunctions.add(node);
}
})
.traverse(root);
for (Collection<Node> assignments : fieldAssignments.asMap().values()) {
maybeHoistClassField(assignments, hoistableFunctions);
}
}
/**
* Returns whether the specified rValue is a function which does not receive any variables from
* its containing scope, and is thus 'hoistable'.
*/
private static boolean isHoistableFunction(NodeTraversal t, Node node) {
// TODO(michaelthomas): This could be improved slightly by not assuming that any variable in the
// outer scope is used in the function.
return node.isFunction() && t.getScope().getVarCount() == 0;
}
private void maybeHoistClassField(
Collection<Node> assignments, Collection<Node> hoistableFunctions) {
// The field is only assigned twice:
if (assignments.size() != 2) {
return;
}
Node first = Iterables.get(assignments, 0);
Node second = Iterables.get(assignments, 1);
// One of them is the top level declaration and the other is the assignment in clinit.
Node topLevelDeclaration = isClassFieldDeclaration(first) ? first : second;
Node clinitAssignment = isClinitFieldAssignment(first) ? first : second;
if (!isClassFieldDeclaration(topLevelDeclaration)
|| !isClinitFieldAssignment(clinitAssignment)) {
return;
}
// And it is assigned to a literal value; hence could be used in static eval and safe to move:
Node assignmentRhs = clinitAssignment.getSecondChild();
if (!NodeUtil.isLiteralValue(assignmentRhs, /* includeFunctions= */ true)
|| (assignmentRhs.isFunction() && !hoistableFunctions.contains(assignmentRhs))) {
return;
}
// And the assignment are in the same script:
if (NodeUtil.getEnclosingScript(clinitAssignment)
!= NodeUtil.getEnclosingScript(topLevelDeclaration)) {
return;
}
// At this point the only case some could observe the declaration value is the when you have
// cycle between clinits and the field is accessed before initialization; which is almost always
// a bug and GWT never assumed this state is observable in its optimization, yet nobody
// complained. So it is safe to upgrade it to a constant.
hoistConstantLikeField(clinitAssignment, topLevelDeclaration);
}
private void hoistConstantLikeField(Node clinitAssignment, Node topLevelDeclaration) {
Node clinitAssignedValue = clinitAssignment.getSecondChild();
Node declarationInClass = topLevelDeclaration.getFirstChild();
Node declarationAssignedValue = declarationInClass.getFirstChild();
Node clinitChangeScope = NodeUtil.getEnclosingChangeScopeRoot(clinitAssignment);
// Remove the clinit initialization
NodeUtil.removeChild(clinitAssignment.getParent(), clinitAssignment);
clinitAssignedValue.detach();
compiler.reportChangeToChangeScope(clinitChangeScope);
if (declarationAssignedValue == null) {
// Add the value from clinit to the stub declaration
declarationInClass.addChildToFront(clinitAssignedValue);
compiler.reportChangeToEnclosingScope(topLevelDeclaration);
} else if (!declarationAssignedValue.equals(clinitAssignedValue)) {
checkState(NodeUtil.isLiteralValue(declarationAssignedValue, /* includeFunctions= */ false));
// Replace the assignment in declaration with the value from clinit
declarationAssignedValue.replaceWith(clinitAssignedValue);
compiler.reportChangeToEnclosingScope(topLevelDeclaration);
}
declarationInClass.setDeclaredConstantVar(true);
}
/**
* Matches literal value declarations {@code var foo = 3;} or stub declarations like
* {@code var bar;}.
*/
private static boolean isClassFieldDeclaration(Node node) {
return node.getParent().isScript()
&& node.isVar()
&& (!node.getFirstChild().hasChildren()
|| (node.getFirstFirstChild() != null
&& NodeUtil.isLiteralValue(
node.getFirstFirstChild(), /* includeFunctions= */ false)));
}
private static boolean isClinitFieldAssignment(Node node) {
return node.getParent().isExprResult()
&& node.getGrandparent().isBlock()
&& isClinitMethod(node.getGrandparent().getParent());
}
// TODO(goktug): Create a utility to share this logic and start using getQualifiedOriginalName.
private static boolean isClinitMethod(Node fnNode) {
if (!fnNode.isFunction()) {
return false;
}
String fnName = NodeUtil.getName(fnNode);
return fnName != null && isClinitMethodName(fnName);
}
private static boolean isClinitMethodName(String methodName) {
return methodName != null
&& (methodName.endsWith("$$0clinit") || methodName.endsWith(".$clinit"));
}
}
| google/closure-compiler | src/com/google/javascript/jscomp/J2clConstantHoisterPass.java |
213,402 | /*
This file is part of InviZible Pro.
InviZible Pro is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
InviZible Pro is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with InviZible Pro. If not, see <http://www.gnu.org/licenses/>.
Copyright 2019-2024 by Garmatin Oleksandr [email protected]
*/
package pan.alexander.tordnscrypt;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.activity.result.ActivityResultLauncher;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.annotation.UiThread;
import androidx.annotation.WorkerThread;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.lifecycle.ViewModelProvider;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.preference.PreferenceManager;
import java.util.List;
import java.util.concurrent.CancellationException;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import dagger.Lazy;
import kotlinx.coroutines.Job;
import pan.alexander.tordnscrypt.dialogs.AgreementDialog;
import pan.alexander.tordnscrypt.dialogs.AskAccelerateDevelop;
import pan.alexander.tordnscrypt.dialogs.AskRestoreDefaultsDialog;
import pan.alexander.tordnscrypt.dialogs.NewUpdateDialogFragment;
import pan.alexander.tordnscrypt.dialogs.NotificationDialogFragment;
import pan.alexander.tordnscrypt.dialogs.NotificationHelper;
import pan.alexander.tordnscrypt.dialogs.SendCrashReport;
import pan.alexander.tordnscrypt.dialogs.progressDialogs.CheckUpdatesDialog;
import pan.alexander.tordnscrypt.domain.connection_checker.ConnectionCheckerInteractor;
import pan.alexander.tordnscrypt.domain.preferences.PreferenceRepository;
import pan.alexander.tordnscrypt.installer.Installer;
import pan.alexander.tordnscrypt.modules.ModulesAux;
import pan.alexander.tordnscrypt.modules.ModulesService;
import pan.alexander.tordnscrypt.modules.ModulesStarterHelper;
import pan.alexander.tordnscrypt.modules.ModulesStatus;
import pan.alexander.tordnscrypt.modules.ModulesVersions;
import pan.alexander.tordnscrypt.settings.PathVars;
import pan.alexander.tordnscrypt.update.UpdateCheck;
import pan.alexander.tordnscrypt.update.UpdateService;
import pan.alexander.tordnscrypt.utils.enums.ModuleName;
import pan.alexander.tordnscrypt.dialogs.Registration;
import pan.alexander.tordnscrypt.utils.Utils;
import pan.alexander.tordnscrypt.utils.executors.CoroutineExecutor;
import pan.alexander.tordnscrypt.utils.integrity.Verifier;
import pan.alexander.tordnscrypt.utils.enums.ModuleState;
import pan.alexander.tordnscrypt.utils.enums.OperationMode;
import pan.alexander.tordnscrypt.utils.notification.NotificationPermissionDialog;
import pan.alexander.tordnscrypt.utils.notification.NotificationPermissionManager;
import static pan.alexander.tordnscrypt.assistance.AccelerateDevelop.accelerated;
import static pan.alexander.tordnscrypt.dialogs.AskRestoreDefaultsDialog.MODULE_NAME_ARG;
import static pan.alexander.tordnscrypt.utils.Utils.shortenTooLongConjureLog;
import static pan.alexander.tordnscrypt.utils.Utils.shortenTooLongSnowflakeLog;
import static pan.alexander.tordnscrypt.utils.Utils.shortenTooLongWebTunnelLog;
import static pan.alexander.tordnscrypt.utils.logger.Logger.loge;
import static pan.alexander.tordnscrypt.utils.logger.Logger.logi;
import static pan.alexander.tordnscrypt.utils.logger.Logger.logw;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.AGREEMENT_ACCEPTED;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.CRASH_REPORT;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.DNSCRYPT_READY_PREF;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.DNSCRYPT_SERVERS;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.FIX_TTL;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.ITPD_READY_PREF;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.ITPD_TETHERING;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.NOTIFICATIONS_REQUEST_BLOCKED;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.OPERATION_MODE;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.ROOT_IS_AVAILABLE;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.TOR_READY_PREF;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.RUN_MODULES_WITH_ROOT;
import static pan.alexander.tordnscrypt.utils.preferences.PreferenceKeys.TOR_TETHERING;
import static pan.alexander.tordnscrypt.utils.root.RootCommandsMark.TOP_FRAGMENT_MARK;
import static pan.alexander.tordnscrypt.utils.enums.ModuleState.RUNNING;
import static pan.alexander.tordnscrypt.utils.enums.OperationMode.ROOT_MODE;
import static pan.alexander.tordnscrypt.utils.enums.OperationMode.UNDEFINED;
import javax.inject.Inject;
public class TopFragment extends Fragment
implements NotificationPermissionDialog.NotificationPermissionDialogListener,
AgreementDialog.OnAgreementAcceptedListener {
public volatile static String DNSCryptVersion = "";
public volatile static String TorVersion = "";
public volatile static String ITPDVersion = "";
static String verSU = "";
static String verBB = "";
public static boolean debug = false;
public static final String TOP_BROADCAST = "pan.alexander.tordnscrypt.action.TOP_BROADCAST";
private final ModulesStatus modulesStatus = ModulesStatus.getInstance();
private boolean rootIsAvailable = false;
private boolean rootIsAvailableSaved = false;
@Inject
public Lazy<PreferenceRepository> preferenceRepository;
@Inject
public Lazy<PathVars> pathVars;
@Inject
public CoroutineExecutor executor;
@Inject
public Lazy<ModulesVersions> modulesVersions;
@Inject
public Lazy<ConnectionCheckerInteractor> connectionChecker;
@Inject
public Lazy<NotificationPermissionManager> notificationPermissionManager;
@Inject
public ViewModelProvider.Factory viewModelFactory;
@Inject
public Lazy<Verifier> verifierLazy;
@Inject
public Lazy<AskRestoreDefaultsDialog> askRestoreDefaultsDialog;
private TopFragmentViewModel viewModel;
private OperationMode mode = UNDEFINED;
private boolean runModulesWithRoot = false;
public CheckUpdatesDialog checkUpdatesDialog;
volatile Job updateCheckTask;
private ScheduledFuture<?> scheduledFuture;
private BroadcastReceiver br;
private OnActivityChangeListener onActivityChangeListener;
private volatile Handler handler;
private static volatile ScheduledExecutorService timer;
public static float logsTextSize = 0f;
public static volatile boolean initTasksRequired = true;
public interface OnActivityChangeListener {
void onActivityChange(MainActivity mainActivity);
}
public void setOnActivityChangeListener(OnActivityChangeListener onActivityChangeListener) {
this.onActivityChangeListener = onActivityChangeListener;
}
private void removeOnActivityChangeListener() {
onActivityChangeListener = null;
}
public TopFragment() {
}
@Override
public void onCreate(Bundle savedInstanceState) {
App.getInstance().getDaggerComponent().inject(this);
super.onCreate(savedInstanceState);
//noinspection deprecation
setRetainInstance(true);
viewModel = new ViewModelProvider(this, viewModelFactory).get(TopFragmentViewModel.class);
}
@Override
public void onStart() {
super.onStart();
FragmentActivity activity = getActivity();
if (activity != null) {
SharedPreferences shPref = PreferenceManager.getDefaultSharedPreferences(activity);
PreferenceRepository preferences = preferenceRepository.get();
rootIsAvailableSaved = rootIsAvailable = preferences.getBoolPreference(ROOT_IS_AVAILABLE);
runModulesWithRoot = shPref.getBoolean(RUN_MODULES_WITH_ROOT, false);
modulesStatus.setFixTTL(shPref.getBoolean(FIX_TTL, false));
modulesStatus.setTorReady(preferences.getBoolPreference(TOR_READY_PREF));
modulesStatus.setDnsCryptReady(preferences.getBoolPreference(DNSCRYPT_READY_PREF));
modulesStatus.setItpdReady(preferences.getBoolPreference(ITPD_READY_PREF));
String operationMode = preferences.getStringPreference(OPERATION_MODE);
if (!operationMode.isEmpty()) {
mode = OperationMode.valueOf(operationMode);
ModulesAux.switchModes(rootIsAvailable, runModulesWithRoot, mode);
}
if (PathVars.isModulesInstalled(preferences)) {
checkAgreement();
}
logsTextSize = preferences.getFloatPreference("LogsTextSize");
}
if (activity != null) {
registerReceiver(activity);
}
Looper looper = Looper.getMainLooper();
if (looper != null) {
handler = new Handler(looper);
}
if (Build.VERSION.SDK_INT >= 33
&& activity != null
&& !preferenceRepository.get().getBoolPreference(NOTIFICATIONS_REQUEST_BLOCKED)
&& notificationPermissionManager.get().isNotificationPermissionRequestRequired(activity)) {
registerNotificationsPermissionListener(activity);
}
if (isInitTasksRequired() || isRootCheckRequired()) {
checkRootAvailable();
}
}
@Override
public void onResume() {
super.onResume();
Context context = getActivity();
if (context != null) {
if (onActivityChangeListener != null && context instanceof MainActivity) {
onActivityChangeListener.onActivityChange((MainActivity) context);
}
}
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_top, container, false);
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
observeRootState();
}
private boolean isInitTasksRequired() {
return initTasksRequired
|| !PathVars.isModulesInstalled(preferenceRepository.get())
|| DNSCryptVersion.isEmpty()
|| TorVersion.isEmpty()
|| ITPDVersion.isEmpty()
|| modulesStatus.getDnsCryptState() == ModuleState.UNDEFINED
|| modulesStatus.getTorState() == ModuleState.UNDEFINED
|| modulesStatus.getItpdState() == ModuleState.UNDEFINED
|| rootIsAvailable != rootIsAvailableSaved
|| mode == UNDEFINED;
}
private boolean isRootCheckRequired() {
return !viewModel.getRootCheckResultSuccess();
}
private void checkRootAvailable() {
viewModel.checkRootAvailable();
}
@Override
public void onStop() {
super.onStop();
Activity activity = getActivity();
if (activity == null) {
return;
}
saveLogsTextSize();
if (!activity.isChangingConfigurations()) {
stopInstallationTimer();
removeOnActivityChangeListener();
stopTimer();
cancelRootChecker();
cancelCheckUpdatesTask();
dismissCheckUpdatesDialog();
cancelHandlerTasks();
unRegisterReceiver(activity);
}
}
private void saveLogsTextSize() {
preferenceRepository.get().setFloatPreference("LogsTextSize", logsTextSize);
}
private void cancelRootChecker() {
if (!App.getInstance().isAppForeground()) {
viewModel.cancelRootChecking();
}
}
private void cancelHandlerTasks() {
if (handler != null) {
handler.removeCallbacksAndMessages(null);
handler = null;
}
}
private void observeRootState() {
viewModel.getRootStateLiveData().observe(getViewLifecycleOwner(), rootState -> {
if (rootState instanceof RootState.Undefined) {
return;
} else if (rootState instanceof RootState.RootAvailable) {
String suVersion = ((RootState.RootAvailable) rootState).getSuVersion();
List <String> suResult = ((RootState.RootAvailable) rootState).getSuResult();
List<String> bbResult = ((RootState.RootAvailable) rootState).getBbResult();
setSUInfo(suResult, suVersion);
setBBinfo(bbResult);
}
performInitTasksBackgroundWork();
});
}
@WorkerThread
private void performInitTasksBackgroundWork() {
executor.submit("TopFragment performInitTasksBackgroundWork", () -> {
Activity activity = getActivity();
if (activity == null || activity.isFinishing()) {
return null;
}
Context context = activity.getApplicationContext();
Utils.startAppExitDetectService(context);
PreferenceRepository preferences = preferenceRepository.get();
shortenTooLongSnowflakeLog(context, preferences, pathVars.get());
shortenTooLongConjureLog(context, preferences, pathVars.get());
shortenTooLongWebTunnelLog(context, preferences, pathVars.get());
checkModulesStoppedBySystem(activity);
checkIntegrity(activity);
if (handler != null) {
handler.post(this::performInitTasksMainThreadWork);
}
return null;
});
}
private void checkModulesStoppedBySystem(Activity activity) {
if (handler != null) {
handler.postDelayed(() -> {
if (activity.isFinishing()) {
return;
}
Context context = activity.getApplicationContext();
if (!runModulesWithRoot
&& haveModulesSavedStateRunning()
&& !isModulesStarterServiceRunning(context)) {
startModulesStarterServiceIfStoppedBySystem(context);
loge("ModulesService stopped by system!");
}
}, 3000);
}
}
private void checkIntegrity(Activity activity) {
try {
Verifier verifier = verifierLazy.get();
String appSign = verifier.getAppSignature();
String appSignAlt = verifier.getApkSignature();
verifier.encryptStr(TOP_BROADCAST, appSign, appSignAlt);
String wrongSign = verifier.getWrongSign();
if (!verifier.decryptStr(wrongSign, appSign, appSignAlt).equals(TOP_BROADCAST)) {
if (isAdded() && !isStateSaved()) {
NotificationHelper notificationHelper = NotificationHelper.setHelperMessage(
activity, getString(R.string.verifier_error), "1112");
if (notificationHelper != null && handler != null) {
handler.post(() -> notificationHelper.show(getChildFragmentManager(), NotificationHelper.TAG_HELPER));
}
}
}
} catch (Exception e) {
if (isAdded()) {
NotificationHelper notificationHelper = NotificationHelper.setHelperMessage(
activity, getString(R.string.verifier_error), "2235");
if (notificationHelper != null && !isStateSaved() && handler != null) {
handler.post(() -> notificationHelper.show(getChildFragmentManager(), NotificationHelper.TAG_HELPER));
}
}
loge("Top Fragment comparator fault ", e, true);
}
}
@UiThread
private void performInitTasksMainThreadWork() {
MainActivity activity = (MainActivity) getActivity();
if (activity == null || activity.isFinishing()) {
return;
}
try {
if (rootIsAvailable != rootIsAvailableSaved || mode == UNDEFINED) {
ModulesAux.switchModes(rootIsAvailable, runModulesWithRoot, mode);
activity.invalidateMenu();
}
if (!PathVars.isModulesInstalled(preferenceRepository.get())) {
actionModulesNotInstalled(activity);
} else {
refreshModulesVersions(activity);
stopInstallationTimer();
if (!pathVars.get().getAppVersion().endsWith("p")
&& !preferenceRepository.get().getStringPreference(CRASH_REPORT).isEmpty()) {
sendCrashReport(activity);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU
&& !preferenceRepository.get().getBoolPreference(NOTIFICATIONS_REQUEST_BLOCKED)
&& isAgreementAccepted()
&& notificationPermissionManager.get().isNotificationPermissionRequestRequired(activity)) {
requestNotificationPermissions();
} else {
showUpdateResultMessage(activity);
checkUpdates(activity);
showDonDialog(activity);
}
checkInternetConnectionIfRequired();
}
initTasksRequired = false;
} catch (Exception e) {
loge("RootChecker onPostExecute", e);
}
}
@RequiresApi(33)
private void registerNotificationsPermissionListener(FragmentActivity activity) {
notificationPermissionManager.get().getNotificationPermissionLauncher(activity);
NotificationPermissionDialog previousDialog =
(NotificationPermissionDialog) activity.getSupportFragmentManager()
.findFragmentByTag("NotificationsPermission");
NotificationPermissionManager.OnPermissionResultListener listener =
new NotificationPermissionManager.OnPermissionResultListener() {
@Override
public void onAllowed() {
preferenceRepository.get().setBoolPreference(NOTIFICATIONS_REQUEST_BLOCKED, false);
logi("Notifications are allowed");
}
@Override
public void onShowRationale() {
if (previousDialog == null && isAdded() && !isStateSaved()) {
NotificationPermissionDialog dialog = new NotificationPermissionDialog();
dialog.show(getParentFragmentManager(), "NotificationsPermission");
}
}
@Override
public void onDenied() {
preferenceRepository.get().setBoolPreference(NOTIFICATIONS_REQUEST_BLOCKED, true);
logw("Notifications are blocked");
}
};
notificationPermissionManager.get().setOnPermissionResultListener(listener);
}
@RequiresApi(33)
private void requestNotificationPermissions() {
if (handler == null) {
return;
}
handler.postDelayed(() -> {
FragmentActivity activity = getActivity();
if (activity == null)
return;
if (isAdded() && !isStateSaved()) {
notificationPermissionManager.get().requestNotificationPermission(activity);
}
}, 1000);
}
@Override
public void notificationPermissionDialogOkPressed() {
ActivityResultLauncher<String> launcher = notificationPermissionManager.get().getLauncher();
if (isAdded() && !isStateSaved() && launcher != null) {
notificationPermissionManager.get().launchNotificationPermissionSystemDialog(launcher);
}
}
@Override
public void notificationPermissionDialogDoNotShowPressed() {
NotificationPermissionManager.OnPermissionResultListener listener =
notificationPermissionManager.get().getOnPermissionResultListener();
if (listener != null) {
listener.onDenied();
}
}
private void showDonDialog(Activity activity) {
if (!initTasksRequired
|| activity == null
|| activity.isFinishing()
|| isStateSaved()
|| !isAgreementAccepted()) {
return;
}
if (pathVars.get().getAppVersion().endsWith("e")) {
if (handler != null) {
handler.postDelayed(() -> {
if (isAdded() && !isStateSaved()) {
Registration registration = new Registration(activity);
registration.showDonateDialog();
}
}, 5000);
}
} else if (pathVars.get().getAppVersion().endsWith("p") && isAdded()) {
if (handler != null) {
handler.postDelayed(() -> {
if (accelerated) {
return;
}
DialogFragment accelerateDevelop = AskAccelerateDevelop.getInstance();
accelerateDevelop.setCancelable(false);
if (isAdded() && !isStateSaved()) {
accelerateDevelop.show(getParentFragmentManager(), "accelerateDevelop");
}
}, 5000);
}
}
}
private void refreshModulesVersions(Context context) {
if (modulesStatus.isUseModulesWithRoot() && modulesStatus.getMode() == ROOT_MODE) {
Intent intent = new Intent(TOP_BROADCAST);
LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
logi("TopFragment Send TOP_BROADCAST");
} else {
modulesVersions.get().refreshVersions(context);
}
}
private void actionModulesNotInstalled(Context context) {
PreferenceManager.setDefaultValues(context, R.xml.preferences_common, true);
PreferenceManager.setDefaultValues(context, R.xml.preferences_dnscrypt, true);
PreferenceManager.setDefaultValues(context, R.xml.preferences_fast, true);
PreferenceManager.setDefaultValues(context, R.xml.preferences_tor, true);
PreferenceManager.setDefaultValues(context, R.xml.preferences_i2pd, true);
//For core update purposes
final PreferenceRepository preferences = preferenceRepository.get();
preferences.setStringPreference("DNSCryptVersion", DNSCryptVersion);
preferences.setStringPreference("TorVersion", TorVersion);
preferences.setStringPreference("ITPDVersion", ITPDVersion);
preferences.setStringPreference(DNSCRYPT_SERVERS, "");
SharedPreferences sPref = PreferenceManager.getDefaultSharedPreferences(context);
SharedPreferences.Editor editor = sPref.edit();
editor.putBoolean(TOR_TETHERING, false);
editor.putBoolean(ITPD_TETHERING, false);
editor.apply();
startInstallation();
}
private void setSUInfo(List<String> fSuResult, String fSuVersion) {
try {
final PreferenceRepository preferences = preferenceRepository.get();
if (fSuResult != null && !fSuResult.isEmpty()
&& fSuResult.toString().toLowerCase().contains("uid=0")
&& fSuResult.toString().toLowerCase().contains("gid=0")) {
rootIsAvailable = true;
preferences.setBoolPreference(ROOT_IS_AVAILABLE, true);
if (fSuVersion != null && !fSuVersion.isEmpty()) {
verSU = "Root is available." + (char) 10 +
"Super User Version: " + fSuVersion + (char) 10 +
fSuResult.get(0);
} else {
verSU = "Root is available." + (char) 10 +
"Super User Version: Unknown" +
fSuResult.get(0);
}
logi(verSU);
} else {
rootIsAvailable = false;
preferences.setBoolPreference(ROOT_IS_AVAILABLE, false);
}
} catch (Exception e) {
loge("TopFragment setSUInfo", e);
}
}
private void setBBinfo(List<String> fBbResult) {
try {
final PreferenceRepository preferences = preferenceRepository.get();
if (fBbResult != null && !fBbResult.isEmpty()) {
verBB = fBbResult.get(0);
} else {
preferences.setBoolPreference("bbOK", false);
return;
}
if (verBB.toLowerCase().contains("not found")) {
preferences.setBoolPreference("bbOK", false);
} else {
preferences.setBoolPreference("bbOK", true);
logi("BusyBox is available " + verBB);
}
} catch (Exception e) {
loge("TopFragment setBBinfo", e);
}
}
private void startInstallation() {
stopInstallationTimer();
if (timer == null || timer.isShutdown()) {
initTimer();
}
scheduledFuture = timer.scheduleAtFixedRate(new Runnable() {
int loop = 0;
@Override
public void run() {
logi("TopFragment Timer loop = " + loop);
if (++loop > 15) {
stopInstallationTimer();
logw("TopFragment Timer cancel, loop > 15");
}
Activity activity = getActivity();
if (activity instanceof MainActivity) {
Installer installer = new Installer(activity);
installer.installModules();
logi("TopFragment Timer startRefreshModulesStatus Modules Installation");
stopInstallationTimer();
}
}
}, 3, 1, TimeUnit.SECONDS);
}
private void stopInstallationTimer() {
if (scheduledFuture != null && !scheduledFuture.isCancelled()) {
scheduledFuture.cancel(false);
scheduledFuture = null;
}
}
private void sendCrashReport(Activity activity) {
if (activity == null || activity.isFinishing()) {
return;
}
String crash = preferenceRepository.get().getStringPreference(CRASH_REPORT);
if (!crash.isEmpty()) {
SendCrashReport crashReport = SendCrashReport.Companion.getCrashReportDialog(activity);
if (crashReport != null && isAdded() && !isStateSaved()) {
crashReport.show(getParentFragmentManager(), "SendCrashReport");
}
}
}
public void checkUpdates(Context context) {
SharedPreferences spref = PreferenceManager.getDefaultSharedPreferences(context);
PreferenceRepository preferences = preferenceRepository.get();
if (!preferences.getStringPreference("RequiredAppUpdateForQ").isEmpty()) {
Intent intent = new Intent(context, UpdateService.class);
intent.setAction(UpdateService.INSTALLATION_REQUEST_ACTION);
context.startService(intent);
return;
}
boolean autoUpdate = spref.getBoolean("pref_fast_auto_update", true)
&& !pathVars.get().getAppVersion().startsWith("l")
&& !pathVars.get().getAppVersion().endsWith("p")
&& !pathVars.get().getAppVersion().startsWith("f");
if (autoUpdate) {
boolean throughTorUpdate = spref.getBoolean("pref_fast through_tor_update", false);
boolean torRunning = modulesStatus.getTorState() == RUNNING;
boolean torReady = modulesStatus.isTorReady();
String lastUpdateResult = preferences.getStringPreference("LastUpdateResult");
if (!throughTorUpdate || (torRunning && torReady)) {
long updateTimeCurrent = System.currentTimeMillis();
String updateTimeLastStr = preferences.getStringPreference("updateTimeLast");
if (!updateTimeLastStr.isEmpty()) {
long updateTimeLast = Long.parseLong(updateTimeLastStr);
final int UPDATES_CHECK_INTERVAL_HOURS = 24;
int interval = 1000 * 60 * 60 * UPDATES_CHECK_INTERVAL_HOURS;
if ((updateTimeCurrent - updateTimeLast > interval)
|| (lastUpdateResult.isEmpty() && ((updateTimeCurrent - updateTimeLast) > 300000))
|| lastUpdateResult.equals(getString(R.string.update_check_warning_menu)))
checkNewVer(context, false);
} else {
checkNewVer(context, false);
}
}
}
}
public void checkNewVer(Context context, boolean showProgressDialog) {
if (pathVars.get().getAppVersion().endsWith("p")
|| pathVars.get().getAppVersion().startsWith("f")) {
return;
}
if (context == null || updateCheckTask != null || isStateSaved()) {
return;
}
PreferenceRepository preferences = preferenceRepository.get();
preferences.setStringPreference("LastUpdateResult", "");
preferences.setStringPreference("updateTimeLast", String.valueOf(System.currentTimeMillis()));
try {
UpdateCheck updateCheck = new UpdateCheck(this);
updateCheckTask = updateCheck.requestUpdateData("https://invizible.net");
if (showProgressDialog && !isStateSaved()) {
checkUpdatesDialog = new CheckUpdatesDialog();
checkUpdatesDialog.setCheckUpdatesTask(updateCheckTask);
checkUpdatesDialog.show(getParentFragmentManager(), "checkUpdatesDialog");
}
} catch (Exception e) {
Activity activity = getActivity();
if (activity instanceof MainActivity) {
if (checkUpdatesDialog != null && checkUpdatesDialog.isAdded() && !isStateSaved()) {
showUpdateMessage(activity, getString(R.string.update_fault));
}
}
preferences.setStringPreference("LastUpdateResult", getString(R.string.update_fault));
loge("TopFragment Failed to requestUpdate()", e);
}
}
public void downloadUpdate(String fileName, String updateStr, String message, String hash) {
if (handler == null) {
return;
}
handler.post(() -> {
Context context = getActivity();
if (context == null)
return;
cancelCheckUpdatesTask();
dismissCheckUpdatesDialog();
preferenceRepository.get().setStringPreference("LastUpdateResult", context.getString(R.string.update_found));
if (isAdded() && !isStateSaved()) {
DialogFragment newUpdateDialogFragment = NewUpdateDialogFragment.newInstance(message, updateStr, fileName, hash);
newUpdateDialogFragment.setCancelable(false);
newUpdateDialogFragment.show(getParentFragmentManager(), NewUpdateDialogFragment.TAG_NOT_FRAG);
}
});
}
private void dismissCheckUpdatesDialog() {
if (checkUpdatesDialog != null && checkUpdatesDialog.isAdded()) {
checkUpdatesDialog.dismiss();
checkUpdatesDialog = null;
}
}
private void cancelCheckUpdatesTask() {
if (updateCheckTask != null && !updateCheckTask.isCompleted()) {
updateCheckTask.cancel(new CancellationException());
}
updateCheckTask = null;
}
public void showUpdateResultMessage(Activity activity) {
if (pathVars.get().getAppVersion().equals("gp")
|| pathVars.get().getAppVersion().equals("fd")) {
return;
}
PreferenceRepository preferences = preferenceRepository.get();
String updateResultMessage = preferences.getStringPreference("UpdateResultMessage");
if (!updateResultMessage.isEmpty()) {
showUpdateMessage(activity, updateResultMessage);
preferences.setStringPreference("UpdateResultMessage", "");
}
}
public void showUpdateMessage(Activity activity, final String message) {
if (activity.isFinishing() || handler == null || isStateSaved()) {
return;
}
cancelCheckUpdatesTask();
handler.post(this::dismissCheckUpdatesDialog);
handler.postDelayed(() -> {
if (!activity.isFinishing() && !isStateSaved()) {
DialogFragment commandResult = NotificationDialogFragment.newInstance(message);
commandResult.show(getParentFragmentManager(), "NotificationDialogFragment");
}
}, 500);
}
private static void startModulesStarterServiceIfStoppedBySystem(Context context) {
ModulesAux.recoverService(context);
}
private static boolean isModulesStarterServiceRunning(Context context) {
return Utils.INSTANCE.isServiceRunning(context, ModulesService.class);
}
private static boolean haveModulesSavedStateRunning() {
boolean dnsCryptRunning = ModulesAux.isDnsCryptSavedStateRunning();
boolean torRunning = ModulesAux.isTorSavedStateRunning();
boolean itpdRunning = ModulesAux.isITPDSavedStateRunning();
return dnsCryptRunning || torRunning || itpdRunning;
}
private void receiverOnReceive(Intent intent) {
Activity activity = getActivity();
if (activity == null || intent.getAction() == null
|| !isBroadcastMatch(intent)
|| !isAdded() || isStateSaved()) {
return;
}
if (intent.getAction().equals(UpdateService.UPDATE_RESULT)) {
showUpdateResultMessage(activity);
refreshModulesVersions(activity);
} else if (intent.getAction().equals(ModulesStarterHelper.ASK_RESTORE_DEFAULTS)) {
DialogFragment dialog = askRestoreDefaultsDialog.get();
Bundle args = new Bundle();
ModuleName name = (ModuleName) intent.getSerializableExtra(ModulesStarterHelper.MODULE_NAME);
args.putSerializable(MODULE_NAME_ARG, name);
dialog.setArguments(args);
dialog.show(getChildFragmentManager(), "AskRestoreDefaults");
}
}
private boolean isBroadcastMatch(Intent intent) {
if (intent == null) {
return false;
}
String action = intent.getAction();
if (action == null || action.isEmpty()) {
return false;
}
if (!action.equals(UpdateService.UPDATE_RESULT) && !action.equals(ModulesStarterHelper.ASK_RESTORE_DEFAULTS)) {
return false;
}
return intent.getIntExtra("Mark", 0) == TOP_FRAGMENT_MARK;
}
private void registerReceiver(Context context) {
if (context == null || br != null) {
return;
}
br = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
receiverOnReceive(intent);
}
};
IntentFilter intentFilterUpdate = new IntentFilter(UpdateService.UPDATE_RESULT);
IntentFilter intentFilterForceClose = new IntentFilter(ModulesStarterHelper.ASK_RESTORE_DEFAULTS);
LocalBroadcastManager.getInstance(context).registerReceiver(br, intentFilterUpdate);
LocalBroadcastManager.getInstance(context).registerReceiver(br, intentFilterForceClose);
}
private void unRegisterReceiver(Context context) {
try {
if (br != null && context != null) {
LocalBroadcastManager.getInstance(context).unregisterReceiver(br);
br = null;
}
} catch (Exception ignored) {
}
}
private void checkAgreement() {
if (!isAgreementAccepted()) {
DialogFragment dialog = AgreementDialog.newInstance();
dialog.setCancelable(false);
if (isAdded() && !isStateSaved()) {
dialog.show(getParentFragmentManager(), "AgreementDialog");
}
}
}
@Override
public void onAgreementAccepted() {
FragmentActivity activity = getActivity();
if (activity == null) {
return;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU
&& !preferenceRepository.get().getBoolPreference(NOTIFICATIONS_REQUEST_BLOCKED)
&& notificationPermissionManager.get().isNotificationPermissionRequestRequired(activity)) {
requestNotificationPermissions();
}
}
private boolean isAgreementAccepted() {
return preferenceRepository.get().getBoolPreference(AGREEMENT_ACCEPTED);
}
private static void initTimer() {
if (timer == null || timer.isShutdown()) {
timer = Executors.newScheduledThreadPool(0);
}
}
private void stopTimer() {
if (timer != null && !timer.isShutdown()) {
timer.shutdownNow();
timer = null;
}
}
private void checkInternetConnectionIfRequired() {
if (modulesStatus.getDnsCryptState() == RUNNING || modulesStatus.getTorState() == RUNNING) {
ConnectionCheckerInteractor checker = connectionChecker.get();
if (!checker.getInternetConnectionResult()) {
checker.checkInternetConnection();
}
}
}
}
| Gedsh/InviZible | tordnscrypt/src/main/java/pan/alexander/tordnscrypt/TopFragment.java |
213,403 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.app.plugin.core.compositeeditor;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.dnd.*;
import java.awt.event.*;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.EventObject;
import java.util.List;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
import javax.swing.table.*;
import javax.swing.text.JTextComponent;
import docking.DockingWindowManager;
import docking.actions.KeyBindingUtils;
import docking.dnd.*;
import docking.widgets.DropDownSelectionTextField;
import docking.widgets.OptionDialog;
import docking.widgets.fieldpanel.support.FieldRange;
import docking.widgets.fieldpanel.support.FieldSelection;
import docking.widgets.label.GDLabel;
import docking.widgets.label.GLabel;
import docking.widgets.table.*;
import docking.widgets.textfield.GValidatedTextField;
import generic.theme.GColor;
import ghidra.app.services.DataTypeManagerService;
import ghidra.app.util.datatype.DataTypeSelectionEditor;
import ghidra.app.util.datatype.NavigationDirection;
import ghidra.framework.plugintool.Plugin;
import ghidra.framework.plugintool.PluginTool;
import ghidra.program.model.data.*;
import ghidra.program.model.data.Composite;
import ghidra.program.model.listing.DataTypeArchive;
import ghidra.program.model.listing.Program;
import ghidra.util.*;
import ghidra.util.data.DataTypeParser.AllowedDataTypes;
import ghidra.util.exception.UsrException;
import ghidra.util.layout.VerticalLayout;
import help.Help;
import help.HelpService;
/**
* Panel for editing a composite data type. Specific composite data type editors
* should extend this class.
* This provides a table with cell edit functionality and drag and drop capability.
* Below the table is an information area for non-component information about the
* composite data type. To add your own info panel override the createInfoPanel() method.
*/
public abstract class CompositeEditorPanel extends JPanel
implements CompositeEditorModelListener, ComponentCellEditorListener, Draggable, Droppable {
// Normal color for selecting components in the table.
//protected static final Insets TEXTFIELD_INSETS = new JTextField().getInsets();
protected static final Border BEVELED_BORDER = BorderFactory.createLoweredBevelBorder();
protected static final HelpService helpManager = Help.getHelpService();
protected CompositeEditorProvider provider;
protected CompositeEditorModel model;
protected GTable table;
private JLabel statusLabel;
private boolean editorAdjusting = false;
// ******************************************************
// The following are for drag and drop of components.
// ******************************************************
/** The table cell renderer for drag-n-drop. */
protected DndTableCellRenderer dndTableCellRenderer;
protected DndTableCellRenderer dndDtiCellRenderer;
private DragSource dragSource;
private DragGestureAdapter dragGestureAdapter;
private DragSrcAdapter dragSourceAdapter;
private int dragAction = DnDConstants.ACTION_MOVE;
private DropTarget dropTarget;
private DropTgtAdapter dropTargetAdapter;
private DataFlavor[] acceptableFlavors; // data flavors that are valid.
protected int lastDndAction = DnDConstants.ACTION_NONE;
public CompositeEditorPanel(CompositeEditorModel model, CompositeEditorProvider provider) {
super(new BorderLayout());
JPanel lowerPanel = new JPanel(new VerticalLayout(5));
this.provider = provider;
this.model = model;
createTable();
JPanel bitViewerPanel = createBitViewerPanel();
if (bitViewerPanel != null) {
lowerPanel.add(bitViewerPanel);
}
JPanel infoPanel = createInfoPanel();
if (infoPanel != null) {
adjustCompositeInfo();
lowerPanel.add(infoPanel);
}
lowerPanel.add(createStatusPanel());
add(lowerPanel, BorderLayout.SOUTH);
model.addCompositeEditorModelListener(this);
setUpDragDrop();
}
protected Composite getOriginalComposite() {
return model.getOriginalComposite();
}
protected abstract void adjustCompositeInfo();
public JTable getTable() {
return table;
}
protected CompositeEditorModel getModel() {
return model;
}
public void addEditorModelListener(CompositeEditorModelListener listener) {
model.addCompositeEditorModelListener(listener);
}
public void removeEditorModelListener(CompositeEditorModelListener listener) {
model.removeCompositeEditorModelListener(listener);
}
private void setupTableCellRenderer() {
GTableCellRenderer cellRenderer = new GTableCellRenderer();
DataTypeCellRenderer dtiCellRenderer =
new DataTypeCellRenderer(model.getOriginalDataTypeManager());
table.setDefaultRenderer(String.class, cellRenderer);
table.setDefaultRenderer(DataTypeInstance.class, dtiCellRenderer);
}
private boolean launchBitFieldEditor(int modelRow, int modelColumn) {
if (model.viewComposite instanceof Structure &&
!model.viewComposite.isPackingEnabled() &&
model.getDataTypeColumn() == modelColumn && modelRow < model.getNumComponents()) {
// check if we are attempting to edit a bitfield
DataTypeComponent dtComponent = model.getComponent(modelRow);
if (dtComponent.isBitFieldComponent()) {
table.getCellEditor().cancelCellEditing();
BitFieldEditorDialog dlg = new BitFieldEditorDialog(model.viewComposite,
provider.dtmService, modelRow, model.showHexNumbers, ordinal -> {
model.notifyCompositeChanged();
});
Component c = provider.getComponent();
DockingWindowManager.showDialog(c, dlg);
return true;
}
}
return false;
}
private void setupTableCellEditor() {
table.addPropertyChangeListener("tableCellEditor", evt -> {
TableCellEditor fieldEditor = (TableCellEditor) evt.getNewValue();
if (fieldEditor == null) {
// Ending cell edit
Swing.runLater(() -> model.endEditingField());
}
else {
// Starting cell edit
Swing.runLater(() -> {
int editingRow = table.getEditingRow();
if (editingRow < 0) {
return;
}
int modelRow = table.convertRowIndexToModel(editingRow);
int editingColumn = table.getEditingColumn();
int modelColumn = table.convertColumnIndexToModel(editingColumn);
if (!launchBitFieldEditor(modelRow, modelColumn)) {
model.beginEditingField(modelRow, modelColumn);
}
});
}
});
ComponentStringCellEditor cellEditor = new ComponentStringCellEditor();
ComponentOffsetCellEditor offsetCellEditor = new ComponentOffsetCellEditor();
ComponentDataTypeCellEditor dataTypeCellEditor = new ComponentDataTypeCellEditor();
ComponentNameCellEditor nameCellEditor = new ComponentNameCellEditor();
cellEditor.setComponentCellEditorListener(this);
offsetCellEditor.setComponentCellEditorListener(this);
nameCellEditor.setComponentCellEditorListener(this);
table.setDefaultEditor(String.class, cellEditor);
TableColumnModel tcm = table.getColumnModel();
int numCols = tcm.getColumnCount();
for (int i = 0; i < numCols; i++) {
int column = table.convertColumnIndexToModel(i);
if (column == model.getNameColumn()) {
tcm.getColumn(column).setCellEditor(nameCellEditor);
}
else if (column == model.getDataTypeColumn()) {
tcm.getColumn(column).setCellEditor(dataTypeCellEditor);
}
else if (column == model.getOffsetColumn()) {
tcm.getColumn(column).setCellEditor(offsetCellEditor);
}
else {
tcm.getColumn(column).setCellEditor(cellEditor);
}
}
}
protected void cancelCellEditing() {
TableCellEditor cellEditor = table.getCellEditor();
if (cellEditor != null) {
cellEditor.cancelCellEditing();
}
}
protected void stopCellEditing() {
TableCellEditor cellEditor = table.getCellEditor();
if (cellEditor != null) {
cellEditor.stopCellEditing();
}
}
protected void startCellEditing(int row, int viewColumn) {
if (row >= 0 && viewColumn >= 0) {
table.editCellAt(row, viewColumn, new KeyEvent(table, KeyEvent.KEY_PRESSED,
System.currentTimeMillis(), 0, KeyEvent.VK_F2, KeyEvent.CHAR_UNDEFINED));
}
}
/*********************************************
* BEGIN ComponentCellEditorListener methods
*********************************************/
@Override
public void moveCellEditor(final int direction, final String value) {
stopCellEditing();
// Note: We run this later due to focus dependencies. When we call
// stopCellEditing() this will trigger a focusLost() event, which itself happens in
// a Swing.runLater(). If we do not trigger the moving of the cell editor after that focus
// event, then the focusLost() will trigger our new edit to be cancelled.
Swing.runLater(() -> doMoveCellEditor(direction, value));
}
private void doMoveCellEditor(int direction, String value) {
if (editorAdjusting) {
return;
}
try {
editorAdjusting = true;
if (table.isEditing()) {
return;
}
int currentRow = model.getRow();
switch (direction) {
case ComponentCellEditorListener.NEXT:
editNextField(currentRow);
break;
case ComponentCellEditorListener.PREVIOUS:
editPreviousField(currentRow);
break;
case ComponentCellEditorListener.UP:
editAboveField();
break;
case ComponentCellEditorListener.DOWN:
editBelowField();
break;
}
}
finally {
editorAdjusting = false;
}
}
/*********************************************
* END ComponentCellEditorListener methods
*********************************************/
/**
* If the field location specified can be edited,
* the field is put into edit mode.
*
* @param row the table row
* @param modelColumn the model's column index
*
* @return true if field has been put into edit mode.
*/
private boolean beginEditField(int row, int modelColumn) {
// Handle the editing for this field.
int viewColumn = table.convertColumnIndexToView(modelColumn);
scrollToCell(row, viewColumn);
table.setColumnSelectionInterval(viewColumn, viewColumn);
startCellEditing(row, viewColumn);
return table.isEditing();
}
/**
* Moves the cursor to the next editable field.
* @param currentRow The currently selected row
* @return true if there was a next editable field.
*/
protected boolean locateNextEditField(int currentRow) {
int row = currentRow;
int modelColumn = model.getColumn();
boolean foundEditable = false;
// Get the current row (index) and column (fieldNum).
int index = row;
int fieldNum = table.convertColumnIndexToView(modelColumn);
int numFields = table.getColumnCount();
int numComps = model.getRowCount();
do {
// Determine the new location for the cursor.
if (index < numComps) { // on component row
if (++fieldNum < (numFields)) { // not on last field
if (table.isCellEditable(index, fieldNum)) {
foundEditable = true;
}
}
else if ((++index < numComps) // on last field for other than last component
|| (index == numComps)) { // Last field and row but unlocked
fieldNum = 0; // Set it to first field.
if (table.isCellEditable(index, fieldNum)) {
foundEditable = true;
}
}
else {
break;
}
}
else {
break;
}
}
while (!foundEditable);
if (foundEditable) {
row = index;
modelColumn = table.convertColumnIndexToModel(fieldNum);
table.setRowSelectionInterval(row, row);
model.setRow(row);
model.setColumn(modelColumn);
}
return foundEditable;
}
/**
* Moves the cursor to the previous editable field.
* @param currentRow The currently selected row
* @return true if there was a previous editable field.
*/
protected boolean locatePreviousEditField(int currentRow) {
int row = currentRow;
int modelColumn = model.getColumn();
boolean foundEditable = false;
// Get the current row (index) and column (fieldNum).
int index = row;
int fieldNum = table.convertColumnIndexToView(modelColumn);
do {
// Determine the new location for the cursor.
if (--fieldNum >= 0) {
if (model.isCellEditable(index, table.convertColumnIndexToModel(fieldNum))) {
foundEditable = true;
}
}
else if (--index >= 0) {
fieldNum = model.getColumnCount() - 1; // Set it to last field.
if (model.isCellEditable(index, table.convertColumnIndexToModel(fieldNum))) {
foundEditable = true;
}
}
else {
break;
}
}
while (!foundEditable);
if (foundEditable) {
row = index;
modelColumn = table.convertColumnIndexToModel(fieldNum);
table.setRowSelectionInterval(row, row);
model.setRow(row);
model.setColumn(modelColumn);
}
return foundEditable;
}
/**
* Puts the cell into edit in the row above the current (row, column) location.
* @return true if there was a table cell above that could be edited.
*/
protected boolean editAboveField() {
int row = model.getRow();
int modelColumn = model.getColumn();
// Get the current row (index) and column (fieldNum).
int index = row;
index--;
if (index >= 0) {
row = index;
table.setRowSelectionInterval(row, row);
if (model.isCellEditable(index, modelColumn)) {
return beginEditField(model.getRow(), model.getColumn());
}
}
return false;
}
/**
* Puts the cell into edit in the row below the current (row, column) location.
* @return true if there was a table cell below that could be edited.
*/
protected boolean editBelowField() {
int row = model.getRow();
int modelColumn = model.getColumn();
// Get the current row (index) and column (fieldNum).
int index = row;
index++;
int numComps = model.getRowCount();
if (index < numComps) {
row = index;
table.setRowSelectionInterval(row, row);
if (model.isCellEditable(index, modelColumn)) {
return beginEditField(model.getRow(), model.getColumn());
}
}
return false;
}
/**
* Puts the next editable cell into edit mode
*
* @param currentRow the current row
* @return true if there was a table cell that could be edited
*/
protected boolean editNextField(int currentRow) {
if (locateNextEditField(currentRow)) {
return beginEditField(model.getRow(), model.getColumn());
}
return false;
}
/**
* Puts the previous editable cell into edit mode.
* @param currentRow The currently selected row
* @return true if there was a table cell that could be edited.
*/
protected boolean editPreviousField(int currentRow) {
if (locatePreviousEditField(currentRow)) {
return beginEditField(model.getRow(), model.getColumn());
}
return false;
}
/**
* Scrolls the table so that the table cell indicated becomes viewable.
* @param rowIndex the row of the table cell
* @param columnIndex the column of the table cell
*/
private void scrollToCell(int rowIndex, int columnIndex) {
if (table.getAutoscrolls()) {
Rectangle cellRect = table.getCellRect(rowIndex, columnIndex, false);
if (cellRect != null) {
table.scrollRectToVisible(cellRect);
}
}
}
public void domainObjectRestored(DataTypeManagerDomainObject domainObject) {
DataTypeManager originalDTM = model.getOriginalDataTypeManager();
if (originalDTM == null) {
// editor unloaded
return;
}
boolean reload = true;
String objectType = "domain object";
if (domainObject instanceof Program) {
objectType = "program";
}
else if (domainObject instanceof DataTypeArchive) {
objectType = "data type archive";
}
DataType dt = originalDTM.getDataType(model.getCompositeID());
if (dt instanceof Composite) {
Composite composite = (Composite) dt;
String origDtPath = composite.getPathName();
if (!origDtPath.equals(model.getOriginalDataTypePath().getPath())) {
model.fixupOriginalPath(composite);
}
}
Composite originalDt = model.getOriginalComposite();
if (originalDt == null) {
provider.show();
String info =
"The " + objectType + " \"" + domainObject.getName() + "\" has been restored.\n" +
"\"" + model.getCompositeName() + "\" may no longer exist outside the editor.";
Msg.showWarn(this, this, "Program Restored", info);
return;
}
else if (originalDt.isDeleted()) {
cancelCellEditing(); // Make sure a field isn't being edited.
provider.dispose(); // Close the editor.
return;
}
else if (model.hasChanges()) {
provider.show();
// The user has modified the structure so prompt for whether or
// not to reload the structure.
String question =
"The " + objectType + " \"" + domainObject.getName() + "\" has been restored.\n" +
"\"" + model.getCompositeName() + "\" may have changed outside the editor.\n" +
"Discard edits & reload the " + model.getTypeName() + "?";
String title = "Reload " + model.getTypeName() + " Editor?";
int response = OptionDialog.showYesNoDialogWithNoAsDefaultButton(this, title, question);
if (response != 1) {
reload = false;
}
}
if (reload) {
cancelCellEditing(); // Make sure a field isn't being edited.
model.load(originalDt); // reload the structure
model.updateAndCheckChangeState();
}
}
public void dispose() {
if (isVisible()) {
setVisible(false);
}
model.removeCompositeEditorModelListener(this);
table.dispose();
}
private void createTable() {
table = new CompositeEditorTable(model);
TableColumnModel columnModel = table.getColumnModel();
if (columnModel instanceof GTableColumnModel) {
GTableColumnModel gColumnModel = (GTableColumnModel) columnModel;
List<TableColumn> hiddenColumns = model.getHiddenColumns();
for (TableColumn column : hiddenColumns) {
gColumnModel.addHiddenColumn(column);
}
}
table.setAutoEditEnabled(false); // do not edit when typing
table.addMouseListener(new CompositeTableMouseListener());
table.getSelectionModel().addListSelectionListener(e -> {
if (e.getValueIsAdjusting()) {
return;
}
model.setSelection(table.getSelectedRows());
if (table.getAutoscrolls()) {
table.scrollToSelectedRow();
}
});
table.getColumnModel().getSelectionModel().addListSelectionListener(e -> {
if (e.getValueIsAdjusting()) {
return;
}
TableColumnModel cm = table.getColumnModel();
int[] selected = cm.getSelectedColumns();
if (selected.length == 1) {
int viewIndex = selected[0];
int modelIndex = table.convertColumnIndexToModel(viewIndex);
model.setColumn(modelIndex);
}
else {
model.setColumn(-1);
}
});
JPanel tablePanel = new JPanel(new BorderLayout());
JScrollPane sp = new JScrollPane(table);
table.setPreferredScrollableViewportSize(new Dimension(model.getWidth(), 250));
table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
tablePanel.add(sp, BorderLayout.CENTER);
SearchControlPanel searchPanel = new SearchControlPanel(this);
if (helpManager != null) {
helpManager.registerHelp(searchPanel,
new HelpLocation("DataTypeEditors", "Searching_In_Editor"));
}
tablePanel.add(searchPanel, BorderLayout.SOUTH);
add(tablePanel, BorderLayout.CENTER);
JTableHeader header = table.getTableHeader();
header.setUpdateTableInRealTime(true);
table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
for (int i = 0; i < model.getColumnCount(); i++) {
TableColumn tc = table.getColumn(model.getColumnName(i));
tc.setPreferredWidth(model.getFieldWidth(i));
}
setupTableCellRenderer();
setupTableCellEditor();
selectionChanged();
Color gridColor = table.getGridColor();
Color tableBackground = table.getBackground();
if (tableBackground.equals(gridColor)) {
// This can happen on the Mac and is usually white. This is a simple solution for
// that scenario. If this fails on other platforms, then do something more advanced
// at that point.
table.setGridColor(new GColor("color.bg.table.grid"));
}
}
/**
* Override this method to add your own bit-viewer panel below the
* component table.
* <P>Creates a panel that appears below the component table. This panel
* contains a bit-level view of a selected component.
* By default, there is no panel below the component table.
* @return the panel or null if there isn't one.
*/
protected JPanel createBitViewerPanel() {
return null;
}
/**
* Override this method to add your own view/edit panel below the
* component table.
* <P>Creates a panel that appears below the component table. This panel
* contains viewable and editable information that isn't component information.
* By default, there is no panel below the component table.
* @return the panel or null if there isn't one.
*/
protected JPanel createInfoPanel() {
return null;
}
private JPanel createStatusPanel() {
JPanel panel = new JPanel(new BorderLayout());
statusLabel = new GDLabel(" ");
statusLabel.setHorizontalAlignment(SwingConstants.CENTER);
statusLabel.setForeground(new GColor("color.fg.dialog.status.normal"));
statusLabel.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
updateStatusToolTip();
}
});
panel.add(statusLabel, BorderLayout.CENTER);
statusLabel.setName("Editor Status");
return panel;
}
/**
* Sets the currently displayed status message.
*
* @param status non-html message string to be displayed.
*/
public void setStatus(String status) {
if (statusLabel != null) {
statusLabel.setText(status);
updateStatusToolTip();
}
else {
provider.setStatusMessage(status);
}
}
/**
* If the status text doesn't fit in the dialog, set a tool tip
* for the status label so the user can see what it says.
* If the status message fits then there is no tool tip.
*/
private void updateStatusToolTip() {
String text = statusLabel.getText();
// Get the width of the message.
FontMetrics fm = statusLabel.getFontMetrics(statusLabel.getFont());
int messageWidth = 0;
if ((fm != null) && (text != null)) {
messageWidth = fm.stringWidth(text);
}
if (messageWidth > statusLabel.getWidth()) {
statusLabel.setToolTipText(text);
}
else {
statusLabel.setToolTipText("Editor messages appear here.");
}
}
protected JPanel createNamedTextPanel(JTextField textField, String name) {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
JLabel label = new GLabel(name + ":", SwingConstants.RIGHT);
label.setPreferredSize(new Dimension(label.getPreferredSize()));
panel.add(label);
panel.add(Box.createHorizontalStrut(2));
panel.add(textField);
if (helpManager != null) {
helpManager.registerHelp(textField,
new HelpLocation(provider.getHelpTopic(), provider.getHelpName() + "_" + name));
}
return panel;
}
protected JPanel createHorizontalPanel(JComponent[] comps) {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
for (int i = 0; i < comps.length; i++) {
if (i > 0) {
panel.add(Box.createHorizontalStrut(10));
}
panel.add(comps[i]);
}
return panel;
}
protected JPanel createVerticalPanel(JComponent[] comps) {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
for (int i = 0; i < comps.length; i++) {
if (i > 0) {
panel.add(Box.createVerticalStrut(5));
}
panel.add(comps[i]);
}
return panel;
}
/****************************************************************************
*
* DragNDrop support
*
****************************************************************************/
/** set up drag and drop and drop for the component edit area. */
private void setUpDragDrop() {
// Set up the drop site table selection color for DnD.
TableCellRenderer defRenderer = table.getDefaultRenderer(String.class);
dndTableCellRenderer = new DndTableCellRenderer(defRenderer, table);
dndTableCellRenderer.setBorderColor(
ColorUtils.deriveBackground(table.getSelectionBackground(), ColorUtils.HUE_PINE));
table.setDefaultRenderer(String.class, dndTableCellRenderer);
TableCellRenderer dtiRenderer = table.getDefaultRenderer(DataTypeInstance.class);
dndDtiCellRenderer = new DndTableCellRenderer(dtiRenderer, table);
dndDtiCellRenderer.setBorderColor(
ColorUtils.deriveBackground(table.getSelectionBackground(), ColorUtils.HUE_PINE));
table.setDefaultRenderer(DataTypeInstance.class, dndDtiCellRenderer);
// Data Types are the only thing that can be dragged/dropped in the editor.
acceptableFlavors = new DataFlavor[] { DataTypeTransferable.localDataTypeFlavor,
DataTypeTransferable.localBuiltinDataTypeFlavor };
// set up the fieldPanel as a drop target that accepts Data Types.
dropTargetAdapter =
new DropTgtAdapter(this, DnDConstants.ACTION_COPY_OR_MOVE, acceptableFlavors);
dropTarget =
new DropTarget(table, DnDConstants.ACTION_COPY_OR_MOVE, dropTargetAdapter, true);
dropTarget.setActive(true);
// set up the component area as a drag site that provides Data Types.
dragSource = DragSource.getDefaultDragSource();
dragGestureAdapter = new DragGestureAdapter(this);
dragSourceAdapter = new DragSrcAdapter(this);
dragSource.createDefaultDragGestureRecognizer(table, dragAction, dragGestureAdapter);
}
/**
* Return true if the object at the location in the DragGesture
* event is draggable.
*
* @param e event passed to a DragGestureListener via its
* dragGestureRecognized() method when a particular DragGestureRecognizer
* detects a platform dependent Drag and Drop action initiating
* gesture has occurred on the Component it is tracking.
* @see docking.dnd.DragGestureAdapter
*/
@Override
public boolean isStartDragOk(DragGestureEvent e) {
return false;
// boolean dragOk = false;
// // Need to check that the location is on a component.
// Point point = e.getDragOrigin();
// int index = table.rowAtPoint(point);
// // If we are on a component then drag is allowed.
// if ((index >= 0) && (index < model.getNumComponents())) {
// dragOk = true;
// }
// return dragOk;
}
/**
* Called by the DragGestureAdapter to start the drag.
*/
@Override
public DragSourceListener getDragSourceListener() {
return dragSourceAdapter;
}
/**
* Do the move operation; called when the drag and drop operation
* completes.
* @see docking.dnd.DragSrcAdapter#dragDropEnd
*/
@Override
public void move() {
// no-op
}
/**
* Method called when the drag operation exits the drop target
* without dropping.
*/
@Override
public void dragCanceled(DragSourceDropEvent event) {
// no-op
}
/**
* Get the drag actions supported by this drag source:
* <ul>
* <li>DnDConstants.ACTION_MOVE
* <li>DnDConstants.ACTION_COPY
* <li>DnDConstants.ACTION_COPY_OR_MOVE
* </ul>
*
* @return the drag actions
*/
@Override
public int getDragAction() {
return dragAction;
}
/**
* Get the object to transfer.
*
* @param p location of object to transfer
* @return object to transfer
*/
@Override
public Transferable getTransferable(Point p) {
int index = table.rowAtPoint(p);
int numRows = model.getRowCount();
if (index >= numRows) {
index = numRows;
}
DataType dt = DefaultDataType.dataType;
// If we are on a component then get the data type.
if ((index >= 0)) {
dt = model.getComponent(index).getDataType();
}
return new DataTypeTransferable(dt);
}
@Override
public boolean isDropOk(DropTargetDragEvent e) {
return true;
}
/**
* Add the object to the droppable component. The DragSrcAdapter calls this method from its
* drop() method.
*
* @param obj Transferable object that is to be dropped.
* @param e has current state of drop operation
* @param f represents the opaque concept of a data format as
* would appear on a clipboard, during drag and drop.
*/
@Override
public void add(Object obj, DropTargetDropEvent e, DataFlavor f) {
if (!(obj instanceof DataType)) {
model.setStatus("Only data types can be dropped here.", true);
return;
}
model.clearStatus();
DataType draggedDataType = (DataType) obj;
Point p = e.getLocation();
if (e.getDropAction() == DnDConstants.ACTION_COPY) {
insertAtPoint(p, draggedDataType);
}
// ADD : INSERT OR REPLACE
else {
addAtPoint(p, draggedDataType);
}
}
/**
* Add the object to the droppable component. The DragSrcAdapter calls this method from its
* drop() method.
*
* @param p the point of insert
* @param dt the data type to insert
*/
public void insertAtPoint(Point p, DataType dt) {
endFieldEditing(); // Make sure a field isn't being edited.
int currentIndex = table.rowAtPoint(p);
try {
model.insert(currentIndex, dt);
}
catch (UsrException e) {
model.setStatus(e.getMessage(), true);
}
}
/**
* Add the object to the droppable component. The DragSrcAdapter calls this method from its
* drop() method.
*
* @param p the point of insert
* @param dt the data type to insert
*/
public void addAtPoint(Point p, DataType dt) {
endFieldEditing(); // Make sure a field isn't being edited.
int currentIndex = table.rowAtPoint(p);
try {
model.add(currentIndex, dt);
}
catch (UsrException e) {
model.setStatus(e.getMessage(), true);
}
}
/**
* Called from the DropTgtAdapter when the drag operation
* is going over a drop site; indicate when the drop is ok
* by providing appropriate feedback.
* @param ok true means ok to drop
*/
@Override
public void dragUnderFeedback(boolean ok, DropTargetDragEvent e) {
synchronized (table) {
int dropAction = e.getDropAction();
boolean actionChanged = false;
if (dropAction != lastDndAction) {
actionChanged = true;
lastDndAction = dropAction;
}
if (table.isEditing()) {
table.editingCanceled(null);
}
dndTableCellRenderer.selectRange(true);
dndDtiCellRenderer.selectRange(true);
Point p = e.getLocation();
int row = table.rowAtPoint(p);
boolean setRow = dndTableCellRenderer.setRowForFeedback(row);
boolean setDtiRow = dndDtiCellRenderer.setRowForFeedback(row);
if (actionChanged || setRow || setDtiRow) {
table.repaint();
}
}
}
/**
* Called from the DropTgtAdapter to revert any feedback
* changes back to normal.
*/
@Override
public void undoDragUnderFeedback() {
synchronized (table) {
this.dndTableCellRenderer.setRowForFeedback(-1);
this.dndDtiCellRenderer.setRowForFeedback(-1);
table.repaint();
}
}
/**
* CompositeEditorModelListener method called to handle lock/unlock or
* structure modification state change.
* This could also get called by a structure load or unload.
*
* @param type the type of state change: COMPOSITE_MODIFIED, COMPOSITE_UNMODIFIED,
* COMPOSITE_LOADED, NO_COMPOSITE_LOADED.
*/
@Override
public void compositeEditStateChanged(int type) {
switch (type) {
case COMPOSITE_LOADED:
cancelCellEditing(); // Make sure a field isn't being edited.
break;
case NO_COMPOSITE_LOADED:
cancelCellEditing(); // Make sure a field isn't being edited.
break;
case COMPOSITE_MODIFIED:
case COMPOSITE_UNMODIFIED:
// No change in the panel.
break;
case EDIT_STARTED:
if (table.isEditing()) {
return;
}
beginEditField(model.getRow(), model.getColumn());
break;
case EDIT_ENDED:
break;
default:
model.setStatus("Unrecognized edit state: " + type, true);
}
}
@Override
public void endFieldEditing() {
stopCellEditing();
if (table.isEditing()) {
cancelCellEditing(); // Just in case stop failed due to bad input.
}
}
@Override
public void statusChanged(String message, boolean beep) {
if ((message == null) || (message.length() == 0)) {
message = " ";
}
setStatus(message);
if (beep) {
getToolkit().beep();
}
}
void search(String searchText, boolean forward) {
searchText = searchText.toLowerCase();
Integer row = forward ? findForward(searchText) : findBackward(searchText);
if (row != null) {
table.getSelectionModel().setSelectionInterval(row, row);
Rectangle cellRect = table.getCellRect(row, 0, true);
table.scrollRectToVisible(cellRect);
}
}
private Integer findForward(String text) {
String searchText = text.toLowerCase();
int colCount = table.getColumnCount();
int currentRow = Math.max(0, model.getRow());
// search remaining lines
int rowCount = model.getRowCount();
for (int row = currentRow + 1; row < rowCount; row++) {
for (int col = 0; col < colCount; col++) {
if (matchesSearch(searchText, row, col)) {
return row;
}
}
}
// wrap search - search rows from beginning
for (int row = 0; row < currentRow; row++) {
for (int col = 0; col < colCount; col++) {
if (matchesSearch(searchText, row, col)) {
getToolkit().beep(); // notify search wrapped
return row;
}
}
}
getToolkit().beep(); // notify search wrapped
return null;
}
private Integer findBackward(String text) {
String searchText = text.toLowerCase();
int colCount = table.getColumnCount();
int currentRow = Math.max(0, model.getRow());
// search previous lines
for (int row = currentRow - 1; row >= 0; row--) {
for (int col = colCount - 1; col >= 0; col--) {
if (matchesSearch(searchText, row, col)) {
return row;
}
}
}
// wrap search - search from last row to current row
for (int row = model.getRowCount() - 1; row >= currentRow; row--) {
for (int col = colCount - 1; col >= 0; col--) {
if (matchesSearch(searchText, row, col)) {
getToolkit().beep(); // notify search wrapped
return row;
}
}
}
getToolkit().beep(); // notify search wrapped
return null;
}
private boolean matchesSearch(String searchText, int viewRow, int viewCol) {
// Note: row is the same in view and model space; col is in view space and can differ from
// the model, since columns can be hidden in the view, but remain in the model.
int modelRow = viewRow;
int modelCol = table.convertColumnIndexToModel(viewCol);
Object valueAt = model.getValueAt(modelRow, modelCol);
if (valueAt == null) {
return false;
}
String value = getString(valueAt).toLowerCase();
if (viewCol == model.getNameColumn()) {
return nameMatchesSearch(searchText, modelRow, value);
}
return value.contains(searchText);
}
private boolean nameMatchesSearch(String searchText, int row, String value) {
if (value.contains(searchText)) {
return true;
}
// see if the default name is a match
DataTypeComponent dtc = model.getComponent(row);
if (dtc != null) {
// this allows this to match a search even though it is not seen in the UI
String defaultName = dtc.getDefaultFieldName().toLowerCase();
return defaultName.contains(searchText);
}
return false;
}
private String getString(Object object) {
if (object instanceof DataTypeInstance) {
return ((DataTypeInstance) object).getDataType().getName();
}
return object.toString();
}
@Override
public void selectionChanged() {
int[] tRows = table.getSelectedRows();
int[] mRows = model.getSelectedRows();
if (Arrays.equals(tRows, mRows)) {
return;
}
FieldSelection fs = model.getSelection();
ListSelectionModel lsm = table.getSelectionModel();
ListSelectionModel clsm = table.getColumnModel().getSelectionModel();
lsm.clearSelection();
int num = fs.getNumRanges();
for (int i = 0; i < num; i++) {
FieldRange range = fs.getFieldRange(i);
BigInteger startIndex = range.getStart().getIndex();
BigInteger endIndex = range.getEnd().getIndex();
lsm.addSelectionInterval(startIndex.intValue(), endIndex.intValue() - 1);
}
int modelColumn = model.getColumn();
int viewColumn = table.convertColumnIndexToView(modelColumn);
clsm.setSelectionInterval(viewColumn, viewColumn);
}
private class ComponentStringCellEditor extends ComponentCellEditor {
public ComponentStringCellEditor(JTextField textField) {
super(textField);
getComponent().addFocusListener(new FocusAdapter() {
@Override
public void focusLost(FocusEvent e) {
endFieldEditing();
}
});
}
public ComponentStringCellEditor() {
this(new JTextField());
}
@Override
public Component getTableCellEditorComponent(JTable table1, Object value,
boolean isSelected, int row, int column) {
model.clearStatus();
return super.getTableCellEditorComponent(table1, value, isSelected, row, column);
}
}
private class ComponentOffsetCellEditor extends ComponentStringCellEditor {
JTextField offsetField;
public ComponentOffsetCellEditor() {
super(new GValidatedTextField.LongField(8));
offsetField = (JTextField) editorComponent;
}
/**
* Calls <code>fireEditingStopped</code> and returns true.
* @return true
*/
@Override
public boolean stopCellEditing() {
try {
model.validateComponentOffset(table.getEditingRow(), offsetField.getText());
fireEditingStopped();
return true;
}
catch (UsrException ue) {
model.setStatus(ue.getMessage(), true);
}
return false;
}
}
private class ComponentNameCellEditor extends ComponentStringCellEditor {
private static final long serialVersionUID = 1L;
public ComponentNameCellEditor() {
super(new JTextField());
}
@Override
public boolean stopCellEditing() {
try {
model.validateComponentName(table.getEditingRow(),
((JTextComponent) getComponent()).getText());
fireEditingStopped();
return true;
}
catch (UsrException ue) {
model.setStatus(ue.getMessage(), true);
}
return false;
}
}
private class ComponentDataTypeCellEditor extends AbstractCellEditor
implements TableCellEditor, FocusableEditor {
private DataTypeSelectionEditor editor;
private DropDownSelectionTextField<DataType> textField;
private DataType dt;
private int maxLength;
private boolean bitfieldAllowed;
private JPanel editorPanel;
@Override
public Component getTableCellEditorComponent(JTable table1, Object value,
boolean isSelected, int row, int column) {
model.clearStatus();
maxLength = model.getMaxAddLength(row);
bitfieldAllowed = model.isBitFieldAllowed();
init();
DataTypeInstance dti = (DataTypeInstance) value;
if (dti != null) {
dt = dti.getDataType();
}
else {
dt = null;
}
editor.setCellEditorValue(dt);
return editorPanel;
}
private void init() {
Plugin plugin = provider.getPlugin();
final PluginTool tool = plugin.getTool();
editor = new DataTypeSelectionEditor(tool,
bitfieldAllowed ? AllowedDataTypes.SIZABLE_DYNAMIC_AND_BITFIELD
: AllowedDataTypes.SIZABLE_DYNAMIC);
editor.setTabCommitsEdit(true);
DataTypeManager originalDataTypeManager = model.getOriginalDataTypeManager();
editor.setPreferredDataTypeManager(originalDataTypeManager);
editor.setConsumeEnterKeyPress(false); // we want the table to handle Enter key presses
textField = editor.getDropDownTextField();
textField.setBorder(UIManager.getBorder("Table.focusCellHighlightBorder"));
editor.addCellEditorListener(new CellEditorListener() {
@Override
public void editingCanceled(ChangeEvent e) {
cancelCellEditing();
}
@Override
public void editingStopped(ChangeEvent e) {
stopCellEditing();
}
});
// force a small button for the table's cell editor
JButton dataTypeChooserButton = new JButton("...") {
@Override
public Dimension getPreferredSize() {
Dimension preferredSize = super.getPreferredSize();
preferredSize.width = 15;
return preferredSize;
}
};
dataTypeChooserButton.addActionListener(e -> Swing.runLater(() -> stopEdit(tool)));
textField.addFocusListener(new FocusAdapter() {
@Override
public void focusGained(FocusEvent e) {
textField.selectAll();
textField.removeFocusListener(this);
}
});
editorPanel = new JPanel();
editorPanel.setLayout(new BorderLayout());
editorPanel.add(textField, BorderLayout.CENTER);
editorPanel.add(dataTypeChooserButton, BorderLayout.EAST);
}
private void stopEdit(PluginTool tool) {
DataTypeManagerService service = tool.getService(DataTypeManagerService.class);
DataType dataType = service.getDataType((String) null);
if (dataType != null) {
editor.setCellEditorValue(dataType);
editor.stopCellEditing();
}
else {
editor.cancelCellEditing();
}
}
@Override
public void focusEditor() {
textField.requestFocusInWindow();
}
@Override
public Object getCellEditorValue() {
return dt;
}
@Override
public boolean stopCellEditing() {
int editingColumn = table.getEditingColumn();
model.setStatus("");
if (!isEmptyEditorCell() && !validateUserChoice()) {
return false;
}
ListSelectionModel columnSelectionModel = table.getColumnModel().getSelectionModel();
columnSelectionModel.setValueIsAdjusting(true);
DataType dataType = (DataType) editor.getCellEditorValue();
if (dataType != null) {
if (dataType.equals(dt)) {
fireEditingCanceled(); // user picked the same datatype
}
else {
dt = model.resolve(dataType);
fireEditingStopped();
}
}
else {
fireEditingCanceled();
}
columnSelectionModel.setSelectionInterval(editingColumn, editingColumn);
columnSelectionModel.setValueIsAdjusting(false);
int editingRow = model.getRow();
NavigationDirection navigationDirection = editor.getNavigationDirection();
if (navigationDirection == NavigationDirection.BACKWARD) {
editPreviousField(editingRow);
}
else if (navigationDirection == NavigationDirection.FORWARD) {
editNextField(editingRow);
}
return true;
}
private boolean isEmptyEditorCell() {
String cellEditorValueAsText = editor.getCellEditorValueAsText();
String cellText = cellEditorValueAsText.trim();
return cellText.isEmpty();
}
private boolean validateUserChoice() {
try {
if (!editor.validateUserSelection()) {
// users can only select existing data types
model.setStatus("Unrecognized data type of \"" +
editor.getCellEditorValueAsText() + "\" entered.");
return false;
}
DataType dataType = (DataType) editor.getCellEditorValue();
int dtLen = dataType.getLength();
if (maxLength >= 0 && dtLen > maxLength) {
model.setStatus(dataType.getDisplayName() + " doesn't fit within " + maxLength +
" bytes, need " + dtLen + " bytes");
return false;
}
}
catch (InvalidDataTypeException idte) {
model.setStatus(idte.getMessage());
return false;
}
return true;
}
// only double-click edits
@Override
public boolean isCellEditable(EventObject anEvent) {
if (anEvent instanceof MouseEvent) {
return ((MouseEvent) anEvent).getClickCount() >= 2;
}
return true;
}
}
private class CompositeTableMouseListener extends MouseAdapter {
@Override
public void mouseReleased(MouseEvent e) {
checkMouseEvent(e);
}
@Override
public void mouseClicked(MouseEvent e) {
checkMouseEvent(e);
}
@Override
public void mousePressed(MouseEvent e) {
checkMouseEvent(e);
}
private void checkMouseEvent(MouseEvent e) {
boolean isPopup = e.isPopupTrigger();
Point point = e.getPoint();
int row = table.rowAtPoint(point);
int column = table.columnAtPoint(point);
int modelColumn = table.convertColumnIndexToModel(column);
int clickCount = e.getClickCount();
if (!table.isEditing() && e.getID() == MouseEvent.MOUSE_PRESSED) {
model.clearStatus(); // Only clear status when starting new actions (pressed).
}
if (isPopup) {
if (!table.isRowSelected(row)) {
table.setRowSelectionInterval(row, row);
}
return;
}
if (clickCount < 2 || e.getButton() != MouseEvent.BUTTON1) {
return;
}
if (model.isCellEditable(row, modelColumn)) {
return;
}
String columnName = model.getColumnName(modelColumn);
String status = columnName + " field is not editable";
boolean isValidRow = row >= 0 && row < model.getNumComponents();
boolean isStringColumn = modelColumn == model.getNameColumn() ||
modelColumn == model.getCommentColumn();
if (isValidRow && isStringColumn) {
DataType dt = model.getComponent(row).getDataType();
if (dt == DataType.DEFAULT) {
status = columnName + " field is not editable for Undefined byte.";
}
}
model.setStatus(status);
e.consume();
}
}
private class CompositeEditorTable extends GTable {
public CompositeEditorTable(TableModel model) {
super(model);
}
@Override
protected void installEditKeyBinding() {
// We use a tool action instead of the default action. We must signal to the table to
// not use the default action to prevent the table from getting the action.
// This code will insert a placeholder of 'none' in the table for this keystroke, which
// is the default edit keystroke in Swing. The actual binding for this keystroke is in
// a parent input map of the table. By placing this keystroke in the table's input map,
// we prevent the key processing code from traversing into the parent input map's
// bindings.
KeyStroke keyStroke = KeyStroke.getKeyStroke("pressed F2");
KeyBindingUtils.clearKeyBinding(this, keyStroke);
}
}
}
| NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeEditorPanel.java |
213,404 | /*
Copyright (c) 2012 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.linkedin.r2.transport.http.server;
import com.linkedin.r2.transport.common.bridge.server.TransportDispatcher;
/**
* This servlet provides the support for asynchronous request handling. It can only be used with
* containers supporting Servlet API 3.0 or greater.
* @author Goksel Genc
* @version $Revision: $
*/
public class AsyncR2Servlet extends AbstractAsyncR2Servlet
{
private static final long serialVersionUID = 0L;
private final HttpDispatcher _dispatcher;
/**
* Creates the AsyncR2Servlet.
*/
public AsyncR2Servlet(HttpDispatcher dispatcher,
long timeout)
{
super(timeout);
_dispatcher = dispatcher;
}
/**
* Creates the AsyncR2Servlet.
*/
public AsyncR2Servlet(TransportDispatcher dispatcher,
long timeout)
{
this(HttpDispatcherFactory.create((dispatcher)), timeout);
}
@Override
protected HttpDispatcher getDispatcher()
{
return _dispatcher;
}
}
| linkedin/rest.li | r2-core/src/main/java/com/linkedin/r2/transport/http/server/AsyncR2Servlet.java |
213,405 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
/**
* Logger utility class
*
* @author Phillip Beauvoir
*/
public final class Logger {
public static boolean enabled = true;
/**
* Convenience method to log an OK event
*
* @param message Message to print
* @param t Exception that is thrown
*/
public static void logOK(String message, Throwable t) {
log(IStatus.OK, message, t);
}
/**
* Convenience method to log an OK event
*
* @param message Message to print
*/
public static void logOK(String message) {
log(IStatus.OK, message, null);
}
/**
* Convenience method to log an error
*
* @param message Message to print
* @param t Exception that is thrown
*/
public static void logError(String message, Throwable t) {
log(IStatus.ERROR, message, t);
}
/**
* Convenience method to log an error
*
* @param message Message to print
*/
public static void logError(String message) {
log(IStatus.ERROR, message, null);
}
/**
* Convenience method to log some info
*
* @param message Message to print
* @param t Exception that is thrown
*/
public static void logInfo(String message, Throwable t) {
log(IStatus.INFO, message, t);
}
/**
* Convenience method to log some info
*
* @param message Message to print
* @param t Exception that is thrown
*/
public static void logInfo(String message) {
log(IStatus.INFO, message, null);
}
/**
* Convenience method to log a warning
*
* @param message Message to print
* @param t Exception that is thrown
*/
public static void logWarning(String message, Throwable t) {
log(IStatus.WARNING, message, t);
}
/**
* Convenience method to log a warning
*
* @param message Message to print
*/
public static void logWarning(String message) {
log(IStatus.WARNING, message, null);
}
/**
* Helper logger to log events for this bundle plug-in
*
* @param severity can be
* IStatus.WARNING
* IStatus.INFO
* IStatus.ERROR
* IStatus.OK
* IStatus.CANCEL
* @param message Message to print
* @param t Exception that is thrown
*/
public static void log(int severity, String message, Throwable t) {
if(enabled) {
ArchiPlugin.INSTANCE.getLog().log(
new Status(severity, ArchiPlugin.INSTANCE.getId(), IStatus.OK, message, t));
}
}
}
| stigbd/archi | com.archimatetool.editor/src/com/archimatetool/editor/Logger.java |
213,406 | package org.unicode.cldr.util;
import com.ibm.icu.text.Transform;
import com.ibm.icu.text.UnicodeSet;
import com.ibm.icu.util.Output;
import java.util.List;
import org.unicode.cldr.util.CLDRFile.WinningChoice;
import org.unicode.cldr.util.SupplementalDataInfo.PluralInfo;
import org.unicode.cldr.util.SupplementalDataInfo.PluralInfo.Count;
public class ValuePathStatus {
public enum MissingOK {
ok,
latin,
alias,
compact
}
public static final UnicodeSet LATIN = new UnicodeSet("[:sc=Latn:]").freeze();
public static boolean isLatinScriptLocale(CLDRFile sourceFile) {
UnicodeSet main = sourceFile.getExemplarSet("", WinningChoice.WINNING);
return LATIN.containsSome(main);
}
public static Transform<String, ValuePathStatus.MissingOK> MISSING_STATUS_TRANSFORM =
new Transform<String, ValuePathStatus.MissingOK>() {
@Override
public ValuePathStatus.MissingOK transform(String source) {
return ValuePathStatus.MissingOK.valueOf(source);
}
};
static final RegexLookup<ValuePathStatus.MissingOK> missingOk =
new RegexLookup<ValuePathStatus.MissingOK>()
.setPatternTransform(RegexLookup.RegexFinderTransformPath)
.setValueTransform(MISSING_STATUS_TRANSFORM)
.loadFromFile(ValuePathStatus.class, "data/paths/missingOk.txt");
static int countZeros(String otherValue) {
int result = 0;
for (int i = 0; i < otherValue.length(); ++i) {
if (otherValue.charAt(i) == '0') {
++result;
}
}
return result;
}
static final UnicodeSet ASCII_DIGITS = new UnicodeSet("[0-9]");
public static boolean isMissingOk(
CLDRFile sourceFile, String path, boolean latin, boolean aliased) {
if (sourceFile.getLocaleID().equals("en")) {
return true;
}
Output<String[]> arguments = new Output<>();
List<String> failures = null;
// if (path.startsWith("//ldml/characters/parseLenients")) {
// int debug = 0;
// failures = new ArrayList<>();
// }
ValuePathStatus.MissingOK value = missingOk.get(path, null, arguments, null, failures);
if (value == null) {
return false;
}
switch (value) {
case ok:
return true;
case latin:
return latin;
case alias:
return aliased;
case compact:
// special processing for compact numbers
// //ldml/numbers/decimalFormats[@numberSystem="%A"]/decimalFormatLength[@type="%A"]/decimalFormat[@type="standard"]/pattern[@type="%A"][@count="%A"] ; compact
if (path.contains("[@count=\"other\"]")) {
return false; // the 'other' class always counts as missing
}
final String numberSystem = arguments.value[1];
final String formatLength = arguments.value[2];
final String patternType = arguments.value[3];
String otherPath =
"//ldml/numbers/decimalFormats[@numberSystem=\""
+ numberSystem
+ "\"]/decimalFormatLength[@type=\""
+ formatLength
+ "\"]/decimalFormat[@type=\"standard\"]/pattern[@type=\""
+ patternType
+ "\"][@count=\"other\"]";
String otherValue = sourceFile.getWinningValue(otherPath);
if (otherValue == null) {
return false; // something's wrong, bail
}
int digits = countZeros(otherValue);
if (digits > 4) { // we can only handle to 4 digits
return false;
}
// If the count is numeric or if there are no possible Count values for this many
// digits, then it is ok to be missing.
final String count = arguments.value[4];
if (ASCII_DIGITS.containsAll(count)) {
return true; // ok to be missing
}
Count c = Count.valueOf(count);
SupplementalDataInfo supplementalDataInfo2 =
CLDRConfig.getInstance().getSupplementalDataInfo();
// SupplementalDataInfo.getInstance(sourceFile.getSupplementalDirectory());
PluralInfo plurals = supplementalDataInfo2.getPlurals(sourceFile.getLocaleID());
return plurals == null || !plurals.hasSamples(c, digits); // ok if no samples
// TODO: handle fractions
default:
throw new IllegalArgumentException();
}
}
}
| macchiati/cldr | tools/cldr-code/src/main/java/org/unicode/cldr/util/ValuePathStatus.java |
213,407 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hive.service.auth;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import javax.security.auth.login.LoginException;
import javax.security.sasl.Sasl;
import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
import org.apache.hadoop.hive.ql.metadata.Hive;
import org.apache.hadoop.hive.shims.HadoopShims.KerberosNameShim;
import org.apache.hadoop.hive.shims.ShimLoader;
import org.apache.hadoop.hive.thrift.DBTokenStore;
import org.apache.hadoop.hive.thrift.HiveDelegationTokenManager;
import org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge;
import org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge.Server.ServerMode;
import org.apache.hadoop.security.SecurityUtil;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.authorize.ProxyUsers;
import org.apache.hive.service.cli.HiveSQLException;
import org.apache.hive.service.cli.thrift.ThriftCLIService;
import org.apache.thrift.TProcessorFactory;
import org.apache.thrift.transport.TTransportException;
import org.apache.thrift.transport.TTransportFactory;
import org.apache.spark.internal.SparkLogger;
import org.apache.spark.internal.SparkLoggerFactory;
import org.apache.spark.internal.LogKeys;
import org.apache.spark.internal.MDC;
/**
* This class helps in some aspects of authentication. It creates the proper Thrift classes for the
* given configuration as well as helps with authenticating requests.
*/
public class HiveAuthFactory {
private static final SparkLogger LOG = SparkLoggerFactory.getLogger(HiveAuthFactory.class);
public enum AuthTypes {
NOSASL("NOSASL"),
NONE("NONE"),
LDAP("LDAP"),
KERBEROS("KERBEROS"),
CUSTOM("CUSTOM"),
PAM("PAM");
private final String authType;
AuthTypes(String authType) {
this.authType = authType;
}
public String getAuthName() {
return authType;
}
}
private HadoopThriftAuthBridge.Server saslServer;
private String authTypeStr;
private final String transportMode;
private final HiveConf conf;
private HiveDelegationTokenManager delegationTokenManager = null;
public static final String HS2_PROXY_USER = "hive.server2.proxy.user";
public static final String HS2_CLIENT_TOKEN = "hiveserver2ClientToken";
private static Method getKeytab = null;
static {
Class<?> clz = UserGroupInformation.class;
try {
getKeytab = clz.getDeclaredMethod("getKeytab");
getKeytab.setAccessible(true);
} catch(NoSuchMethodException nme) {
LOG.debug("Cannot find private method \"getKeytab\" in class:" +
UserGroupInformation.class.getCanonicalName(), nme);
getKeytab = null;
}
}
public HiveAuthFactory(HiveConf conf) throws TTransportException, IOException {
this.conf = conf;
transportMode = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_TRANSPORT_MODE);
authTypeStr = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_AUTHENTICATION);
// In http mode we use NOSASL as the default auth type
if ("http".equalsIgnoreCase(transportMode)) {
if (authTypeStr == null) {
authTypeStr = AuthTypes.NOSASL.getAuthName();
}
} else {
if (authTypeStr == null) {
authTypeStr = AuthTypes.NONE.getAuthName();
}
if (authTypeStr.equalsIgnoreCase(AuthTypes.KERBEROS.getAuthName())) {
String principal = conf.getVar(ConfVars.HIVE_SERVER2_KERBEROS_PRINCIPAL);
String keytab = conf.getVar(ConfVars.HIVE_SERVER2_KERBEROS_KEYTAB);
if (needUgiLogin(UserGroupInformation.getCurrentUser(),
SecurityUtil.getServerPrincipal(principal, "0.0.0.0"), keytab)) {
saslServer = ShimLoader.getHadoopThriftAuthBridge().createServer(principal, keytab);
} else {
// Using the default constructor to avoid unnecessary UGI login.
saslServer = new HadoopThriftAuthBridge.Server();
}
// start delegation token manager
delegationTokenManager = new HiveDelegationTokenManager();
try {
// rawStore is only necessary for DBTokenStore
Object rawStore = null;
String tokenStoreClass = conf.getVar(
HiveConf.ConfVars.METASTORE_CLUSTER_DELEGATION_TOKEN_STORE_CLS);
if (tokenStoreClass.equals(DBTokenStore.class.getName())) {
// Follows https://issues.apache.org/jira/browse/HIVE-12270
rawStore = Hive.class;
}
delegationTokenManager.startDelegationTokenSecretManager(
conf, rawStore, ServerMode.HIVESERVER2);
saslServer.setSecretManager(delegationTokenManager.getSecretManager());
}
catch (IOException e) {
throw new TTransportException("Failed to start token manager", e);
}
}
}
}
public Map<String, String> getSaslProperties() {
Map<String, String> saslProps = new HashMap<String, String>();
SaslQOP saslQOP = SaslQOP.fromString(conf.getVar(ConfVars.HIVE_SERVER2_THRIFT_SASL_QOP));
saslProps.put(Sasl.QOP, saslQOP.toString());
saslProps.put(Sasl.SERVER_AUTH, "true");
return saslProps;
}
public TTransportFactory getAuthTransFactory() throws LoginException {
TTransportFactory transportFactory;
if (authTypeStr.equalsIgnoreCase(AuthTypes.KERBEROS.getAuthName())) {
try {
transportFactory = saslServer.createTransportFactory(getSaslProperties());
} catch (TTransportException e) {
throw new LoginException(e.getMessage());
}
} else if (authTypeStr.equalsIgnoreCase(AuthTypes.NONE.getAuthName())) {
transportFactory = PlainSaslHelper.getPlainTransportFactory(authTypeStr);
} else if (authTypeStr.equalsIgnoreCase(AuthTypes.LDAP.getAuthName())) {
transportFactory = PlainSaslHelper.getPlainTransportFactory(authTypeStr);
} else if (authTypeStr.equalsIgnoreCase(AuthTypes.PAM.getAuthName())) {
transportFactory = PlainSaslHelper.getPlainTransportFactory(authTypeStr);
} else if (authTypeStr.equalsIgnoreCase(AuthTypes.NOSASL.getAuthName())) {
transportFactory = new TTransportFactory();
} else if (authTypeStr.equalsIgnoreCase(AuthTypes.CUSTOM.getAuthName())) {
transportFactory = PlainSaslHelper.getPlainTransportFactory(authTypeStr);
} else {
throw new LoginException("Unsupported authentication type " + authTypeStr);
}
return transportFactory;
}
/**
* Returns the thrift processor factory for HiveServer2 running in binary mode
* @param service
* @return
* @throws LoginException
*/
public TProcessorFactory getAuthProcFactory(ThriftCLIService service) throws LoginException {
if (authTypeStr.equalsIgnoreCase(AuthTypes.KERBEROS.getAuthName())) {
return KerberosSaslHelper.getKerberosProcessorFactory(saslServer, service);
} else {
return PlainSaslHelper.getPlainProcessorFactory(service);
}
}
public String getRemoteUser() {
return saslServer == null ? null : saslServer.getRemoteUser();
}
public String getIpAddress() {
if (saslServer == null || saslServer.getRemoteAddress() == null) {
return null;
} else {
return saslServer.getRemoteAddress().getHostAddress();
}
}
// Perform kerberos login using the hadoop shim API if the configuration is available
public static void loginFromKeytab(HiveConf hiveConf) throws IOException {
String principal = hiveConf.getVar(ConfVars.HIVE_SERVER2_KERBEROS_PRINCIPAL);
String keyTabFile = hiveConf.getVar(ConfVars.HIVE_SERVER2_KERBEROS_KEYTAB);
if (principal.isEmpty() || keyTabFile.isEmpty()) {
throw new IOException("HiveServer2 Kerberos principal or keytab is not correctly configured");
} else {
UserGroupInformation.loginUserFromKeytab(SecurityUtil.getServerPrincipal(principal, "0.0.0.0"), keyTabFile);
}
}
// Perform SPNEGO login using the hadoop shim API if the configuration is available
public static UserGroupInformation loginFromSpnegoKeytabAndReturnUGI(HiveConf hiveConf)
throws IOException {
String principal = hiveConf.getVar(ConfVars.HIVE_SERVER2_SPNEGO_PRINCIPAL);
String keyTabFile = hiveConf.getVar(ConfVars.HIVE_SERVER2_SPNEGO_KEYTAB);
if (principal.isEmpty() || keyTabFile.isEmpty()) {
throw new IOException("HiveServer2 SPNEGO principal or keytab is not correctly configured");
} else {
return UserGroupInformation.loginUserFromKeytabAndReturnUGI(SecurityUtil.getServerPrincipal(principal, "0.0.0.0"), keyTabFile);
}
}
// retrieve delegation token for the given user
public String getDelegationToken(String owner, String renewer, String remoteAddr)
throws HiveSQLException {
if (delegationTokenManager == null) {
throw new HiveSQLException(
"Delegation token only supported over kerberos authentication", "08S01");
}
try {
String tokenStr = delegationTokenManager.getDelegationTokenWithService(owner, renewer,
HS2_CLIENT_TOKEN, remoteAddr);
if (tokenStr == null || tokenStr.isEmpty()) {
throw new HiveSQLException(
"Received empty retrieving delegation token for user " + owner, "08S01");
}
return tokenStr;
} catch (IOException e) {
throw new HiveSQLException(
"Error retrieving delegation token for user " + owner, "08S01", e);
} catch (InterruptedException e) {
throw new HiveSQLException("delegation token retrieval interrupted", "08S01", e);
}
}
// cancel given delegation token
public void cancelDelegationToken(String delegationToken) throws HiveSQLException {
if (delegationTokenManager == null) {
throw new HiveSQLException(
"Delegation token only supported over kerberos authentication", "08S01");
}
try {
delegationTokenManager.cancelDelegationToken(delegationToken);
} catch (IOException e) {
throw new HiveSQLException(
"Error canceling delegation token " + delegationToken, "08S01", e);
}
}
public void renewDelegationToken(String delegationToken) throws HiveSQLException {
if (delegationTokenManager == null) {
throw new HiveSQLException(
"Delegation token only supported over kerberos authentication", "08S01");
}
try {
delegationTokenManager.renewDelegationToken(delegationToken);
} catch (IOException e) {
throw new HiveSQLException(
"Error renewing delegation token " + delegationToken, "08S01", e);
}
}
public String verifyDelegationToken(String delegationToken) throws HiveSQLException {
if (delegationTokenManager == null) {
throw new HiveSQLException(
"Delegation token only supported over kerberos authentication", "08S01");
}
try {
return delegationTokenManager.verifyDelegationToken(delegationToken);
} catch (IOException e) {
String msg = "Error verifying delegation token";
LOG.error(msg + " {}", e, MDC.of(LogKeys.TOKEN$.MODULE$, delegationToken));
throw new HiveSQLException(msg + delegationToken, "08S01", e);
}
}
public String getUserFromToken(String delegationToken) throws HiveSQLException {
if (delegationTokenManager == null) {
throw new HiveSQLException(
"Delegation token only supported over kerberos authentication", "08S01");
}
try {
return delegationTokenManager.getUserFromToken(delegationToken);
} catch (IOException e) {
throw new HiveSQLException(
"Error extracting user from delegation token " + delegationToken, "08S01", e);
}
}
public static void verifyProxyAccess(String realUser, String proxyUser, String ipAddress,
HiveConf hiveConf) throws HiveSQLException {
try {
UserGroupInformation sessionUgi;
if (UserGroupInformation.isSecurityEnabled()) {
KerberosNameShim kerbName = ShimLoader.getHadoopShims().getKerberosNameShim(realUser);
sessionUgi = UserGroupInformation.createProxyUser(
kerbName.getServiceName(), UserGroupInformation.getLoginUser());
} else {
sessionUgi = UserGroupInformation.createRemoteUser(realUser);
}
if (!proxyUser.equalsIgnoreCase(realUser)) {
ProxyUsers.refreshSuperUserGroupsConfiguration(hiveConf);
ProxyUsers.authorize(UserGroupInformation.createProxyUser(proxyUser, sessionUgi),
ipAddress, hiveConf);
}
} catch (IOException e) {
throw new HiveSQLException(
"Failed to validate proxy privilege of " + realUser + " for " + proxyUser, "08S01", e);
}
}
public static boolean needUgiLogin(UserGroupInformation ugi, String principal, String keytab) {
return null == ugi || !ugi.hasKerberosCredentials() || !ugi.getUserName().equals(principal) ||
!Objects.equals(keytab, getKeytabFromUgi());
}
private static String getKeytabFromUgi() {
synchronized (UserGroupInformation.class) {
try {
if (getKeytab != null) {
return (String) getKeytab.invoke(UserGroupInformation.getCurrentUser());
} else {
return null;
}
} catch (Exception e) {
LOG.debug("Fail to get keytabFile path via reflection", e);
return null;
}
}
}
}
| apache/spark | sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/HiveAuthFactory.java |
213,408 | /* _____ _
* |_ _| |_ _ _ ___ ___ _ __ __ _
* | | | ' \| '_/ -_) -_) ' \/ _` |_
* |_| |_||_|_| \___\___|_|_|_\__,_(_)
*
* Threema for Android
* Copyright (c) 2013-2024 Threema GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package ch.threema.app.services;
import static ch.threema.app.utils.AutoDeleteUtil.validateKeepMessageDays;
import android.content.Context;
import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import ch.threema.app.BuildConfig;
import ch.threema.app.R;
import ch.threema.app.ThreemaApplication;
import ch.threema.app.notifications.NotificationUtil;
import ch.threema.app.stores.PreferenceStoreInterface;
import ch.threema.app.threemasafe.ThreemaSafeMDMConfig;
import ch.threema.app.threemasafe.ThreemaSafeServerInfo;
import ch.threema.app.utils.ConfigUtils;
import ch.threema.app.utils.TestUtil;
import ch.threema.base.utils.Base64;
import ch.threema.base.utils.LoggingUtil;
import ch.threema.domain.protocol.api.work.WorkDirectoryCategory;
import ch.threema.domain.protocol.api.work.WorkOrganization;
public class PreferenceServiceImpl implements PreferenceService {
private static final Logger logger = LoggingUtil.getThreemaLogger("PreferenceServiceImpl");
private static final String CONTACT_PHOTO_BLOB_ID = "id";
private static final String CONTACT_PHOTO_ENCRYPTION_KEY = "key";
private static final String CONTACT_PHOTO_SIZE = "size";
private final Context context;
private final PreferenceStoreInterface preferenceStore;
public PreferenceServiceImpl(Context context, PreferenceStoreInterface preferenceStore) {
this.context = context;
this.preferenceStore = preferenceStore;
}
@Nullable
private Uri ringtoneKeyToUri(@StringRes int ringtoneKey) {
String ringtone = this.preferenceStore.getString(this.getKeyName(ringtoneKey));
if (ringtone != null && ringtone.length() > 0 && !"null".equals(ringtone)) {
return Uri.parse(ringtone);
}
return null;
}
@Override
public boolean isReadReceipts() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__read_receipts));
}
@Override
public void setReadReceipts(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__read_receipts), value);
}
@Override
public boolean isSyncContacts() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__sync_contacts));
}
@Override
public void setSyncContacts(boolean setting) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__sync_contacts), setting);
}
@Override
public boolean isBlockUnknown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__block_unknown));
}
@Override
public void setBlockUnknown(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__block_unknown), value);
}
@Override
public boolean isTypingIndicator() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__typing_indicator));
}
@Override
public void setTypingIndicator(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__typing_indicator), value);
}
@Override
public Uri getNotificationSound() {
return ringtoneKeyToUri(R.string.preferences__notification_sound);
}
@Override
public Uri getGroupNotificationSound() {
return ringtoneKeyToUri(R.string.preferences__group_notification_sound);
}
@Override
public Uri getGroupCallRingtone() {
return ringtoneKeyToUri(R.string.preferences__group_calls_ringtone);
}
@Override
public Uri getVoiceCallSound() {
return ringtoneKeyToUri(R.string.preferences__voip_ringtone);
}
@Override
public boolean isVoiceCallVibrate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voip_vibration));
}
@Override
public boolean isGroupCallVibrate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_calls_vibration));
}
@Override
public void setNotificationSound(Uri uri) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__notification_sound), uri != null ? uri.toString() : null);
}
@Override
public void setGroupNotificationSound(Uri uri) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__group_notification_sound), uri != null ? uri.toString() : null);
}
@Override
public void setVoiceCallSound(Uri uri) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__voip_ringtone), uri != null ? uri.toString() : null);
}
@Override
public boolean isVibrate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__vibrate));
}
@Override
public boolean isGroupVibrate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_vibrate));
}
@Override
public boolean isShowMessagePreview() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__notification_preview));
}
@Override
public String getNotificationLight() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__notification_light));
}
@Override
public String getGroupNotificationLight() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__group_notification_light));
}
@Override
public HashMap<String, String> getRingtones() {
return this.preferenceStore.getStringHashMap(this.getKeyName(R.string.preferences__individual_ringtones), false);
}
@Override
public void setRingtones(HashMap<String, String> ringtones) {
this.preferenceStore.saveStringHashMap(this.getKeyName(R.string.preferences__individual_ringtones), ringtones, false);
}
@Override
public boolean isCustomWallpaperEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__wallpaper_switch));
}
@Override
public void setCustomWallpaperEnabled(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__wallpaper_switch), enabled);
}
@Override
public boolean isEnterToSend() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__enter_to_send));
}
@Override
public boolean isInAppSounds() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__inapp_sounds));
}
@Override
public boolean isInAppVibrate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__inapp_vibrate));
}
@Override
@ImageScale
public int getImageScale() {
String imageScale = this.preferenceStore.getString(this.getKeyName(R.string.preferences__image_size));
if (imageScale == null || imageScale.length() == 0) {
return ImageScale_MEDIUM;
}
switch (Integer.valueOf(imageScale)) {
case 0:
return ImageScale_SMALL;
case 2:
return ImageScale_LARGE;
case 3:
return ImageScale_XLARGE;
case 4:
return ImageScale_ORIGINAL;
default:
return ImageScale_MEDIUM;
}
}
@Override
public int getVideoSize() {
String videoSize = this.preferenceStore.getString(this.getKeyName(R.string.preferences__video_size));
if (videoSize == null || videoSize.length() == 0) {
// return a default value
return VideoSize_MEDIUM;
}
switch (Integer.valueOf(videoSize)) {
case 0:
return VideoSize_SMALL;
case 2:
return VideoSize_ORIGINAL;
default:
return VideoSize_MEDIUM;
}
}
@Override
public String getSerialNumber() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__serial_number));
}
@Override
public void setSerialNumber(String serialNumber) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__serial_number), serialNumber);
}
@Override
public synchronized String getLicenseUsername() {
return this.preferenceStore.getStringCompat(this.getKeyName(R.string.preferences__license_username));
}
@Override
public void setLicenseUsername(String username) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__license_username), username, true);
}
@Override
public synchronized String getLicensePassword() {
return this.preferenceStore.getStringCompat(this.getKeyName(R.string.preferences__license_password));
}
@Override
public void setLicensePassword(String password) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__license_password), password, true);
}
@Override
public synchronized String getOnPremServer() {
return this.preferenceStore.getStringCompat(this.getKeyName(R.string.preferences__onprem_server));
}
@Override
public void setOnPremServer(String server) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__onprem_server), server, true);
}
@Override
@Deprecated
public LinkedList<Integer> getRecentEmojis() {
LinkedList<Integer> list = new LinkedList<>();
JSONArray array = this.preferenceStore.getJSONArray(this.getKeyName(R.string.preferences__recent_emojis), false);
for (int i = 0; i < array.length(); i++) {
try {
list.add(array.getInt(i));
} catch (JSONException e) {
logger.error("JSONException", e);
}
}
return list;
}
@Override
public LinkedList<String> getRecentEmojis2() {
String[] theArray = this.preferenceStore.getStringArray(this.getKeyName(R.string.preferences__recent_emojis2));
if (theArray != null) {
return new LinkedList<>(Arrays.asList(theArray));
} else {
return new LinkedList<>(new LinkedList<>());
}
}
@Override
@Deprecated
public void setRecentEmojis(LinkedList<Integer> list) {
JSONArray array = new JSONArray(list);
this.preferenceStore.save(this.getKeyName(R.string.preferences__recent_emojis), array);
}
@Override
public void setRecentEmojis2(LinkedList<String> list) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__recent_emojis2), list.toArray(new String[list.size()]), false);
}
@Override
public int getEmojiSearchIndexVersion() {
Integer version = this.preferenceStore.getInt(this.getKeyName(R.string.preferences__emoji_search_index_version));
return version != null ? version : -1;
}
@Override
public void setEmojiSearchIndexVersion(int version){
this.preferenceStore.save(this.getKeyName(R.string.preferences__emoji_search_index_version), version);
}
@Override
public boolean useThreemaPush() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__threema_push_switch));
}
@Override
public void setUseThreemaPush(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_push_switch), value);
}
@Override
public boolean isSaveMedia() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__save_media));
}
@Override
public boolean isMasterKeyNewMessageNotifications() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__masterkey_notification_newmsg));
}
/*
@Override
public boolean isPinLockEnabled() {
return isPinSet() && this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__pin_lock_enabled));
}
*/
@Override
public boolean isPinSet() {
return isPinCodeValid(this.preferenceStore.getString(this.getKeyName(R.string.preferences__pin_lock_code), true));
}
@Override
public boolean setPin(String newCode) {
if (isPinCodeValid(newCode)) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__pin_lock_code), newCode, true);
return true;
} else {
this.preferenceStore.remove(this.getKeyName(R.string.preferences__pin_lock_code));
}
return false;
}
@Override
public boolean isPinCodeCorrect(String code) {
String storedCode = this.preferenceStore.getString(this.getKeyName(R.string.preferences__pin_lock_code), true);
// use MessageDigest for a timing-safe comparison
return
code != null &&
storedCode != null &&
MessageDigest.isEqual(storedCode.getBytes(), code.getBytes());
}
private boolean isPinCodeValid(String code) {
if (TestUtil.empty(code))
return false;
else
return (code.length() >= ThreemaApplication.MIN_PIN_LENGTH &&
code.length() <= ThreemaApplication.MAX_PIN_LENGTH &&
TextUtils.isDigitsOnly(code));
}
@Override
public int getPinLockGraceTime() {
String pos = this.preferenceStore.getString(this.getKeyName(R.string.preferences__pin_lock_grace_time));
try {
int time = Integer.parseInt(pos);
if (time >= 30 || time < 0) {
return time;
}
} catch (NumberFormatException x) {
// ignored
}
return -1;
}
@Override
public int getIDBackupCount() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__id_backup_count));
}
@Override
public void incrementIDBackupCount() {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__id_backup_count),
this.getIDBackupCount() + 1);
}
@Override
public void resetIDBackupCount() {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__id_backup_count),
0);
}
@Override
public void setLastIDBackupReminderDate(Date lastIDBackupReminderDate) {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__last_id_backup_date),
lastIDBackupReminderDate
);
}
@Override
public String getContactListSorting() {
String sorting = this.preferenceStore.getString(this.getKeyName(R.string.preferences__contact_sorting));
if (sorting == null || sorting.length() == 0) {
//set last_name - first_name as default
sorting = this.context.getString(R.string.contact_sorting__last_name);
this.preferenceStore.save(this.getKeyName(R.string.preferences__contact_sorting), sorting);
}
return sorting;
}
@Override
public boolean isContactListSortingFirstName() {
return TestUtil.compare(this.getContactListSorting(), this.context.getString(R.string.contact_sorting__first_name));
}
@Override
public String getContactFormat() {
String format = this.preferenceStore.getString(this.getKeyName(R.string.preferences__contact_format));
if (format == null || format.length() == 0) {
//set firstname lastname as default
format = this.context.getString(R.string.contact_format__first_name_last_name);
this.preferenceStore.save(this.getKeyName(R.string.preferences__contact_format), format);
}
return format;
}
@Override
public boolean isContactFormatFirstNameLastName() {
return TestUtil.compare(this.getContactFormat(), this.context.getString(R.string.contact_format__first_name_last_name));
}
@Override
public boolean isDefaultContactPictureColored() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__default_contact_picture_colored));
}
@Override
public boolean isDisableScreenshots() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__hide_screenshots));
}
@Override
public int getFontStyle() {
String fontStyle = this.preferenceStore.getString(this.getKeyName(R.string.preferences__fontstyle));
if (TestUtil.empty(fontStyle)) {
// return a default value
return R.style.FontStyle_Normal;
}
switch (Integer.valueOf(fontStyle)) {
case 1:
return R.style.FontStyle_Large;
case 2:
return R.style.FontStyle_XLarge;
default:
return R.style.FontStyle_Normal;
}
}
@Override
public Date getLastIDBackupReminderDate() {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__last_id_backup_date));
}
@Override
public long getTransmittedFeatureMask() {
// TODO(ANDR-2703): Remove this migration code
// Delete old feature level (int) and move it to the feature mask value (long)
String featureLevelKey = getKeyName(R.string.preferences__transmitted_feature_level);
if (preferenceStore.containsKey(featureLevelKey)) {
// Store feature mask as long
setTransmittedFeatureMask(preferenceStore.getInt(featureLevelKey));
// Remove transmitted feature level
preferenceStore.remove(featureLevelKey);
}
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__transmitted_feature_mask));
}
@Override
public void setTransmittedFeatureMask(long transmittedFeatureMask) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__transmitted_feature_mask), transmittedFeatureMask);
}
@Override
public long getLastFeatureMaskTransmission() {
Long lastTransmission = this.preferenceStore.getLong(this.getKeyName(R.string.preferences__last_feature_mask_transmission));
if (lastTransmission == null) {
return 0;
}
return lastTransmission;
}
@Override
public void setLastFeatureMaskTransmission(long timestamp) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__last_feature_mask_transmission), timestamp);
}
@Override
@NonNull
public String[] getList(String listName) {
return getList(listName, true);
}
@Override
@NonNull
public String[] getList(String listName, boolean encrypted) {
String[] res = this.preferenceStore.getStringArray(listName, encrypted);
if (res == null && encrypted) {
// check if we have an old unencrypted identity list - migrate if necessary and return its values
if (this.preferenceStore.containsKey(listName)) {
res = this.preferenceStore.getStringArray(listName, false);
this.preferenceStore.remove(listName, false);
if (res != null) {
this.preferenceStore.save(listName, res, true);
}
}
}
return res != null ? res : new String[0];
}
@Override
public void setList(String listName, String[] elements) {
this.preferenceStore.save(
listName,
elements,
true
);
}
@Override
public void setListQuietly(String listName, String[] elements) {
this.preferenceStore.saveQuietly(
listName,
elements,
true
);
}
@Override
public HashMap<Integer, String> getHashMap(String listName, boolean encrypted) {
return this.preferenceStore.getHashMap(listName, encrypted);
}
@Override
public void setHashMap(String listName, HashMap<Integer, String> hashMap) {
this.preferenceStore.save(
listName,
hashMap
);
}
@Override
public HashMap<String, String> getStringHashMap(String listName, boolean encrypted) {
return this.preferenceStore.getStringHashMap(listName, encrypted);
}
@Override
public void setStringHashMap(String listName, HashMap<String, String> hashMap) {
this.preferenceStore.saveStringHashMap(
listName,
hashMap,
false
);
}
@Override
public void clear() {
this.preferenceStore.clear();
}
@Override
public List<String[]> write() {
List<String[]> res = new ArrayList<>();
Map<String, ?> values = this.preferenceStore.getAllNonCrypted();
Iterator<String> i = values.keySet().iterator();
while (i.hasNext()) {
String key = i.next();
Object v = values.get(key);
String value = null;
if (v instanceof Boolean) {
value = String.valueOf(v);
} else if (v instanceof Float) {
value = String.valueOf(v);
} else if (v instanceof Integer) {
value = String.valueOf(v);
} else if (v instanceof Long) {
value = String.valueOf(v);
} else if (v instanceof String) {
value = ((String) v);
}
res.add(new String[]{
key,
value,
v.getClass().toString()
});
}
return res;
}
@Override
public boolean read(List<String[]> values) {
for (String[] v : values) {
if (v.length != 3) {
//invalid row
return false;
}
String key = v[0];
String value = v[1];
String valueClass = v[2];
if (valueClass.equals(Boolean.class.toString())) {
this.preferenceStore.save(key, Boolean.valueOf(value));
} else if (valueClass.equals(Float.class.toString())) {
// this.preferenceStore.save(key, ((Float) v).floatValue());
} else if (valueClass.equals(Integer.class.toString())) {
this.preferenceStore.save(key, Integer.valueOf(value));
} else if (valueClass.equals(Long.class.toString())) {
this.preferenceStore.save(key, Long.valueOf(value));
} else if (valueClass.equals(String.class.toString())) {
this.preferenceStore.save(key, value);
}
}
return true;
}
private String getKeyName(@StringRes int resourceId) {
return this.context.getString(resourceId);
}
@Override
public Integer getRoutineInterval(String key) {
return this.preferenceStore.getInt(key);
}
@Override
public void setRoutineInterval(String key, Integer intervalSeconds) {
this.preferenceStore.save(key, intervalSeconds);
}
@Override
public boolean showInactiveContacts() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__show_inactive_contacts));
}
@Override
public boolean getLastOnlineStatus() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__last_online_status));
}
@Override
public void setLastOnlineStatus(boolean online) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__last_online_status), online);
}
@Override
public boolean isLatestVersion(Context context) {
int buildNumber = ConfigUtils.getBuildNumber(context);
if (buildNumber != 0) {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__latest_version)) >= buildNumber;
}
return false;
}
@Override
public int getLatestVersion() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__latest_version));
}
@Override
public void setLatestVersion(Context context) {
int buildNumber = ConfigUtils.getBuildNumber(context);
if (buildNumber != 0) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__latest_version), buildNumber);
}
}
@Override
public boolean checkForAppUpdate(@NonNull Context context) {
// Get the current build number
int buildNumber = ConfigUtils.getBuildNumber(context);
if (buildNumber == 0) {
logger.error("Could not check for app update because build number is 0");
return false;
}
// Get the last stored build number
Integer latestStoredBuildNumber = this.preferenceStore.getInt(this.getKeyName(R.string.preferences__build_version));
int lastCheckedBuildNumber = 0;
if (latestStoredBuildNumber != null) {
lastCheckedBuildNumber = latestStoredBuildNumber;
}
// Update the stored build number if a newer version is installed and return true
if (lastCheckedBuildNumber < buildNumber) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__build_version), buildNumber);
return true;
}
// The app has not been updated since the last check
return false;
}
@Override
public boolean getFileSendInfoShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__filesend_info_shown));
}
@Override
public void setFileSendInfoShown(boolean shown) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__filesend_info_shown), shown);
}
@Override
public int getAppThemeValue() {
String theme = this.preferenceStore.getString(this.getKeyName(R.string.preferences__theme));
if (theme != null && theme.length() > 0) {
return Integer.parseInt(theme);
}
return Integer.parseInt(BuildConfig.DEFAULT_APP_THEME);
}
@Override
public int getEmojiStyle() {
String theme = this.preferenceStore.getString(this.getKeyName(R.string.preferences__emoji_style));
if (theme != null && theme.length() > 0) {
if (Integer.parseInt(theme) == 1) {
return EmojiStyle_ANDROID;
}
}
return EmojiStyle_DEFAULT;
}
@Override
public void setLockoutDeadline(long deadline) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__lockout_deadline), deadline);
}
@Override
public void setLockoutTimeout(long timeout) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__lockout_timeout), timeout);
}
@Override
public long getLockoutDeadline() {
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__lockout_deadline));
}
@Override
public long getLockoutTimeout() {
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__lockout_timeout));
}
@Override
public void setLockoutAttempts(int numWrongConfirmAttempts) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__lockout_attempts), numWrongConfirmAttempts);
}
@Override
public int getLockoutAttempts() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__lockout_attempts));
}
@Override
public void setWizardRunning(boolean running) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__wizard_running), running);
}
@Override
public boolean getWizardRunning() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__wizard_running));
}
@Override
public boolean isAnimationAutoplay() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__gif_autoplay));
}
@Override
public boolean isUseProximitySensor() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__proximity_sensor));
}
@Override
public void setBlockUnkown(Boolean booleanPreset) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__block_unknown), booleanPreset);
}
@Override
public void setAppLogoExpiresAt(Date expiresAt, @ConfigUtils.AppThemeSetting String theme) {
this.preferenceStore.save(this.getKeyName(
ConfigUtils.THEME_DARK.equals(theme) ?
R.string.preferences__app_logo_dark_expires_at :
R.string.preferences__app_logo_light_expires_at), expiresAt);
}
@Override
public Date getAppLogoExpiresAt(@ConfigUtils.AppThemeSetting String theme) {
return this.preferenceStore.getDate(this.getKeyName(
ConfigUtils.THEME_DARK.equals(theme) ?
R.string.preferences__app_logo_dark_expires_at :
R.string.preferences__app_logo_light_expires_at));
}
@Override
public boolean isPrivateChatsHidden() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__chats_hidden));
}
@Override
public void setPrivateChatsHidden(boolean hidden) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__chats_hidden), hidden);
}
@Override
public String getLockMechanism() {
String mech = this.preferenceStore.getString(this.getKeyName(R.string.preferences__lock_mechanism));
return mech == null ? LockingMech_NONE : mech;
}
@Override
public boolean isAppLockEnabled() {
return preferenceStore.getBoolean(this.getKeyName(R.string.preferences__app_lock_enabled)) && !PreferenceService.LockingMech_NONE.equals(getLockMechanism());
}
@Override
public void setAppLockEnabled(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__app_lock_enabled), !PreferenceService.LockingMech_NONE.equals(getLockMechanism()) && enabled);
}
@Override
public void setSaveToGallery(Boolean booleanPreset) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__save_media), booleanPreset);
}
@Override
public void setDisableScreenshots(Boolean booleanPreset) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__hide_screenshots), booleanPreset);
}
@Override
public void setLockMechanism(String lockingMech) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__lock_mechanism), lockingMech);
}
@Override
public boolean isShowImageAttachPreviewsEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__image_attach_previews));
}
@Override
public void setImageAttachPreviewsEnabled(boolean enable) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__image_attach_previews), enable);
}
@Override
public boolean isDirectShare() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__direct_share));
}
@Override
public void setMessageDrafts(HashMap<String, String> messageDrafts) {
this.preferenceStore.saveStringHashMap(this.getKeyName(R.string.preferences__message_drafts), messageDrafts, true);
}
@Override
public HashMap<String, String> getMessageDrafts() {
return this.preferenceStore.getStringHashMap(this.getKeyName(R.string.preferences__message_drafts), true);
}
@Override
public void setQuoteDrafts(HashMap<String, String> quoteDrafts) {
this.preferenceStore.saveStringHashMap(this.getKeyName(R.string.preferences__quote_drafts), quoteDrafts, true);
}
@Override
public HashMap<String, String> getQuoteDrafts() {
return this.preferenceStore.getStringHashMap(this.getKeyName(R.string.preferences__quote_drafts), true);
}
private @NonNull
String getAppLogoKey(@ConfigUtils.AppThemeSetting String theme) {
if (ConfigUtils.THEME_DARK.equals(theme)) {
return this.getKeyName(R.string.preferences__app_logo_dark_url);
}
return this.getKeyName(R.string.preferences__app_logo_light_url);
}
@Override
public void setAppLogo(@NonNull String url, @ConfigUtils.AppThemeSetting String theme) {
this.preferenceStore.save(this.getAppLogoKey(theme), url, true);
}
@Override
public void clearAppLogo(@ConfigUtils.AppThemeSetting String theme) {
this.preferenceStore.remove(this.getAppLogoKey(theme));
}
@Override
public void clearAppLogos() {
this.clearAppLogo(ConfigUtils.THEME_DARK);
this.clearAppLogo(ConfigUtils.THEME_LIGHT);
}
@Override
@Nullable
public String getAppLogo(@ConfigUtils.AppThemeSetting String theme) {
return this.preferenceStore.getString(this.getAppLogoKey(theme), true);
}
@Override
public void setCustomSupportUrl(String supportUrl) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__custom_support_url), supportUrl, true);
}
@Override
public String getCustomSupportUrl() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__custom_support_url), true);
}
@Override
public String getLocaleOverride() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__language_override), false);
}
@Override
public HashMap<String, String> getDiverseEmojiPrefs() {
return this.preferenceStore.getStringHashMap(this.getKeyName(R.string.preferences__diverse_emojis), false);
}
@Override
public void setDiverseEmojiPrefs(HashMap<String, String> diverseEmojis) {
this.preferenceStore.saveStringHashMap(this.getKeyName(R.string.preferences__diverse_emojis), diverseEmojis, false);
}
@Override
public boolean isWebClientEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__web_client_enabled));
}
@Override
public void setWebClientEnabled(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__web_client_enabled), enabled);
}
@Override
public void setPushToken(String fcmToken) {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__push_token),
fcmToken,
true);
}
@Override
public String getPushToken() {
return this.preferenceStore.getString(
this.getKeyName(R.string.preferences__push_token),
true
);
}
@Override
public int getProfilePicRelease() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__profile_pic_release));
}
@Override
public void setProfilePicRelease(int value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__profile_pic_release), value);
}
@Override
public long getProfilePicUploadDate() {
return this.preferenceStore.getDateAsLong(this.getKeyName(R.string.preferences__profile_pic_upload_date));
}
@Override
public void setProfilePicUploadDate(Date date) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__profile_pic_upload_date), date);
}
@Override
public void setProfilePicUploadData(@Nullable ContactService.ProfilePictureUploadData result) {
JSONObject toStore = null;
if (result != null) {
toStore = new JSONObject();
try {
toStore.put(CONTACT_PHOTO_BLOB_ID, Base64.encodeBytes(result.blobId));
toStore.put(CONTACT_PHOTO_ENCRYPTION_KEY, Base64.encodeBytes(result.encryptionKey));
toStore.put(CONTACT_PHOTO_SIZE, result.size);
} catch (Exception e) {
logger.error("Exception", e);
}
}
this.preferenceStore.save(this.getKeyName(R.string.preferences__profile_pic_upload_data), toStore, true);
}
@Override
@Nullable
public ContactService.ProfilePictureUploadData getProfilePicUploadData() {
JSONObject fromStore = this.preferenceStore.getJSONObject(this.getKeyName(R.string.preferences__profile_pic_upload_data), true);
if (fromStore != null) {
try {
ContactService.ProfilePictureUploadData data = new ContactService.ProfilePictureUploadData();
data.blobId = Base64.decode(fromStore.getString(CONTACT_PHOTO_BLOB_ID));
data.encryptionKey = Base64.decode(fromStore.getString(CONTACT_PHOTO_ENCRYPTION_KEY));
data.size = fromStore.getInt(CONTACT_PHOTO_SIZE);
return data;
} catch (Exception e) {
logger.error("Exception", e);
return null;
}
}
return null;
}
@Override
public boolean getProfilePicReceive() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__receive_profilepics));
}
@Override
@NonNull
public String getAECMode() {
String mode = this.preferenceStore.getString(this.getKeyName(R.string.preferences__voip_echocancel));
if ("sw".equals(mode)) {
return mode;
}
return "hw";
}
@Override
public @NonNull
String getVideoCodec() {
String mode = this.preferenceStore.getString(this.getKeyName(R.string.preferences__voip_video_codec));
if (mode != null) {
return mode;
}
return PreferenceService.VIDEO_CODEC_HW;
}
@Override
public boolean getForceTURN() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voip_force_turn));
}
@Override
public void setForceTURN(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__voip_force_turn), value);
}
@Override
public boolean isVoipEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voip_enable));
}
@Override
public void setVoipEnabled(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__voip_enable), value);
}
@Override
public boolean isRejectMobileCalls() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voip_reject_mobile_calls));
}
@Override
public void setRejectMobileCalls(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__voip_reject_mobile_calls), value);
}
@Override
public boolean isIpv6Preferred() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__ipv6_preferred));
}
@Override
public boolean allowWebrtcIpv6() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__ipv6_webrtc_allowed));
}
@Override
public int getNotificationPriority() {
return NotificationUtil.getNotificationPriority(context);
}
@Override
public void setNotificationPriority(int value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__notification_priority), Integer.toString(value));
}
@Override
public Set<String> getMobileAutoDownload() {
return this.preferenceStore.getStringSet(this.getKeyName(R.string.preferences__auto_download_mobile), R.array.list_auto_download_mobile_default);
}
@Override
public Set<String> getWifiAutoDownload() {
return this.preferenceStore.getStringSet(this.getKeyName(R.string.preferences__auto_download_wifi), R.array.list_auto_download_wifi_default);
}
@Override
public void setRandomRatingRef(String ref) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__rate_ref), ref, true);
}
@Override
public String getRandomRatingRef() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__rate_ref), true);
}
@Override
public void setRatingReviewText(String review) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__rate_text), review, true);
}
@Override
public String getRatingReviewText() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__rate_text), true);
}
@Override
public void setPrivacyPolicyAccepted(Date date, int source) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__privacy_policy_accept_date), date);
this.preferenceStore.save(this.getKeyName(R.string.preferences__privacy_policy_accept_source), source);
}
@Override
public Date getPrivacyPolicyAccepted() {
if (this.preferenceStore.getInt(this.getKeyName(R.string.preferences__privacy_policy_accept_source)) != PRIVACY_POLICY_ACCEPT_NONE) {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__privacy_policy_accept_date));
}
return null;
}
@Override
public void clearPrivacyPolicyAccepted() {
this.preferenceStore.remove(this.getKeyName(R.string.preferences__privacy_policy_accept_date));
this.preferenceStore.remove(this.getKeyName(R.string.preferences__privacy_policy_accept_source));
}
@Override
public boolean getIsGroupCallsTooltipShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_calls_tooltip_shown));
}
@Override
public void setGroupCallsTooltipShown(boolean shown) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__group_calls_tooltip_shown), shown);
}
@Override
public boolean getIsWorkHintTooltipShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__tooltip_work_hint_shown));
}
@Override
public void setIsWorkHintTooltipShown(boolean shown) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__tooltip_work_hint_shown), shown);
}
@Override
public boolean getIsFaceBlurTooltipShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__tooltip_face_blur_shown));
}
@Override
public void setFaceBlurTooltipShown(boolean shown) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__tooltip_face_blur_shown), shown);
}
@Override
public void setThreemaSafeEnabled(boolean value) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_enabled), value);
}
@Override
public boolean getThreemaSafeEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__threema_safe_enabled));
}
@Override
public void setThreemaSafeMasterKey(byte[] masterKey) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_masterkey), masterKey, true);
ThreemaSafeMDMConfig.getInstance().saveConfig(this);
}
@Override
public byte[] getThreemaSafeMasterKey() {
return this.preferenceStore.getBytes(this.getKeyName(R.string.preferences__threema_safe_masterkey), true);
}
@Override
public void setThreemaSafeServerInfo(@Nullable ThreemaSafeServerInfo serverInfo) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_server_name), serverInfo != null ? serverInfo.getCustomServerName() : null, true);
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_server_username), serverInfo != null ? serverInfo.getServerUsername() : null, true);
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_server_password), serverInfo != null ? serverInfo.getServerPassword() : null, true);
}
@Override
@NonNull
public ThreemaSafeServerInfo getThreemaSafeServerInfo() {
return new ThreemaSafeServerInfo(
this.preferenceStore.getString(this.getKeyName(R.string.preferences__threema_safe_server_name), true),
this.preferenceStore.getString(this.getKeyName(R.string.preferences__threema_safe_server_username), true),
this.preferenceStore.getString(this.getKeyName(R.string.preferences__threema_safe_server_password), true)
);
}
@Override
public void setThreemaSafeUploadDate(Date date) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_backup_date), date);
}
@Override
@Nullable
public Date getThreemaSafeUploadDate() {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__threema_safe_backup_date));
}
@Override
public void setIncognitoKeyboard(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__incognito_keyboard), enabled);
}
@Override
public boolean getIncognitoKeyboard() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__incognito_keyboard));
}
@Override
public boolean getShowUnreadBadge() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__show_unread_badge));
}
@Override
public void setThreemaSafeErrorCode(int code) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_error_code), code);
}
@Override
public int getThreemaSafeErrorCode() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__threema_safe_error_code));
}
@Override
public void setThreemaSafeErrorDate(@Nullable Date date) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_create_error_date), date);
}
@Override
@Nullable
public Date getThreemaSafeErrorDate() {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__threema_safe_create_error_date));
}
@Override
public void setThreemaSafeServerMaxUploadSize(long maxBackupBytes) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_server_upload_size), maxBackupBytes);
}
@Override
public long getThreemaSafeServerMaxUploadSize() {
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__threema_safe_server_upload_size));
}
@Override
public void setThreemaSafeServerRetention(int days) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_server_retention), days);
}
@Override
public int getThreemaSafeServerRetention() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__threema_safe_server_retention));
}
@Override
public void setThreemaSafeBackupSize(int size) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_upload_size), size);
}
@Override
public int getThreemaSafeBackupSize() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__threema_safe_upload_size));
}
@Override
public void setThreemaSafeHashString(String hashString) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_hash_string), hashString);
}
@Override
public String getThreemaSafeHashString() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__threema_safe_hash_string));
}
@Override
public void setThreemaSafeBackupDate(Date date) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__threema_safe_backup_date), date);
}
@Override
public Date getThreemaSafeBackupDate() {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__threema_safe_backup_date));
}
@Override
public void setWorkSyncCheckInterval(int checkInterval) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__work_sync_check_interval), checkInterval);
}
@Override
public int getWorkSyncCheckInterval() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__work_sync_check_interval));
}
@Override
public boolean getIsExportIdTooltipShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__tooltip_export_id_shown));
}
@Override
public void setThreemaSafeMDMConfig(String mdmConfigHash) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__work_safe_mdm_config), mdmConfigHash, true);
}
@Override
public String getThreemaSafeMDMConfig() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__work_safe_mdm_config), true);
}
@Override
public void setWorkDirectoryEnabled(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__work_directory_enabled), enabled);
}
@Override
public boolean getWorkDirectoryEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__work_directory_enabled));
}
@Override
public void setWorkDirectoryCategories(List<WorkDirectoryCategory> categories) {
JSONArray array = new JSONArray();
for (WorkDirectoryCategory category : categories) {
String categoryObjectString = category.toJSON();
if (!TestUtil.empty(categoryObjectString)) {
try {
array.put(new JSONObject(categoryObjectString));
} catch (JSONException e) {
logger.error("Exception", e);
}
}
}
this.preferenceStore.save(this.getKeyName(R.string.preferences__work_directory_categories), array, true);
}
@Override
public List<WorkDirectoryCategory> getWorkDirectoryCategories() {
JSONArray array = this.preferenceStore.getJSONArray(this.getKeyName(R.string.preferences__work_directory_categories), true);
List<WorkDirectoryCategory> categories = new ArrayList<>();
for (int i = 0; i < array.length(); i++) {
try {
JSONObject jsonObject = array.optJSONObject(i);
if (jsonObject != null) {
categories.add(new WorkDirectoryCategory(jsonObject));
}
} catch (Exception e) {
logger.error("Exception", e);
}
}
return categories;
}
@Override
public void setWorkOrganization(WorkOrganization organization) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__work_directory_organization), organization.toJSON(), true);
}
@Override
public WorkOrganization getWorkOrganization() {
JSONObject object = this.preferenceStore.getJSONObject(this.getKeyName(R.string.preferences__work_directory_organization), true);
if (object != null) {
return new WorkOrganization(object);
}
return null;
}
@Override
public void setLicensedStatus(boolean licensed) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__license_status), licensed);
}
@Override
public boolean getLicensedStatus() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__license_status), true);
}
@Override
public void setShowDeveloperMenu(boolean show) {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__developer_menu),
show
);
}
@Override
public boolean showDeveloperMenu() {
return BuildConfig.DEBUG && this.preferenceStore.getBoolean(
this.getKeyName(R.string.preferences__developer_menu),
false
);
}
@Override
public Uri getDataBackupUri() {
String backupUri = this.preferenceStore.getString(this.getKeyName(R.string.preferences__data_backup_uri));
if (backupUri != null && backupUri.length() > 0) {
return Uri.parse(backupUri);
}
return null;
}
@Override
public void setDataBackupUri(Uri newUri) {
this.preferenceStore.save(
this.getKeyName(R.string.preferences__data_backup_uri),
newUri != null ? newUri.toString() : null
);
}
@Override
public Date getLastDataBackupDate() {
return this.preferenceStore.getDate(this.getKeyName(R.string.preferences__last_data_backup_date));
}
@Override
public void setLastDataBackupDate(Date date) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__last_data_backup_date), date);
}
@Override
public String getMatchToken() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__match_token));
}
@Override
public void setMatchToken(String matchToken) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__match_token), matchToken);
}
@Override
public boolean isAfterWorkDNDEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__working_days_enable));
}
@Override
public void setAfterWorkDNDEnabled(boolean enabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__working_days_enable), enabled);
}
@Override
public void setCameraFlashMode(int flashMode) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__camera_flash_mode), flashMode);
}
@Override
public int getCameraFlashMode() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__camera_flash_mode));
}
@Override
public void setPipPosition(int pipPosition) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__pip_position), pipPosition);
}
@Override
public int getPipPosition() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__pip_position));
}
@Override
public boolean isVideoCallsEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voip_video_enable));
}
@Override
public boolean isGroupCallsEnabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_calls_enable));
}
@Override
@Nullable
public String getVideoCallsProfile() {
return this.preferenceStore.getString(this.getKeyName(R.string.preferences__voip_video_profile));
}
@Override
public void setBallotOverviewHidden(boolean hidden) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__ballot_overview_hidden), hidden);
}
@Override
public boolean getBallotOverviewHidden() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__ballot_overview_hidden));
}
@Override
public void setGroupRequestsOverviewHidden(boolean hidden) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__group_request_overview_hidden), hidden);
}
@Override
public boolean getGroupRequestsOverviewHidden() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_request_overview_hidden));
}
@Override
public int getVideoCallToggleTooltipCount() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__tooltip_video_toggle));
}
@Override
public void incremenetVideoCallToggleTooltipCount() {
this.preferenceStore.save(this.getKeyName(R.string.preferences__tooltip_video_toggle), getVideoCallToggleTooltipCount() + 1);
}
@Override
public boolean getCameraPermissionRequestShown() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__camera_permission_request_shown), false);
}
@Override
public void setCameraPermissionRequestShown(boolean shown) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__camera_permission_request_shown), shown);
}
@Override
public boolean getDisableSmartReplies() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__disable_smart_replies), false);
}
@Override
public @Nullable
String getPoiServerHostOverride() {
// Defined in the developers settings menu
final String override = this.preferenceStore.getString(this.getKeyName(R.string.preferences__poi_host));
if ("".equals(override)) {
return null;
}
return override;
}
@Override
public void setVoiceRecorderBluetoothDisabled(boolean disabled) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__voicerecorder_bluetooth_disabled), disabled);
}
@Override
public boolean getVoiceRecorderBluetoothDisabled() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__voicerecorder_bluetooth_disabled), true);
}
@Override
public void setAudioPlaybackSpeed(float newSpeed) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__audio_playback_speed), newSpeed);
}
@Override
public float getAudioPlaybackSpeed() {
return this.preferenceStore.getFloat(this.getKeyName(R.string.preferences__audio_playback_speed), 1f);
}
@Override
public int getMultipleRecipientsTooltipCount() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__tooltip_multi_recipients));
}
@Override
public void incrementMultipleRecipientsTooltipCount() {
this.preferenceStore.save(this.getKeyName(R.string.preferences__tooltip_multi_recipients), getMultipleRecipientsTooltipCount() + 1);
}
@Override
public boolean isGroupCallSendInitEnabled() {
return ConfigUtils.isDevBuild() && this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_call_send_init), false);
}
@Override
public boolean skipGroupCallCreateDelay() {
return ConfigUtils.isDevBuild() && this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__group_call_skip_delay), false);
}
@Override
public long getBackupWarningDismissedTime() {
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__backup_warning_dismissed_time));
}
@Override
public void setBackupWarningDismissedTime(long time) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__backup_warning_dismissed_time), time);
}
@Override
@StarredMessagesSortOrder
public int getStarredMessagesSortOrder() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__starred_messages_sort_order));
}
@Override
public void setStarredMessagesSortOrder(@StarredMessagesSortOrder int order) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__starred_messages_sort_order), order);
}
@Override
public void setAutoDeleteDays(int i) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__auto_delete_days), i);
}
@Override
public int getAutoDeleteDays() {
Integer autoDeleteDays = this.preferenceStore.getInt(this.getKeyName(R.string.preferences__auto_delete_days));
if (autoDeleteDays != null) {
return validateKeepMessageDays(autoDeleteDays);
}
return 0;
}
@Override
public void removeLastNotificationRationaleShown() {
String key = this.getKeyName(R.string.preferences__last_notification_rationale_shown);
if (this.preferenceStore.containsKey(key)) {
this.preferenceStore.remove(key);
}
}
@Override
public void getMediaGalleryContentTypes(boolean[] contentTypes) {
Arrays.fill(contentTypes, true);
JSONArray array = this.preferenceStore.getJSONArray(this.getKeyName(R.string.preferences__media_gallery_content_types), false);
if (array != null && array.length() > 0 && array.length() == contentTypes.length) {
for (int i = 0; i < array.length(); i++) {
try {
boolean value = array.getBoolean(i);
contentTypes[i] = value;
} catch (JSONException e) {
logger.error("JSON error", e);
}
}
}
}
@Override
public void setMediaGalleryContentTypes(boolean[] contentTypes) {
JSONArray jsonArray;
try {
jsonArray = new JSONArray(contentTypes);
this.preferenceStore.save(this.getKeyName(R.string.preferences__media_gallery_content_types), jsonArray);
} catch (JSONException e) {
logger.error("JSON error", e);
}
}
@Override
public int getEmailSyncHashCode() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__email_sync_hash));
}
@Override
public int getPhoneNumberSyncHashCode() {
return this.preferenceStore.getInt(this.getKeyName(R.string.preferences__phone_number_sync_hash));
}
@Override
public void setEmailSyncHashCode(int emailsHash) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__email_sync_hash), emailsHash);
}
@Override
public void setPhoneNumberSyncHashCode(int phoneNumbersHash) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__phone_number_sync_hash), phoneNumbersHash);
}
@Override
public void setTimeOfLastContactSync(long timeMs) {
this.preferenceStore.save(this.getKeyName(R.string.preferences__contact_sync_time), timeMs);
}
@Override
public long getTimeOfLastContactSync() {
return this.preferenceStore.getLong(this.getKeyName(R.string.preferences__contact_sync_time));
}
@Override
public boolean isMdUnlocked() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__md_unlocked), false);
}
@Override
public boolean showConversationLastUpdate() {
return this.preferenceStore.getBoolean(this.getKeyName(R.string.preferences__show_last_update_prefix), false);
}
}
| threema-ch/threema-android | app/src/main/java/ch/threema/app/services/PreferenceServiceImpl.java |
213,409 | /*
* JStock - Free Stock Market Software
* Copyright (C) 2013 Yan Cheng Cheok <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package org.yccheok.jstock.gui.portfolio;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.text.MessageFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.border.EmptyBorder;
import javax.swing.text.NumberFormatter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.yccheok.jstock.engine.Code;
import org.yccheok.jstock.internationalization.GUIBundle;
import org.yccheok.jstock.portfolio.DecimalPlaces;
import org.yccheok.jstock.portfolio.Dividend;
/**
*
* @author yccheok
*/
public class AutoDividendJDialog extends javax.swing.JDialog {
/**
* Creates new form AutoDividendJDialog
*/
public AutoDividendJDialog(java.awt.Frame parent, boolean modal, Map<Code, List<Dividend>> dividends) {
super(parent, modal);
initComponents();
JPanel panel = new JPanel();
panel.setBorder(new EmptyBorder(10, 10, 10, 10) );
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
TreeMap<Code, List<Dividend>> treeMap = new TreeMap<Code, List<Dividend>>(new Comparator<Code>() {
@Override
public int compare(Code o1, Code o2) {
return o1.toString().compareTo(o2.toString());
}
});
treeMap.putAll(dividends);
for (Map.Entry<Code, List<Dividend>> entry : treeMap.entrySet()) {
AutoDividendJPanel autoDividendJPanel = new AutoDividendJPanel(this, entry.getValue());
autoDividendJPanels.add(autoDividendJPanel);
panel.add(autoDividendJPanel);
panel.add(Box.createRigidArea(new Dimension(0, 5)));
}
this.jScrollPane1.setViewportView(panel);
updateTotalLabel();
}
public void updateInstructionLabel() {
String template = GUIBundle.getString("AutoDividendJDialog_Intruction_template");
double tax = (Double)jFormattedTextField1.getValue();
double taxRate = (Double)jFormattedTextField2.getValue();
final String text0 = org.yccheok.jstock.portfolio.Utils.toCurrency(DecimalPlaces.Three, tax);
final String text1 = org.yccheok.jstock.portfolio.Utils.toCurrency(DecimalPlaces.Three, taxRate);
double value = 100.0 - tax - (100.0 * taxRate / 100.0);
value = Math.max(value, 0.0);
final String text2 = org.yccheok.jstock.portfolio.Utils.toCurrencyWithSymbol(DecimalPlaces.Three, value);
String message = MessageFormat.format(template, text0, text1, text2);
if (jLabel3 == null) {
jLabel3 = new javax.swing.JLabel();
jLabel3.setText(GUIBundle.getString("AutoDividendJDialog_Intruction")); // NOI18N
jLabel3.setFont(jLabel3.getFont().deriveFont((jLabel3.getFont().getStyle() | java.awt.Font.ITALIC)));
jPanel6.add(jLabel3);
}
if (jLabel5 == null) {
jLabel5 = new javax.swing.JLabel();
jLabel5.setFont(jLabel5.getFont().deriveFont((jLabel5.getFont().getStyle() | java.awt.Font.ITALIC)));
jPanel6.add(jLabel5);
}
this.jLabel5.setText(message);
this.jLabel3.setVisible(true);
this.jLabel5.setVisible(true);
}
public void updateTotalLabel() {
int selectedStock = 0;
int selectedDividend = 0;
double selectedAmount = 0.0;
for (AutoDividendJPanel autoDividendJPanel : autoDividendJPanels) {
if (autoDividendJPanel.isSelected()) {
selectedStock++;
selectedDividend += autoDividendJPanel.getSelectedCount();
selectedAmount += autoDividendJPanel.getSelectedAmount();
}
}
String stock_text = selectedStock + " " + GUIBundle.getString(selectedStock <= 1 ? "AutoDividendJDialog_StockSingular" : "AutoDividendJDialog_StockPlural");
String dividend_text = selectedDividend + " " + GUIBundle.getString(selectedDividend <= 1 ? "AutoDividendJDialog_DividendSingular" : "AutoDividendJDialog_DividendPlural");
String total_text = org.yccheok.jstock.portfolio.Utils.toCurrencyWithSymbol(DecimalPlaces.Three, selectedAmount);
String message = MessageFormat.format(GUIBundle.getString("AutoDividendJDialog_Total_template"), stock_text, dividend_text, total_text);
this.jLabel4.setText(message);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jXHeader1 = new org.jdesktop.swingx.JXHeader();
jPanel2 = new javax.swing.JPanel();
jPanel4 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jPanel5 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jFormattedTextField1 = getCurrencyJFormattedTextField();
jLabel2 = new javax.swing.JLabel();
jFormattedTextField2 = getCurrencyJFormattedTextField();
jPanel6 = new javax.swing.JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N
setTitle(bundle.getString("AutoDividendJDialog_Title")); // NOI18N
setResizable(false);
getContentPane().setLayout(new java.awt.BorderLayout(5, 5));
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N
jButton1.setText(bundle.getString("AutoDividendJDialog_Apply")); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N
jButton2.setText(bundle.getString("AutoDividendJDialog_Cancel")); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH);
jXHeader1.setDescription(bundle.getString("AutoDividendJDialog_Description")); // NOI18N
jXHeader1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/32x32/auto-dividend.png"))); // NOI18N
jXHeader1.setTitle(bundle.getString("AutoDividendJDialog_AutoDividend")); // NOI18N
getContentPane().add(jXHeader1, java.awt.BorderLayout.NORTH);
jPanel2.setLayout(new java.awt.BorderLayout(5, 5));
jLabel4.setForeground(new java.awt.Color(0, 0, 255));
jPanel4.add(jLabel4);
jPanel2.add(jPanel4, java.awt.BorderLayout.SOUTH);
jScrollPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("AutoDividendJDialog_Dividend"))); // NOI18N
jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);
jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("AutoDividendJDialog_DividendTax"))); // NOI18N
jPanel5.setLayout(new java.awt.BorderLayout());
jLabel1.setText(bundle.getString("AutoDividendJDialog_Tax")); // NOI18N
jFormattedTextField1.setText("0");
jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jFormattedTextField1KeyTyped(evt);
}
});
jLabel2.setText(bundle.getString("AutoDividendJDialog_TaxRate")); // NOI18N
jFormattedTextField2.setText("0");
jFormattedTextField2.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jFormattedTextField2KeyTyped(evt);
}
});
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(93, Short.MAX_VALUE))
);
jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jFormattedTextField1, jFormattedTextField2});
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel5.add(jPanel3, java.awt.BorderLayout.CENTER);
jPanel6.setLayout(new java.awt.GridLayout(2, 1, 5, 5));
jPanel5.add(jPanel6, java.awt.BorderLayout.SOUTH);
jPanel2.add(jPanel5, java.awt.BorderLayout.NORTH);
getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);
setBounds(0, 0, 301, 502);
}// </editor-fold>//GEN-END:initComponents
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
this.dividendsPressingOK = null;
this.setVisible(false);
this.dispose();
}//GEN-LAST:event_jButton2ActionPerformed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
dividendsPressingOK = new ArrayList<Dividend>();
for (AutoDividendJPanel autoDividendJPanel : autoDividendJPanels) {
dividendsPressingOK.addAll(autoDividendJPanel.getSelectedDividends());
}
this.setVisible(false);
this.dispose();
}//GEN-LAST:event_jButton1ActionPerformed
private void jFormattedTextField2KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jFormattedTextField2KeyTyped
update();
}//GEN-LAST:event_jFormattedTextField2KeyTyped
private void jFormattedTextField1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jFormattedTextField1KeyTyped
update();
}//GEN-LAST:event_jFormattedTextField1KeyTyped
public List<Dividend> getDividendsAfterPressingOK() {
return this.dividendsPressingOK;
}
private void commitEdit() {
try {
jFormattedTextField1.commitEdit();
jFormattedTextField2.commitEdit();
} catch (ParseException ex) {
log.error(null, ex);
}
}
private void update() {
SwingUtilities.invokeLater(new Runnable() {@Override public void run() {
_update();
}});
}
private void _update() {
commitEdit();
double tax = (Double)jFormattedTextField1.getValue();
double taxRate = (Double)jFormattedTextField2.getValue();
for (AutoDividendJPanel autoDividendJPanel : autoDividendJPanels) {
autoDividendJPanel.updateTaxInfo(tax, taxRate);
}
updateTotalLabel();
updateInstructionLabel();
}
private MouseListener getJFormattedTextFieldMouseListener() {
MouseListener ml = new MouseAdapter()
{
@Override
public void mousePressed(final MouseEvent e)
{
if (e.getClickCount() == 2) {
// Ignore double click.
return;
}
SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()
{
JTextField tf = (JTextField)e.getSource();
int offset = tf.viewToModel(e.getPoint());
tf.setCaretPosition(offset);
}
});
}
};
return ml;
}
private JFormattedTextField getCurrencyJFormattedTextField() {
NumberFormat format= NumberFormat.getNumberInstance();
format.setMaximumFractionDigits(3);
NumberFormatter formatter= new NumberFormatter(format);
formatter.setMinimum(0.0);
formatter.setValueClass(Double.class);
JFormattedTextField formattedTextField = new JFormattedTextField(formatter);
formattedTextField.addMouseListener(getJFormattedTextFieldMouseListener());
return formattedTextField;
}
private static final Log log = LogFactory.getLog(AutoDividendJDialog.class);
private final List<AutoDividendJPanel> autoDividendJPanels = new ArrayList<AutoDividendJPanel>();
private List<Dividend> dividendsPressingOK = null;
private JLabel jLabel3 = null;
private JLabel jLabel5 = null;
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JFormattedTextField jFormattedTextField2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel4;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel6;
private javax.swing.JScrollPane jScrollPane1;
private org.jdesktop.swingx.JXHeader jXHeader1;
// End of variables declaration//GEN-END:variables
}
| oehm-smith/jstockfork2 | src/org/yccheok/jstock/gui/portfolio/AutoDividendJDialog.java |
213,410 | package models.action;
import models.basic.Couleur;
import models.bot.Bot;
import models.niveau.Carte;
import exceptions.LightBotException;
public class Douche extends Action {
/** Nom de l'Action */
final static String pNameAction = "douche";
@Override
public void apply(Bot aBot, Carte aCarte) throws LightBotException {
aBot.setCouleur(Couleur.BLANC);
}
@Override
public Action copy() {
Douche wDouche = new Douche();
wDouche.setCouleur(getCouleur());
return wDouche;
}
@Override
public boolean valid(Bot aBot, Carte aCarte) {
return true;
}
}
| gattazr-student/PLA-CodeMe | lightbot_2.0/src/models/action/Douche.java |
213,411 | public interface Douche {
}
| Sacus1/School | BUT2/Java/Hotel/src/Douche.java |
213,412 | /**
* Douche.java
*
* File generated from the voc::Douche uml Enumeration
* Generated by IHE - europe, gazelle team
*/
package net.ihe.gazelle.hl7v3.voc;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* Description of the enumeration Douche.
*
*/
@XmlType(name = "Douche")
@XmlEnum
@XmlRootElement(name = "Douche")
public enum Douche {
@XmlEnumValue("DOUCHE")
DOUCHE("DOUCHE");
private final String value;
Douche(String v) {
value = v;
}
public String value() {
return value;
}
public static Douche fromValue(String v) {
for (Douche c: Douche.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
} | oehf/ipf | commons/ihe/hl7v3model/src/main/java/net/ihe/gazelle/hl7v3/voc/Douche.java |
213,413 | package com.adi.pfe2023.activity;
import android.os.Bundle;
import android.widget.CompoundButton;
import android.widget.Switch;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.adi.pfe2023.R;
import com.adi.pfe2023.model.FirebaseUtils;
import com.adi.pfe2023.objet.ampoule.Ampoule;
import com.adi.pfe2023.objet.ampoule.AmpouleDouche;
import com.adi.pfe2023.objet.meteo.Meteo;
public class Douche extends AppCompatActivity {
private Switch lampe;
private TextView humC,tempC;
Meteo meteo = Meteo.getInstance();
Ampoule A = AmpouleDouche.getInstance();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_douche);
init();
lampe.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
if(b){
A.allumer(A);
}
else{
A.eteindre(A);
}
}
});
}
private void init(){
lampe= findViewById(R.id.switchD);
humC =findViewById(R.id.humD);
tempC=findViewById(R.id.tempD);
FirebaseUtils.getValueFromFirebase(A.getCheminAmpoule(), String.class, new FirebaseUtils.OnValueReceivedListener<String>() {
@Override
public void onValueReceived(String value)
{
if(value.equals("ON")){
lampe.setChecked(true);
}
else {
lampe.setChecked(false);
}
}
});
FirebaseUtils.getValueFromFirebase(meteo.getCheminTemperature(), Long.class, new FirebaseUtils.OnValueReceivedListener<Long>() {
@Override
public void onValueReceived(Long value) {
tempC.setText(value+" C");
}
});
FirebaseUtils.getValueFromFirebase(meteo.getCheminHumidite(), Long.class, new FirebaseUtils.OnValueReceivedListener<Long>() {
@Override
public void onValueReceived(Long value) {
humC.setText(value+" %");
}
});
}
} | AlmoustaphaDjibrilla/pfe_2023 | app/src/main/java/com/adi/pfe2023/activity/Douche.java |
213,414 | /**
* Copyright 2013 Canada Health Infoway, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: $LastChangedBy$
* Last modified: $LastChangedDate$
* Revision: $LastChangedRevision$
*/
/* This class was auto-generated by the message builder generator tools. */
package ca.infoway.messagebuilder.model.ab_mr2009_r02_04_03_imm.domainvalue;
import ca.infoway.messagebuilder.Code;
public interface Douche extends Code {
}
| CanadaHealthInfoway/message-builder | message-builder-hl7v3-release-ab_mr2009_r02_04_03_imm/src/main/java/ca/infoway/messagebuilder/model/ab_mr2009_r02_04_03_imm/domainvalue/Douche.java |
213,415 | package deploy;
import actuator.GRTSolenoid;
import controller.*;
import controller.auto.*;
import core.GRTConstants;
import core.GRTMacroController;
import core.SensorPoller;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Victor;
import event.listeners.ConstantUpdateListener;
import logger.GRTLogger;
import mechanism.*;
import sensor.*;
/**
* Constructor for the main robot. Put all robot components here.
*
* @author ajc
*/
public class MainRobot extends GRTRobot implements ConstantUpdateListener {
//Autonomous mode constants
private static final int AUTO_MODE_3_FRISBEE = 0;
private static final int AUTO_MODE_5_FRISBEE = 1;
private static final int AUTO_MODE_7_FRISBEE = 2;
private static final int AUTO_MODE_DRIVE_CENTER_LEFT = 3;
private static final int AUTO_MODE_5_CENTERLINE_FRISBEE = 4;
private static final int AUTO_MODE_CENTERLINE = 5;
private static final int AUTO_MODE_DOUCHE = 6;
private static final int AUTO_MODE_6_FRISBEE = 7;
private static final int AUTO_MODE_3_CORNER_FRISBEE = 8;
private static final int AUTO_MODE_WING_AUTO = 9;
//Private i-vars.
private GRTDriveTrain dt;
private Belts belts;
private Shooter shooter;
private ExternalPickup ep;
private Climber climber;
private GRTGyro gyro;
private GRTMacroController macroController;
private int autoMode = AUTO_MODE_3_FRISBEE; //Default autonomous mode
/**
* Initializer for the robot. Calls an appropriate initialization function.
*/
public MainRobot() {
System.out.println("Robot being instantiated");
if (GRTConstants.getValue("consoleOutput") == 0.0) {
GRTLogger.disableLogging();
}
double robot = GRTConstants.getValue("robot");
if (robot == 2013.2) {
System.out.println("Starting up 2013 OmegaBot");
omegaInit();
}
}
public void disabled() {
super.disabled();
GRTLogger.logInfo("Disabling robot. Halting drivetrain");
dt.setMotorSpeeds(0.0, 0.0);
shooter.adjustHeight(0);
shooter.setFlywheelOutput(0);
ep.stopRaiser();
ep.stopRoller();
climber.lower();
belts.stop();
}
/**
* Initializer for omega bot.
*/
private void omegaInit() {
SensorPoller sp = new SensorPoller(10); //Thread that polls all sensors every 10ms.
SensorPoller encp = new SensorPoller(50); //Thread that polls encoders less often, to make speed readings more consistent
GRTJoystick leftPrimary = new GRTJoystick(1, "left primary joy");
GRTJoystick rightPrimary = new GRTJoystick(2, "right primary joy");
GRTXboxJoystick secondary = new GRTXboxJoystick(3, "xbox mech joy");
sp.addSensor(leftPrimary);
sp.addSensor(rightPrimary);
sp.addSensor(secondary);
GRTLogger.logInfo("Joysticks initialized");
//Battery Sensor
GRTBatterySensor batterySensor = new GRTBatterySensor("battery");
sp.addSensor(batterySensor);
//Shifter solenoids
GRTSolenoid leftShifter = new GRTSolenoid(getPinID("leftShifter"));
GRTSolenoid rightShifter = new GRTSolenoid(getPinID("rightShifter"));
// PWM outputs
Talon leftDT1 = new Talon(getPinID("leftDT1"));
Talon leftDT2 = new Talon(getPinID("leftDT2"));
Talon rightDT1 = new Talon(getPinID("rightDT1"));
Talon rightDT2 = new Talon(getPinID("rightDT2"));
GRTLogger.logInfo("Motors initialized");
double dtDistancePerPulse = GRTConstants.getValue("DTDistancePerPulse");
//Mechanisms
GRTEncoder leftEnc = new GRTEncoder(getPinID("encoderLeftA"),
getPinID("encoderLeftB"),
dtDistancePerPulse, true, "leftEnc");
GRTEncoder rightEnc = new GRTEncoder(getPinID("encoderRightA"),
getPinID("encoderRightB"),
dtDistancePerPulse, false, "rightEnc");
encp.addSensor(leftEnc);
encp.addSensor(rightEnc);
dt = new GRTDriveTrain(leftDT1, leftDT2, rightDT1, rightDT2,
leftShifter, rightShifter,
leftEnc, rightEnc);
dt.setScaleFactors(
GRTConstants.getValue("leftDT1Scale"),
GRTConstants.getValue("leftDT2Scale"),
GRTConstants.getValue("rightDT1Scale"),
GRTConstants.getValue("rightDT2Scale"));
DriveController dc = new DriveController(dt, leftPrimary, rightPrimary);
addTeleopController(dc);
//Compressor
Compressor compressor = new Compressor(getPinID("compressorSwitch"),
getPinID("compressorRelay"));
compressor.start();
System.out.println("pressure switch=" + compressor.getPressureSwitchValue());
//shooter
Talon shooter1 = new Talon(getPinID("shooter1"));
Talon shooter2 = new Talon(getPinID("shooter2"));
Talon shooterRaiser = new Talon(getPinID("shooterRaiser"));
GRTSolenoid shooterFeeder = new GRTSolenoid(getPinID("shooterFeeder"));
GRTEncoder shooterEncoder = new GRTEncoder(getPinID("shooterEncoderA"),
getPinID("shooterEncoderB"),
GRTConstants.getValue("shooterEncoderPulseDistance"),
"shooterFlywheelEncoder");
Potentiometer shooterPot = new Potentiometer(
getPinID("shooterPotentiometer"),
"shooter potentiometer");
GRTSwitch lowerShooterLimit = new GRTSwitch(
getPinID("shooterLowerLimit"),
true, "lowerShooterLimit");
shooter = new Shooter(shooter1, shooter2, shooterFeeder,
shooterRaiser, shooterEncoder, shooterPot, lowerShooterLimit);
encp.addSensor(shooterEncoder);
sp.addSensor(shooterPot);
//Belts
System.out.println("belts = " + getPinID("belts"));
System.out.println("rollerMotor = " + getPinID("rollerMotor"));
System.out.println("raiserMotor = " + getPinID("raiserMotor"));
Victor beltsMotor = new Victor(getPinID("belts"));
belts = new Belts(beltsMotor);
belts.startPolling();
//PickerUpper
SpeedController rollerMotor = new Victor(getPinID("rollerMotor"));
SpeedController raiserMotor = new Victor(getPinID("raiserMotor"));
GRTSwitch limitUp = new GRTSwitch(getPinID("pickUpUpperLimit"), false, "limitUp");
GRTSwitch limitDown = new GRTSwitch(getPinID("pickUpLowerLimit"), false, "limitDown");
sp.addSensor(limitUp);
sp.addSensor(limitDown);
ep = new ExternalPickup(rollerMotor, raiserMotor, limitUp, limitDown);
//Climber
GRTSolenoid climberSolenoid = new GRTSolenoid(getPinID("climberSolenoid"));
climber = new Climber(climberSolenoid);
System.out.println("Mechs created");
gyro = new GRTGyro(1, "Turning Gyro");
sp.addSensor(gyro);
//Mechcontroller
MechController mechController = new MechController(leftPrimary, rightPrimary, secondary,
shooter, ep, climber, belts, dt, gyro);
addTeleopController(mechController);
//Autonomous initializing
System.out.println("Start macro creation");
defineAutoMacros();
GRTConstants.addListener(this);
sp.startPolling();
encp.startPolling();
}
private int getPinID(String name) {
return (int) GRTConstants.getValue(name);
}
/**
* Lays out definitions of each auto macro routine. Based on the type of
* autonomous mode
*/
private void defineAutoMacros() {
clearAutoControllers();
autoMode = (int) GRTConstants.getValue("autoMode");
GRTLogger.logInfo("Automode num: " + autoMode);
switch (autoMode) {
case AUTO_MODE_3_FRISBEE:
System.out.println("Auto mode: 3 frisbee");
macroController = new ThreeFrisbeeAuto(shooter, dt, gyro);
break;
case AUTO_MODE_5_FRISBEE:
System.out.println("Auto mode: 5 frisbee");
macroController = new FiveFrisbeeAuto(dt, shooter, belts, ep, gyro);
break;
case AUTO_MODE_7_FRISBEE:
System.out.println("Auto mode: 7 frisbee");
macroController = new SevenFrisbeeAuto(shooter, dt, gyro, ep, belts);
break;
case AUTO_MODE_5_CENTERLINE_FRISBEE:
System.out.println("Auto mode: 5 frisbee at centerline");
macroController = new FiveFrisbeeCenterlineAuto(dt, shooter, belts, ep, gyro);
break;
case AUTO_MODE_CENTERLINE:
System.out.println("Auto mode: 7 frisbee at centerline");
macroController = new CenterlineAuto(dt, shooter, belts, ep, gyro);
break;
case AUTO_MODE_DOUCHE:
System.out.println("Auto mode douche. Go fuck yourself.");
macroController = new ScumbagAuto(shooter, dt, gyro);
break;
case AUTO_MODE_6_FRISBEE:
System.out.println("Auto mode: 6 frisbee from front");
macroController = new SixFrisbeeAuto(dt, shooter, belts, ep);
break;
case AUTO_MODE_3_CORNER_FRISBEE:
System.out.println("Auto mode: 3 frisbee from corner");
macroController = new ThreeFrisbeeCornerAuto(shooter, dt, gyro);
break;
case AUTO_MODE_WING_AUTO:
System.out.println("Auto mode: 5 frisbee wing auto");
macroController = new WingAuto(dt, shooter, belts, ep, gyro);
default: //Do nothing
macroController = null;
System.out.println("Auto mode: nothing");
break;
}
if (macroController != null) {
addAutonomousController(macroController);
}
}
public final void updateConstants() {
defineAutoMacros();
}
}
| grt192/2013ultimate-ascent | src/deploy/MainRobot.java |
213,416 | import java.util.Collection;
public class Chambre {
private int idChambre;
private String surface;
private String telephone;
private String etage;
private String nbrePlace;
private boolean douche;
private boolean baignoire;
private boolean fumeur;
private int prix;
private CategorieChambre categorie;
private Collection<DemandeReservation> demandeReservation;
private Collection<Date> tarif;
private Etat etat;
private Collection<Reparation> reparation;
public void setIdChambre(int idChambre) {
}
public int getIdChambre() {
return 0;
}
public void setSurface(String surface) {
}
public String getSurface() {
return null;
}
public void setTelephone(String telephone) {
}
public String getTelephone() {
return null;
}
public void setTelephone(String telephone) {
}
public void setEtage(String etage) {
}
public String getEtage() {
return null;
}
public void setDouche(boolean douche) {
}
public boolean isDouche() {
return false;
}
public void setBaignoire(boolean baignoire) {
}
public boolean isBaignoire() {
return false;
}
public void setFumeur(boolean fumeur) {
}
public boolean isFumeur() {
return false;
}
public void setPrix(int prix) {
}
public int getPrix() {
return 0;
}
}
| tochyvn/Progiciel_gestion_hotel | evol-US/CodeJava/Chambre.java |
213,417 | package model.beans;
import java.util.ArrayList;
import java.util.HashMap;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
//import java.util.Collection;
public class Chambre1 {
private IntegerProperty idChambre;
private StringProperty surface;
private StringProperty telephone;
private StringProperty etage;
private StringProperty nbrePlace;
private BooleanProperty douche;
private BooleanProperty baignoire;
private BooleanProperty fumeur;
private DoubleProperty prix;
private EtatChambre etat;
private CategorieChambre1 categorie;
public static HashMap<Integer , ArrayList<DemandeReservation>> demandes;
public static HashMap<Integer, ArrayList<ConfirmationReservation>> reservations;
/**
*
*/
public Chambre1() {
super();
}
/**
* @param surface
* @param telephone
* @param etage
* @param nbrePlace
* @param douche
* @param baignoire
* @param fumeur
* @param prix
* @param etat
* @param categorie
*/
public Chambre1(String surface, String telephone, String etage, String nbrePlace, Boolean douche, Boolean baignoire,
Boolean fumeur, Double prix) {
super();
this.surface = new SimpleStringProperty(surface);
this.telephone = new SimpleStringProperty(telephone);
this.etage = new SimpleStringProperty(etage);
this.nbrePlace = new SimpleStringProperty(nbrePlace);
this.douche = new SimpleBooleanProperty(douche);
this.baignoire = new SimpleBooleanProperty(baignoire);
this.fumeur = new SimpleBooleanProperty(fumeur);
this.prix = new SimpleDoubleProperty(prix);
this.etat = EtatChambre.LIBRE;
this.idChambre = new SimpleIntegerProperty(new Integer(10));
}
public final IntegerProperty idChambreProperty() {
return this.idChambre;
}
public Integer getIdChambre() {
return this.idChambreProperty().get();
}
public final void setIdChambre(Integer idChambre) {
this.idChambre = new SimpleIntegerProperty(idChambre);
}
public StringProperty surfaceProperty() {
return this.surface;
}
public String getSurface() {
return this.surfaceProperty().get();
}
public void setSurface(String surface) {
this.surface = new SimpleStringProperty(surface);
}
public StringProperty telephoneProperty() {
return this.telephone;
}
public String getTelephone() {
return this.telephoneProperty().get();
}
public void setTelephone(String telephone) {
this.telephone = new SimpleStringProperty(telephone);
}
public StringProperty etageProperty() {
return this.etage;
}
public String getEtage() {
return this.etageProperty().get();
}
public void setEtage(String etage) {
this.etage = new SimpleStringProperty(etage);
}
public StringProperty nbrePlaceProperty() {
return this.nbrePlace;
}
public String getNbrePlace() {
return this.nbrePlaceProperty().get();
}
public void setNbrePlace(String nbrePlace) {
this.nbrePlace = new SimpleStringProperty(nbrePlace);
}
public BooleanProperty doucheProperty() {
return this.douche;
}
public Boolean isDouche() {
return this.doucheProperty().get();
}
public void setDouche(Boolean douche) {
this.doucheProperty().set(douche);
}
public final BooleanProperty baignoireProperty() {
return this.baignoire;
}
public Boolean isBaignoire() {
return this.baignoireProperty().get();
}
public void setBaignoire(Boolean baignoire) {
this.baignoire = new SimpleBooleanProperty(baignoire);
}
public BooleanProperty fumeurProperty() {
return this.fumeur;
}
public boolean isFumeur() {
return this.fumeurProperty().get();
}
public void setFumeur(Boolean fumeur) {
this.fumeur = new SimpleBooleanProperty(fumeur);
}
public DoubleProperty prixProperty() {
return this.prix;
}
public Double getPrix() {
return this.prixProperty().get();
}
public void setPrix(Double prix) {
this.prix = new SimpleDoubleProperty(prix);
}
public EtatChambre getEtat() {
return etat;
}
public void setEtat(EtatChambre etat) {
this.etat = etat;
}
public CategorieChambre1 getCategorie() {
return categorie;
}
public void setCategorie(CategorieChambre1 categorie) {
this.categorie = categorie;
}
}
| clmrosey/gestionhotel | evol-US/src/model/beans/Chambre1.java |
213,418 | 404: Not Found | EgorKulikov/yaal | archive/2018.07/2018.07.18 - CSAcademy Round #84/DouchebagParking.java |
213,419 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.tres.pantsparty;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int add_video_merged=0x7f020000;
public static final int addvideoselected=0x7f020001;
public static final int bg=0x7f020002;
public static final int btnstartpartynormal=0x7f020003;
public static final int btnstartpartyselected=0x7f020004;
public static final int creeper=0x7f020005;
public static final int dashboardicon=0x7f020006;
public static final int dashboarditembackground=0x7f020007;
public static final int douchemodenormal=0x7f020008;
public static final int douchemodeselected=0x7f020009;
public static final int exitnormal=0x7f02000a;
public static final int exitselected=0x7f02000b;
public static final int freak=0x7f02000c;
public static final int ic_action_search=0x7f02000d;
public static final int ic_launcher=0x7f02000e;
public static final int keg=0x7f02000f;
public static final int launcher_icon=0x7f020010;
public static final int launchericon=0x7f020011;
public static final int learnpartynormal=0x7f020012;
public static final int learnpartyselected=0x7f020013;
public static final int pantspartynormal=0x7f020014;
public static final int pantspartyselected=0x7f020015;
public static final int pickup=0x7f020016;
public static final int puke=0x7f020017;
public static final int realultimatepartynormal=0x7f020018;
public static final int realultimatepartyselected=0x7f020019;
public static final int selector_douche_mode=0x7f02001a;
public static final int selector_exit=0x7f02001b;
public static final int selector_learn_party=0x7f02001c;
public static final int selector_pants_party=0x7f02001d;
public static final int selector_real_ultimate_party=0x7f02001e;
public static final int selector_start_party=0x7f02001f;
public static final int splash=0x7f020020;
public static final int sprinkler=0x7f020021;
public static final int startpartynormal=0x7f020022;
public static final int startpartyselected=0x7f020023;
public static final int thumb_1=0x7f020024;
public static final int thumb_2=0x7f020025;
public static final int thumb_3=0x7f020026;
public static final int thumb_4=0x7f020027;
public static final int thumb_5=0x7f020028;
public static final int thumb_6=0x7f020029;
public static final int video_thumb=0x7f02002a;
}
public static final class id {
public static final int VideoTitle=0x7f08001d;
public static final int btnDoucheMode=0x7f080005;
public static final int btnExit=0x7f080001;
public static final int btnLearnToParty=0x7f080004;
public static final int btnPantsParty=0x7f080006;
public static final int btnRealUltimateParty=0x7f080002;
public static final int btnStartParty=0x7f080003;
public static final int camcorder_preview=0x7f080007;
public static final int feature_1=0x7f080008;
public static final int feature_2=0x7f08000b;
public static final int feature_3=0x7f08000e;
public static final int feature_4=0x7f080011;
public static final int feature_5=0x7f080014;
public static final int feature_6=0x7f080017;
public static final int feature_icon_1=0x7f080009;
public static final int feature_icon_2=0x7f08000c;
public static final int feature_icon_3=0x7f08000f;
public static final int feature_icon_4=0x7f080012;
public static final int feature_icon_5=0x7f080015;
public static final int feature_icon_6=0x7f080018;
public static final int feature_name_1=0x7f08000a;
public static final int feature_name_2=0x7f08000d;
public static final int feature_name_3=0x7f080010;
public static final int feature_name_4=0x7f080013;
public static final int feature_name_5=0x7f080016;
public static final int feature_name_6=0x7f080019;
public static final int imageButton1=0x7f08001c;
public static final int menu_settings=0x7f08001f;
public static final int quickContactBadge1=0x7f080000;
public static final int vidDescription=0x7f08001b;
public static final int videoThumb=0x7f08001e;
public static final int videoView1=0x7f08001a;
}
public static final class layout {
public static final int activity_main=0x7f030000;
public static final int camcorder_preview=0x7f030001;
public static final int dashboard=0x7f030002;
public static final int splash=0x7f030003;
public static final int video=0x7f030004;
public static final int video_five_layout=0x7f030005;
public static final int video_four_layout=0x7f030006;
public static final int video_info_generic=0x7f030007;
public static final int video_one_layout=0x7f030008;
public static final int video_six_layout=0x7f030009;
public static final int video_three_layout=0x7f03000a;
public static final int video_two_layout=0x7f03000b;
}
public static final class menu {
public static final int activity_main=0x7f070000;
}
public static final class raw {
public static final int babygotback_clip=0x7f040000;
public static final int block_rockin_beats_clip=0x7f040001;
public static final int dont_you_forget_clip=0x7f040002;
public static final int party_hard_clip=0x7f040003;
public static final int rebel_yell_clip=0x7f040004;
public static final int video1=0x7f040005;
public static final int video2=0x7f040006;
public static final int video3=0x7f040007;
public static final int video4=0x7f040008;
public static final int video5=0x7f040009;
public static final int video6=0x7f04000a;
}
public static final class string {
public static final int DoucheMode=0x7f050006;
public static final int LearnToParty=0x7f050005;
public static final int PantsParty=0x7f05000e;
public static final int RealUltimateParty=0x7f05000d;
public static final int StartParty=0x7f050004;
public static final int app_name=0x7f050000;
public static final int exit=0x7f05000f;
public static final int feature_1=0x7f050009;
public static final int feature_2=0x7f05000a;
public static final int feature_3=0x7f05000b;
public static final int feature_4=0x7f05000c;
public static final int feature_5=0x7f050007;
public static final int feature_6=0x7f050008;
public static final int hello_world=0x7f050001;
public static final int menu_settings=0x7f050002;
public static final int title_activity_main=0x7f050003;
}
public static final class style {
public static final int AppTheme=0x7f060000;
}
}
| sparc-hackathon-2-0/team08 | PantsPartyApp/gen/com/tres/pantsparty/R.java |
213,420 | public class Categorie {
private static int num_categ=0;
private boolean bain, douche, tele;
private int nombre_lits;
private double prix;
public Categorie(boolean bain, boolean douche, boolean tele, int nombre_lits, double prix) {
try {
if (prix <= 0 || nombre_lits <= 0) {
throw new Anomalie(1);
}
num_categ++;
this.bain = bain;
this.douche = douche;
this.tele = tele;
this.nombre_lits = nombre_lits;
this.prix = prix;
} catch (Anomalie e) {
System.out.println(e);
}
}
public double getPrix() {
return prix;
}
public int getNum_categ() {
return num_categ;
}
public void setPrix(double prix) {
try {
if (prix <= 0) {
throw new Anomalie(1);
}
} catch (Anomalie e) {
System.out.println(e);
}
this.prix = prix;
}
public boolean hasBain() {
return bain;
}
public void setBain(boolean bain) {
this.bain = bain;
}
public boolean hasDouche() {
return douche;
}
public void setDouche(boolean douche) {
this.douche = douche;
}
public boolean hasTele() {
return tele;
}
public void setTele(boolean tele) {
this.tele = tele;
}
public int getNombre_lits() {
return nombre_lits;
}
public void setNombre_lits(int nombre_lits) {
try {
if (prix <= 0) {
throw new Anomalie(1);
}
this.nombre_lits = nombre_lits;
} catch (Anomalie e) {
System.out.println(e);
}
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Categorie other = (Categorie) obj;
if (bain != other.bain)
return false;
if (douche != other.douche)
return false;
if (tele != other.tele)
return false;
if (nombre_lits != other.nombre_lits)
return false;
if (prix != other.prix)
return false;
return true;
}
}
| genocem/java_hotels | Categorie.java |
213,423 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ci.projetSociaux.entity;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import org.springframework.format.annotation.DateTimeFormat;
/**
*
* @author hp
*/
@Entity
@Table(name = "rsu_menage_potentiel_view")
@XmlRootElement
@NamedQueries({
@NamedQuery(name = "RsuMenagePotentielView.findAll", query = "SELECT r FROM RsuMenagePotentielView r")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffMenage", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effMenage = :effMenage")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffHomme", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effHomme = :effHomme")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffFemme", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effFemme = :effFemme")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffEnceinte", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effEnceinte = :effEnceinte")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffMineur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effMineur = :effMineur")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffSup", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effSup = :effSup")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffModel1", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effModel1 = :effModel1")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffModel2", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effModel2 = :effModel2")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffModel3", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effModel3 = :effModel3")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffModel4", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effModel4 = :effModel4")
, @NamedQuery(name = "RsuMenagePotentielView.findByEffModel5", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.effModel5 = :effModel5")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodRegion", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codRegion = :codRegion")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomRegion", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomRegion = :nomRegion")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodDepartement", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codDepartement = :codDepartement")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomDepartement", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomDepartement = :nomDepartement")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodSPref", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codSPref = :codSPref")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomSPref", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomSPref = :nomSPref")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLocalite", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLocalite = :codLocalite")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomLocalite", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomLocalite = :nomLocalite")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodMenage", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codMenage = :codMenage")
, @NamedQuery(name = "RsuMenagePotentielView.findByIdChefMenage", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.idChefMenage = :idChefMenage")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomChefMenage", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomChefMenage = :nomChefMenage")
, @NamedQuery(name = "RsuMenagePotentielView.findByTelChefMenage", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.telChefMenage = :telChefMenage")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogMur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogMur = :codLogMur")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogMur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogMur = :libelleLogMur")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodAgCol", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codAgCol = :codAgCol")
, @NamedQuery(name = "RsuMenagePotentielView.findByNomAgCol", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.nomAgCol = :nomAgCol")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogOrdure", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogOrdure = :codLogOrdure")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogOrdure", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogOrdure = :libelleLogOrdure")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogSol", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogSol = :codLogSol")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogSol", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogSol = :libelleLogSol")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogEau", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogEau = :codLogEau")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogEau", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogEau = :libelleLogEau")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogDouche", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogDouche = :codLogDouche")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogDouche", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogDouche = :libelleLogDouche")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogToilette", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogToilette = :codLogToilette")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogToilette", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogToilette = :libelleLogToilette")
, @NamedQuery(name = "RsuMenagePotentielView.findByCodLogToit", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.codLogToit = :codLogToit")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibelleLogToit", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libelleLogToit = :libelleLogToit")
, @NamedQuery(name = "RsuMenagePotentielView.findByDateHeurDebut", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.dateHeurDebut = :dateHeurDebut")
, @NamedQuery(name = "RsuMenagePotentielView.findByDateHeurFin", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.dateHeurFin = :dateHeurFin")
, @NamedQuery(name = "RsuMenagePotentielView.findByNumAppareil", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.numAppareil = :numAppareil")
, @NamedQuery(name = "RsuMenagePotentielView.findByIduser", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.iduser = :iduser")
, @NamedQuery(name = "RsuMenagePotentielView.findByIdsim", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.idsim = :idsim")
, @NamedQuery(name = "RsuMenagePotentielView.findByNumeroTelephone", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.numeroTelephone = :numeroTelephone")
, @NamedQuery(name = "RsuMenagePotentielView.findByVillageQuartier", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.villageQuartier = :villageQuartier")
, @NamedQuery(name = "RsuMenagePotentielView.findByIlot", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.ilot = :ilot")
, @NamedQuery(name = "RsuMenagePotentielView.findByBatiment", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.batiment = :batiment")
, @NamedQuery(name = "RsuMenagePotentielView.findByLogement", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.logement = :logement")
, @NamedQuery(name = "RsuMenagePotentielView.findByGpsLatitude", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.gpsLatitude = :gpsLatitude")
, @NamedQuery(name = "RsuMenagePotentielView.findByGpsLongitude", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.gpsLongitude = :gpsLongitude")
, @NamedQuery(name = "RsuMenagePotentielView.findByGpsAltitude", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.gpsAltitude = :gpsAltitude")
, @NamedQuery(name = "RsuMenagePotentielView.findByGpsAccuracy", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.gpsAccuracy = :gpsAccuracy")
, @NamedQuery(name = "RsuMenagePotentielView.findByLTabouret", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.lTabouret = :lTabouret")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibLTabouret", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libLTabouret = :libLTabouret")
, @NamedQuery(name = "RsuMenagePotentielView.findByLTable", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.lTable = :lTable")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibLlTable", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libLlTable = :libLlTable")
, @NamedQuery(name = "RsuMenagePotentielView.findByLFauteuil", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.lFauteuil = :lFauteuil")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibLFauteuil", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libLFauteuil = :libLFauteuil")
, @NamedQuery(name = "RsuMenagePotentielView.findByAPortable", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aPortable = :aPortable")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAPortable", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAPortable = :libAPortable")
, @NamedQuery(name = "RsuMenagePotentielView.findByATv", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aTv = :aTv")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibATv", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libATv = :libATv")
, @NamedQuery(name = "RsuMenagePotentielView.findByARadio", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aRadio = :aRadio")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibARadio", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libARadio = :libARadio")
, @NamedQuery(name = "RsuMenagePotentielView.findByAOrdinateur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aOrdinateur = :aOrdinateur")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAOrdinateur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAOrdinateur = :libAOrdinateur")
, @NamedQuery(name = "RsuMenagePotentielView.findByACuisiniere", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aCuisiniere = :aCuisiniere")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibACuisiniere", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libACuisiniere = :libACuisiniere")
, @NamedQuery(name = "RsuMenagePotentielView.findByAAntenneParabolique", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aAntenneParabolique = :aAntenneParabolique")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAAntenneParabolique", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAAntenneParabolique = :libAAntenneParabolique")
, @NamedQuery(name = "RsuMenagePotentielView.findByAAppPhotoNum", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aAppPhotoNum = :aAppPhotoNum")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAAppPhotoNum", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAAppPhotoNum = :libAAppPhotoNum")
, @NamedQuery(name = "RsuMenagePotentielView.findByAVoiture", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aVoiture = :aVoiture")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAVoiture", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAVoiture = :libAVoiture")
, @NamedQuery(name = "RsuMenagePotentielView.findByAVelomoteur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aVelomoteur = :aVelomoteur")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAVelomoteur", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAVelomoteur = :libAVelomoteur")
, @NamedQuery(name = "RsuMenagePotentielView.findByABrouette", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aBrouette = :aBrouette")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibABrouette", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libABrouette = :libABrouette")
, @NamedQuery(name = "RsuMenagePotentielView.findByABateauDePeche", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aBateauDePeche = :aBateauDePeche")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibABateauDePeche", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libABateauDePeche = :libABateauDePeche")
, @NamedQuery(name = "RsuMenagePotentielView.findByAFerARepasser", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aFerARepasser = :aFerARepasser")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAFerARepasser", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAFerARepasser = :libAFerARepasser")
, @NamedQuery(name = "RsuMenagePotentielView.findByASalonOrdinaire", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aSalonOrdinaire = :aSalonOrdinaire")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibASalonOrdinaire", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libASalonOrdinaire = :libASalonOrdinaire")
, @NamedQuery(name = "RsuMenagePotentielView.findByAChaiseAutre", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aChaiseAutre = :aChaiseAutre")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAChaiseAutre", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAChaiseAutre = :libAChaiseAutre")
, @NamedQuery(name = "RsuMenagePotentielView.findByALit", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aLit = :aLit")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibALit", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libALit = :libALit")
, @NamedQuery(name = "RsuMenagePotentielView.findByADrapEtCouverture", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aDrapEtCouverture = :aDrapEtCouverture")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibADrapEtCouverture", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libADrapEtCouverture = :libADrapEtCouverture")
, @NamedQuery(name = "RsuMenagePotentielView.findByANatte", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aNatte = :aNatte")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibANatte", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libANatte = :libANatte")
, @NamedQuery(name = "RsuMenagePotentielView.findByASceau", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aSceau = :aSceau")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibASceau", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libASceau = :libASceau")
, @NamedQuery(name = "RsuMenagePotentielView.findByAPilonEtMortier", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aPilonEtMortier = :aPilonEtMortier")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAPilonEtMortier", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAPilonEtMortier = :libAPilonEtMortier")
, @NamedQuery(name = "RsuMenagePotentielView.findByAMoto", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.aMoto = :aMoto")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAMoto", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAMoto = :libAMoto")
, @NamedQuery(name = "RsuMenagePotentielView.findByLogemementChambres", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.logemementChambres = :logemementChambres")
, @NamedQuery(name = "RsuMenagePotentielView.findByMilieuResidence", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.milieuResidence = :milieuResidence")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibMilieuResidence", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libMilieuResidence = :libMilieuResidence")
, @NamedQuery(name = "RsuMenagePotentielView.findByAppelTelephonique", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.appelTelephonique = :appelTelephonique")
, @NamedQuery(name = "RsuMenagePotentielView.findByLibAppelTelephonique", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.libAppelTelephonique = :libAppelTelephonique")
, @NamedQuery(name = "RsuMenagePotentielView.findByDistanceHopital", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.distanceHopital = :distanceHopital")
, @NamedQuery(name = "RsuMenagePotentielView.findByInstanceId", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.instanceId = :instanceId")
, @NamedQuery(name = "RsuMenagePotentielView.findByInstancename", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.instancename = :instancename")
, @NamedQuery(name = "RsuMenagePotentielView.findByCreerPar", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.creerPar = :creerPar")
, @NamedQuery(name = "RsuMenagePotentielView.findByCreerLe", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.creerLe = :creerLe")
, @NamedQuery(name = "RsuMenagePotentielView.findByModifierPar", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.modifierPar = :modifierPar")
, @NamedQuery(name = "RsuMenagePotentielView.findByModifierLe", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.modifierLe = :modifierLe")
, @NamedQuery(name = "RsuMenagePotentielView.findByPmtScore", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.pmtScore = :pmtScore")
, @NamedQuery(name = "RsuMenagePotentielView.findByDateCreation", query = "SELECT r FROM RsuMenagePotentielView r WHERE r.dateCreation = :dateCreation")})
public class RsuMenagePotentielView implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "eff_menage")
private BigInteger effMenage;
@Column(name = "eff_homme")
private BigInteger effHomme;
@Column(name = "eff_femme")
private BigInteger effFemme;
@Column(name = "eff_enceinte")
private BigInteger effEnceinte;
@Column(name = "eff_mineur")
private BigInteger effMineur;
@Column(name = "eff_sup")
private BigInteger effSup;
@Column(name = "eff_model1")
private Double effModel1;
@Column(name = "eff_model2")
private Double effModel2;
@Column(name = "eff_model3")
private Double effModel3;
@Column(name = "eff_model4")
private Double effModel4;
@Column(name = "eff_model5")
private Double effModel5;
@Size(max = 10)
@Column(name = "cod_region")
private String codRegion;
@Size(max = 100)
@Column(name = "nom_region")
private String nomRegion;
@Size(max = 10)
@Column(name = "cod_departement")
private String codDepartement;
@Size(max = 100)
@Column(name = "nom_departement")
private String nomDepartement;
@Size(max = 10)
@Column(name = "cod_s_pref")
private String codSPref;
@Size(max = 100)
@Column(name = "nom_s_pref")
private String nomSPref;
@Size(max = 10)
@Column(name = "cod_localite")
private String codLocalite;
@Size(max = 100)
@Column(name = "nom_localite")
private String nomLocalite;
@Id
@Size(max = 30)
@Column(name = "cod_menage")
private String codMenage;
@Size(max = 50)
@Column(name = "id_chef_menage")
private String idChefMenage;
@Size(max = 2147483647)
@Column(name = "nom_chef_menage")
private String nomChefMenage;
@Size(max = 2147483647)
@Column(name = "tel_chef_menage")
private String telChefMenage;
@Size(max = 10)
@Column(name = "cod_log_mur")
private String codLogMur;
@Size(max = 2147483647)
@Column(name = "libelle_log_mur")
private String libelleLogMur;
@Size(max = 10)
@Column(name = "cod_ag_col")
private String codAgCol;
@Size(max = 2147483647)
@Column(name = "nom_ag_col")
private String nomAgCol;
@Size(max = 10)
@Column(name = "cod_log_ordure")
private String codLogOrdure;
@Size(max = 2147483647)
@Column(name = "libelle_log_ordure")
private String libelleLogOrdure;
@Size(max = 10)
@Column(name = "cod_log_sol")
private String codLogSol;
@Size(max = 2147483647)
@Column(name = "libelle_log_sol")
private String libelleLogSol;
@Size(max = 10)
@Column(name = "cod_log_eau")
private String codLogEau;
@Size(max = 2147483647)
@Column(name = "libelle_log_eau")
private String libelleLogEau;
@Size(max = 10)
@Column(name = "cod_log_douche")
private String codLogDouche;
@Size(max = 2147483647)
@Column(name = "libelle_log_douche")
private String libelleLogDouche;
@Size(max = 10)
@Column(name = "cod_log_toilette")
private String codLogToilette;
@Size(max = 2147483647)
@Column(name = "libelle_log_toilette")
private String libelleLogToilette;
@Size(max = 10)
@Column(name = "cod_log_toit")
private String codLogToit;
@Size(max = 2147483647)
@Column(name = "libelle_log_toit")
private String libelleLogToit;
@Size(max = 2147483647)
@Column(name = "date_heur_debut")
private String dateHeurDebut;
@Size(max = 2147483647)
@Column(name = "date_heur_fin")
private String dateHeurFin;
@Size(max = 50)
@Column(name = "num_appareil")
private String numAppareil;
@Size(max = 50)
@Column(name = "iduser")
private String iduser;
@Size(max = 50)
@Column(name = "idsim")
private String idsim;
@Size(max = 25)
@Column(name = "numero_telephone")
private String numeroTelephone;
@Size(max = 200)
@Column(name = "village_quartier")
private String villageQuartier;
@Size(max = 5)
@Column(name = "ilot")
private String ilot;
@Size(max = 10)
@Column(name = "batiment")
private String batiment;
@Size(max = 5)
@Column(name = "logement")
private String logement;
@Size(max = 20)
@Column(name = "gps_latitude")
private String gpsLatitude;
@Size(max = 20)
@Column(name = "gps_longitude")
private String gpsLongitude;
@Size(max = 20)
@Column(name = "gps_altitude")
private String gpsAltitude;
@Size(max = 20)
@Column(name = "gps_accuracy")
private String gpsAccuracy;
@Size(max = 5)
@Column(name = "l_tabouret")
private String lTabouret;
@Size(max = 2147483647)
@Column(name = "lib_l_tabouret")
private String libLTabouret;
@Size(max = 5)
@Column(name = "l_table")
private String lTable;
@Size(max = 2147483647)
@Column(name = "lib_ll_table")
private String libLlTable;
@Size(max = 5)
@Column(name = "l_fauteuil")
private String lFauteuil;
@Size(max = 2147483647)
@Column(name = "lib_l_fauteuil")
private String libLFauteuil;
@Size(max = 5)
@Column(name = "a_portable")
private String aPortable;
@Size(max = 2147483647)
@Column(name = "lib_a_portable")
private String libAPortable;
@Size(max = 5)
@Column(name = "a_tv")
private String aTv;
@Size(max = 2147483647)
@Column(name = "lib_a_tv")
private String libATv;
@Size(max = 5)
@Column(name = "a_radio")
private String aRadio;
@Size(max = 2147483647)
@Column(name = "lib_a_radio")
private String libARadio;
@Size(max = 5)
@Column(name = "a_ordinateur")
private String aOrdinateur;
@Size(max = 2147483647)
@Column(name = "lib_a_ordinateur")
private String libAOrdinateur;
@Size(max = 5)
@Column(name = "a_cuisiniere")
private String aCuisiniere;
@Size(max = 2147483647)
@Column(name = "lib_a_cuisiniere")
private String libACuisiniere;
@Size(max = 5)
@Column(name = "a_antenne_parabolique")
private String aAntenneParabolique;
@Size(max = 2147483647)
@Column(name = "lib_a_antenne_parabolique")
private String libAAntenneParabolique;
@Size(max = 5)
@Column(name = "a_app_photo_num")
private String aAppPhotoNum;
@Size(max = 2147483647)
@Column(name = "lib_a_app_photo_num")
private String libAAppPhotoNum;
@Size(max = 5)
@Column(name = "a_voiture")
private String aVoiture;
@Size(max = 2147483647)
@Column(name = "lib_a_voiture")
private String libAVoiture;
@Size(max = 5)
@Column(name = "a_velomoteur")
private String aVelomoteur;
@Size(max = 2147483647)
@Column(name = "lib_a_velomoteur")
private String libAVelomoteur;
@Size(max = 5)
@Column(name = "a_brouette")
private String aBrouette;
@Size(max = 2147483647)
@Column(name = "lib_a_brouette")
private String libABrouette;
@Size(max = 5)
@Column(name = "a_bateau_de_peche")
private String aBateauDePeche;
@Size(max = 2147483647)
@Column(name = "lib_a_bateau_de_peche")
private String libABateauDePeche;
@Size(max = 5)
@Column(name = "a_fer_a_repasser")
private String aFerARepasser;
@Size(max = 2147483647)
@Column(name = "lib_a_fer_a_repasser")
private String libAFerARepasser;
@Size(max = 5)
@Column(name = "a_salon_ordinaire")
private String aSalonOrdinaire;
@Size(max = 2147483647)
@Column(name = "lib_a_salon_ordinaire")
private String libASalonOrdinaire;
@Size(max = 5)
@Column(name = "a_chaise_autre")
private String aChaiseAutre;
@Size(max = 2147483647)
@Column(name = "lib_a_chaise_autre")
private String libAChaiseAutre;
@Size(max = 5)
@Column(name = "a_lit")
private String aLit;
@Size(max = 2147483647)
@Column(name = "lib_a_lit")
private String libALit;
@Size(max = 5)
@Column(name = "a_drap_et_couverture")
private String aDrapEtCouverture;
@Size(max = 2147483647)
@Column(name = "lib_a_drap_et_couverture")
private String libADrapEtCouverture;
@Size(max = 5)
@Column(name = "a_natte")
private String aNatte;
@Size(max = 2147483647)
@Column(name = "lib_a_natte")
private String libANatte;
@Size(max = 5)
@Column(name = "a_sceau")
private String aSceau;
@Size(max = 2147483647)
@Column(name = "lib_a_sceau")
private String libASceau;
@Size(max = 5)
@Column(name = "a_pilon_et_mortier")
private String aPilonEtMortier;
@Size(max = 2147483647)
@Column(name = "lib_a_pilon_et_mortier")
private String libAPilonEtMortier;
@Size(max = 5)
@Column(name = "a_moto")
private String aMoto;
@Size(max = 2147483647)
@Column(name = "lib_a_moto")
private String libAMoto;
@Size(max = 5)
@Column(name = "logemement_chambres")
private String logemementChambres;
@Size(max = 5)
@Column(name = "milieu_residence")
private String milieuResidence;
@Size(max = 2147483647)
@Column(name = "lib_milieu_residence")
private String libMilieuResidence;
@Size(max = 5)
@Column(name = "appel_telephonique")
private String appelTelephonique;
@Size(max = 2147483647)
@Column(name = "lib_appel_telephonique")
private String libAppelTelephonique;
@Size(max = 5)
@Column(name = "distance_hopital")
private String distanceHopital;
@Size(max = 255)
@Column(name = "instance_id")
private String instanceId;
@Size(max = 25)
@Column(name = "instancename")
private String instancename;
@Size(max = 100)
@Column(name = "creer_par")
private String creerPar;
@Size(max = 2147483647)
@Column(name = "creer_le")
private String creerLe;
@Size(max = 100)
@Column(name = "modifier_par")
private String modifierPar;
@Size(max = 2147483647)
@Column(name = "modifier_le")
private String modifierLe;
@Column(name = "pmt_score")
private Double pmtScore;
@DateTimeFormat(pattern = "dd-mm-yyyy" )
@Column(name = "date_creation")
@Temporal(TemporalType.DATE)
private Date dateCreation;
public RsuMenagePotentielView() {
}
public BigInteger getEffMenage() {
return effMenage;
}
public void setEffMenage(BigInteger effMenage) {
this.effMenage = effMenage;
}
public BigInteger getEffHomme() {
return effHomme;
}
public void setEffHomme(BigInteger effHomme) {
this.effHomme = effHomme;
}
public BigInteger getEffFemme() {
return effFemme;
}
public void setEffFemme(BigInteger effFemme) {
this.effFemme = effFemme;
}
public BigInteger getEffEnceinte() {
return effEnceinte;
}
public void setEffEnceinte(BigInteger effEnceinte) {
this.effEnceinte = effEnceinte;
}
public BigInteger getEffMineur() {
return effMineur;
}
public void setEffMineur(BigInteger effMineur) {
this.effMineur = effMineur;
}
public BigInteger getEffSup() {
return effSup;
}
public void setEffSup(BigInteger effSup) {
this.effSup = effSup;
}
public Double getEffModel1() {
return effModel1;
}
public void setEffModel1(Double effModel1) {
this.effModel1 = effModel1;
}
public Double getEffModel2() {
return effModel2;
}
public void setEffModel2(Double effModel2) {
this.effModel2 = effModel2;
}
public Double getEffModel3() {
return effModel3;
}
public void setEffModel3(Double effModel3) {
this.effModel3 = effModel3;
}
public Double getEffModel4() {
return effModel4;
}
public void setEffModel4(Double effModel4) {
this.effModel4 = effModel4;
}
public Double getEffModel5() {
return effModel5;
}
public void setEffModel5(Double effModel5) {
this.effModel5 = effModel5;
}
public String getCodRegion() {
return codRegion;
}
public void setCodRegion(String codRegion) {
this.codRegion = codRegion;
}
public String getNomRegion() {
return nomRegion;
}
public void setNomRegion(String nomRegion) {
this.nomRegion = nomRegion;
}
public String getCodDepartement() {
return codDepartement;
}
public void setCodDepartement(String codDepartement) {
this.codDepartement = codDepartement;
}
public String getNomDepartement() {
return nomDepartement;
}
public void setNomDepartement(String nomDepartement) {
this.nomDepartement = nomDepartement;
}
public String getCodSPref() {
return codSPref;
}
public void setCodSPref(String codSPref) {
this.codSPref = codSPref;
}
public String getNomSPref() {
return nomSPref;
}
public void setNomSPref(String nomSPref) {
this.nomSPref = nomSPref;
}
public String getCodLocalite() {
return codLocalite;
}
public void setCodLocalite(String codLocalite) {
this.codLocalite = codLocalite;
}
public String getNomLocalite() {
return nomLocalite;
}
public void setNomLocalite(String nomLocalite) {
this.nomLocalite = nomLocalite;
}
public String getCodMenage() {
return codMenage;
}
public void setCodMenage(String codMenage) {
this.codMenage = codMenage;
}
public String getIdChefMenage() {
return idChefMenage;
}
public void setIdChefMenage(String idChefMenage) {
this.idChefMenage = idChefMenage;
}
public String getNomChefMenage() {
return nomChefMenage;
}
public void setNomChefMenage(String nomChefMenage) {
this.nomChefMenage = nomChefMenage;
}
public String getTelChefMenage() {
return telChefMenage;
}
public void setTelChefMenage(String telChefMenage) {
this.telChefMenage = telChefMenage;
}
public String getCodLogMur() {
return codLogMur;
}
public void setCodLogMur(String codLogMur) {
this.codLogMur = codLogMur;
}
public String getLibelleLogMur() {
return libelleLogMur;
}
public void setLibelleLogMur(String libelleLogMur) {
this.libelleLogMur = libelleLogMur;
}
public String getCodAgCol() {
return codAgCol;
}
public void setCodAgCol(String codAgCol) {
this.codAgCol = codAgCol;
}
public String getNomAgCol() {
return nomAgCol;
}
public void setNomAgCol(String nomAgCol) {
this.nomAgCol = nomAgCol;
}
public String getCodLogOrdure() {
return codLogOrdure;
}
public void setCodLogOrdure(String codLogOrdure) {
this.codLogOrdure = codLogOrdure;
}
public String getLibelleLogOrdure() {
return libelleLogOrdure;
}
public void setLibelleLogOrdure(String libelleLogOrdure) {
this.libelleLogOrdure = libelleLogOrdure;
}
public String getCodLogSol() {
return codLogSol;
}
public void setCodLogSol(String codLogSol) {
this.codLogSol = codLogSol;
}
public String getLibelleLogSol() {
return libelleLogSol;
}
public void setLibelleLogSol(String libelleLogSol) {
this.libelleLogSol = libelleLogSol;
}
public String getCodLogEau() {
return codLogEau;
}
public void setCodLogEau(String codLogEau) {
this.codLogEau = codLogEau;
}
public String getLibelleLogEau() {
return libelleLogEau;
}
public void setLibelleLogEau(String libelleLogEau) {
this.libelleLogEau = libelleLogEau;
}
public String getCodLogDouche() {
return codLogDouche;
}
public void setCodLogDouche(String codLogDouche) {
this.codLogDouche = codLogDouche;
}
public String getLibelleLogDouche() {
return libelleLogDouche;
}
public void setLibelleLogDouche(String libelleLogDouche) {
this.libelleLogDouche = libelleLogDouche;
}
public String getCodLogToilette() {
return codLogToilette;
}
public void setCodLogToilette(String codLogToilette) {
this.codLogToilette = codLogToilette;
}
public String getLibelleLogToilette() {
return libelleLogToilette;
}
public void setLibelleLogToilette(String libelleLogToilette) {
this.libelleLogToilette = libelleLogToilette;
}
public String getCodLogToit() {
return codLogToit;
}
public void setCodLogToit(String codLogToit) {
this.codLogToit = codLogToit;
}
public String getLibelleLogToit() {
return libelleLogToit;
}
public void setLibelleLogToit(String libelleLogToit) {
this.libelleLogToit = libelleLogToit;
}
public String getDateHeurDebut() {
return dateHeurDebut;
}
public void setDateHeurDebut(String dateHeurDebut) {
this.dateHeurDebut = dateHeurDebut;
}
public String getDateHeurFin() {
return dateHeurFin;
}
public void setDateHeurFin(String dateHeurFin) {
this.dateHeurFin = dateHeurFin;
}
public String getNumAppareil() {
return numAppareil;
}
public void setNumAppareil(String numAppareil) {
this.numAppareil = numAppareil;
}
public String getIduser() {
return iduser;
}
public void setIduser(String iduser) {
this.iduser = iduser;
}
public String getIdsim() {
return idsim;
}
public void setIdsim(String idsim) {
this.idsim = idsim;
}
public String getNumeroTelephone() {
return numeroTelephone;
}
public void setNumeroTelephone(String numeroTelephone) {
this.numeroTelephone = numeroTelephone;
}
public String getVillageQuartier() {
return villageQuartier;
}
public void setVillageQuartier(String villageQuartier) {
this.villageQuartier = villageQuartier;
}
public String getIlot() {
return ilot;
}
public void setIlot(String ilot) {
this.ilot = ilot;
}
public String getBatiment() {
return batiment;
}
public void setBatiment(String batiment) {
this.batiment = batiment;
}
public String getLogement() {
return logement;
}
public void setLogement(String logement) {
this.logement = logement;
}
public String getGpsLatitude() {
return gpsLatitude;
}
public void setGpsLatitude(String gpsLatitude) {
this.gpsLatitude = gpsLatitude;
}
public String getGpsLongitude() {
return gpsLongitude;
}
public void setGpsLongitude(String gpsLongitude) {
this.gpsLongitude = gpsLongitude;
}
public String getGpsAltitude() {
return gpsAltitude;
}
public void setGpsAltitude(String gpsAltitude) {
this.gpsAltitude = gpsAltitude;
}
public String getGpsAccuracy() {
return gpsAccuracy;
}
public void setGpsAccuracy(String gpsAccuracy) {
this.gpsAccuracy = gpsAccuracy;
}
public String getLTabouret() {
return lTabouret;
}
public void setLTabouret(String lTabouret) {
this.lTabouret = lTabouret;
}
public String getLibLTabouret() {
return libLTabouret;
}
public void setLibLTabouret(String libLTabouret) {
this.libLTabouret = libLTabouret;
}
public String getLTable() {
return lTable;
}
public void setLTable(String lTable) {
this.lTable = lTable;
}
public String getLibLlTable() {
return libLlTable;
}
public void setLibLlTable(String libLlTable) {
this.libLlTable = libLlTable;
}
public String getLFauteuil() {
return lFauteuil;
}
public void setLFauteuil(String lFauteuil) {
this.lFauteuil = lFauteuil;
}
public String getLibLFauteuil() {
return libLFauteuil;
}
public void setLibLFauteuil(String libLFauteuil) {
this.libLFauteuil = libLFauteuil;
}
public String getAPortable() {
return aPortable;
}
public void setAPortable(String aPortable) {
this.aPortable = aPortable;
}
public String getLibAPortable() {
return libAPortable;
}
public void setLibAPortable(String libAPortable) {
this.libAPortable = libAPortable;
}
public String getATv() {
return aTv;
}
public void setATv(String aTv) {
this.aTv = aTv;
}
public String getLibATv() {
return libATv;
}
public void setLibATv(String libATv) {
this.libATv = libATv;
}
public String getARadio() {
return aRadio;
}
public void setARadio(String aRadio) {
this.aRadio = aRadio;
}
public String getLibARadio() {
return libARadio;
}
public void setLibARadio(String libARadio) {
this.libARadio = libARadio;
}
public String getAOrdinateur() {
return aOrdinateur;
}
public void setAOrdinateur(String aOrdinateur) {
this.aOrdinateur = aOrdinateur;
}
public String getLibAOrdinateur() {
return libAOrdinateur;
}
public void setLibAOrdinateur(String libAOrdinateur) {
this.libAOrdinateur = libAOrdinateur;
}
public String getACuisiniere() {
return aCuisiniere;
}
public void setACuisiniere(String aCuisiniere) {
this.aCuisiniere = aCuisiniere;
}
public String getLibACuisiniere() {
return libACuisiniere;
}
public void setLibACuisiniere(String libACuisiniere) {
this.libACuisiniere = libACuisiniere;
}
public String getAAntenneParabolique() {
return aAntenneParabolique;
}
public void setAAntenneParabolique(String aAntenneParabolique) {
this.aAntenneParabolique = aAntenneParabolique;
}
public String getLibAAntenneParabolique() {
return libAAntenneParabolique;
}
public void setLibAAntenneParabolique(String libAAntenneParabolique) {
this.libAAntenneParabolique = libAAntenneParabolique;
}
public String getAAppPhotoNum() {
return aAppPhotoNum;
}
public void setAAppPhotoNum(String aAppPhotoNum) {
this.aAppPhotoNum = aAppPhotoNum;
}
public String getLibAAppPhotoNum() {
return libAAppPhotoNum;
}
public void setLibAAppPhotoNum(String libAAppPhotoNum) {
this.libAAppPhotoNum = libAAppPhotoNum;
}
public String getAVoiture() {
return aVoiture;
}
public void setAVoiture(String aVoiture) {
this.aVoiture = aVoiture;
}
public String getLibAVoiture() {
return libAVoiture;
}
public void setLibAVoiture(String libAVoiture) {
this.libAVoiture = libAVoiture;
}
public String getAVelomoteur() {
return aVelomoteur;
}
public void setAVelomoteur(String aVelomoteur) {
this.aVelomoteur = aVelomoteur;
}
public String getLibAVelomoteur() {
return libAVelomoteur;
}
public void setLibAVelomoteur(String libAVelomoteur) {
this.libAVelomoteur = libAVelomoteur;
}
public String getABrouette() {
return aBrouette;
}
public void setABrouette(String aBrouette) {
this.aBrouette = aBrouette;
}
public String getLibABrouette() {
return libABrouette;
}
public void setLibABrouette(String libABrouette) {
this.libABrouette = libABrouette;
}
public String getABateauDePeche() {
return aBateauDePeche;
}
public void setABateauDePeche(String aBateauDePeche) {
this.aBateauDePeche = aBateauDePeche;
}
public String getLibABateauDePeche() {
return libABateauDePeche;
}
public void setLibABateauDePeche(String libABateauDePeche) {
this.libABateauDePeche = libABateauDePeche;
}
public String getAFerARepasser() {
return aFerARepasser;
}
public void setAFerARepasser(String aFerARepasser) {
this.aFerARepasser = aFerARepasser;
}
public String getLibAFerARepasser() {
return libAFerARepasser;
}
public void setLibAFerARepasser(String libAFerARepasser) {
this.libAFerARepasser = libAFerARepasser;
}
public String getASalonOrdinaire() {
return aSalonOrdinaire;
}
public void setASalonOrdinaire(String aSalonOrdinaire) {
this.aSalonOrdinaire = aSalonOrdinaire;
}
public String getLibASalonOrdinaire() {
return libASalonOrdinaire;
}
public void setLibASalonOrdinaire(String libASalonOrdinaire) {
this.libASalonOrdinaire = libASalonOrdinaire;
}
public String getAChaiseAutre() {
return aChaiseAutre;
}
public void setAChaiseAutre(String aChaiseAutre) {
this.aChaiseAutre = aChaiseAutre;
}
public String getLibAChaiseAutre() {
return libAChaiseAutre;
}
public void setLibAChaiseAutre(String libAChaiseAutre) {
this.libAChaiseAutre = libAChaiseAutre;
}
public String getALit() {
return aLit;
}
public void setALit(String aLit) {
this.aLit = aLit;
}
public String getLibALit() {
return libALit;
}
public void setLibALit(String libALit) {
this.libALit = libALit;
}
public String getADrapEtCouverture() {
return aDrapEtCouverture;
}
public void setADrapEtCouverture(String aDrapEtCouverture) {
this.aDrapEtCouverture = aDrapEtCouverture;
}
public String getLibADrapEtCouverture() {
return libADrapEtCouverture;
}
public void setLibADrapEtCouverture(String libADrapEtCouverture) {
this.libADrapEtCouverture = libADrapEtCouverture;
}
public String getANatte() {
return aNatte;
}
public void setANatte(String aNatte) {
this.aNatte = aNatte;
}
public String getLibANatte() {
return libANatte;
}
public void setLibANatte(String libANatte) {
this.libANatte = libANatte;
}
public String getASceau() {
return aSceau;
}
public void setASceau(String aSceau) {
this.aSceau = aSceau;
}
public String getLibASceau() {
return libASceau;
}
public void setLibASceau(String libASceau) {
this.libASceau = libASceau;
}
public String getAPilonEtMortier() {
return aPilonEtMortier;
}
public void setAPilonEtMortier(String aPilonEtMortier) {
this.aPilonEtMortier = aPilonEtMortier;
}
public String getLibAPilonEtMortier() {
return libAPilonEtMortier;
}
public void setLibAPilonEtMortier(String libAPilonEtMortier) {
this.libAPilonEtMortier = libAPilonEtMortier;
}
public String getAMoto() {
return aMoto;
}
public void setAMoto(String aMoto) {
this.aMoto = aMoto;
}
public String getLibAMoto() {
return libAMoto;
}
public void setLibAMoto(String libAMoto) {
this.libAMoto = libAMoto;
}
public String getLogemementChambres() {
return logemementChambres;
}
public void setLogemementChambres(String logemementChambres) {
this.logemementChambres = logemementChambres;
}
public String getMilieuResidence() {
return milieuResidence;
}
public void setMilieuResidence(String milieuResidence) {
this.milieuResidence = milieuResidence;
}
public String getLibMilieuResidence() {
return libMilieuResidence;
}
public void setLibMilieuResidence(String libMilieuResidence) {
this.libMilieuResidence = libMilieuResidence;
}
public String getAppelTelephonique() {
return appelTelephonique;
}
public void setAppelTelephonique(String appelTelephonique) {
this.appelTelephonique = appelTelephonique;
}
public String getLibAppelTelephonique() {
return libAppelTelephonique;
}
public void setLibAppelTelephonique(String libAppelTelephonique) {
this.libAppelTelephonique = libAppelTelephonique;
}
public String getDistanceHopital() {
return distanceHopital;
}
public void setDistanceHopital(String distanceHopital) {
this.distanceHopital = distanceHopital;
}
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getInstancename() {
return instancename;
}
public void setInstancename(String instancename) {
this.instancename = instancename;
}
public String getCreerPar() {
return creerPar;
}
public void setCreerPar(String creerPar) {
this.creerPar = creerPar;
}
public String getCreerLe() {
return creerLe;
}
public void setCreerLe(String creerLe) {
this.creerLe = creerLe;
}
public String getModifierPar() {
return modifierPar;
}
public void setModifierPar(String modifierPar) {
this.modifierPar = modifierPar;
}
public String getModifierLe() {
return modifierLe;
}
public void setModifierLe(String modifierLe) {
this.modifierLe = modifierLe;
}
public Double getPmtScore() {
return pmtScore;
}
public void setPmtScore(Double pmtScore) {
this.pmtScore = pmtScore;
}
public Date getDateCreation() {
return dateCreation;
}
public void setDateCreation(Date dateCreation) {
this.dateCreation = dateCreation;
}
}
| syliGaye/ProjetSocial_Dev_2019 | src/main/java/ci/projetSociaux/entity/RsuMenagePotentielView.java |
213,424 |
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per VaginalRoute.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
* <p>
* <pre>
* <simpleType name="VaginalRoute">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="DOUCHE"/>
* <enumeration value="VAGINSI"/>
* <enumeration value="VAGINS"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "VaginalRoute")
@XmlEnum
public enum VaginalRoute {
DOUCHE,
VAGINSI,
VAGINS;
public String value() {
return name();
}
public static VaginalRoute fromValue(String v) {
return valueOf(v);
}
}
| ministero-salute/it-fse-gtw-ini-client | src/main/java/org/hl7/v3/VaginalRoute.java |
213,425 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.02.18 at 10:59:00 AM EST
//
package generated;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for IrrigationSolution.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="IrrigationSolution">
* <restriction base="{}cs">
* <enumeration value="IRSOL"/>
* <enumeration value="DOUCHE"/>
* <enumeration value="ENEMA"/>
* <enumeration value="OPIRSOL"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "IrrigationSolution")
@XmlEnum
public enum IrrigationSolution {
IRSOL,
DOUCHE,
ENEMA,
OPIRSOL;
public String value() {
return name();
}
public static IrrigationSolution fromValue(String v) {
return valueOf(v);
}
}
| onc-healthit/soap | XDRValidator/src/main/java/generated/IrrigationSolution.java |
213,426 | 404: Not Found | Mrbysco/MemeInABottle | src/main/java/com/mrbysco/miab/memes/actions/basis/TannerMeme.java |
213,427 | package douchejar;
import douchejar.Handlers.DoucheJarIntents.CreateDoucheJarRequestHandler;
import douchejar.Handlers.DoucheJarIntents.DeleteDoucheJarRequestHandler;
import douchejar.Handlers.DoucheJarLuncherHandler;
import douchejar.Handlers.DoucheJarIntents.ShowDoucheJarsRequestHandler;
import douchejar.Handlers.BuiltInIntents.CancelAndStopIntentHandler;
import douchejar.Handlers.BuiltInIntents.HelpIntentHandler;
import douchejar.Handlers.BuiltInIntents.SessionEndedRequestHandler;
import com.amazon.ask.Skill;
import com.amazon.ask.Skills;
import com.amazon.ask.SkillStreamHandler;
public class DoucheJarsStreamHandler extends SkillStreamHandler {
private static Skill getSkill() {
return Skills.standard()
.addRequestHandlers(
new CancelAndStopIntentHandler(),
new ShowDoucheJarsRequestHandler(),
new HelpIntentHandler(),
new DoucheJarLuncherHandler(),
new SessionEndedRequestHandler(),
new CreateDoucheJarRequestHandler(),
new DeleteDoucheJarRequestHandler())
.build();
}
public DoucheJarsStreamHandler() {
super(getSkill());
}
} | ngm9/doucheJars | src/main/java/douchejar/DoucheJarsStreamHandler.java |
213,428 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
public class Generator {
private ArrayList<Phrase> insults = new ArrayList<Phrase>();
Random rnd = new Random();
public void generate(HashMap<String, String> info)
{
if(info.containsKey("name"))
{
HashMap<String, String> insultMap = new HashMap<String, String>();
String name = info.get("name");
insultMap.put("name", name);
insultMap = isA(insultMap, info);
insults.add(new Phrase(insultMap , "#name is a #is_a"));
insults.add(new Phrase(insultMap , "#name!"));
}
HashMap<String, String> insultMap = new HashMap<String, String>();
insultMap = isA(insultMap, info);
insults.add(new Phrase(insultMap , "you are a #is_a"));
insults.add(new Phrase(insultMap , "#is_a"));
insults.add(new Phrase(insultMap , "#you did_a"));
insults.add(new Phrase(insultMap , "#did_a!"));
insults.add(new Phrase(insultMap , "#you did_a you #is_a"));
}
private HashMap<String, String> didA(HashMap<String, String> insultMap, HashMap<String, String> info)
{
if(info.containsKey("sucks dick"))
{
int choice = rnd.nextInt(2);
switch(choice)
{
case 0:
insultMap.put("did_a", "sucked dick");
break;
case 1:
insultMap.put("did_a", "sucks dick");
break;
}
}
if(info.containsKey("is a slut"))
{
int choice = rnd.nextInt(2);
switch(choice)
{
case 0:
insultMap.put("did_a", "fucked everyone");
break;
case 1:
insultMap.put("did_a", "fucking is slutty");
break;
case 2:
insultMap.put("did_a", "fucked some dudes");
break;
}
}
if(info.containsKey("gives anal"))
{
int choice = rnd.nextInt(3);
switch(choice)
{
case 0:
insultMap.put("did_a", "fucked a dude in the ass");
break;
case 1:
insultMap.put("did_a", "gave anal");
break;
case 2:
insultMap.put("did_a", "fucked an asshole");
break;
}
}
if(info.containsKey("receives anal"))
{
int choice = rnd.nextInt(2);
switch(choice)
{
case 0:
insultMap.put("did_a", "took it in the ass");
break;
case 1:
insultMap.put("did_a", "got rammed");
break;
case 2:
insultMap.put("did_a", "got his poo pushed");
break;
case 3:
insultMap.put("did_a", "got probed");
break;
}
}
if(info.containsKey("is a prude"))
{
int choice = rnd.nextInt(2);
switch(choice)
{
case 0:
insultMap.put("did_a", "fucked me");
break;
case 1:
insultMap.put("did_a", "sucked my dick");
break;
case 2:
insultMap.put("did_a", "is a slut");
break;
case 3:
insultMap.put("did_a", "has great tits");
break;
}
}
return insultMap;
}
private HashMap<String, String> isA(HashMap<String, String> insultMap, HashMap<String, String> info)
{
if(info.containsKey("gender"))
{
String gender = info.get("gender");
if(gender.equals("male"))
{
int choice = rnd.nextInt(9);
switch(choice)
{
case 0:
insultMap.put("is_a", "asshole");
break;
case 1:
insultMap.put("is_a", "prick");
break;
case 2:
insultMap.put("is_a", "faggot");
break;
case 3:
insultMap.put("is_a", "douche");
break;
case 4:
insultMap.put("is_a", "fag");
break;
case 5:
insultMap.put("is_a", "douchebag");
break;
case 6:
insultMap.put("is_a", "cock sucker");
break;
case 7:
insultMap.put("is_a", "mother fucker");
break;
case 8:
insultMap = generalInsult(insultMap, info);
break;
}
}
else if(gender.equals("female"))
{
int choice = rnd.nextInt(9);
switch(choice)
{
case 0:
insultMap.put("is_a", "whore");
break;
case 1:
insultMap.put("is_a", "bitch");
break;
case 2:
insultMap.put("is_a", "cunt");
break;
case 3:
insultMap.put("is_a", "big tits");
break;
case 4:
insultMap.put("is_a", "dike");
break;
case 5:
insultMap.put("is_a", "lesbian");
break;
case 6:
insultMap.put("is_a", "cock sucker");
break;
case 7:
insultMap.put("is_a", "saggy tits");
break;
case 8:
insultMap = generalInsult(insultMap, info);
break;
}
}
else
{
int choice = rnd.nextInt(9);
switch(choice)
{
case 0:
insultMap.put("is_a", "tranny");
break;
case 1:
insultMap.put("is_a", "???");
break;
case 2:
insultMap.put("is_a", "hermaphrodite");
break;
case 3:
insultMap.put("is_a", "shemale");
break;
case 4:
insultMap.put("is_a", "he-she");
break;
case 5:
insultMap.put("is_a", "trans");
break;
case 6:
insultMap.put("is_a", "transvestite");
break;
case 7:
insultMap.put("is_a", "girlboy");
break;
case 8:
insultMap = generalInsult(insultMap, info);
break;
}
}
}
return insultMap;
}
private HashMap<String, String> generalInsult(HashMap<String, String> insultMap, HashMap<String, String> info)
{
if(insultMap.containsKey("is black") && rnd.nextBoolean())
{
int choice = rnd.nextInt(8);
switch(choice)
{
case 0:
insultMap.put("is_a", "niger");
break;
case 1:
insultMap.put("is_a", "spear chucker");
break;
case 2:
insultMap.put("is_a", "niglet");
break;
case 3:
insultMap.put("is_a", "nig");
break;
case 4:
insultMap.put("is_a", "n word");
break;
}
}
else
{
int choice = rnd.nextInt(8);
switch(choice)
{
case 0:
insultMap.put("is_a", "idiot");
break;
case 1:
insultMap.put("is_a", "dumbass");
break;
case 2:
insultMap.put("is_a", "moron");
break;
case 3:
insultMap.put("is_a", "retard");
break;
case 4:
insultMap.put("is_a", "fucktard");
break;
case 5:
insultMap.put("is_a", "shithead");
break;
case 6:
insultMap.put("is_a", "poohead");
break;
case 7:
insultMap.put("is_a", "dummy");
break;
}
}
return insultMap;
}
}
| jake100/Insult-gen | src/Generator.java |
213,429 | package com.observable.example1;
public class DoucheBank implements Subscriber {
@Override
public void notifying(String value) {
System.out.println("New DoucheBank currencies :" + value);
}
}
| Ichanskiy/Patterns | src/com/observable/example1/DoucheBank.java |
213,430 | package com.exiax.bimtv8;
/**
* This file is only a block-list of the most abusive and the offensive words. This file is meant only for the sake of filtering abusive words from a user input.
* You don't need to view this file if you aren't a developer or are underage.
* This file contain no targeted offence to anyone. It is built for a reason stated above.
* This file is supposed to be in a form of Json on cloud in the future.
*/
public class OffensiveWords {
public String[] getOffensive() {
String offensive[] =
{
"shit", "sult", "chod", "rand","raand",
"bhosdi", "bhonsdi", "fuck", "lund", "laura", "lauda", "loda",
"chut", "choot","chut","laand","gaand","jhaant","jhant","ass",
"chud","bur","chuchi","choochi","pussy","randa", "butt",
"bitch","bastard","hentai","dick","oppai","bobba","boobs","anal","weenie","boner",
"gand","hijra","bhosadi","douche","scumbag","rashole","cunt"
};
return offensive;
};
}
| kevinbish/BimTV8-ShoutBox | app/src/main/java/com/exiax/bimtv8/OffensiveWords.java |
213,431 | package teaselib;
import teaselib.util.Item;
/**
* Toys are generalized, which means their names have been chosen not be too specific.
* <p>
* Toys are grouped by category, to make it possible to query a whole category.
* <p>
* I guess that because toys can be grouped (Gags, spanking implements, plugs, clamps, restraints), there has to be a
* more advanced approach to organize toys.
* <p>
* So for now, just the generalized version of something is added.
* <p>
* The list has been inspired by CyberMistress and SexScripts.
* <p>
*
*/
public enum Toys {
Blindfold,
Buttplug,
Collar,
Gag,
Nipple_Clamps,
Spanking_Implement,
Rope,
Ankle_Restraints,
Wrist_Restraints,
Chains,
Spreader_Bar,
Ball_Stretcher,
Chastity_Device,
Cock_Ring,
Glans_Ring,
Humbler,
Masturbator,
Dildo,
Pussy_Clamps,
Clit_Clamp,
VaginalInsert,
Anal_Douche,
Enema_Kit,
Enema_Bulb,
Vibrator,
EStim_Device,
Doll,
Husband,
Wife,
Strap_On,
;
public enum ClampType implements Item.Attribute {
Clover,
}
public enum Masturbators {
Pussy,
Bumhole,
Feet,
Breasts,
Mouth,
}
public enum Chastity_Devices implements Item.Attribute {
Belt,
Cage,
Gates_of_Hell,
Cone_of_Shame,
}
public enum CollarType implements Item.Attribute {
Dog,
Posture,
}
public enum Gags implements Item.Attribute {
Ball_Gag,
Bit_Gag,
Muzzle_Gag,
Penis_Gag,
Ring_Gag,
}
public enum Spanking_Implements implements Item.Attribute {
Cane,
Crop,
Flogger,
Paddle,
Whip
}
public enum Anal implements Item.Attribute {
Beads,
Plug
}
public enum Vaginal implements Item.Attribute {
Ben_Wa_Balls,
Vibrating_Egg,
}
public static final Toys Essential[] = { Gag, Blindfold, Collar, Nipple_Clamps, Spanking_Implement };
public static final Toys Bondage[] = { Ankle_Restraints, Wrist_Restraints, Rope, Chains, Spreader_Bar };
public static final Toys Backdoor[] = { Buttplug, Dildo, Anal_Douche, Enema_Bulb, Enema_Kit };
public static final Toys Female[] = { Clit_Clamp, Pussy_Clamps, VaginalInsert };
public static final Toys Male[] = { Ball_Stretcher, Chastity_Device, Cock_Ring, Glans_Ring, Humbler, Masturbator };
public static final Toys Stimulation[] = { Vibrator, EStim_Device };
public static final Toys Partner[] = { Doll, Husband, Wife, Strap_On };
public static final Toys[] Categories[] = { Essential, Bondage, Backdoor, Female, Male, Stimulation, Partner };
}
| Citizen-Cane/teaselib | src/teaselib/Toys.java |
213,432 | package com.need2.turnitup.beta;
import java.util.regex.Pattern;
import android.widget.EditText;
public class Validation {
// Regular Expressions for email, name, and eventname
private static final String EMAIL_REGEX = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
private static final String NAME_REGEX = "^[a-zA-Z]+([-a-zA-Z]+)?$";
// private static final String EVENTNAME_REGEX = "^[a-zA-Z0-9-!@#$%^&*_()\\s~`+={}|]+$";
private static final String EVENTNAME_REGEX = ".+$";
public static String[] swearWords = {"fuck", "damn", "bitch", "crap", "piss", "dick", "pussy",
"cock", "asshole", "bastard", "slut", "douche", "shit", "cunt"};
// Error Messages
private static final String REQUIRED_MSG = "required";
private static final String EMAIL_MSG = "invalid email";
private static final String NAME_MSG = "invalid name";
private static final String EVENTNAME_MSG = "Please limit your text to 20 characters (no explicit language)";
private static final int EVENTNAME_LENGTH = 20;
// Call this method when you need to check email validation
public static boolean isEmailAddress(EditText editText, boolean required) {
return isValid(editText, EMAIL_REGEX, EMAIL_MSG, required);
}
// Call this method when you need to check firstname and lastname validation
public static boolean isName(EditText editText, boolean notRequired) {
return isValid(editText, NAME_REGEX, NAME_MSG, notRequired);
}
// Call this method when you need to check event name validation
public static boolean isEventName(EditText editText, boolean required) {
boolean isvalid = false;
String eventStr = editText.getEditableText().toString();
if(isValid(editText, EVENTNAME_REGEX, NAME_MSG, required)){
if(eventStr.length() > EVENTNAME_LENGTH || containSwear(eventStr)){
editText.setError(EVENTNAME_MSG);
isvalid = false;
}else{
isvalid = true;
}
}else{
isvalid = false;
}
return isvalid;
}
private static boolean containSwear(String eventName) {
// boolean isSwear = false;
String cleanEname = eventName.trim();
for(String swearWord : swearWords){
if(cleanEname.contains(swearWord)){
return true;
}
}
return false;
}
// Return true if the input field is valid, based on the parameter passed
public static boolean isValid(EditText editText, String regex,
String errMsg, boolean required) {
String text = editText.getText().toString().trim();
// Clearing the error, if it was previously set by some other values
editText.setError(null);
// Text required and editText is blank, so return false
if (required && !hasText(editText)) {
editText.setError(REQUIRED_MSG);
return false;
}
// Pattern doesn't match so returning false
if (!Pattern.matches(regex, text)) {
editText.setError(errMsg);
return false;
}
return true;
}
// Check the input field has any text or not
// Return true if it contains text, otherwise false
public static boolean hasText(EditText editText) {
String text = editText.getText().toString().trim();
// length of 0 means there's no text
if (text.length() == 0) {
return false;
}
return true;
}
}
| chrisholt/turn-it-up | TurnItUp/src/com/need2/turnitup/beta/Validation.java |
213,433 | package net.tazpvp.tazpvp.Guilds;
import net.tazpvp.tazpvp.Tazpvp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public class GuildConfig {
public static void reload() {
Tazpvp.getInstance().reloadConfig();
Tazpvp.getInstance().config = Tazpvp.getInstance().getConfig();
}
public static List<String> badWords() {
return badWords;
}
public static boolean isOffending(String text) {
String[] words = text.split(" ");
List<String> noNoWords = badWords;
for (String s : words) {
if (noNoWords.contains(s.toLowerCase(Locale.ROOT))) {
return true;
}
}
return false;
}
public static List<String> badWords = new ArrayList<String>(Arrays.asList(
"anal", "anus","arse","ass","ass","fuck","ass","assfucker","asshole","assshole","bastard","bitch","cock","boong","cock", "cum","cockfucker","cocksuck","cocksucker","coon","coonnass","cunt","cyberfuck","dick","douche","erect","erection","erotic","fag","faggot","fuck","fuckass","fuckhole","gook","homoerotic","hore","lesbian","lesbians","motherfuck","motherfucker","negro","nigger","orgasim","orgasm","penis","penisfucker","piss","porn","porno","pornography","pussy","retard","sadist","sex","sexy","shit","slut","bitch","tits","viagra","whore","xxx"
));
}
| tazpvp/tazpvp-legacy | src/main/java/net/tazpvp/tazpvp/Guilds/GuildConfig.java |
213,434 | package io.github.mathieusoysal.residence;
/**
* The Equipement enum represents the different types of equipment that can be
* present in a housing unit.
*
* @author MathieuSoysal
*/
public enum Equipment {
/**
* A toilet
*/
WC,
/**
* A refrigerator
*/
FRIDGE,
/**
* A shower
*/
SHOWER,
/**
* A sink and a cooking hob
*/
SINK_AND_HOB,
/**
* A living room
*/
LIVING_ROOM,
/**
* A balcony
*/
BALCONY,
/**
* A microwave
*/
MICROWAVE,
/**
* A duplex apartment
*/
DUPLEX,
/**
* No equipment
*/
NONE,
/**
* Unknown equipment
*/
UNKNOWN;
/**
* Returns the Equipement enum value corresponding to the given string.
*
* @param equipement the string representation of the equipment
* @return the Equipement enum value corresponding to the given string
*/
public static Equipment fromString(String equipement) {
if (equipement == null || equipement.isBlank() || equipement.equals("null"))
return NONE;
switch (equipement) {
case "WC":
return WC;
case "Frigo":
return FRIDGE;
case "Douche":
return SHOWER;
case "Evier + Plaque":
return SINK_AND_HOB;
case "Pièce à vivre":
return LIVING_ROOM;
case "Balcon":
return BALCONY;
case "Micro-onde":
return MICROWAVE;
case "Duplex":
return DUPLEX;
default:
return UNKNOWN;
}
}
}
| MathieuSoysal/CROUS-assistant-Collector | src/main/java/io/github/mathieusoysal/residence/Equipment.java |
213,435 | package com.adi.pfe2023.objet.ampoule;
public class AmpouleDouche extends Ampoule{
private final String cheminAmpouleDouche="test/leds/led_douche";
private static AmpouleDouche ampouleDouche;
private AmpouleDouche() {
super();
this.setCheminAmpoule(cheminAmpouleDouche);
this.setNomComposant("Ampoule Douche");
}
public static synchronized AmpouleDouche getInstance(){
if (ampouleDouche==null){
ampouleDouche= new AmpouleDouche();
return ampouleDouche;
}
else {
return ampouleDouche;
}
}
}
| AlmoustaphaDjibrilla/pfe_2023 | app/src/main/java/com/adi/pfe2023/objet/ampoule/AmpouleDouche.java |
213,436 | package mobile.exo.oo.hotel;
public class Main {
public static void main(String[] args) {
Chambre c = new Chambre( 101, 2, TypeChambre.BASIQUE );
System.out.println("A une télé: " + c.hasTele() ); // false
System.out.println("A une douche: " + c.hasDoucheItalienne() ); // false
System.out.println("BASIQUE --> ALL_IN");
c.setType( TypeChambre.ALL_IN );
System.out.println("A une télé: " + c.hasTele() ); // true
System.out.println("A une douche: " + c.hasDoucheItalienne() ); // true
}
}
| aKimtsPro/DemoJavaMobile | src/mobile/exo/oo/hotel/Main.java |
213,437 | /*
* Copyright (C) 2014 Mazen K.
* This file is part of MCNotifier.
*
* MCNotifier for Bukkit is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 to be exact
*
* MCNotifier is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MCNotifier. If not, see <http://www.gnu.org/licenses/>.
*/
package io.mazenmc.notifier.listeners.bukkit;
import io.mazenmc.notifier.Notifier;
import io.mazenmc.notifier.client.NotifierClient;
import io.mazenmc.notifier.packets.Packet;
import io.mazenmc.notifier.packets.PacketPlayerSwear;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerChatEvent;
import java.util.Arrays;
import java.util.List;
public class SwearWarning implements Listener {
private static final List<String> swearWords = Arrays.asList("tit", "fuck", "cunt", "shit", "bitch", "pussy", "dick", "penis", "vagina", "cum", "motherfucker", "anus", "ass", "axwound", "bastard", "beaner", "blowjob",
"boner", "bullshit", "carpetmuncher", "chesticle", "chink", "clit", "cock", "coon", "cooter", "dipshit", "douche", "dildo", "faggit", "faggot", "fuck", "ginger", "gooch", "honkey", "hoe", "heeb", "jackass", "jizz",
"jerk off", "junglebunny", "kike", "kooch", "kunt", "lameass", "lardass", "mcfagget", "muff", "munging", "negro", "nigaboo", "nigga", "nigger", "niggers", "niglet", "nutsack", "paki", "panooch", "packer", "prick",
"queef", "queer", "renob", "rimjob", "sandnigger", "schlong", "scrote", "shit", "skullfuck", "tard", "testicle", "thundercunt", "twatwaffle", "unclefucker", "vag", "vjayjay", "vajayjay", "wank", "wankjob", "wetback",
"whore", "whorebag", "whoreface", "wog");
@EventHandler
public void onChat(PlayerChatEvent event) {
String message = event.getMessage();
for (String s : message.split(" ")) {
for (String swear : swearWords) {
if (s.contains(swear)) {
PacketPlayerSwear packet = new PacketPlayerSwear(Notifier.generatePacketArgs(event.getPlayer().getName(), String.valueOf(Packet.SPLITTER), swear, String.valueOf(Packet.SPLITTER), message));
for (NotifierClient client : NotifierClient.getClients()) {
client.write(packet);
}
}
}
}
}
}
| mkotb/MCNotifier | src/main/java/io/mazenmc/notifier/listeners/bukkit/SwearWarning.java |
213,438 | package ncollins.salt.words;
public class Nouns {
public static String[] values = {
"Amateur",
"Animal",
"Ape",
"Apefucker",
"Arse",
"Arse-licker",
"Arsebreath",
"Arsecunt",
"Arseface",
"Arsehole",
"Ass",
"Ass kisser",
"Ass nugget",
"Ass clown",
"Asscunt",
"Assface",
"Asshat",
"Asshole",
"Assmonkey",
"Asswagon",
"Assweed",
"Asswipe",
"Aunt fucker",
"Baby",
"Badass",
"Badgerfucker",
"Bag of dicks",
"Bandit",
"Barbarian",
"Bastard",
"Beetlehead",
"Beginner",
"Bimbo",
"Birdbrain",
"Bitch",
"Bitchface",
"Bitchwad",
"Bitchzilla",
"Blockhead",
"Blubber gut",
"Bogeyman",
"Bonehead",
"Booby",
"Bootlicker",
"Boozer",
"Boyfucker",
"Bozo",
"Brotherfucker",
"Buffoon",
"Bum",
"Bum-fucker",
"Bum chum",
"Burden",
"Buttfucker",
"Butthead",
"Butthole",
"Buttlicker",
"Chauvinist",
"Cheater",
"Chicken",
"Chickenfucker",
"Childfucker",
"Chump",
"Clown",
"Cock",
"Cockboy",
"Cockfucker",
"Cockhead",
"Cockholster",
"Cockmaster",
"Cockroach",
"Cocksucker",
"Cockwomble",
"Con man",
"Country bumpkin",
"Cousinfucker",
"Cow",
"Crack whore",
"Craphole",
"Creep",
"Cretin",
"Cumstain",
"cum guzzler",
"cum bucket",
"Cunt",
"Cunt fart",
"Cuntass",
"Cuntbitch",
"Cuntlicker",
"Cuntsucker",
"Cuntzilla",
"Daughterfucker",
"Deadhead",
"Degenerate",
"Der-brain",
"Dick",
"Dick-licker",
"Dickbag",
"Dickface",
"Dickfucker",
"dick sucker",
"dick chugger",
"dick lover",
"dick tickler",
"Dickhead",
"Dicktard",
"Dimwit",
"Dirtbag",
"Dirthead",
"Dodo",
"Dogfucker",
"Donkey",
"Donkeyfucker",
"Doofus",
"Dope",
"Douche",
"Douche bag",
"Douchelord",
"Drunkard",
"Duckfucker",
"Dumbass",
"Dumbbell",
"Dumbo",
"Dummy",
"Egotist",
"Fagtard",
"fart sniffer",
"farty pants",
"Fart",
"Fatso",
"Fibber",
"Fool",
"Freak",
"Fruitcake",
"Fuck",
"Fuck noggin",
"Fuck nugget",
"Fuckbait",
"Fuckbucket",
"Fucker",
"Fuckhead",
"Fucklord",
"Fucktard",
"Fucktoy",
"Fuckweasel",
"Gold digger",
"Goon",
"Gorilla",
"Grouch",
"Hillbilly",
"Hippie",
"Ho",
"Hoe",
"Homo",
"Hooligan",
"Horse's ass",
"Horse's necktie",
"Horsefucker",
"Idiot",
"Ignoramus",
"Imbecile",
"Inbred",
"Intercourser",
"Jackass",
"Jackwagon",
"Jerk",
"Junkie",
"Lamebrain",
"Landwhale",
"Lard face",
"Liar",
"Loser",
"Low-life",
"Lunatic",
"Lunkhead",
"Mackerel",
"Megabitch",
"Megadouche",
"Monkey",
"Monster",
"Moron",
"Motherfucker",
"Mucky pup",
"Mutant",
"Mutt",
"Neanderthal",
"Neckbeard",
"Nerd",
"Nerf herder",
"Nimrod",
"Nincompoop",
"Ninny",
"Nitwit",
"Nobody",
"Noodle",
"Numbnuts",
"Numbskull",
"Numskull",
"Oaf",
"Oddball",
"Ogre",
"Oxygen Thief",
"Pack",
"Pain in the ass",
"Peasant",
"Pencil dick",
"Pervert",
"Pig",
"Pigfucker",
"Piggy-wiggy",
"Pinhead",
"Pissface",
"Porno freak",
"Prick",
"Pseudo-intellectual",
"Puppet",
"Pussyfucker",
"Quack",
"Quat",
"Queer",
"Querulant",
"Rat",
"Ratcatcher",
"Redneck",
"Reject",
"Retard",
"Riff-raff",
"Sadist",
"Saprophyte",
"Sausage-masseuse",
"sausage licker",
"sausage lover",
"Scumbag",
"Scumhead",
"Scumlord",
"Scuzzbag",
"Sewer rat",
"Sheepfucker",
"Shit-eater",
"Shit stain",
"Shitass",
"Shitbucket",
"Shithead",
"Shitneck",
"Shitnugget",
"Shitsack",
"Shitter",
"Shitweasel",
"Simpleton",
"Skullfucker",
"Skunk",
"Skunkfucker",
"Slag",
"Slave",
"Sleeze",
"Sleeze bag",
"Slob",
"Slutfucker",
"Snail",
"Snob",
"Snot",
"Snotball",
"Snowflake",
"Son of a bitch",
"Son of a motherless goat",
"Son of a whore",
"Square",
"Stinker",
"Stinkhole",
"Swine",
"Sycophant",
"Thundercunt",
"Toad",
"Tree hugger",
"Troll",
"Trollface",
"Turd",
"Turdball",
"Twat",
"Twatwaffle",
"Twerp",
"Twit",
"Unclefucker",
"Vermin",
"Wacko",
"Wallflower",
"Wank stain",
"Wanker",
"Weeze Bag",
"Weirdo",
"Whore",
"Whorefucker",
"Whoreson",
"Windfucker",
"Windsucker",
"Witch",
"Womanizer",
"Wretch",
"Yahoo",
"Zitface",
"girl next door",
"bimbo",
"gal",
"wild woman",
"gentle soul",
"kept woman",
"gentlewoman",
"queen bee",
"whore",
"sister",
"survivor",
"huntress",
"child",
"winch",
"queen",
"woman of means",
"Miss",
"angel",
"girlfriend",
"young girl",
"escort",
"maiden",
"tramp",
"dame",
"married woman",
"redhead",
"dream girl",
"woman of her word",
"damsel",
"young lady",
"beauty queen",
"drama queen",
"daughter",
"heiress",
"mademoiselle",
"girl",
"grandmother",
"witch",
"snuggler",
"nag",
"lady",
"mommy",
"party girl",
"young woman",
"chick",
"cheater",
"aunt",
"hypocrite",
"girly girl",
"darling",
"lady friend",
"working girl",
"woman about town",
"heroine",
"Ms.",
"woman",
"belle",
"she-devil",
"mistress",
"mother",
"hag",
"brunette",
"bitch",
"floozy",
"diva",
"princess",
"wife",
"loner",
"teenager",
"provider",
"mom",
"sportswoman",
"cover girl",
"Immoral Asshole",
"Injurious Bitch",
"Obscene Dick",
"Horrifying Dickhead",
"Vile Douche",
"Nocuous Douchebag",
"Abominable Fool",
"Nasty Idiot",
"Harmful Jerk",
"Swinish Loser",
"Detestable Ass",
"Horrible Boob",
"Sinful Buffoon",
"Rotten Clown",
"Offensive Idiot",
"Abhorrent Jerk",
"Execrable Moron",
"Unworthy Nerd",
"Shocking Nitwit",
"Disturbing Stooge",
"Evil Sucker",
"Malevolent Twit",
"Reprehensible Birdbrain",
"Vicious Blockhead",
"Lousy Bonehead",
"Nefarious Bore",
"Dreadful Cretin",
"Iniquitous Dimwit",
"Barbaric Dolt",
"Reprobate Dope",
"Disagreeable Dunce",
"Horrific Dunderhead",
"Abject Fathead",
"Scandalous Goose",
"Heinous Ignoramus",
"Infamous Illiterate",
"Worthless Imbecile",
"Contemptible Innocent",
"Dismaying Lightweight",
"Wicked Maroon",
"Repellent No-Show",
"Disheartening Refugee",
"Repugnant Slacker",
"Awful Traitor",
"Horrid Betrayer",
"Cursed Criminal",
"Displeasing Defector",
"Egregious Delinquent",
"Fiendish Lawbreaker",
"Odious Loon",
"Ignoble Nincompoop",
"Infernal Ninny",
"Horrendous Numskull",
"Hideous Oaf",
"Woeful Sap",
"Diabolical Simpleton",
"Hellish Twerp",
"Unpalatable Ox",
"Galling Prick",
"Loathsome Pussy",
"Repulsive Shit",
"Ghastly Slut",
"Sordid Dumb Ass",
"Treacherous Ass",
"Ruinous Jackass",
"Atrocious Prick",
"Deleterious Cocksucker",
"Villainous Dickhead",
"Foul Motherfucker",
"Appalling Shit",
"Terrible Son Of A Bitch",
"Noxious Asshat",
"Nauseating Asswipe",
"Monstrous Idiot",
"Grievous Jerk",
"Icky Pig",
"Mischievous Idiot",
"Detrimental Schmuck",
"Sinister Asshole",
"Beastly Black Sheep",
"Distasteful Derelict",
"Annoying Wino",
"Disgusting Jerk",
"inappropriate jerk",
"run-and-gun bully",
"dead lettuce",
"snuggly screw-up",
"cold-hearted eskimo",
"ribbed antidepressant drug",
"evil stir stick",
"vintage dream-crusher",
"heartbreaking stick figure",
"limp striped hyena",
"four-wheel drive snake-in-the-grass",
"sneaky nudist",
"vibrant chauvinist",
"grumpy grandma",
"full of rage fraud",
"shady dog",
"overweight basket case",
"frightening smell",
"distended mistake",
"watchful floozy",
"undersized wiley coyote",
"superior manure",
"gloomy promise-breaker",
"mixed breed physical abuse",
"wear-anywhere moron",
"ultimate dog poop",
"jackass",
"creamy dummy",
"grouchy remnant of chaos",
"humiliating big jerk",
"dingle berry",
"state-of-the-art catastrophe",
"wild ass face",
"nimble indiscriminate killer",
"terrifying bored child",
"heartwarming enemy",
"narrow-minded pancake",
"supernatural son-of-a-bitch",
"asymmetrical butt hole",
"chunky drug addict",
"affectionate thief",
"racist fuckin shit",
"fluffy poser",
"freshly brewed meanie",
"supersoft lunatic",
"imbalanced dick",
"at-the-ready fluff ball",
"timeless towelette",
"contemporary queen",
"content dirtbag",
"flat-chested man of filth",
"spectacular brat",
"twisted snake-in-the-grass",
"long-legged whore",
"easy-to-drive schmuck",
"common toilet seat",
"offensive son-of-a-bitch",
"backstabbing whore",
"visual shell of a person",
"playful bully",
"silky soft loser",
"bitchy peace offering",
"strange kitty cat",
"tiny-dick",
"confrontational freak",
"sadistic manipulator",
"fully lined suckling pig",
"trustworthy backstabber",
"elephantine pig",
"straight phony",
"crawly mistake",
"out-of-control nightmare",
"irrational gold-digger",
"sawed-off scumbag",
"double-crossing bitch",
"considerate louse",
"pea-brained waste of a person",
"submissive wiener",
"bottled sweet tailpipe",
"mixed-media princess",
"quick dingle berry",
"intoxicating nut job",
"mutt",
"deceitful lapdog",
"brewery-fresh sleazeball",
"developed wanker",
"thoughtless cheater",
"terrible man-whore",
"odor-absorbing remnant of chaos",
"lightning-fast cheater",
"fun freeloader",
"unacceptable fake",
"yarn-dyed mimicker",
"unreliable litter pan",
"odor-resistant slimeball",
"long-limbed weed wacker",
"lonely candlestick maker",
"narrow unit of unholy depth",
"glamorous corn cake",
"neverending friendly claim",
"single-player scumbucket",
"crate-trained puppy fucker",
"instinctual dumbass",
"outraged fool",
"irresponsible shit",
"proprietary outside dog",
"ridiculous toilet",
"stiff troublemaker",
"women’s tentacle",
"lean monkey",
"pissed sheep dip",
"forgettable skinny woman",
"strapless nut job",
"chilled good-for-nothing",
"failure",
"meaningful clan member",
"self-centered boner",
"eager-to-please nightmare",
"defiant space emulator",
"chauvinistic pig",
"silly little girl",
"full-grown baby",
"elastic pile of decomposition",
"dynamic electric furnace",
"grumpy joke of a person",
"top-of-the-line bonehead",
"thirst-quenching backstabber",
"asymmetrical baby",
"piece of shit",
"swindling basket case",
"cask-conditioned freak",
"crushing dickhead",
"staked manipulator",
"real-time fuzz ball",
"short-haired selfishness",
"fat liar",
"disappointment",
"psycho waste of a person",
"caught-in-the-act jackass",
"purebred marshmallow",
"cocksucker",
"brokenhearted druggie",
"unfiltered manure",
"killer mental case",
"two-dimensional pizza cutter",
"disappointing pervert",
"mischievous hypocrite",
"top-level disappointment",
"nauseating kitty",
"ghoulishly delightful merry bells",
"skunk-proof wiener",
"emotional traitor",
"furry blunder",
"oversized attention whore",
"gangly nonbeliever",
"crummy marshmallow",
"thickset terrorist",
"bat-shit crazy amish person",
"sleazeball",
"solid mental case",
"whiny thief",
"metallic manipulating ass",
"jealous bored child",
"Smegma",
"big black dick",
"bigger blacker dick",
"queef",
"Pecker",
"Johnson",
"Prick",
"Dick",
"Cock",
"Rooster",
"Lil' willy",
"Wang",
"One eyed monster",
"Trouser snake",
"Shaft",
"Weiner",
"Hot dog",
"Morning Wood",
"Pickle",
"seaman",
"Turtle Head",
"sweaty Junk",
"Bulge",
"pocket monster",
"pocket rocket",
"red rocket",
"Dong",
"Sausage",
"Balls",
"Stones",
"Family Jewels",
"Meatballs",
"Reece's Pieces",
"Nuts",
"Gonads",
"Huevos",
"Sack"
};
}
| nickcollins24/ff-chat-bot | src/main/java/ncollins/salt/words/Nouns.java |
213,439 | package com.lagrange.mock;
import com.lagrange.entity.piece.TypePiece;
import com.lagrange.entity.tache.Tache;
import com.lagrange.port.piecetache.PieceTacheRepository;
import java.util.*;
public class PieceTacheMock implements PieceTacheRepository {
private static Map<TypePiece,List<Tache>> bdd;
static {
bdd = new HashMap<>();
bdd.put(TypePiece.CHAMBRE, Arrays.asList(
new Tache("Passer aspirateur chambre", "chambre"),
new Tache("Ranger chambre", "chambre"),
new Tache("Changer draps", "chambre")
));
bdd.put(TypePiece.CUISINE, Arrays.asList(
new Tache("Nettoyer sol cuisine", "cuisine"),
new Tache("Nettoyer plan de travail", "cuisine"),
new Tache("Ranger cuisine", "cuisine")
));
bdd.put(TypePiece.TOILETTES, Arrays.asList(
new Tache("Nettoyer sol toilettes", "toilettes"),
new Tache("Nettoyer toilettes", "toilettes")
));
bdd.put(TypePiece.SALLE_DE_BAIN, Arrays.asList(
new Tache("Nettoyer sol salle de bain", "salle de bain"),
new Tache("Nettoyer douche/baignoire", "salle de bain"),
new Tache("Nettoyer siphon", "salle de bain")
));
bdd.put(TypePiece.SALON, Arrays.asList(
new Tache("Nettoyer sol salon", "salon"),
new Tache("Ranger salon", "salon"),
new Tache("Nettoyer vitre salon", "salon"),
new Tache("Enlever toiles araignées", "salon")
));
bdd.put(TypePiece.ESCALIER, Arrays.asList(
new Tache("Nettoyer sol escalier", "escalier")
));
}
@Override
public List<Tache> getTacheLIstForTypePiece(TypePiece typePiece) {
return bdd.get(typePiece);
}
}
| M4RIIN/flatshare | bdd/src/main/java/com/lagrange/mock/PieceTacheMock.java |
213,440 | package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Sep 23, 2017 17:56-0400 for FHIR v3.1.0
import org.hl7.fhir.exceptions.FHIRException;
public enum V3OrderableDrugForm {
/**
* AdministrableDrugForm
*/
_ADMINISTRABLEDRUGFORM,
/**
* Applicatorful
*/
APPFUL,
/**
* Drops
*/
DROP,
/**
* Nasal Drops
*/
NDROP,
/**
* Ophthalmic Drops
*/
OPDROP,
/**
* Oral Drops
*/
ORDROP,
/**
* Otic Drops
*/
OTDROP,
/**
* Puff
*/
PUFF,
/**
* Scoops
*/
SCOOP,
/**
* Sprays
*/
SPRY,
/**
* DispensableDrugForm
*/
_DISPENSABLEDRUGFORM,
/**
* Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.
*/
_GASDRUGFORM,
/**
* Gas for Inhalation
*/
GASINHL,
/**
* GasLiquidMixture
*/
_GASLIQUIDMIXTURE,
/**
* Aerosol
*/
AER,
/**
* Breath Activated Inhaler
*/
BAINHL,
/**
* Inhalant Solution
*/
INHLSOL,
/**
* Metered Dose Inhaler
*/
MDINHL,
/**
* Nasal Spray
*/
NASSPRY,
/**
* Dermal Spray
*/
DERMSPRY,
/**
* Foam
*/
FOAM,
/**
* Foam with Applicator
*/
FOAMAPL,
/**
* Rectal foam
*/
RECFORM,
/**
* Vaginal foam
*/
VAGFOAM,
/**
* Vaginal foam with applicator
*/
VAGFOAMAPL,
/**
* Rectal Spray
*/
RECSPRY,
/**
* Vaginal Spray
*/
VAGSPRY,
/**
* GasSolidSpray
*/
_GASSOLIDSPRAY,
/**
* Inhalant
*/
INHL,
/**
* Breath Activated Powder Inhaler
*/
BAINHLPWD,
/**
* Inhalant Powder
*/
INHLPWD,
/**
* Metered Dose Powder Inhaler
*/
MDINHLPWD,
/**
* Nasal Inhalant
*/
NASINHL,
/**
* Oral Inhalant
*/
ORINHL,
/**
* Powder Spray
*/
PWDSPRY,
/**
* Spray with Adaptor
*/
SPRYADAPT,
/**
* A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)
*/
_LIQUID,
/**
* Liquid Cleanser
*/
LIQCLN,
/**
* Medicated Liquid Soap
*/
LIQSOAP,
/**
* A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.
*/
SHMP,
/**
* An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.
*/
OIL,
/**
* Topical Oil
*/
TOPOIL,
/**
* A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.
*/
SOL,
/**
* Intraperitoneal Solution
*/
IPSOL,
/**
* A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.
*/
IRSOL,
/**
* A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.
*/
DOUCHE,
/**
* A rectal preparation for therapeutic, diagnostic, or nutritive purposes.
*/
ENEMA,
/**
* Ophthalmic Irrigation Solution
*/
OPIRSOL,
/**
* Intravenous Solution
*/
IVSOL,
/**
* Oral Solution
*/
ORALSOL,
/**
* A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.
*/
ELIXIR,
/**
* An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.
*/
RINSE,
/**
* An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.
*/
SYRUP,
/**
* Rectal Solution
*/
RECSOL,
/**
* Topical Solution
*/
TOPSOL,
/**
* A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.
*/
LIN,
/**
* Mucous Membrane Topical Solution
*/
MUCTOPSOL,
/**
* Tincture
*/
TINC,
/**
* A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.
*/
_LIQUIDLIQUIDEMULSION,
/**
* A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.
*/
CRM,
/**
* Nasal Cream
*/
NASCRM,
/**
* Ophthalmic Cream
*/
OPCRM,
/**
* Oral Cream
*/
ORCRM,
/**
* Otic Cream
*/
OTCRM,
/**
* Rectal Cream
*/
RECCRM,
/**
* Topical Cream
*/
TOPCRM,
/**
* Vaginal Cream
*/
VAGCRM,
/**
* Vaginal Cream with Applicator
*/
VAGCRMAPL,
/**
* The term "lotion" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.
*/
LTN,
/**
* Topical Lotion
*/
TOPLTN,
/**
* A semisolid preparation intended for external application to the skin or mucous membranes.
*/
OINT,
/**
* Nasal Ointment
*/
NASOINT,
/**
* Ointment with Applicator
*/
OINTAPL,
/**
* Ophthalmic Ointment
*/
OPOINT,
/**
* Otic Ointment
*/
OTOINT,
/**
* Rectal Ointment
*/
RECOINT,
/**
* Topical Ointment
*/
TOPOINT,
/**
* Vaginal Ointment
*/
VAGOINT,
/**
* Vaginal Ointment with Applicator
*/
VAGOINTAPL,
/**
* A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.
*/
_LIQUIDSOLIDSUSPENSION,
/**
* A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.
*/
GEL,
/**
* Gel with Applicator
*/
GELAPL,
/**
* Nasal Gel
*/
NASGEL,
/**
* Ophthalmic Gel
*/
OPGEL,
/**
* Otic Gel
*/
OTGEL,
/**
* Topical Gel
*/
TOPGEL,
/**
* Urethral Gel
*/
URETHGEL,
/**
* Vaginal Gel
*/
VAGGEL,
/**
* Vaginal Gel with Applicator
*/
VGELAPL,
/**
* A semisolid dosage form that contains one or more drug substances intended for topical application.
*/
PASTE,
/**
* Pudding
*/
PUD,
/**
* A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.
*/
TPASTE,
/**
* Suspension
*/
SUSP,
/**
* Intrathecal Suspension
*/
ITSUSP,
/**
* Ophthalmic Suspension
*/
OPSUSP,
/**
* Oral Suspension
*/
ORSUSP,
/**
* Extended-Release Suspension
*/
ERSUSP,
/**
* 12 Hour Extended-Release Suspension
*/
ERSUSP12,
/**
* 24 Hour Extended Release Suspension
*/
ERSUSP24,
/**
* Otic Suspension
*/
OTSUSP,
/**
* Rectal Suspension
*/
RECSUSP,
/**
* SolidDrugForm
*/
_SOLIDDRUGFORM,
/**
* Bar
*/
BAR,
/**
* Bar Soap
*/
BARSOAP,
/**
* Medicated Bar Soap
*/
MEDBAR,
/**
* A solid dosage form usually in the form of a rectangle that is meant to be chewed.
*/
CHEWBAR,
/**
* A solid dosage form in the shape of a small ball.
*/
BEAD,
/**
* Cake
*/
CAKE,
/**
* A substance that serves to produce solid union between two surfaces.
*/
CEMENT,
/**
* A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.
*/
CRYS,
/**
* A circular plate-like organ or structure.
*/
DISK,
/**
* Flakes
*/
FLAKE,
/**
* A small particle or grain.
*/
GRAN,
/**
* A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.
*/
GUM,
/**
* Pad
*/
PAD,
/**
* Medicated Pad
*/
MEDPAD,
/**
* A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.
*/
PATCH,
/**
* Transdermal Patch
*/
TPATCH,
/**
* 16 Hour Transdermal Patch
*/
TPATH16,
/**
* 24 Hour Transdermal Patch
*/
TPATH24,
/**
* Biweekly Transdermal Patch
*/
TPATH2WK,
/**
* 72 Hour Transdermal Patch
*/
TPATH72,
/**
* Weekly Transdermal Patch
*/
TPATHWK,
/**
* A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.
*/
PELLET,
/**
* A small, round solid dosage form containing a medicinal agent intended for oral administration.
*/
PILL,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or "shell" made from a suitable form of gelatin.
*/
CAP,
/**
* Oral Capsule
*/
ORCAP,
/**
* Enteric Coated Capsule
*/
ENTCAP,
/**
* Extended Release Enteric Coated Capsule
*/
ERENTCAP,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.
*/
ERCAP,
/**
* 12 Hour Extended Release Capsule
*/
ERCAP12,
/**
* 24 Hour Extended Release Capsule
*/
ERCAP24,
/**
* Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.
*/
ERECCAP,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents.
*/
TAB,
/**
* Oral Tablet
*/
ORTAB,
/**
* Buccal Tablet
*/
BUCTAB,
/**
* Sustained Release Buccal Tablet
*/
SRBUCTAB,
/**
* Caplet
*/
CAPLET,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.
*/
CHEWTAB,
/**
* Coated Particles Tablet
*/
CPTAB,
/**
* A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.
*/
DISINTAB,
/**
* Delayed Release Tablet
*/
DRTAB,
/**
* Enteric Coated Tablet
*/
ECTAB,
/**
* Extended Release Enteric Coated Tablet
*/
ERECTAB,
/**
* A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.
*/
ERTAB,
/**
* 12 Hour Extended Release Tablet
*/
ERTAB12,
/**
* 24 Hour Extended Release Tablet
*/
ERTAB24,
/**
* A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.
*/
ORTROCHE,
/**
* Sublingual Tablet
*/
SLTAB,
/**
* Vaginal Tablet
*/
VAGTAB,
/**
* An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.
*/
POWD,
/**
* Topical Powder
*/
TOPPWD,
/**
* Rectal Powder
*/
RECPWD,
/**
* Vaginal Powder
*/
VAGPWD,
/**
* A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.
*/
SUPP,
/**
* Rectal Suppository
*/
RECSUPP,
/**
* Urethral suppository
*/
URETHSUPP,
/**
* Vaginal Suppository
*/
VAGSUPP,
/**
* A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.
*/
SWAB,
/**
* Medicated swab
*/
MEDSWAB,
/**
* A thin slice of material containing a medicinal agent.
*/
WAFER,
/**
* added to help the parsers
*/
NULL;
public static V3OrderableDrugForm fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return _ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return APPFUL;
if ("DROP".equals(codeString))
return DROP;
if ("NDROP".equals(codeString))
return NDROP;
if ("OPDROP".equals(codeString))
return OPDROP;
if ("ORDROP".equals(codeString))
return ORDROP;
if ("OTDROP".equals(codeString))
return OTDROP;
if ("PUFF".equals(codeString))
return PUFF;
if ("SCOOP".equals(codeString))
return SCOOP;
if ("SPRY".equals(codeString))
return SPRY;
if ("_DispensableDrugForm".equals(codeString))
return _DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return _GASDRUGFORM;
if ("GASINHL".equals(codeString))
return GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return _GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return AER;
if ("BAINHL".equals(codeString))
return BAINHL;
if ("INHLSOL".equals(codeString))
return INHLSOL;
if ("MDINHL".equals(codeString))
return MDINHL;
if ("NASSPRY".equals(codeString))
return NASSPRY;
if ("DERMSPRY".equals(codeString))
return DERMSPRY;
if ("FOAM".equals(codeString))
return FOAM;
if ("FOAMAPL".equals(codeString))
return FOAMAPL;
if ("RECFORM".equals(codeString))
return RECFORM;
if ("VAGFOAM".equals(codeString))
return VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return RECSPRY;
if ("VAGSPRY".equals(codeString))
return VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return _GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return INHL;
if ("BAINHLPWD".equals(codeString))
return BAINHLPWD;
if ("INHLPWD".equals(codeString))
return INHLPWD;
if ("MDINHLPWD".equals(codeString))
return MDINHLPWD;
if ("NASINHL".equals(codeString))
return NASINHL;
if ("ORINHL".equals(codeString))
return ORINHL;
if ("PWDSPRY".equals(codeString))
return PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return SPRYADAPT;
if ("_Liquid".equals(codeString))
return _LIQUID;
if ("LIQCLN".equals(codeString))
return LIQCLN;
if ("LIQSOAP".equals(codeString))
return LIQSOAP;
if ("SHMP".equals(codeString))
return SHMP;
if ("OIL".equals(codeString))
return OIL;
if ("TOPOIL".equals(codeString))
return TOPOIL;
if ("SOL".equals(codeString))
return SOL;
if ("IPSOL".equals(codeString))
return IPSOL;
if ("IRSOL".equals(codeString))
return IRSOL;
if ("DOUCHE".equals(codeString))
return DOUCHE;
if ("ENEMA".equals(codeString))
return ENEMA;
if ("OPIRSOL".equals(codeString))
return OPIRSOL;
if ("IVSOL".equals(codeString))
return IVSOL;
if ("ORALSOL".equals(codeString))
return ORALSOL;
if ("ELIXIR".equals(codeString))
return ELIXIR;
if ("RINSE".equals(codeString))
return RINSE;
if ("SYRUP".equals(codeString))
return SYRUP;
if ("RECSOL".equals(codeString))
return RECSOL;
if ("TOPSOL".equals(codeString))
return TOPSOL;
if ("LIN".equals(codeString))
return LIN;
if ("MUCTOPSOL".equals(codeString))
return MUCTOPSOL;
if ("TINC".equals(codeString))
return TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return _LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return CRM;
if ("NASCRM".equals(codeString))
return NASCRM;
if ("OPCRM".equals(codeString))
return OPCRM;
if ("ORCRM".equals(codeString))
return ORCRM;
if ("OTCRM".equals(codeString))
return OTCRM;
if ("RECCRM".equals(codeString))
return RECCRM;
if ("TOPCRM".equals(codeString))
return TOPCRM;
if ("VAGCRM".equals(codeString))
return VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return VAGCRMAPL;
if ("LTN".equals(codeString))
return LTN;
if ("TOPLTN".equals(codeString))
return TOPLTN;
if ("OINT".equals(codeString))
return OINT;
if ("NASOINT".equals(codeString))
return NASOINT;
if ("OINTAPL".equals(codeString))
return OINTAPL;
if ("OPOINT".equals(codeString))
return OPOINT;
if ("OTOINT".equals(codeString))
return OTOINT;
if ("RECOINT".equals(codeString))
return RECOINT;
if ("TOPOINT".equals(codeString))
return TOPOINT;
if ("VAGOINT".equals(codeString))
return VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return _LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return GEL;
if ("GELAPL".equals(codeString))
return GELAPL;
if ("NASGEL".equals(codeString))
return NASGEL;
if ("OPGEL".equals(codeString))
return OPGEL;
if ("OTGEL".equals(codeString))
return OTGEL;
if ("TOPGEL".equals(codeString))
return TOPGEL;
if ("URETHGEL".equals(codeString))
return URETHGEL;
if ("VAGGEL".equals(codeString))
return VAGGEL;
if ("VGELAPL".equals(codeString))
return VGELAPL;
if ("PASTE".equals(codeString))
return PASTE;
if ("PUD".equals(codeString))
return PUD;
if ("TPASTE".equals(codeString))
return TPASTE;
if ("SUSP".equals(codeString))
return SUSP;
if ("ITSUSP".equals(codeString))
return ITSUSP;
if ("OPSUSP".equals(codeString))
return OPSUSP;
if ("ORSUSP".equals(codeString))
return ORSUSP;
if ("ERSUSP".equals(codeString))
return ERSUSP;
if ("ERSUSP12".equals(codeString))
return ERSUSP12;
if ("ERSUSP24".equals(codeString))
return ERSUSP24;
if ("OTSUSP".equals(codeString))
return OTSUSP;
if ("RECSUSP".equals(codeString))
return RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return _SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return BAR;
if ("BARSOAP".equals(codeString))
return BARSOAP;
if ("MEDBAR".equals(codeString))
return MEDBAR;
if ("CHEWBAR".equals(codeString))
return CHEWBAR;
if ("BEAD".equals(codeString))
return BEAD;
if ("CAKE".equals(codeString))
return CAKE;
if ("CEMENT".equals(codeString))
return CEMENT;
if ("CRYS".equals(codeString))
return CRYS;
if ("DISK".equals(codeString))
return DISK;
if ("FLAKE".equals(codeString))
return FLAKE;
if ("GRAN".equals(codeString))
return GRAN;
if ("GUM".equals(codeString))
return GUM;
if ("PAD".equals(codeString))
return PAD;
if ("MEDPAD".equals(codeString))
return MEDPAD;
if ("PATCH".equals(codeString))
return PATCH;
if ("TPATCH".equals(codeString))
return TPATCH;
if ("TPATH16".equals(codeString))
return TPATH16;
if ("TPATH24".equals(codeString))
return TPATH24;
if ("TPATH2WK".equals(codeString))
return TPATH2WK;
if ("TPATH72".equals(codeString))
return TPATH72;
if ("TPATHWK".equals(codeString))
return TPATHWK;
if ("PELLET".equals(codeString))
return PELLET;
if ("PILL".equals(codeString))
return PILL;
if ("CAP".equals(codeString))
return CAP;
if ("ORCAP".equals(codeString))
return ORCAP;
if ("ENTCAP".equals(codeString))
return ENTCAP;
if ("ERENTCAP".equals(codeString))
return ERENTCAP;
if ("ERCAP".equals(codeString))
return ERCAP;
if ("ERCAP12".equals(codeString))
return ERCAP12;
if ("ERCAP24".equals(codeString))
return ERCAP24;
if ("ERECCAP".equals(codeString))
return ERECCAP;
if ("TAB".equals(codeString))
return TAB;
if ("ORTAB".equals(codeString))
return ORTAB;
if ("BUCTAB".equals(codeString))
return BUCTAB;
if ("SRBUCTAB".equals(codeString))
return SRBUCTAB;
if ("CAPLET".equals(codeString))
return CAPLET;
if ("CHEWTAB".equals(codeString))
return CHEWTAB;
if ("CPTAB".equals(codeString))
return CPTAB;
if ("DISINTAB".equals(codeString))
return DISINTAB;
if ("DRTAB".equals(codeString))
return DRTAB;
if ("ECTAB".equals(codeString))
return ECTAB;
if ("ERECTAB".equals(codeString))
return ERECTAB;
if ("ERTAB".equals(codeString))
return ERTAB;
if ("ERTAB12".equals(codeString))
return ERTAB12;
if ("ERTAB24".equals(codeString))
return ERTAB24;
if ("ORTROCHE".equals(codeString))
return ORTROCHE;
if ("SLTAB".equals(codeString))
return SLTAB;
if ("VAGTAB".equals(codeString))
return VAGTAB;
if ("POWD".equals(codeString))
return POWD;
if ("TOPPWD".equals(codeString))
return TOPPWD;
if ("RECPWD".equals(codeString))
return RECPWD;
if ("VAGPWD".equals(codeString))
return VAGPWD;
if ("SUPP".equals(codeString))
return SUPP;
if ("RECSUPP".equals(codeString))
return RECSUPP;
if ("URETHSUPP".equals(codeString))
return URETHSUPP;
if ("VAGSUPP".equals(codeString))
return VAGSUPP;
if ("SWAB".equals(codeString))
return SWAB;
if ("MEDSWAB".equals(codeString))
return MEDSWAB;
if ("WAFER".equals(codeString))
return WAFER;
throw new FHIRException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "_AdministrableDrugForm";
case APPFUL: return "APPFUL";
case DROP: return "DROP";
case NDROP: return "NDROP";
case OPDROP: return "OPDROP";
case ORDROP: return "ORDROP";
case OTDROP: return "OTDROP";
case PUFF: return "PUFF";
case SCOOP: return "SCOOP";
case SPRY: return "SPRY";
case _DISPENSABLEDRUGFORM: return "_DispensableDrugForm";
case _GASDRUGFORM: return "_GasDrugForm";
case GASINHL: return "GASINHL";
case _GASLIQUIDMIXTURE: return "_GasLiquidMixture";
case AER: return "AER";
case BAINHL: return "BAINHL";
case INHLSOL: return "INHLSOL";
case MDINHL: return "MDINHL";
case NASSPRY: return "NASSPRY";
case DERMSPRY: return "DERMSPRY";
case FOAM: return "FOAM";
case FOAMAPL: return "FOAMAPL";
case RECFORM: return "RECFORM";
case VAGFOAM: return "VAGFOAM";
case VAGFOAMAPL: return "VAGFOAMAPL";
case RECSPRY: return "RECSPRY";
case VAGSPRY: return "VAGSPRY";
case _GASSOLIDSPRAY: return "_GasSolidSpray";
case INHL: return "INHL";
case BAINHLPWD: return "BAINHLPWD";
case INHLPWD: return "INHLPWD";
case MDINHLPWD: return "MDINHLPWD";
case NASINHL: return "NASINHL";
case ORINHL: return "ORINHL";
case PWDSPRY: return "PWDSPRY";
case SPRYADAPT: return "SPRYADAPT";
case _LIQUID: return "_Liquid";
case LIQCLN: return "LIQCLN";
case LIQSOAP: return "LIQSOAP";
case SHMP: return "SHMP";
case OIL: return "OIL";
case TOPOIL: return "TOPOIL";
case SOL: return "SOL";
case IPSOL: return "IPSOL";
case IRSOL: return "IRSOL";
case DOUCHE: return "DOUCHE";
case ENEMA: return "ENEMA";
case OPIRSOL: return "OPIRSOL";
case IVSOL: return "IVSOL";
case ORALSOL: return "ORALSOL";
case ELIXIR: return "ELIXIR";
case RINSE: return "RINSE";
case SYRUP: return "SYRUP";
case RECSOL: return "RECSOL";
case TOPSOL: return "TOPSOL";
case LIN: return "LIN";
case MUCTOPSOL: return "MUCTOPSOL";
case TINC: return "TINC";
case _LIQUIDLIQUIDEMULSION: return "_LiquidLiquidEmulsion";
case CRM: return "CRM";
case NASCRM: return "NASCRM";
case OPCRM: return "OPCRM";
case ORCRM: return "ORCRM";
case OTCRM: return "OTCRM";
case RECCRM: return "RECCRM";
case TOPCRM: return "TOPCRM";
case VAGCRM: return "VAGCRM";
case VAGCRMAPL: return "VAGCRMAPL";
case LTN: return "LTN";
case TOPLTN: return "TOPLTN";
case OINT: return "OINT";
case NASOINT: return "NASOINT";
case OINTAPL: return "OINTAPL";
case OPOINT: return "OPOINT";
case OTOINT: return "OTOINT";
case RECOINT: return "RECOINT";
case TOPOINT: return "TOPOINT";
case VAGOINT: return "VAGOINT";
case VAGOINTAPL: return "VAGOINTAPL";
case _LIQUIDSOLIDSUSPENSION: return "_LiquidSolidSuspension";
case GEL: return "GEL";
case GELAPL: return "GELAPL";
case NASGEL: return "NASGEL";
case OPGEL: return "OPGEL";
case OTGEL: return "OTGEL";
case TOPGEL: return "TOPGEL";
case URETHGEL: return "URETHGEL";
case VAGGEL: return "VAGGEL";
case VGELAPL: return "VGELAPL";
case PASTE: return "PASTE";
case PUD: return "PUD";
case TPASTE: return "TPASTE";
case SUSP: return "SUSP";
case ITSUSP: return "ITSUSP";
case OPSUSP: return "OPSUSP";
case ORSUSP: return "ORSUSP";
case ERSUSP: return "ERSUSP";
case ERSUSP12: return "ERSUSP12";
case ERSUSP24: return "ERSUSP24";
case OTSUSP: return "OTSUSP";
case RECSUSP: return "RECSUSP";
case _SOLIDDRUGFORM: return "_SolidDrugForm";
case BAR: return "BAR";
case BARSOAP: return "BARSOAP";
case MEDBAR: return "MEDBAR";
case CHEWBAR: return "CHEWBAR";
case BEAD: return "BEAD";
case CAKE: return "CAKE";
case CEMENT: return "CEMENT";
case CRYS: return "CRYS";
case DISK: return "DISK";
case FLAKE: return "FLAKE";
case GRAN: return "GRAN";
case GUM: return "GUM";
case PAD: return "PAD";
case MEDPAD: return "MEDPAD";
case PATCH: return "PATCH";
case TPATCH: return "TPATCH";
case TPATH16: return "TPATH16";
case TPATH24: return "TPATH24";
case TPATH2WK: return "TPATH2WK";
case TPATH72: return "TPATH72";
case TPATHWK: return "TPATHWK";
case PELLET: return "PELLET";
case PILL: return "PILL";
case CAP: return "CAP";
case ORCAP: return "ORCAP";
case ENTCAP: return "ENTCAP";
case ERENTCAP: return "ERENTCAP";
case ERCAP: return "ERCAP";
case ERCAP12: return "ERCAP12";
case ERCAP24: return "ERCAP24";
case ERECCAP: return "ERECCAP";
case TAB: return "TAB";
case ORTAB: return "ORTAB";
case BUCTAB: return "BUCTAB";
case SRBUCTAB: return "SRBUCTAB";
case CAPLET: return "CAPLET";
case CHEWTAB: return "CHEWTAB";
case CPTAB: return "CPTAB";
case DISINTAB: return "DISINTAB";
case DRTAB: return "DRTAB";
case ECTAB: return "ECTAB";
case ERECTAB: return "ERECTAB";
case ERTAB: return "ERTAB";
case ERTAB12: return "ERTAB12";
case ERTAB24: return "ERTAB24";
case ORTROCHE: return "ORTROCHE";
case SLTAB: return "SLTAB";
case VAGTAB: return "VAGTAB";
case POWD: return "POWD";
case TOPPWD: return "TOPPWD";
case RECPWD: return "RECPWD";
case VAGPWD: return "VAGPWD";
case SUPP: return "SUPP";
case RECSUPP: return "RECSUPP";
case URETHSUPP: return "URETHSUPP";
case VAGSUPP: return "VAGSUPP";
case SWAB: return "SWAB";
case MEDSWAB: return "MEDSWAB";
case WAFER: return "WAFER";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/v3/orderableDrugForm";
}
public String getDefinition() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.";
case OIL: return "An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.";
case TOPOIL: return "Topical Oil";
case SOL: return "A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.";
case DOUCHE: return "A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.";
case ENEMA: return "A rectal preparation for therapeutic, diagnostic, or nutritive purposes.";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.";
case RINSE: return "An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.";
case SYRUP: return "An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.";
case CRM: return "A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "The term \"lotion\" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.";
case TOPLTN: return "Topical Lotion";
case OINT: return "A semisolid preparation intended for external application to the skin or mucous membranes.";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.";
case GEL: return "A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "A semisolid dosage form that contains one or more drug substances intended for topical application.";
case PUD: return "Pudding";
case TPASTE: return "A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "A solid dosage form usually in the form of a rectangle that is meant to be chewed.";
case BEAD: return "A solid dosage form in the shape of a small ball.";
case CAKE: return "Cake";
case CEMENT: return "A substance that serves to produce solid union between two surfaces.";
case CRYS: return "A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.";
case DISK: return "A circular plate-like organ or structure.";
case FLAKE: return "Flakes";
case GRAN: return "A small particle or grain.";
case GUM: return "A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.";
case PILL: return "A small, round solid dosage form containing a medicinal agent intended for oral administration.";
case CAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or \"shell\" made from a suitable form of gelatin.";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.";
case TAB: return "A solid dosage form containing medicinal substances with or without suitable diluents.";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.";
case MEDSWAB: return "Medicated swab";
case WAFER: return "A thin slice of material containing a medicinal agent.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "GasDrugForm";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "Liquid";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "Shampoo";
case OIL: return "Oil";
case TOPOIL: return "Topical Oil";
case SOL: return "Solution";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "Irrigation Solution";
case DOUCHE: return "Douche";
case ENEMA: return "Enema";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "Elixir";
case RINSE: return "Mouthwash/Rinse";
case SYRUP: return "Syrup";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "Liniment";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "LiquidLiquidEmulsion";
case CRM: return "Cream";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "Lotion";
case TOPLTN: return "Topical Lotion";
case OINT: return "Ointment";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "LiquidSolidSuspension";
case GEL: return "Gel";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "Paste";
case PUD: return "Pudding";
case TPASTE: return "Toothpaste";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "Chewable Bar";
case BEAD: return "Beads";
case CAKE: return "Cake";
case CEMENT: return "Cement";
case CRYS: return "Crystals";
case DISK: return "Disk";
case FLAKE: return "Flakes";
case GRAN: return "Granules";
case GUM: return "ChewingGum";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "Patch";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "Pellet";
case PILL: return "Pill";
case CAP: return "Capsule";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "Extended Release Capsule";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Extended Release Enteric Coated Capsule";
case TAB: return "Tablet";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "Chewable Tablet";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "Disintegrating Tablet";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "Extended Release Tablet";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "Lozenge/Oral Troche";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "Powder";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "Suppository";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "Swab";
case MEDSWAB: return "Medicated swab";
case WAFER: return "Wafer";
default: return "?";
}
}
}
| bhits/hapi-fhir | hapi-fhir-structures-r4/src/main/java/org/hl7/fhir/r4/model/codesystems/V3OrderableDrugForm.java |
213,441 | package com.example.mysdfapp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class textSanitizer {
public static String filterBadWords(String text) {
List<String> badWords = Arrays.asList(
"fuck", "shit", "asshole", "bitch", "bastard", "damn", "hell", "crap",
"cunt", "cock", "pussy", "dick", "fucker", "motherfucker", "ass", "slut",
"whore", "twat", "wanker", "bollocks", "arsehole", "bullshit", "shithead",
"douchebag", "son of a bitch", "jackass", "dipshit", "asshat", "fuckwit",
"fucktard", "dumbass", "shitface", "bitchass", "fuckface", "piss", "pissed",
"pissing", "pissed off", "bugger", "wank", "fanny", "nigger", "nigga",
"faggot", "dyke", "kike", "spic", "chink", "gook", "slope", "raghead",
"towelhead", "camel jockey", "beaner", "wetback", "coon", "darkie",
"porch monkey", "jungle bunny", "muffdiver", "muff", "tramp", "skank", "ho",
"hoebag", "hoe", "jerk", "loser", "moron", "retard", "idiot", "douche",
"douchenozzle", "dumbfuck", "cockhead", "cockwomble", "numbnuts", "numbskull",
"knob", "knobhead", "knobend", "bellend", "tosser", "twatwaffle", "twatsicle",
"asswipe", "assclown", "butthead", "buttface", "buttmunch", "butthole",
"buttwipe", "dickhead", "dickwad", "dickweed", "douchecanoe", "fuckstick",
"shitbag", "shitforbrains", "shitlet", "shithouse", "shitstain", "assnugget",
"asshat", "assface", "assgoblin", "assmonkey", "assnugget", "asspirate",
"assrocket", "asswaffle", "assweasel", "asswipe", "cumbubble", "cumdumpster",
"cumguzzler", "cumstain", "dickcheese", "dickface", "dickhole", "dicknose",
"dickweed", "fuckface", "fucknugget", "fucktrumpet", "shitbreath", "shitdick",
"shitspitter", "titwank"
);
String[] words = text.split("\\s+");
StringBuilder filteredText = new StringBuilder();
for (String word : words) {
if (badWords.contains(word.toLowerCase())) {
filteredText.append(replaceBadWord(word)).append(" ");
} else {
filteredText.append(word).append(" ");
}
}
return filteredText.toString().trim();
}
public static String replaceBadWord(String word) {
return "S%#@!T";
}
}
| Thigaab/My-SDF-app | app/src/main/java/com/example/mysdfapp/textSanitizer.java |
213,442 | package net.halalaboos.huzuni.mod.misc.chat.mutators;
import net.halalaboos.huzuni.api.util.BasicDictionary;
import net.halalaboos.huzuni.mod.misc.chat.Mutator;
/**
* Replaces all 'bad words' with 'better words' so-to-say. Attempts to censor profanities within messages in humorous ways.
* */
public class SpeechTherapist extends Mutator {
private BasicDictionary dictionary = new BasicDictionary();
public SpeechTherapist() {
super("Speech Therapist", "Helps maintain a healthy vocabulary");
this.setEnabled(true);
dictionary.addFull("hell", "heck");
dictionary.addFull("shit", "shoot", "darn", "crap");
dictionary.addFull("ass", "butt", "donk", "booty");
dictionary.addFull("arse", "butt", "donk", "booty");
dictionary.addFull("bitch", "buddy", "pal", "bestie", "turd");
dictionary.addFull("bich", "buddy", "pal", "bestie", "turd");
dictionary.addFull("bastard", "bus-tard", "banana");
dictionary.addFull("bollocks", "darn", "heck", "shoot");
dictionary.addFull("chinc", "china").addFull("chink", "china");
dictionary.addFull("choad", "toad").addFull("chode", "elf");
dictionary.addFull("clit", "cat", "pit", "special spot", "private temple", "peepee");
dictionary.addFull("cock", "cork", "special spot", "private temple", "peepee");
dictionary.addFull("cok", "cork", "special spot", "private temple", "peepee");
dictionary.addFull("cooch", "conch", "pit", "special spot", "private temple", "peepee");
dictionary.addFull("cooter", "scooter", "pit", "special spot", "private temple", "peepee");
dictionary.addFull("coon", "colored", "African American");
dictionary.addFull("cum", "milk");
dictionary.addFull("damn", "darn", "shoot", "heck", "doot");
dictionary.addFull("dam", "darn", "shoot", "heck", "doot");
dictionary.addFull("dick", "weewee", "peepee", "richard", "genitals", "gonads");
dictionary.addFull("dik", "weewee", "peepee", "richard", "genitals", "gonads");
dictionary.addFull("dike", "lesbian").addFull("dyke", "lesbian");
dictionary.addFull("douche", "sploosh");
dictionary.addFull("dumbass", "sillybilly").addFull("dumass", "sillybilly");
dictionary.addFull("fag", "niceperson", "cigarette", "flower");
dictionary.addFull("faggot", "niceperson", "cigarette", "flower");
dictionary.addFull("faggit", "niceperson", "cigarette", "flower");
dictionary.addFull("fagot", "niceperson", "cigarette", "flower");
dictionary.addFull("fagit", "niceperson", "cigarette", "flower");
dictionary.addFull("flamer", "niceperson", "cigarette", "flower");
dictionary.addFull("fudgepacker", "niceperson", "cigarette", "flower");
dictionary.addFull("fuck", "fudge", "shoot", "darn", "heck", "fiddle", "frick");
dictionary.addFull("fuk", "shoot", "darn", "hek", "fidle", "frik");
dictionary.addFull("gook", "china");
dictionary.addFull("gringo", "perfect human");
dictionary.addFull("homo", "homeowner");
dictionary.addFull("honkey", "hottie");
dictionary.addFull("hoe", "turd");
dictionary.addFull("jigaboo", "African American");
dictionary.addFull("nigger", "African American", "nagger");
dictionary.addFull("nigga", "African American");
dictionary.addFull("pussy", "weenie", "special spot", "private temple", "peepee", "weewee");
dictionary.addFull("queer", "niceperson", "cigarette", "flower");
dictionary.addFull("skank", "open");
dictionary.addFull("skeet", "waterjet");
dictionary.addFull("slut", "cutie");
dictionary.addFull("spick", "Mexican");
dictionary.addFull("spic", "Mexican");
dictionary.addFull("twat", "bergina");
dictionary.addFull("whore", "babe");
dictionary.addFull("wetback", "Mexican");
dictionary.addFull("wank", "hand-exercise");
}
@Override
public boolean modifyServerCommands() {
return true;
}
@Override
public boolean modifyClientCommands() {
return true;
}
@Override
public String mutate(String message) {
return dictionary.replaceAll(message, 0);
}
}
| kale2524/Huzuni | src/minecraft/net/halalaboos/huzuni/mod/misc/chat/mutators/SpeechTherapist.java |
213,443 | package badwords;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.amazon.speech.slu.Intent;
import com.amazon.speech.speechlet.IntentRequest;
import com.amazon.speech.speechlet.LaunchRequest;
import com.amazon.speech.speechlet.Session;
import com.amazon.speech.speechlet.SessionEndedRequest;
import com.amazon.speech.speechlet.SessionStartedRequest;
import com.amazon.speech.speechlet.Speechlet;
import com.amazon.speech.speechlet.SpeechletException;
import com.amazon.speech.speechlet.SpeechletResponse;
import com.amazon.speech.ui.PlainTextOutputSpeech;
import com.amazon.speech.ui.Reprompt;
import com.amazon.speech.ui.SimpleCard;
import com.amazon.speech.ui.*;
import java.util.ArrayList;
import java.util.Random;
public class BadWordsSpeechlet implements Speechlet {
private static final Logger log = LoggerFactory.getLogger(BadWordsSpeechlet.class);
private static ArrayList<String> usedBadWordsList = new ArrayList<>();
@Override
public void onSessionStarted(final SessionStartedRequest request, final Session session)
throws SpeechletException {
log.info("onSessionStarted requestId={}, sessionId={}", request.getRequestId(),
session.getSessionId());
// any initialization logic goes here
}
@Override
public SpeechletResponse onLaunch(final LaunchRequest request, final Session session)
throws SpeechletException {
log.info("onLaunch requestId={}, sessionId={}", request.getRequestId(),
session.getSessionId());
return getWelcomeResponse();
}
@Override
public void onSessionEnded(final SessionEndedRequest request, final Session session)
throws SpeechletException {
log.info("onSessionEnded requestId={}, sessionId={}", request.getRequestId(),
session.getSessionId());
}
@Override
public SpeechletResponse onIntent(final IntentRequest request, final Session session)
throws SpeechletException {
log.info("onIntent requestId={}, sessionId={}", request.getRequestId(), session.getSessionId());
Intent intent = request.getIntent();
String intentName = intent.getName();
if("InitialBadWordsIntent".equals(intentName)) {
return initialBadWordsRequest(intent);
} else if ("AMAZON.StopIntent".equals(intentName)) {
return getAmazonStopResponse();
} else if ("AMAZON.HelpIntent".equals(intentName)) {
return getAmazonHelpResponse();
} else if ("AMAZON.CancelIntent".equals(intentName)) {
return getAmazonCancelResponse();
} else {
throw new SpeechletException("Invalid Intent");
}
}
private SpeechletResponse initialBadWordsRequest(Intent intent) {
String speechOutput = this.getCrudeRemark();
String repromptText = this.getCrudeRemark();
// Add your logic here...
return askForResponse(speechOutput, false, "<speak>" + repromptText + "</speak>", true);
}
private SpeechletResponse getWelcomeResponse() {
String speechOutput = this.getCrudeRemark();
String repromptText = this.getCrudeRemark();
return askForResponse(speechOutput, false, repromptText, false);
}
private SpeechletResponse askForResponse(String stringOutput, boolean isOutputSsml,
String repromptText, boolean isRepromptSsml) {
OutputSpeech outputSpeech, repromptOutputSpeech;
if (isOutputSsml) {
outputSpeech = new SsmlOutputSpeech();
((SsmlOutputSpeech) outputSpeech).setSsml(stringOutput);
} else {
outputSpeech = new PlainTextOutputSpeech();
((PlainTextOutputSpeech) outputSpeech).setText(stringOutput);
}
if (isRepromptSsml) {
repromptOutputSpeech = new SsmlOutputSpeech();
((SsmlOutputSpeech) repromptOutputSpeech).setSsml(repromptText);
} else {
repromptOutputSpeech = new PlainTextOutputSpeech();
((PlainTextOutputSpeech) repromptOutputSpeech).setText(repromptText);
}
Reprompt reprompt = new Reprompt();
reprompt.setOutputSpeech(repromptOutputSpeech);
return SpeechletResponse.newAskResponse(outputSpeech, reprompt);
}
private SpeechletResponse getAmazonHelpResponse() {
String speechOutput = "Ask a Bad Word, by saying \"Bad Word\"";
String repromptText = "Again, Ask a Bad Word, by saying \"Bad Word\\";
return askForResponse(speechOutput, false, repromptText, false);
}
private SpeechletResponse getAmazonStopResponse() {
return SpeechletResponse.newTellResponse(getGoodByeText());
}
private SpeechletResponse getAmazonCancelResponse() {
return SpeechletResponse.newTellResponse(getGoodByeText());
}
private PlainTextOutputSpeech getGoodByeText() {
PlainTextOutputSpeech outputSpeech = new PlainTextOutputSpeech();
outputSpeech.setText("Goodbye");
return outputSpeech;
}
private String getCrudeRemark(){
return getRandomStartPhrased() + " " + getRandomBadWord();
}
private String getRandomBadWord() {
String joke = BAD_WORDS[getRandomIndex()];
if(!usedBadWordsList.contains(joke)){
usedBadWordsList.add(joke);
} else {
joke = getRandomBadWord();
}
return joke;
}
private String getRandomStartPhrased() {
return START_PHRASE[getRandomPhraseIndex()];
}
private int getRandomIndex(){
return new Random().nextInt(BAD_WORDS.length);
}
private int getRandomPhraseIndex(){
return new Random().nextInt(START_PHRASE.length);
}
private static final String[] START_PHRASE = {
"you",
"you are a",
"piece of",
"piss off",
"screw you"
};
private static final String[] BAD_WORDS = {
"anus",
"arse",
"arsehole",
"ass",
"ass-hat",
"ass-pirate",
"assbag",
"assbandit",
"assbanger",
"assbite",
"assclown",
"asscock",
"asscracker",
"asses",
"assface",
"assfuck",
"assfucker",
"assgoblin",
"asshat",
"asshead",
"asshole",
"asshopper",
"assjacker",
"asslick",
"asslicker",
"assmonkey",
"assmunch",
"assmuncher",
"assnigger",
"asspirate",
"assshit",
"assshole",
"asssucker",
"asswad",
"asswipe",
"bampot",
"bastard",
"beaner",
"bitch",
"bitchass",
"bitches",
"bitchtits",
"bitchy",
"blow job",
"blowjob",
"bollocks",
"bollox",
"boner",
"brotherfucker",
"bullshit",
"bumblefuck",
"butt plug",
"butt-pirate",
"buttfucka",
"buttfucker",
"camel toe",
"carpetmuncher",
"chinc",
"chink",
"choad",
"chode",
"clit",
"clitface",
"clitfuck",
"clusterfuck",
"cock",
"cockass",
"cockbite",
"cockburger",
"cockface",
"cockfucker",
"cockhead",
"cockjockey",
"cockknoker",
"cockmaster",
"cockmongler",
"cockmongruel",
"cockmonkey",
"cockmuncher",
"cocknose",
"cocknugget",
"cockshit",
"cocksmith",
"cocksmoker",
"cocksucker",
"coochie",
"coochy",
"coon",
"cooter",
"cracker",
"cum",
"cumbubble",
"cumdumpster",
"cumguzzler",
"cumjockey",
"cumslut",
"cumtart",
"cunnie",
"cunnilingus",
"cunt",
"cuntface",
"cunthole",
"cuntlicker",
"cuntrag",
"cuntslut",
"dago",
"damn",
"deggo",
"dick",
"dickbag",
"dickbeaters",
"dickface",
"dickfuck",
"dickfucker",
"dickhead",
"dickhole",
"dickjuice",
"dickmilk",
"dickmonger",
"dicks",
"dickslap",
"dicksucker",
"dicksucking",
"dickwad",
"dickweasel",
"dickweed",
"dickwod",
"dike",
"dildo",
"dipshit",
"doochbag",
"dookie",
"douche",
"douche-fag",
"douchebag",
"douchewaffle",
"dumass",
"dumb ass",
"dumbass",
"dumbfuck",
"dumbshit",
"dumshit",
"dyke",
"fag",
"fagbag",
"fagfucker",
"faggit",
"faggot",
"faggotcock",
"fagtard",
"fatass",
"fellatio",
"feltch",
"flamer",
"fuck",
"fuckass",
"fuckbag",
"fuckboy",
"fuckbrain",
"fuckbutt",
"fucked",
"fucker",
"fuckersucker",
"fuckface",
"fuckhead",
"fuckhole",
"fuckin",
"fucking",
"fucknut",
"fucknutt",
"fuckoff",
"fucks",
"fuckstick",
"fucktard",
"fuckup",
"fuckwad",
"fuckwit",
"fuckwitt",
"fudgepacker",
"gay",
"gayass",
"gaybob",
"gaydo",
"gayfuck",
"gayfuckist",
"gaylord",
"gaytard",
"gaywad",
"goddamn",
"goddamnit",
"gooch",
"gook",
"gringo",
"guido",
"handjob",
"hard on",
"heeb",
"hell",
"ho",
"hoe",
"homo",
"homodumbshit",
"honkey",
"humping",
"jackass",
"jap",
"jerk off",
"jigaboo",
"jizz",
"jungle bunny",
"junglebunny",
"kike",
"kooch",
"kootch",
"kunt",
"kyke",
"lesbian",
"lesbo",
"lezzie",
"mcfagget",
"mick",
"minge",
"mothafucka",
"motherfucker",
"motherfucking",
"muff",
"muffdiver",
"munging",
"negro",
"nigga",
"nigger",
"niggers",
"niglet",
"nut sack",
"nutsack",
"paki",
"panooch",
"pecker",
"peckerhead",
"penis",
"penisfucker",
"penispuffer",
"piss",
"pissed",
"pissed off",
"pissflaps",
"polesmoker",
"pollock",
"poon",
"poonani",
"poonany",
"poontang",
"porch monkey",
"porchmonkey",
"poser",
"prick",
"punanny",
"punta",
"pussies",
"pussy",
"pussylicking",
"puto",
"queef",
"queer",
"queerbait",
"queerhole",
"renob",
"rimjob",
"ruski",
"sand nigger",
"sandnigger",
"schlong",
"scrote",
"shit",
"shitass",
"shitbag",
"shitbagger",
"shitbrains",
"shitbreath",
"shitcunt",
"shitdick",
"shitface",
"shitfaced",
"shithead",
"shithole",
"shithouse",
"shitspitter",
"shitstain",
"shitter",
"shittiest",
"shitting",
"shitty",
"shiz",
"shiznit",
"skank",
"skeet",
"skullfuck",
"slut",
"slutbag",
"smeg",
"snatch",
"spic",
"spick",
"splooge",
"spook",
"tard",
"testicle",
"thundercunt",
"tit",
"titfuck",
"tits",
"tittyfuck",
"twat",
"twatlips",
"twats",
"twatwaffle",
"uncle fucker",
"va-j-j",
"vag",
"vagina",
"vjayjay",
"wank",
"wetback",
"whore",
"whorebag",
"whoreface",
"wop"
};
} | sunnysidesounds/badwords-skill-bundle | skill/src/main/java/badwords/BadWordsSpeechlet.java |
213,444 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rapternet.irc.bots.wheatley.commands;
import rapternet.irc.bots.common.objects.Command;
import rapternet.irc.bots.common.objects.CommandMetaData;
import rapternet.irc.bots.wheatley.listeners.Global;
import java.util.ArrayList;
import org.pircbotx.Colors;
import org.pircbotx.hooks.Event;
/**
*
* @author Stephen
* Original Bot = Matrapter
* A Matlab based IRC bot written by Steve-O
*
* Requirements:
* - APIs
* N/A
* - Custom Objects
* Command
* CommandMetaData
* - Utilities
* N/A
* - Linked Classes
* N/A
*
* Sources: http://www.tastefullyoffensive.com/2011/10/shakespeare-insult-kit.html
* http://imgur.com/gallery/q4UXODX
* http://www.pangloss.com/seidel/shake_rule.html
* http://m.imgur.com/gallery/gUnGqDI
* http://i.imgur.com//reyuFY3.jpg
*
* Activate Commands With
* !Shakespeare [it]
* Insults the provided object, if no object is give, it insults 'thou'
* !Insult [it]
* !Slander [it]
* Insults the given object or 'you' if no object is given, using a
* random insult generated from one of the built in methods
*/
public class SlanderCMD implements Command {
@Override
public String toString(){
return("SLANDER");
}
@Override
public boolean isCommand(String toCheck){
return false;
}
@Override
public ArrayList<String> commandTerms(){
ArrayList<String> a = new ArrayList<>();
a.add("insult");
a.add("slander");
a.add("shakespeare");
return a;
}
@Override
public ArrayList<String> help(String command) {
ArrayList<String> a = new ArrayList<>();
a.add(Colors.BOLD + Global.commandPrefix + "Slander [nick]" + Colors.NORMAL + ": Responds with a randomly generated insult of the input nick, or if no nick is input, it insults \"you\"");
return a;
}
@Override
public void processCommand(Event event){
CommandMetaData commandData = new CommandMetaData(event, false);
String respondTo = commandData.respondToIgnoreMessage();
String it;
String[] check = commandData.getCommandSplit();
if (check.length!=2){
it = "You ";
}
else {
it = check[1] + ", you ";
}
if (check[0].equalsIgnoreCase("!shakespeare")) {
if (check.length!=2){
it = "Thou ";
}
else {
it = check[1] + ", thou ";
}
event.getBot().sendIRC().message(respondTo, shakespeareInsult(it));
}
else{
switch((int) (Math.random()*5+1)) {
case 1:
event.getBot().sendIRC().message(respondTo, basicInsult(it));
break;
case 2:
event.getBot().sendIRC().message(respondTo, gavinInsult(it));
break;
case 3:
event.getBot().sendIRC().message(respondTo, basicInsult(it));
break;
case 4:
event.getBot().sendIRC().message(respondTo, gavinInsult(it));
break;
case 5:
event.getBot().sendIRC().message(respondTo, shakespeareInsult(it));
break;
}
}
}
private String shakespeareInsult(String insult){
ArrayList<String> a = shakespeareFront(); //Begenning part of insult
ArrayList<String> b = shakespeareMid(); //Middle of insult
ArrayList<String> c = shakespeareEnd(); //End of insult
insult = insult +a.get((int) (Math.random()*a.size()-1))+" "+ b.get((int) (Math.random()*b.size()-1)) + " " +c.get((int) (Math.random()*c.size()-1));
return(insult);
}
private String basicInsult(String insult){
ArrayList<String> a = new ArrayList<>(); //Begenning part of insult
ArrayList<String> b = new ArrayList<>(); //Middle of insult
ArrayList<String> c = new ArrayList<>(); //End of insult
a.add("idiotic");
a.add("insecure");
a.add("stupid");
a.add("slimy");
a.add("slutty");
a.add("smelly");
a.add("pompous");
a.add("lazy");
a.add("communist");
a.add("dicknose");
a.add("pie-eating");
a.add("racist");
a.add("elitist");
a.add("white trash");
a.add("butterface");
a.add("drug-loving");
a.add("tone deaf");
a.add("ugly");
a.add("creepy");
b.add("douche");
b.add("ass");
b.add("turd");
b.add("rectum");
b.add("butt");
b.add("cock");
b.add("shit");
b.add("crotch");
b.add("bitch");
b.add("prick");
b.add("slut");
b.add("taint");
b.add("fuck");
b.add("dick");
b.add("shart");
b.add("boner");
b.add("nut");
b.add("sphincter");
c.add("pilot");
c.add("canoe");
c.add("captain");
c.add("pirate");
c.add("hammer");
c.add("knob");
c.add("box");
c.add("jockey");
c.add("Nazi");
c.add("waffle");
c.add("goblin");
c.add("blossom");
c.add("biscuit");
c.add("clown");
c.add("socket");
c.add("monster");
c.add("hound");
c.add("dragon");
c.add("balloon");
//String insult = "You ";
int scale = (int) (Math.random()*3);
if (scale == 0)
insult = insult + a.get((int) (Math.random()*a.size()-1))+" ";
else {
int index;
for (int i=0; i<=scale;i++){
index = (int) (Math.random()*a.size()-1);
insult = insult + a.get(index)+", ";
a.remove(index);
}
}
insult = insult + b.get((int) (Math.random()*b.size()-1)) + " " +c.get((int) (Math.random()*c.size()-1));
return(insult);
}
private String gavinInsult(String insult){
ArrayList<String> a = new ArrayList<>(); //Begenning part of insult
ArrayList<String> b = new ArrayList<>(); //Middle of insult
a.add("gobby");
a.add("gammy");
a.add("gumpy");
a.add("mungy");
a.add("buggy");
a.add("pricky");
a.add("gebby");
a.add("muggy");
a.add("pissy");
a.add("dopy");
a.add("spinning");
a.add("spunky");
a.add("toppy");
a.add("goffy");
a.add("drippy");
a.add("biffy");
a.add("absolute");
a.add("douchey");
a.add("jammy");
a.add("wallar");
a.add("chuffy");
b.add("donut");
b.add("munge");
b.add("geck");
b.add("bitch");
b.add("minge");
b.add("gob");
b.add("anus");
b.add("gub");
b.add("guff");
b.add("knob");
b.add("git");
b.add("bugger");
b.add("spap");
b.add("bip");
b.add("prick");
b.add("mug");
b.add("gump");
b.add("sausage");
b.add("mugget");
b.add("peem");
b.add("pleb");
insult =insult + a.get((int) (Math.random()*a.size()-1)) +" lit'le "+ b.get((int) (Math.random()*b.size()-1));
return(insult);
}
private ArrayList<String> shakespeareFront(){
ArrayList<String> first = new ArrayList<>();
first.add("artless");
first.add("bawdy");
first.add("beslubbering");
first.add("bootless");
first.add("churlish");
first.add("cockered");
first.add("dankish");
first.add("dissembling");
first.add("droning");
first.add("errant");
first.add("fawning");
first.add("fobbing");
first.add("froward");
first.add("frothy");
first.add("gleeking");
first.add("goatish");
first.add("gorbellied");
first.add("impertinent");
first.add("infectious");
first.add("jarring");
first.add("loggerheaded");
first.add("lumpish");
first.add("mammering");
first.add("mangled");
first.add("mewling");
first.add("paunchy");
first.add("pribbling");
first.add("puking");
first.add("puny");
first.add("qualling");
first.add("rank");
first.add("reeky");
first.add("roguish");
first.add("ruttish");
first.add("saucy");
first.add("spleeny");
first.add("spongy");
first.add("surly");
first.add("tottering");
first.add("unmuzzled");
first.add("vain");
first.add("venomed");
first.add("villainous");
first.add("warped");
first.add("wayward");
first.add("weedy");
first.add("yeasty");
first.add("clouted");
first.add("cockered");
first.add("currish");
//Booster kit 1
first.add("cullionly");
first.add("fusty");
first.add("caluminous");
first.add("wimpled");
first.add("burly-boned");
first.add("misbegotten");
first.add("odiferous");
first.add("cullionly");
first.add("poisonous");
first.add("fishified");
first.add("Wart-necked");
return first;
}
private ArrayList<String> shakespeareEnd(){
ArrayList<String> end = new ArrayList<>();
end.add("apple-john");
end.add("boar-pig");
end.add("bugbear");
end.add("bum-bailey");
end.add("clack-dish");
end.add("canker-dish");
end.add("clotpole");
end.add("coxcomb");
end.add("cod-piece");
end.add("death-token");
end.add("dewberry");
end.add("flap-dragon");
end.add("flax-wench");
end.add("flirt-gill");
end.add("foot-licker");
end.add("fustilarian");
end.add("giglet");
end.add("gudgeon");
end.add("haggard");
end.add("harpy");
end.add("hedge-pig");
end.add("horn-beast");
end.add("hugger-mugger");
end.add("joithead");
end.add("lewdster");
end.add("lout");
end.add("maggot-pie");
end.add("malt-worm");
end.add("mammet");
end.add("measle");
end.add("minnow");
end.add("miscreant");
end.add("moldwarp");
end.add("mumble-news");
end.add("nut-hook");
end.add("pigeon-egg");
end.add("pignut");
end.add("puttock");
end.add("pumpion");
end.add("ratsbane");
end.add("scut");
end.add("skainsmate");
end.add("strumpet");
end.add("varlot");
end.add("vassal");
end.add("whey-face");
end.add("wagtail");
end.add("baggage");
end.add("barnacle");
end.add("bladdar");
//Booster kit 1
end.add("knave");
end.add("blind-worm");
end.add("popinjay");
end.add("scullian");
end.add("jolt-head");
end.add("malcontent");
end.add("devil-monk");
end.add("toad");
end.add("rascal");
end.add("Basket-Cockle");
return end;
}
private ArrayList<String> shakespeareMid(){
ArrayList<String> mid = new ArrayList<>();
mid.add("base-court");
mid.add("bat-fowling");
mid.add("beef-witted");
mid.add("beetle-headed");
mid.add("boil-brained");
mid.add("clapper-clawed");
mid.add("clay-brained");
mid.add("common-kissing");
mid.add("crook-pated");
mid.add("dismal-dreaming");
mid.add("dizzy-eyed");
mid.add("doghearted");
mid.add("dread-bolted");
mid.add("earth-vexing");
mid.add("elf-skinned");
mid.add("fat-kidneyed");
mid.add("fen-sucked");
mid.add("flap-mouthed");
mid.add("fly-bitten");
mid.add("folly-fallen");
mid.add("fool-born");
mid.add("full-gorged");
mid.add("guts-griping");
mid.add("half-faced");
mid.add("hasty-witted");
mid.add("hedge-born");
mid.add("hell-hated");
mid.add("idle-headed");
mid.add("ill-breeding");
mid.add("ill-nurtured");
mid.add("knotty-pated");
mid.add("milk-livered");
mid.add("motley-minded");
mid.add("onion-eyed");
mid.add("plume-plucked");
mid.add("pottle-deep");
mid.add("pox-marked");
mid.add("reeling-ripe");
mid.add("rough-hewn");
mid.add("rude-growing");
mid.add("rump-fed");
mid.add("shard-borne");
mid.add("sheep-biting");
mid.add("spur-galled");
mid.add("swag-bellied");
mid.add("tardy-gaited");
mid.add("tickle-brained");
mid.add("toad-spotted");
mid.add("unchin-snouted");
mid.add("weather-bitten");
//Booster kit 1
mid.add("whoreson");
mid.add("malmsey-nosed");
mid.add("rampallian");
mid.add("lily-livered");
mid.add("scurvy-valiant");
mid.add("brazen-faced");
mid.add("unwash'd");
mid.add("bunch-back'd");
mid.add("leaden-footed");
mid.add("muddy-mettled");
mid.add("pigeon-liver'd");
mid.add("scale-sided");
return mid;
}
} | AeroSteveO/Wheatley | src/rapternet/irc/bots/wheatley/commands/SlanderCMD.java |
213,445 | package com.example.js.taaruna;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Detail extends AppCompatActivity {
final String EXTRA_TEXT = "text";
ProgressDialog MessProg;
ImageView imgscv;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
WebView texto=(WebView)findViewById(R.id.texto);
imgscv = (ImageView) findViewById(R.id.imcol);
Intent intent = getIntent();
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
final Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("smsto:"+ Uri.encode("782912730")));
intent.putExtra("sms_body","Taaruna à l'écoute :\n");
startActivity(intent);
}
});
switch (intent.getStringExtra(EXTRA_TEXT)){
case "Huile De Coco" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/coco.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/coco.jpg");
break;
case "Les Sourcils" :
setTitle("Les Souricils");
texto.loadUrl("file:///android_asset/sourcils.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/sourcil.jpg");
break;
case "Transpirations" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/transpiration.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/aisselles.jpg");
break;
case "Se Doucher" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/douche.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/doucher.jpg");
break;
case "Manucure" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/manucure.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/manicure.jpg");
break;
case "Les Cheveux Afro" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/cheveux_afro.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/cheveux.jpg");
break;
case "Peau Grasse" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/peau_grasse.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/grasse.jpg");
break;
case "Anti-vergetures" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/anti_vergiture.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/vergeture.jpg");
break;
case "Ventre Plat" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/ventre_plat.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/ventre.jpg");
break;
case "Produits cosmétiques à éviter" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/cometique_eviter.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/produit.jpg");
break;
case "0": {
setTitle("Un coup d'éclat au citron");
texto.loadUrl("file:///android_asset/citron.html");
// Execution de l'AsyncTask
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/citron.jpg");
}break;
case "1": {
setTitle("Un lait au concombre");
texto.loadUrl("file:///android_asset/lait_concombre.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/concombre.jpg");
}break;
case "2": {
setTitle("Un gommage au sel");
texto.loadUrl("file:///android_asset/gommage_sel.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/gommage_sel.jpg");
}break;
case "3": {
setTitle("Un soin cheveux secs à l'avocat");
texto.loadUrl("file:///android_asset/soin_cheveux_sec.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/avocat.jpg");
}break;
case "4": {
setTitle("Un soin belle main");
texto.loadUrl("file:///android_asset/belle_main.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/main.jpg");
}break;
case "5": {
setTitle("Un masque à la tomate");
texto.loadUrl("file:///android_asset/masque_tomate.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/tomate.jpg");
}break;
case "6": {
setTitle("Un sourire éclatant");
texto.loadUrl("file:///android_asset/sourire_eclatant.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/sourire.jpg");
}break;
case "7": {
setTitle("Démaquillage express");
texto.loadUrl("file:///android_asset/demaquillage_express.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/demaquillage.jpg");
}break;
case "8":
{ setTitle("Gommage à la pastèque");
texto.loadUrl("file:///android_asset/gommage_pasteque.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/master/Images_Taaruna/pasteque.jpg");
}break;
case "Fond De Teint Pro" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/poudre.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/poudre.jpg");
break;
case "Masscara" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/mascara.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/mascara.png");
break;
case "Ombre à paupière" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/ombr_paupiere.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/ombre_paupiere.png");
break;
case "Poudre teint parfait" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/fonte.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/fonte.jpg");
break;
case "Floral Gloss" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/gloss.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/lol.jpg");
break;
case "Eyelinner" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/eyeliner.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/eyeliner.jpg");
break;
case "Stick teint parfait" :
setTitle(intent.getStringExtra(EXTRA_TEXT));
texto.loadUrl("file:///android_asset/fond.html");
new ChargementImage().execute("https://raw.githubusercontent.com/paceuniversity/M4S2016team4/d90fbcdffd14ee622aeb99cda8cabe4f91bafabe/Images_Taaruna/fond.png");
break;
}
}
// Télécharger l'ImageBangui avec AsyncTask
protected class ChargementImage extends AsyncTask<String, Void, Bitmap> {
@Override
protected void onPreExecute() {
super.onPreExecute();
// Creation d'un message de progression du téléchargement de l'image
MessProg = new ProgressDialog(Detail.this);
// Mettre un titre à la boite de dialogue du téléchargement de l'image
MessProg.setTitle("Téléchargement de l'image depuis Github");
// Créer un message de progression du téléchargement
MessProg.setMessage("Chargement ...");
MessProg.setIndeterminate(false);
// Montrer la boite de dialogue
MessProg.show();
}
@Override
protected Bitmap doInBackground(String... lien) {
Bitmap bitmap = null;
try {
//Vérification de la connexion
if (isOnline()== false)
{
//Message appelant à la connexion
MessProg.dismiss();
Toast toast = Toast.makeText(getApplicationContext(), "Erreur de connexion", Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
toast.show();
}else
{ // Télécgargement de l'image
URL url = new URL(lien[0]);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
//Decodage du Bitmap
InputStream is = con.getInputStream();
bitmap = BitmapFactory.decodeStream(is);
is.close();
}
} catch (Exception e) {
Log.e("Image", "Le chargement de l'image à échouer", e);
Log.e("error", e.getMessage());
}
return bitmap;
}
@Override
protected void onPostExecute(Bitmap result) {
// Mettre l'image dans l'image view
imgscv.setImageBitmap(result);
// Fermer la boite de dialogue
MessProg.dismiss();
//Toast Message
showToast();
}
}
public boolean isOnline() {
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
return cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isConnectedOrConnecting();
}
private void showToast(){
Toast toast = Toast.makeText(this, "Envoyez nous des questions par SMS,\n" +
"en cliquant sur le logo de message", Toast.LENGTH_LONG);
toast.setGravity(Gravity.BOTTOM, 0, 0);
toast.show();
}
}
| paceuniversity/M4S2016team4 | Taaruna/app/src/main/java/com/example/js/taaruna/Detail.java |
213,446 | package com.drtshock.willie.command.misc;
import com.drtshock.willie.Willie;
import com.drtshock.willie.command.CommandHandler;
import org.pircbotx.Channel;
import org.pircbotx.Colors;
import org.pircbotx.User;
public class RulesCommandHandler implements CommandHandler {
@Override
public void handle(Willie bot, Channel channel, User sender, String[] args) {
channel.sendMessage(Colors.RED + "Don't be an annoying douche. Ask Chester if you have help.");
}
}
| macalinao/Willie | src/main/java/com/drtshock/willie/command/misc/RulesCommandHandler.java |
213,447 | /**
*
*/
package uk.bl.wa.sentimentalj;
/*
* #%L
* SentimentalJ
* %%
* Copyright (C) 2012 - 2013 The British Library
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
import java.util.Arrays;
import java.util.List;
/**
* @author Andrew Jackson <[email protected]>
*
*/
public class SentimentStrings {
/* Intensifiers */
public static List<String> int1 = Arrays.asList( "alot", "awesomely", "fairly", "far", "most", "much",
"really", "so", "such", "too", "truely", "very", "well" );
public static List<String> int2 = Arrays.asList( "absolute", "absolutely", "absolutely", "awefully",
"categorically", "certainly", "complete", "completely", "crystal",
"deadly", "deeply", "definitely", "downright", "dramatically", "effin",
"effing", "enthusiastically ", "entirely", "exceedingly", "freely",
"fully", "goddamned", "highly", "honestly ", "incredibly",
"marvelously", "mightily", "mighty", "particularily", "perfectly", "positively",
"precious", "preciously", "readily", "remarkably", "seriously", "sincerely",
"strongly", "super", "superbly", "superduper", "thoroughgoing", "toppingly",
"toppingly", "total", "totally", "utterly", "wonderfully", "wondrous", "wondrously" );
public static List<String> int3 = Arrays.asList( "all-fired", "amazingly", "bloodyhell", "dangerously", "deucedly", "devilishly",
"drastically", "ecstatically", "extraordinarily", "extremely", "hellishly", "infernally",
"insanely ", "intense", "intensely", "sublimely", "terrifically" );
/* Negative */
public static List<String> neg5 = Arrays.asList("bastard","bastards","bitch","bitches","cock","cocksucker","cocksuckers","cunt",
"motherfucker","motherfucking","niggas","nigger","prick","slut","son-of-a-bitch","twat");
public static List<String> neg4 = Arrays.asList("ass","assfucking","asshole","bullshit","catastrophic","damn","damned","damnit","dick",
"dickhead","fraud","frauds","fraudster","fraudsters","fraudulence","fraudulent","fuck","fucked",
"fucker","fuckers","fuckface","fuckhead","fucking","fucktard","fuked","fuking","hell","jackass",
"jackasses","piss","pissed","rape","rapist","scumbag","shit","shithead","shrew","torture","tortured",
"tortures","torturing","whore","wtf");
public static List<String> neg3 = Arrays.asList("abhor","abhorred","abhorrent","abhors","abuse","abused","abuses","abusive",
"acrimonious","agonise","agonised","agonises","agonising","agonize","agonized","agonizes",
"agonizing","anger","angers","angry","anguish","anguished","apathetic","apathy","apeshit",
"arrested","assassination","assassinations","awful","bad","badass","badly","bankrupt","bankster",
"betray","betrayal","betrayed","betraying","betrays","bloody","boring","brainwashing","bribe",
"catastrophe","charged","charmless","chastise","chastised","chastises","chastising","cheat",
"cheated","cheater","cheaters","cheats","colluding","conspiracy","cover-up","crap","crime",
"criminal","criminals","crisis","cruel","cruelty","damage","damages","dead","deceit","deceitful",
"deceive","deceived","deceives","deceiving","deception","defect","defects","despair","despairing",
"despairs","desperate","desperately","despondent","destroy","destroyed","destroying","destroys",
"destruction","destructive","die","died","dipshit","dire","direful","disastrous","disgust",
"disgusted","disgusting","distrust","distrustful","doesnotwork","douche","douchebag","dreadful",
"dumb","dumbass","evil","fag","faggot","faggots","fake","fakes","faking","falsified","falsify",
"fatalities","fatality","fedup","felonies","felony","fiasco","frenzy","frightening","fud","furious",
"goddamn","greed","greenwash","greenwashing","greenwash","greenwasher","greenwashers","greenwashing",
"guilt","guilty","hate","hated","haters","hates","hating","heartbreaking","heartbroken","horrendous",
"horrible","horrific","horrified","humiliated","humiliation","hysteria","hysterical","hysterics",
"idiot","idiotic","illegal","imbecile","irate","irritate","irritated","irritating","jerk","kill",
"killed","killing","kills","liar","liars","loathe","loathed","loathes","loathing","loose","looses",
"loser","losing","loss","lost","lunatic","lunatics","mad","maddening","madly","madness","mediocrity",
"miserable","misleading","moron","murdering","murderous","nasty","nofun","notworking","nuts",
"obnoxious","outrage","outraged","panic","panicked","panics","perjury","pissing","pseudoscience",
"racism","racist","racists","rant","ranter","ranters","rants","ridiculous","scandal","scandalous",
"scandals","screwedup","selfish","selfishness","shitty","sinful","slavery","spammer","spammers",
"suck","sucks","swindle","swindles","swindling","terrible","terribly","terrified","terror",
"terrorize","terrorized","terrorizes","trauma","traumatic","treason","treasonous","ugly","victim",
"victimize","victimized","victimizes","victimizing","victims","vile","violence","violent","vitriolic",
"wanker","warning","warnings","whitewash","withdrawal","woeful","worried","worry","worrying","worse",
"worsen","worsened","worsening","worsens","worst","wrathful");
public static List<String> neg2 = Arrays.asList("abandon","abandoned","abandons","abducted","abduction","abductions","accident",
"accidental","accidentally","accidents","accusation","accusations","accuse","accused","accuses",
"accusing","ache","aching","admonish","admonished","afraid","aggravate","aggravated","aggravates",
"aggravating","aggression","aggressions","aggressive","aghast","alarm","alarmed","alarmist","alarmists",
"alienation","allergic","alone","animosity","annoy","annoyance","annoyed","annoying","annoys",
"antagonistic","anxiety","anxious","apocalyptic","appalled","appalling","apprehensive","arrest",
"arrests","arrogant","ashame","ashamed","awkward","bailout","bamboozle","bamboozled","bamboozles",
"ban","banned","barrier","beaten","belittle","belittled","bereave","bereaved","bereaves","bereaving",
"biased","bitter","bitterly","bizarre","blah","blame","blamed","blames","blaming","blurry","boastful",
"bore","bored","bother","bothered","bothers","bothersome","boycott","boycotted","boycotting","boycotts",
"brooding","bullied","bully","bullying","bummer","burden","burdened","burdening","burdens","careless",
"cashingin","casualty","censor","censored","censors","chagrin","chagrined","chaos","chaotic","charges",
"cheerless","childish","choke","choked","chokes","choking","clash","clueless","cocky","coerced",
"collapse","collapsed","collapses","collapsing","collision","collisions","complacent","complain",
"complained","complains","condemn","condemnation","condemned","condemns","conflict","conflicting",
"conflictive","conflicts","confuse","confused","confusing","constrained","contagion","contagions",
"contempt","contemptuous","contemptuously","contentious","contestable","controversial",
"controversially","cornered","costly","coward","cowardly","crash","crazier","craziest","crazy",
"crestfallen","cried","cries","critic","criticism","criticize","criticized","criticizes","criticizing",
"critics","crushed","crying","cynic","cynical","cynicism","danger","darkest","deadlock","death",
"debt","defeated","defenseless","deficit","degrade","degraded","degrades","dehumanize","dehumanized",
"dehumanizes","dehumanizing","deject","dejected","dejecting","dejects","demoralized","denied","denier",
"deniers","denies","denounce","denounces","deny","denying","depressed","depressing","derail",
"derailed","derails","deride","derided","derides","deriding","derision","detain","detained",
"detention","devastate","devastated","devastating","diffident","dirt","dirtier","dirtiest","dirty",
"disadvantage","disadvantaged","disappoint","disappointed","disappointing","disappointment",
"disappointments","disappoints","disaster","disasters","disbelieve","disconsolate","disconsolation",
"discontented","discord","discouraged","discredited","disdain","disgrace","disgraced","disheartened",
"dishonest","disillusioned","disinclined","disjointed","dislike","dismal","dismayed","disorder",
"disorganized","disoriented","disparage","disparaged","disparages","disparaging","displeased",
"dispute","disputed","disputes","disputing","disqualified","disquiet","disregard","disregarded",
"disregarding","disregards","disrespect","disrespected","disruption","disruptions","disruptive",
"dissatisfied","distort","distorted","distorting","distorts","distract","distracted","distraction",
"distracts","distress","distressed","distresses","distressing","disturb","disturbed","disturbing",
"disturbs","dithering","dodging","dodgy","dolorous","dontlike","doom","doomed","downcast",
"downhearted","downside","drained","dread","dreaded","dreading","dreary","droopy","drown","drowned",
"drowns","drunk","dubious","dud","dull","dumped","dupe","duped","dysfunction","eerie","eery",
"embarrass","embarrassed","embarrasses","embarrassing","embarrassment","embittered","emergency",
"enemies","enemy","ennui","enrage","enraged","enrages","enraging","enslave","enslaved","enslaves",
"envious","erroneous","error","errors","exaggerate","exaggerated","exaggerates","exaggerating",
"excluded","exhausted","expel","expelled","expelling","expels","exploit","exploited","exploiting",
"exploits","fad","fail","failed","failing","fails","failure","failures","fainthearted","fallen",
"fascist","fascists","fatigue","fatigued","fatigues","fatiguing","fear","fearful","fearing",
"fearsome","feeble","fidgety","fire","fired","firing","flop","flops","flu","flustered","fool",
"foolish","fools","foreclosure","foreclosures","forgetful","fright","frightened","frikin","frustrate",
"frustrated","frustrates","frustrating","frustration","fuming","gag","gagged","giddy","gloomy","glum",
"grave","greedy","grief","grieved","gross","gullibility","gullible","hapless","haplessness","hardship",
"harm","harmed","harmful","harming","harms","harried","harsh","harsher","harshest","haunted","havoc",
"heavyhearted","helpless","hesitant","hesitate","hindrance","hoax","homesick","hooligan","hooliganism",
"hooligans","hopeless","hopelessness","hostile","huckster","hunger","hurt","hurting","hurts",
"hypocritical","ignorance","ignorant","ignored","ill","illiteracy","illness","illnesses","impatient",
"imperfect","impotent","imprisoned","inability","inaction","inadequate","incapable","incapacitated",
"incensed","incompetence","incompetent","inconsiderate","inconvenience","inconvenient","indecisive",
"indifference","indifferent","indignant","indignation","indoctrinate","indoctrinated","indoctrinates",
"indoctrinating","ineffective","ineffectively","infected","inferior","inflamed","infringement",
"infuriate","infuriated","infuriates","infuriating","injured","injury","injustice","inquisition",
"insane","insanity","insecure","insensitive","insensitivity","insignificant","insipid","insult",
"insulted","insulting","insults","interrogated","interrupt","interrupted","interrupting",
"interruption","interrupts","intimidate","intimidated","intimidates","intimidating","intimidation",
"irresolute","itchy","jailed","jealous","jeopardy","joyless","lack","lackadaisical","lagged",
"lagging","lags","lame","lawsuit","lawsuits","lethargic","lethargy","libelous","lied","litigious",
"livid","lobby","lobbying","lonely","lonesome","lugubrious","meaningless","melancholy","menace",
"menaced","mess","messed","messingup","mindless","misbehave","misbehaved","misbehaves","misbehaving",
"misery","misgiving","misinformation","misinformed","misinterpreted","misreporting",
"misrepresentation","miss","missed","missing","mistake","mistaken","mistakes","mistaking",
"misunderstand","misunderstanding","misunderstands","misunderstood","moan","moaned","moaning",
"moans","mock","mocked","mocking","mocks","mongering","monopolize","monopolized","monopolizes",
"monopolizing","mourn","mourned","mournful","mourning","mourns","mumpish","murder","murderer",
"murders","n00b","naive","na\\xc3\\xafve","needy","negative","negativity","neglect","neglected",
"neglecting","neglects","nervous","nervously","nonsense","noob","nosey","notgood","notorious",
"obliterate","obliterated","obscene","obsolete","obstacle","obstacles","obstinate","odd","offend",
"offended","offender","offending","offends","oppressed","oppressive","optionless","outcry",
"outmaneuvered","overreact","overreacted","overreaction","overreacts","oversell","overselling",
"oversells","oversimplification","oversimplified","oversimplifies","oversimplify","overstatement",
"overstatements","pain","pained","pathetic","penalty","peril","perpetrator","perpetrators",
"perplexed","persecute","persecuted","persecutes","persecuting","perturbed","pesky","pessimism",
"pessimistic","petrified","phobic","pique","piqued","piteous","pity","poised","poison","poisoned",
"poisons","pollute","polluted","polluter","polluters","pollutes","poor","poorer","poorest",
"possessive","powerless","prblm","prblms","pressured","prison","prisoner","prisoners","problem",
"problems","profiteer","propaganda","prosecuted","protest","protesters","protesting","protests",
"punish","punished","punishes","punitive","puzzled","quaking","questionable","rage","rageful",
"rash","rebellion","recession","reckless","refuse","refused","refusing","regret","regretful",
"regrets","regretted","regretting","remorse","repulsed","resentful","restless","restrict",
"restricted","restricting","restriction","restricts","retard","retarded","revenge","revengeful",
"riot","riots","risk","risks","rob","robber","robed","robing","robs","ruin","ruined","ruining",
"ruins","sabotage","sad","sadden","saddened","sadly","sarcastic","scam","scams","scapegoat",
"scapegoats","scare","scared","scary","sceptical","scold","scorn","scornful","scream","screamed",
"screaming","screams","screwed","sedition","seditious","self-deluded","sentence","sentenced",
"sentences","sentencing","severe","shaky","shame","shamed","shameful","shattered","shock","shocked",
"shocking","shocks","short-sighted","short-sightedness","shortage","shortages","sick","sigh",
"singleminded","skeptic","skeptical","skepticism","skeptics","slam","slash","slashed","slashes",
"slashing","sleeplessness","sluggish","smear","smog","snub","snubbed","snubbing","snubs","somber",
"sorrow","sorrowful","spam","spamming","speculative","spiritless","spiteful","stab","stabbed",
"stabs","stall","stalled","stalling","stampede","startled","starve","starved","starves","starving",
"steal","steals","stereotype","stereotyped","stingy","stolen","strangled","stressed","stressor",
"stressors","stricken","strikers","struggle","struggled","struggles","struggling","stubborn","stuck",
"stunned","stupid","stupidly","subversive","suffer","suffering","suffers","suicidal","suicide",
"suing","sulking","sulky","sullen","suspicious","swear","swearing","swears","tard","tears","tense",
"thorny","thoughtless","threat","threaten","threatened","threatening","threatens","threats","thwart",
"thwarted","thwarting","thwarts","timid","timorous","tired","tits","toothless","torn","totalitarian",
"totalitarianism","tout","touted","touting","touts","tragedy","tragic","trapped","travesty",
"trembling","tremulous","tricked","trickery","trouble","troubled","troubles","tumor","unacceptable",
"unappreciated","unapproved","unaware","uncomfortable","unconcerned","undermine","undermined",
"undermines","undermining","undeserving","undesirable","uneasy","unemployment","unethical","unfair",
"unfocused","unfulfilled","unhappy","unhealthy","unimpressed","unintelligent","unjust","unlovable",
"unloved","unmotivated","unprofessional","unresearched","unsatisfied","unsecured","unsophisticated",
"unstable","unsupported","unwanted","unworthy","upset","upsets","upsetting","uptight","useless",
"uselessness","vague","vexation","vexing","vicious","violate","violated","violates","violating",
"virulent","vulnerability","vulnerable","walkout","walkouts","war","warfare","warn","warned","warns",
"wasted","wasting","weak","weakness","weary","weep","weeping","weird","wicked","woebegone","worthless",
"wreck","wrong","wronged","yucky","zealot","zealots");
public static List<String> neg1 = Arrays.asList("absentee","absentees","admit","admits","admitted","affected","afflicted","affronted",
"alas","alert","ambivalent","anti","apologise","apologised","apologises","apologising","apologize",
"apologized","apologizes","apologizing","apology","attack","attacked","attacking","attacks","avert",
"averted","averts","avoid","avoided","avoids","await","awaited","awaits","axe","axed","banish",
"battle","battles","beating","bias","blind","block","blocked","blocking","blocks","bomb","broke",
"broken","cancel","cancelled","cancelling","cancels","cancer","cautious","challenge","chilling",
"clouded","collide","collides","colliding","combat","combats","contagious","contend","contender",
"contending","corpse","cramp","crush","crushes","crushing","cry","curse","cut","cuts","cutting",
"darkness","deafening","defer","deferring","defiant","delay","delayed","demand","demanded","demanding",
"demands","demonstration","detached","difficult","dilemma","disabling","disappear","disappeared",
"disappears","discard","discarded","discarding","discards","discounted","disguise","disguised",
"disguises","disguising","dizzy","doubt","doubted","doubtful","doubting","doubts","drag","dragged",
"drags","drop","dump","dumps","emptiness","empty","envies","envy","envying","escape","escapes",
"escaping","eviction","exclude","exclusion","excuse","exempt","expose","exposed","exposes","exposing",
"falling","farce","fight","flees","forced","forget","forgotten","frantic","frowning","funeral",
"funerals","ghost","gloom","gray","grey","gun","hacked","hard","haunt","haunts","hid","hide","hides",
"hiding","ignore","ignores","immobilized","impose","imposed","imposes","imposing","inhibit","ironic",
"irony","irrational","irreversible","isolated","jumpy","lag","lazy","leak","leaked","leave","limitation",
"limited","limits","litigation","longing","loom","loomed","looming","looms","lowest","lurk","lurking",
"lurks","made-up","mandatory","manipulated","manipulating","manipulation","mischief","mischiefs",
"misread","moody","mope","moping","myth","nerves","no","noisy","numb","offline","overload","overlooked",
"overweight","oxymoron","paradox","parley","passive","passively","pay","pensive","pileup","pitied",
"postpone","postponed","postpones","postponing","poverty","pressure","pretend","pretending","pretends",
"prevent","prevented","preventing","prevents","prosecute","prosecutes","prosecution","provoke",
"provoked","provokes","provoking","pushy","questioned","questioning","rainy","reject","rejected",
"rejecting","rejects","relentless","repulse","resign","resigned","resigning","resigns","retained",
"retreat","rig","rigged","sappy","seduced","shoot","shy","silencing","silly","sneaky","solemn","sore",
"sorry","squelched","stifled","stop","stopped","stopping","stops","strange","strangely","strike",
"strikes","struck","suspect","suspected","suspecting","suspects","suspend","suspended","tension","trap",
"unbelievable","unbelieving","uncertain","unclear","unconfirmed","unconvinced","uncredited","undecided",
"underestimate","underestimated","underestimates","underestimating","unequal","unsettled","unsure",
"urgent","verdict","verdicts","vociferous","waste","wavering","widowed","worn");
/* Positive */
public static List<String> pos5 = Arrays.asList("breathtaking","hurrah","outstanding","superb","thrilled");
public static List<String> pos4 = Arrays.asList("amazing","awesome","brilliant","ecstatic","euphoric","exuberant","fabulous","fantastic",
"fun","funnier","funny","godsend","heavenly","lifesaver","lmao","lmfao","masterpiece","masterpieces",
"miracle","overjoyed","rapturous","rejoice","rejoiced","rejoices","rejoicing","rofl","roflcopter",
"roflmao","rotfl","rotflmfao","rotflol","stunning","terrific","triumph","triumphant","win","winner",
"winning","wins","wonderful","wooo","woow","wow","wowow","wowww");
public static List<String> pos3 = Arrays.asList("admire","admired","admires","admiring","adorable","adore","adored","adores","affection",
"affectionate","amuse","amused","amusement","amusements","astound","astounded","astounding",
"astoundingly","astounds","audacious","award","awarded","awards","beatific","beauties","beautiful",
"beautifully","beautify","beloved","best","blessing","bliss","blissful","blockbuster","breakthrough",
"captivated","celebrate","celebrated","celebrates","celebrating","charm","charming","cheery","classy",
"coolstuff","dearly","delight","delighted","delighting","delights","devoted","elated","elation",
"enrapture","enthral","enthusiastic","euphoria","excellence","excellent","excite","excited",
"excitement","exciting","exhilarated","exhilarates","exhilarating","exultant","exultantly","faithful",
"fan","fascinate","fascinated","fascinates","fascinating","ftw","gallant","gallantly","gallantry",
"genial","glad","glamorous","glamourous","glee","gleeful","good","goodness","gracious","grand",
"grateful","great","greater","greatest","haha","hahaha","hahahah","happiness","happy","heartfelt",
"heroic","humerous","impress","impressed","impresses","impressive","inspiring","joy","joyful",
"joyfully","joyous","jubilant","kudos","lawl","lol","lovable","love","loved","lovelies","lovely",
"loyal","loyalty","luck","luckily","lucky","marvel","marvelous","marvels","medal","merry","mirth",
"mirthful","mirthfully","nice","ominous","once-in-a-lifetime","paradise","perfect","perfectly",
"pleasant","pleased","pleasure","popular","praise","praised","praises","praising","prosperous",
"rightdirection","rigorous","rigorously","scoop","sexy","soothe","soothed","soothing","sparkle",
"sparkles","sparkling","splendid","successful","super","vibrant","vigilant","visionary","vitality",
"vivacious","wealth","winwin","won","woo","woohoo","worshiped","yummy");
public static List<String> pos2 = Arrays.asList("abilities","ability","absolve","absolved","absolves","absolving","accomplish",
"accomplished","accomplishes","acquit","acquits","acquitted","acquitting","advantage","advantages",
"adventure","adventures","adventurous","agog","agreeable","amaze","amazed","amazes","ambitious",
"appease","appeased","appeases","appeasing","applaud","applauded","applauding","applauds","applause",
"appreciate","appreciated","appreciates","appreciating","appreciation","approval","approved",
"approves","asset","assets","astonished","attracting","attraction","attractions","avid","backing",
"bargain","benefit","benefits","benefitted","benefitting","better","bless","blesses","blithe",
"bold","boldly","brave","brightest","brisk","buoyant","calm","calmed","calming","calms","care",
"careful","carefully","cares","chance","chances","cheer","cheered","cheerful","cheering","cheers",
"cherish","cherished","cherishes","cherishing","chic","clarifies","clarity","clean","cleaner",
"clever","comfort","comfortable","comforting","comforts","commend","commended","commitment",
"compassionate","competent","competitive","comprehensive","conciliate","conciliated","conciliates",
"conciliating","confidence","confident","congrats","congratulate","congratulation","congratulations",
"consent","consents","consolable","convivial","courage","courageous","courteous","courtesy",
"coziness","creative","cute","daredevil","daring","dauntless","dear","debonair","dedicated",
"defender","defenders","desirable","desired","desirous","determined","eager","earnest","ease",
"effective","effectively","elegant","elegantly","empathetic","enchanted","encourage","encouraged",
"encouragement","encourages","endorse","endorsed","endorsement","endorses","energetic","enjoy",
"enjoying","enjoys","enlighten","enlightened","enlightening","enlightens","entertaining","entrusted",
"esteemed","ethical","exasperated","exclusive","exonerate","exonerated","exonerates","exonerating",
"fair","favor","favored","favorite","favorited","favorites","favors","fearless","fervent","fervid",
"festive","fine","flagship","focused","fond","fondness","fortunate","freedom","friendly","frisky",
"fulfill","fulfilled","fulfills","funky","futile","gain","gained","gaining","gains","generous","gift",
"glorious","glory","gratification","greetings","growth","ha","hail","hailed","hardier","hardy",
"healthy","heaven","help","helpful","helping","helps","hero","heroes","highlight","hilarious","honest",
"honor","honored","honoring","honour","honoured","honouring","hope","hopeful","hopefully","hopes",
"hoping","hug","hugs","humor","humorous","humour","humourous","immortal","importance","important",
"improve","improved","improvement","improves","improving","indestructible","infatuated","infatuation",
"influential","innovative","inquisitive","inspiration","inspirational","inspire","inspired","inspires",
"intact","integrity","intelligent","interested","interesting","intricate","invincible","invulnerable",
"irresistible","irresponsible","jaunty","jocular","joke","jokes","jolly","jovial","justice",
"justifiably","justified","kind","kinder","kiss","landmark","like","liked","likes","lively","loving",
"mature","meaningful","mercy","methodical","motivated","motivating","nifty","noble","novel","obsessed",
"oks","opportunities","opportunity","optimism","optimistic","outreach","pardon","pardoned","pardoning",
"pardons","passionate","peace","peaceful","peacefully","perfected","perfects","picturesque","playful",
"positive","positively","powerful","privileged","proactive","progress","prominent","proud","proudly",
"rapture","raptured","raptures","ratified","reassuring","recommend","recommended","recommends",
"redeemed","relaxed","reliant","relieved","relieving","relishing","remarkable","rescue","rescued",
"rescues","resolute","resolve","resolved","resolves","resolving","respected","responsible",
"responsive","restful","revered","revive","revives","reward","rewarded","rewarding","rewards",
"rich","robust","romance","satisfied","save","saved","secure","secured","secures","self-confident",
"serene","sincere","sincerely","sincerest","sincerity","slick","slicker","slickest","smarter",
"smartest","smile","smiled","smiles","smiling","solid","solidarity","sophisticated","spirited",
"sprightly","stable","stamina","steadfast","stimulating","stout","strength","strengthen",
"strengthened","strengthening","strengthens","strong","stronger","strongest","suave","success",
"sunshine","superior","support","supported","supportive","supports","survived","surviving","survivor",
"sweet","swift","swiftly","sympathetic","sympathy","tender","thank","thankful","thanks","thoughtful",
"tolerant","top","tops","tranquil","treasure","treasures","true","trusted","unbiased","unequaled",
"unstoppable","untarnished","useful","usefulness","vindicate","vindicated","vindicates","vindicating",
"virtuous","warmth","wealthy","welcome","welcomed","welcomes","willingness","worth","worthy","yeees",
"youthful");
public static List<String> pos1 = Arrays.asList("aboard","absorbed","accept","accepted","accepting","accepts","achievable","active",
"adequate","adopt","adopts","advanced","agree","agreed","agreement","agrees","alive","allow",
"anticipation","ardent","attract","attracted","attracts","authority","backed","backs","big","boost",
"boosted","boosting","boosts","bright","brightness","capable","carefree","certain","clear","cleared",
"clearly","clears","comedy","commit","commits","committed","committing","compelled","convince",
"convinced","convinces","cool","curious","decisive","desire","diamond","dream","dreams","easy",
"embrace","engage","engages","engrossed","ensure","ensuring","enterprising","entitled","expand",
"expands","exploration","explorations","extend","extends","faith","fame","feeling","fit","fitness",
"forgive","forgiving","free","fresh","god","grace","grant","granted","granting","grants","greet",
"greeted","greeting","greets","growing","guarantee","haunting","huge","immune","increase","increased",
"innovate","innovates","innovation","intense","interest","interests","intrigues","invite","inviting",
"jesus","jewel","jewels","join","keen","laugh","laughed","laughing","laughs","laughting","launched",
"legal","legally","lenient","lighthearted","matter","matters","meditative","motivate","motivation",
"natural","please","pray","praying","prays","prepared","pretty","promise","promised","promises",
"promote","promoted","promotes","promoting","prospect","prospects","protect","protected","protects",
"reach","reached","reaches","reaching","reassure","reassured","reassures","relieve","relieves",
"restore","restored","restores","restoring","safe","safely","safety","salient","share","shared",
"shares","significance","significant","smart","sobering","solution","solutions","solve","solved",
"solves","solving","spark","spirit","stimulate","stimulated","stimulates","straight","substantial",
"substantially","supporter","supporters","supporting","trust","unified","united","unmatched",
"validate","validated","validates","validating","vested","vision","visioning","visions","vitamin",
"want","warm","whimsical","wish","wishes","wishing","yeah","yearning","yes");
}
| ukwa/SentimentalJ | src/main/java/uk/bl/wa/sentimentalj/SentimentStrings.java |
213,448 | package com.drtshock.willie.command.misc;
import org.pircbotx.Channel;
import org.pircbotx.Colors;
import org.pircbotx.User;
import com.drtshock.willie.Willie;
import com.drtshock.willie.command.CommandHandler;
public class RulesCommandHandler implements CommandHandler {
@Override
public void handle(Willie bot, Channel channel, User sender, String[] args) {
channel.sendMessage(Colors.RED + "Don't be an annoying douche. Ask Chester if you have help.");
}
}
| lol768/Willie | src/main/java/com/drtshock/willie/command/misc/RulesCommandHandler.java |
213,449 | package src.ares.core.chat.filter;
public class FilterRepository
{
private String[] words = new String[]
{
"chink", "chinky", "negro", "honkey", "spick", "National Socialist German Workers", "nazi", "hitler", "slut", "tits", "rape", "queer", "ballsack", "fag", "nazism", "deh fuhrer", "Ku Klux Klan", "noob", "stfu", "gtfo", "lamfo", "anus", "arse", "axewound", "bampot", "bastard", "beaner", "bitch", "blow job", "blowjob", "bollocks", "bollox", "boner", "brotherfucker", "bullshit", "bumblefuck", "butt", "camel toe", "carpetmuncher", "chinc", "chink", "choad", "chode", "clit", "clusterfuck", "cock", "coochie", "coochy", "coon", "cooter", "cracker", "cum", "cumbubble", "cunnie", "cunt", "dago", "damn", "deggo", "dick", "dipshit", "doochbag", "dookie", "douche", "dumpass", "dyke", "fag", "fatass", "fellatio", "feltch", "flamer", "fuck", "fucked", "fudgepacker", "gay", "goddamn", "gooch", "gook", "gringo", "guido", "handjob", "hard on", "heeb", "homo", "honkey", "humping", "jackass", "jagoff", "jap", "jerk off", "jerk", "jizz", "jungle bunny", "junglebunny", "kike", "kooch", "kootch", "kraunt", "kunt", "kyke", "lameass", "lardass", "lesbian", "lesbo", "lezzie", "mcfagget", "mick", "minge", "mothafucka", "motherfucker", "muff", "munging", "negro", "nigaboo", "nigga", "nigger", "niglet", "nut sack", "nutsack", "panooch", "pecker", "peckerhead", "penis", "piss", "polesmoker", "pollock", "porch monkey", "prick", "punanny", "punta", "pussy", "pussies", "puto", "poop", "fuck", "queef", "queer", "renob", "rimjob", "rusky", "schlong", "scrote", "shit", "shiz", "skank", "skeet", "slut", "smeg", "snatch", "spic", "spick", "splooge", "tard", "testicle", "thundercunt", "tit", "twat", "vagina", "wank", "wetback", "whore",
};;
private String[] replaces = new String[]
{
"****"
};
public String[] getReplaces()
{
return replaces;
}
public String[] getWords()
{
return words;
}
}
| Weefle/core-1 | src/src/ares/core/chat/filter/FilterRepository.java |
213,450 | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
import org.hl7.fhir.exceptions.FHIRException;
public enum V3OrderableDrugForm {
/**
* AdministrableDrugForm
*/
_ADMINISTRABLEDRUGFORM,
/**
* Applicatorful
*/
APPFUL,
/**
* Drops
*/
DROP,
/**
* Nasal Drops
*/
NDROP,
/**
* Ophthalmic Drops
*/
OPDROP,
/**
* Oral Drops
*/
ORDROP,
/**
* Otic Drops
*/
OTDROP,
/**
* Puff
*/
PUFF,
/**
* Scoops
*/
SCOOP,
/**
* Sprays
*/
SPRY,
/**
* DispensableDrugForm
*/
_DISPENSABLEDRUGFORM,
/**
* Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.
*/
_GASDRUGFORM,
/**
* Gas for Inhalation
*/
GASINHL,
/**
* GasLiquidMixture
*/
_GASLIQUIDMIXTURE,
/**
* Aerosol
*/
AER,
/**
* Breath Activated Inhaler
*/
BAINHL,
/**
* Inhalant Solution
*/
INHLSOL,
/**
* Metered Dose Inhaler
*/
MDINHL,
/**
* Nasal Spray
*/
NASSPRY,
/**
* Dermal Spray
*/
DERMSPRY,
/**
* Foam
*/
FOAM,
/**
* Foam with Applicator
*/
FOAMAPL,
/**
* Rectal foam
*/
RECFORM,
/**
* Vaginal foam
*/
VAGFOAM,
/**
* Vaginal foam with applicator
*/
VAGFOAMAPL,
/**
* Rectal Spray
*/
RECSPRY,
/**
* Vaginal Spray
*/
VAGSPRY,
/**
* GasSolidSpray
*/
_GASSOLIDSPRAY,
/**
* Inhalant
*/
INHL,
/**
* Breath Activated Powder Inhaler
*/
BAINHLPWD,
/**
* Inhalant Powder
*/
INHLPWD,
/**
* Metered Dose Powder Inhaler
*/
MDINHLPWD,
/**
* Nasal Inhalant
*/
NASINHL,
/**
* Oral Inhalant
*/
ORINHL,
/**
* Powder Spray
*/
PWDSPRY,
/**
* Spray with Adaptor
*/
SPRYADAPT,
/**
* A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)
*/
_LIQUID,
/**
* Liquid Cleanser
*/
LIQCLN,
/**
* Medicated Liquid Soap
*/
LIQSOAP,
/**
* A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.
*/
SHMP,
/**
* An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.
*/
OIL,
/**
* Topical Oil
*/
TOPOIL,
/**
* A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.
*/
SOL,
/**
* Intraperitoneal Solution
*/
IPSOL,
/**
* A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.
*/
IRSOL,
/**
* A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.
*/
DOUCHE,
/**
* A rectal preparation for therapeutic, diagnostic, or nutritive purposes.
*/
ENEMA,
/**
* Ophthalmic Irrigation Solution
*/
OPIRSOL,
/**
* Intravenous Solution
*/
IVSOL,
/**
* Oral Solution
*/
ORALSOL,
/**
* A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.
*/
ELIXIR,
/**
* An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.
*/
RINSE,
/**
* An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.
*/
SYRUP,
/**
* Rectal Solution
*/
RECSOL,
/**
* Topical Solution
*/
TOPSOL,
/**
* A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.
*/
LIN,
/**
* Mucous Membrane Topical Solution
*/
MUCTOPSOL,
/**
* Tincture
*/
TINC,
/**
* A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.
*/
_LIQUIDLIQUIDEMULSION,
/**
* A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.
*/
CRM,
/**
* Nasal Cream
*/
NASCRM,
/**
* Ophthalmic Cream
*/
OPCRM,
/**
* Oral Cream
*/
ORCRM,
/**
* Otic Cream
*/
OTCRM,
/**
* Rectal Cream
*/
RECCRM,
/**
* Topical Cream
*/
TOPCRM,
/**
* Vaginal Cream
*/
VAGCRM,
/**
* Vaginal Cream with Applicator
*/
VAGCRMAPL,
/**
* The term "lotion" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.
*/
LTN,
/**
* Topical Lotion
*/
TOPLTN,
/**
* A semisolid preparation intended for external application to the skin or mucous membranes.
*/
OINT,
/**
* Nasal Ointment
*/
NASOINT,
/**
* Ointment with Applicator
*/
OINTAPL,
/**
* Ophthalmic Ointment
*/
OPOINT,
/**
* Otic Ointment
*/
OTOINT,
/**
* Rectal Ointment
*/
RECOINT,
/**
* Topical Ointment
*/
TOPOINT,
/**
* Vaginal Ointment
*/
VAGOINT,
/**
* Vaginal Ointment with Applicator
*/
VAGOINTAPL,
/**
* A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.
*/
_LIQUIDSOLIDSUSPENSION,
/**
* A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.
*/
GEL,
/**
* Gel with Applicator
*/
GELAPL,
/**
* Nasal Gel
*/
NASGEL,
/**
* Ophthalmic Gel
*/
OPGEL,
/**
* Otic Gel
*/
OTGEL,
/**
* Topical Gel
*/
TOPGEL,
/**
* Urethral Gel
*/
URETHGEL,
/**
* Vaginal Gel
*/
VAGGEL,
/**
* Vaginal Gel with Applicator
*/
VGELAPL,
/**
* A semisolid dosage form that contains one or more drug substances intended for topical application.
*/
PASTE,
/**
* Pudding
*/
PUD,
/**
* A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.
*/
TPASTE,
/**
* Suspension
*/
SUSP,
/**
* Intrathecal Suspension
*/
ITSUSP,
/**
* Ophthalmic Suspension
*/
OPSUSP,
/**
* Oral Suspension
*/
ORSUSP,
/**
* Extended-Release Suspension
*/
ERSUSP,
/**
* 12 Hour Extended-Release Suspension
*/
ERSUSP12,
/**
* 24 Hour Extended Release Suspension
*/
ERSUSP24,
/**
* Otic Suspension
*/
OTSUSP,
/**
* Rectal Suspension
*/
RECSUSP,
/**
* SolidDrugForm
*/
_SOLIDDRUGFORM,
/**
* Bar
*/
BAR,
/**
* Bar Soap
*/
BARSOAP,
/**
* Medicated Bar Soap
*/
MEDBAR,
/**
* A solid dosage form usually in the form of a rectangle that is meant to be chewed.
*/
CHEWBAR,
/**
* A solid dosage form in the shape of a small ball.
*/
BEAD,
/**
* Cake
*/
CAKE,
/**
* A substance that serves to produce solid union between two surfaces.
*/
CEMENT,
/**
* A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.
*/
CRYS,
/**
* A circular plate-like organ or structure.
*/
DISK,
/**
* Flakes
*/
FLAKE,
/**
* A small particle or grain.
*/
GRAN,
/**
* A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.
*/
GUM,
/**
* Pad
*/
PAD,
/**
* Medicated Pad
*/
MEDPAD,
/**
* A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.
*/
PATCH,
/**
* Transdermal Patch
*/
TPATCH,
/**
* 16 Hour Transdermal Patch
*/
TPATH16,
/**
* 24 Hour Transdermal Patch
*/
TPATH24,
/**
* Biweekly Transdermal Patch
*/
TPATH2WK,
/**
* 72 Hour Transdermal Patch
*/
TPATH72,
/**
* Weekly Transdermal Patch
*/
TPATHWK,
/**
* A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.
*/
PELLET,
/**
* A small, round solid dosage form containing a medicinal agent intended for oral administration.
*/
PILL,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or "shell" made from a suitable form of gelatin.
*/
CAP,
/**
* Oral Capsule
*/
ORCAP,
/**
* Enteric Coated Capsule
*/
ENTCAP,
/**
* Extended Release Enteric Coated Capsule
*/
ERENTCAP,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.
*/
ERCAP,
/**
* 12 Hour Extended Release Capsule
*/
ERCAP12,
/**
* 24 Hour Extended Release Capsule
*/
ERCAP24,
/**
* Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.
*/
ERECCAP,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents.
*/
TAB,
/**
* Oral Tablet
*/
ORTAB,
/**
* Buccal Tablet
*/
BUCTAB,
/**
* Sustained Release Buccal Tablet
*/
SRBUCTAB,
/**
* Caplet
*/
CAPLET,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.
*/
CHEWTAB,
/**
* Coated Particles Tablet
*/
CPTAB,
/**
* A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.
*/
DISINTAB,
/**
* Delayed Release Tablet
*/
DRTAB,
/**
* Enteric Coated Tablet
*/
ECTAB,
/**
* Extended Release Enteric Coated Tablet
*/
ERECTAB,
/**
* A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.
*/
ERTAB,
/**
* 12 Hour Extended Release Tablet
*/
ERTAB12,
/**
* 24 Hour Extended Release Tablet
*/
ERTAB24,
/**
* A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.
*/
ORTROCHE,
/**
* Sublingual Tablet
*/
SLTAB,
/**
* Vaginal Tablet
*/
VAGTAB,
/**
* An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.
*/
POWD,
/**
* Topical Powder
*/
TOPPWD,
/**
* Rectal Powder
*/
RECPWD,
/**
* Vaginal Powder
*/
VAGPWD,
/**
* A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.
*/
SUPP,
/**
* Rectal Suppository
*/
RECSUPP,
/**
* Urethral suppository
*/
URETHSUPP,
/**
* Vaginal Suppository
*/
VAGSUPP,
/**
* A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.
*/
SWAB,
/**
* Medicated swab
*/
MEDSWAB,
/**
* A thin slice of material containing a medicinal agent.
*/
WAFER,
/**
* added to help the parsers
*/
NULL;
public static V3OrderableDrugForm fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return _ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return APPFUL;
if ("DROP".equals(codeString))
return DROP;
if ("NDROP".equals(codeString))
return NDROP;
if ("OPDROP".equals(codeString))
return OPDROP;
if ("ORDROP".equals(codeString))
return ORDROP;
if ("OTDROP".equals(codeString))
return OTDROP;
if ("PUFF".equals(codeString))
return PUFF;
if ("SCOOP".equals(codeString))
return SCOOP;
if ("SPRY".equals(codeString))
return SPRY;
if ("_DispensableDrugForm".equals(codeString))
return _DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return _GASDRUGFORM;
if ("GASINHL".equals(codeString))
return GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return _GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return AER;
if ("BAINHL".equals(codeString))
return BAINHL;
if ("INHLSOL".equals(codeString))
return INHLSOL;
if ("MDINHL".equals(codeString))
return MDINHL;
if ("NASSPRY".equals(codeString))
return NASSPRY;
if ("DERMSPRY".equals(codeString))
return DERMSPRY;
if ("FOAM".equals(codeString))
return FOAM;
if ("FOAMAPL".equals(codeString))
return FOAMAPL;
if ("RECFORM".equals(codeString))
return RECFORM;
if ("VAGFOAM".equals(codeString))
return VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return RECSPRY;
if ("VAGSPRY".equals(codeString))
return VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return _GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return INHL;
if ("BAINHLPWD".equals(codeString))
return BAINHLPWD;
if ("INHLPWD".equals(codeString))
return INHLPWD;
if ("MDINHLPWD".equals(codeString))
return MDINHLPWD;
if ("NASINHL".equals(codeString))
return NASINHL;
if ("ORINHL".equals(codeString))
return ORINHL;
if ("PWDSPRY".equals(codeString))
return PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return SPRYADAPT;
if ("_Liquid".equals(codeString))
return _LIQUID;
if ("LIQCLN".equals(codeString))
return LIQCLN;
if ("LIQSOAP".equals(codeString))
return LIQSOAP;
if ("SHMP".equals(codeString))
return SHMP;
if ("OIL".equals(codeString))
return OIL;
if ("TOPOIL".equals(codeString))
return TOPOIL;
if ("SOL".equals(codeString))
return SOL;
if ("IPSOL".equals(codeString))
return IPSOL;
if ("IRSOL".equals(codeString))
return IRSOL;
if ("DOUCHE".equals(codeString))
return DOUCHE;
if ("ENEMA".equals(codeString))
return ENEMA;
if ("OPIRSOL".equals(codeString))
return OPIRSOL;
if ("IVSOL".equals(codeString))
return IVSOL;
if ("ORALSOL".equals(codeString))
return ORALSOL;
if ("ELIXIR".equals(codeString))
return ELIXIR;
if ("RINSE".equals(codeString))
return RINSE;
if ("SYRUP".equals(codeString))
return SYRUP;
if ("RECSOL".equals(codeString))
return RECSOL;
if ("TOPSOL".equals(codeString))
return TOPSOL;
if ("LIN".equals(codeString))
return LIN;
if ("MUCTOPSOL".equals(codeString))
return MUCTOPSOL;
if ("TINC".equals(codeString))
return TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return _LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return CRM;
if ("NASCRM".equals(codeString))
return NASCRM;
if ("OPCRM".equals(codeString))
return OPCRM;
if ("ORCRM".equals(codeString))
return ORCRM;
if ("OTCRM".equals(codeString))
return OTCRM;
if ("RECCRM".equals(codeString))
return RECCRM;
if ("TOPCRM".equals(codeString))
return TOPCRM;
if ("VAGCRM".equals(codeString))
return VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return VAGCRMAPL;
if ("LTN".equals(codeString))
return LTN;
if ("TOPLTN".equals(codeString))
return TOPLTN;
if ("OINT".equals(codeString))
return OINT;
if ("NASOINT".equals(codeString))
return NASOINT;
if ("OINTAPL".equals(codeString))
return OINTAPL;
if ("OPOINT".equals(codeString))
return OPOINT;
if ("OTOINT".equals(codeString))
return OTOINT;
if ("RECOINT".equals(codeString))
return RECOINT;
if ("TOPOINT".equals(codeString))
return TOPOINT;
if ("VAGOINT".equals(codeString))
return VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return _LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return GEL;
if ("GELAPL".equals(codeString))
return GELAPL;
if ("NASGEL".equals(codeString))
return NASGEL;
if ("OPGEL".equals(codeString))
return OPGEL;
if ("OTGEL".equals(codeString))
return OTGEL;
if ("TOPGEL".equals(codeString))
return TOPGEL;
if ("URETHGEL".equals(codeString))
return URETHGEL;
if ("VAGGEL".equals(codeString))
return VAGGEL;
if ("VGELAPL".equals(codeString))
return VGELAPL;
if ("PASTE".equals(codeString))
return PASTE;
if ("PUD".equals(codeString))
return PUD;
if ("TPASTE".equals(codeString))
return TPASTE;
if ("SUSP".equals(codeString))
return SUSP;
if ("ITSUSP".equals(codeString))
return ITSUSP;
if ("OPSUSP".equals(codeString))
return OPSUSP;
if ("ORSUSP".equals(codeString))
return ORSUSP;
if ("ERSUSP".equals(codeString))
return ERSUSP;
if ("ERSUSP12".equals(codeString))
return ERSUSP12;
if ("ERSUSP24".equals(codeString))
return ERSUSP24;
if ("OTSUSP".equals(codeString))
return OTSUSP;
if ("RECSUSP".equals(codeString))
return RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return _SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return BAR;
if ("BARSOAP".equals(codeString))
return BARSOAP;
if ("MEDBAR".equals(codeString))
return MEDBAR;
if ("CHEWBAR".equals(codeString))
return CHEWBAR;
if ("BEAD".equals(codeString))
return BEAD;
if ("CAKE".equals(codeString))
return CAKE;
if ("CEMENT".equals(codeString))
return CEMENT;
if ("CRYS".equals(codeString))
return CRYS;
if ("DISK".equals(codeString))
return DISK;
if ("FLAKE".equals(codeString))
return FLAKE;
if ("GRAN".equals(codeString))
return GRAN;
if ("GUM".equals(codeString))
return GUM;
if ("PAD".equals(codeString))
return PAD;
if ("MEDPAD".equals(codeString))
return MEDPAD;
if ("PATCH".equals(codeString))
return PATCH;
if ("TPATCH".equals(codeString))
return TPATCH;
if ("TPATH16".equals(codeString))
return TPATH16;
if ("TPATH24".equals(codeString))
return TPATH24;
if ("TPATH2WK".equals(codeString))
return TPATH2WK;
if ("TPATH72".equals(codeString))
return TPATH72;
if ("TPATHWK".equals(codeString))
return TPATHWK;
if ("PELLET".equals(codeString))
return PELLET;
if ("PILL".equals(codeString))
return PILL;
if ("CAP".equals(codeString))
return CAP;
if ("ORCAP".equals(codeString))
return ORCAP;
if ("ENTCAP".equals(codeString))
return ENTCAP;
if ("ERENTCAP".equals(codeString))
return ERENTCAP;
if ("ERCAP".equals(codeString))
return ERCAP;
if ("ERCAP12".equals(codeString))
return ERCAP12;
if ("ERCAP24".equals(codeString))
return ERCAP24;
if ("ERECCAP".equals(codeString))
return ERECCAP;
if ("TAB".equals(codeString))
return TAB;
if ("ORTAB".equals(codeString))
return ORTAB;
if ("BUCTAB".equals(codeString))
return BUCTAB;
if ("SRBUCTAB".equals(codeString))
return SRBUCTAB;
if ("CAPLET".equals(codeString))
return CAPLET;
if ("CHEWTAB".equals(codeString))
return CHEWTAB;
if ("CPTAB".equals(codeString))
return CPTAB;
if ("DISINTAB".equals(codeString))
return DISINTAB;
if ("DRTAB".equals(codeString))
return DRTAB;
if ("ECTAB".equals(codeString))
return ECTAB;
if ("ERECTAB".equals(codeString))
return ERECTAB;
if ("ERTAB".equals(codeString))
return ERTAB;
if ("ERTAB12".equals(codeString))
return ERTAB12;
if ("ERTAB24".equals(codeString))
return ERTAB24;
if ("ORTROCHE".equals(codeString))
return ORTROCHE;
if ("SLTAB".equals(codeString))
return SLTAB;
if ("VAGTAB".equals(codeString))
return VAGTAB;
if ("POWD".equals(codeString))
return POWD;
if ("TOPPWD".equals(codeString))
return TOPPWD;
if ("RECPWD".equals(codeString))
return RECPWD;
if ("VAGPWD".equals(codeString))
return VAGPWD;
if ("SUPP".equals(codeString))
return SUPP;
if ("RECSUPP".equals(codeString))
return RECSUPP;
if ("URETHSUPP".equals(codeString))
return URETHSUPP;
if ("VAGSUPP".equals(codeString))
return VAGSUPP;
if ("SWAB".equals(codeString))
return SWAB;
if ("MEDSWAB".equals(codeString))
return MEDSWAB;
if ("WAFER".equals(codeString))
return WAFER;
throw new FHIRException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "_AdministrableDrugForm";
case APPFUL: return "APPFUL";
case DROP: return "DROP";
case NDROP: return "NDROP";
case OPDROP: return "OPDROP";
case ORDROP: return "ORDROP";
case OTDROP: return "OTDROP";
case PUFF: return "PUFF";
case SCOOP: return "SCOOP";
case SPRY: return "SPRY";
case _DISPENSABLEDRUGFORM: return "_DispensableDrugForm";
case _GASDRUGFORM: return "_GasDrugForm";
case GASINHL: return "GASINHL";
case _GASLIQUIDMIXTURE: return "_GasLiquidMixture";
case AER: return "AER";
case BAINHL: return "BAINHL";
case INHLSOL: return "INHLSOL";
case MDINHL: return "MDINHL";
case NASSPRY: return "NASSPRY";
case DERMSPRY: return "DERMSPRY";
case FOAM: return "FOAM";
case FOAMAPL: return "FOAMAPL";
case RECFORM: return "RECFORM";
case VAGFOAM: return "VAGFOAM";
case VAGFOAMAPL: return "VAGFOAMAPL";
case RECSPRY: return "RECSPRY";
case VAGSPRY: return "VAGSPRY";
case _GASSOLIDSPRAY: return "_GasSolidSpray";
case INHL: return "INHL";
case BAINHLPWD: return "BAINHLPWD";
case INHLPWD: return "INHLPWD";
case MDINHLPWD: return "MDINHLPWD";
case NASINHL: return "NASINHL";
case ORINHL: return "ORINHL";
case PWDSPRY: return "PWDSPRY";
case SPRYADAPT: return "SPRYADAPT";
case _LIQUID: return "_Liquid";
case LIQCLN: return "LIQCLN";
case LIQSOAP: return "LIQSOAP";
case SHMP: return "SHMP";
case OIL: return "OIL";
case TOPOIL: return "TOPOIL";
case SOL: return "SOL";
case IPSOL: return "IPSOL";
case IRSOL: return "IRSOL";
case DOUCHE: return "DOUCHE";
case ENEMA: return "ENEMA";
case OPIRSOL: return "OPIRSOL";
case IVSOL: return "IVSOL";
case ORALSOL: return "ORALSOL";
case ELIXIR: return "ELIXIR";
case RINSE: return "RINSE";
case SYRUP: return "SYRUP";
case RECSOL: return "RECSOL";
case TOPSOL: return "TOPSOL";
case LIN: return "LIN";
case MUCTOPSOL: return "MUCTOPSOL";
case TINC: return "TINC";
case _LIQUIDLIQUIDEMULSION: return "_LiquidLiquidEmulsion";
case CRM: return "CRM";
case NASCRM: return "NASCRM";
case OPCRM: return "OPCRM";
case ORCRM: return "ORCRM";
case OTCRM: return "OTCRM";
case RECCRM: return "RECCRM";
case TOPCRM: return "TOPCRM";
case VAGCRM: return "VAGCRM";
case VAGCRMAPL: return "VAGCRMAPL";
case LTN: return "LTN";
case TOPLTN: return "TOPLTN";
case OINT: return "OINT";
case NASOINT: return "NASOINT";
case OINTAPL: return "OINTAPL";
case OPOINT: return "OPOINT";
case OTOINT: return "OTOINT";
case RECOINT: return "RECOINT";
case TOPOINT: return "TOPOINT";
case VAGOINT: return "VAGOINT";
case VAGOINTAPL: return "VAGOINTAPL";
case _LIQUIDSOLIDSUSPENSION: return "_LiquidSolidSuspension";
case GEL: return "GEL";
case GELAPL: return "GELAPL";
case NASGEL: return "NASGEL";
case OPGEL: return "OPGEL";
case OTGEL: return "OTGEL";
case TOPGEL: return "TOPGEL";
case URETHGEL: return "URETHGEL";
case VAGGEL: return "VAGGEL";
case VGELAPL: return "VGELAPL";
case PASTE: return "PASTE";
case PUD: return "PUD";
case TPASTE: return "TPASTE";
case SUSP: return "SUSP";
case ITSUSP: return "ITSUSP";
case OPSUSP: return "OPSUSP";
case ORSUSP: return "ORSUSP";
case ERSUSP: return "ERSUSP";
case ERSUSP12: return "ERSUSP12";
case ERSUSP24: return "ERSUSP24";
case OTSUSP: return "OTSUSP";
case RECSUSP: return "RECSUSP";
case _SOLIDDRUGFORM: return "_SolidDrugForm";
case BAR: return "BAR";
case BARSOAP: return "BARSOAP";
case MEDBAR: return "MEDBAR";
case CHEWBAR: return "CHEWBAR";
case BEAD: return "BEAD";
case CAKE: return "CAKE";
case CEMENT: return "CEMENT";
case CRYS: return "CRYS";
case DISK: return "DISK";
case FLAKE: return "FLAKE";
case GRAN: return "GRAN";
case GUM: return "GUM";
case PAD: return "PAD";
case MEDPAD: return "MEDPAD";
case PATCH: return "PATCH";
case TPATCH: return "TPATCH";
case TPATH16: return "TPATH16";
case TPATH24: return "TPATH24";
case TPATH2WK: return "TPATH2WK";
case TPATH72: return "TPATH72";
case TPATHWK: return "TPATHWK";
case PELLET: return "PELLET";
case PILL: return "PILL";
case CAP: return "CAP";
case ORCAP: return "ORCAP";
case ENTCAP: return "ENTCAP";
case ERENTCAP: return "ERENTCAP";
case ERCAP: return "ERCAP";
case ERCAP12: return "ERCAP12";
case ERCAP24: return "ERCAP24";
case ERECCAP: return "ERECCAP";
case TAB: return "TAB";
case ORTAB: return "ORTAB";
case BUCTAB: return "BUCTAB";
case SRBUCTAB: return "SRBUCTAB";
case CAPLET: return "CAPLET";
case CHEWTAB: return "CHEWTAB";
case CPTAB: return "CPTAB";
case DISINTAB: return "DISINTAB";
case DRTAB: return "DRTAB";
case ECTAB: return "ECTAB";
case ERECTAB: return "ERECTAB";
case ERTAB: return "ERTAB";
case ERTAB12: return "ERTAB12";
case ERTAB24: return "ERTAB24";
case ORTROCHE: return "ORTROCHE";
case SLTAB: return "SLTAB";
case VAGTAB: return "VAGTAB";
case POWD: return "POWD";
case TOPPWD: return "TOPPWD";
case RECPWD: return "RECPWD";
case VAGPWD: return "VAGPWD";
case SUPP: return "SUPP";
case RECSUPP: return "RECSUPP";
case URETHSUPP: return "URETHSUPP";
case VAGSUPP: return "VAGSUPP";
case SWAB: return "SWAB";
case MEDSWAB: return "MEDSWAB";
case WAFER: return "WAFER";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/v3/orderableDrugForm";
}
public String getDefinition() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.";
case OIL: return "An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.";
case TOPOIL: return "Topical Oil";
case SOL: return "A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.";
case DOUCHE: return "A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.";
case ENEMA: return "A rectal preparation for therapeutic, diagnostic, or nutritive purposes.";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.";
case RINSE: return "An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.";
case SYRUP: return "An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.";
case CRM: return "A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "The term \"lotion\" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.";
case TOPLTN: return "Topical Lotion";
case OINT: return "A semisolid preparation intended for external application to the skin or mucous membranes.";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.";
case GEL: return "A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "A semisolid dosage form that contains one or more drug substances intended for topical application.";
case PUD: return "Pudding";
case TPASTE: return "A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "A solid dosage form usually in the form of a rectangle that is meant to be chewed.";
case BEAD: return "A solid dosage form in the shape of a small ball.";
case CAKE: return "Cake";
case CEMENT: return "A substance that serves to produce solid union between two surfaces.";
case CRYS: return "A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.";
case DISK: return "A circular plate-like organ or structure.";
case FLAKE: return "Flakes";
case GRAN: return "A small particle or grain.";
case GUM: return "A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.";
case PILL: return "A small, round solid dosage form containing a medicinal agent intended for oral administration.";
case CAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or \"shell\" made from a suitable form of gelatin.";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.";
case TAB: return "A solid dosage form containing medicinal substances with or without suitable diluents.";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.";
case MEDSWAB: return "Medicated swab";
case WAFER: return "A thin slice of material containing a medicinal agent.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "GasDrugForm";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "Liquid";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "Shampoo";
case OIL: return "Oil";
case TOPOIL: return "Topical Oil";
case SOL: return "Solution";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "Irrigation Solution";
case DOUCHE: return "Douche";
case ENEMA: return "Enema";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "Elixir";
case RINSE: return "Mouthwash/Rinse";
case SYRUP: return "Syrup";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "Liniment";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "LiquidLiquidEmulsion";
case CRM: return "Cream";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "Lotion";
case TOPLTN: return "Topical Lotion";
case OINT: return "Ointment";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "LiquidSolidSuspension";
case GEL: return "Gel";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "Paste";
case PUD: return "Pudding";
case TPASTE: return "Toothpaste";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "Chewable Bar";
case BEAD: return "Beads";
case CAKE: return "Cake";
case CEMENT: return "Cement";
case CRYS: return "Crystals";
case DISK: return "Disk";
case FLAKE: return "Flakes";
case GRAN: return "Granules";
case GUM: return "ChewingGum";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "Patch";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "Pellet";
case PILL: return "Pill";
case CAP: return "Capsule";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "Extended Release Capsule";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Extended Release Enteric Coated Capsule";
case TAB: return "Tablet";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "Chewable Tablet";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "Disintegrating Tablet";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "Extended Release Tablet";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "Lozenge/Oral Troche";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "Powder";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "Suppository";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "Swab";
case MEDSWAB: return "Medicated swab";
case WAFER: return "Wafer";
default: return "?";
}
}
}
| bhits/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/V3OrderableDrugForm.java |
213,451 | package be.bstorm.akimts.exo.oo.enums;
public enum TypeChambre {
BASIC( 50, false, false ),
CONFORT( 70, true, false ),
LUXE( 120, true, true );
private final int prix;
private final boolean telePresente;
private final boolean doucheItaPresente;
TypeChambre(int prix, boolean telePresente, boolean doucheItaPresente) {
this.prix = prix;
this.telePresente = telePresente;
this.doucheItaPresente = doucheItaPresente;
}
public int getPrix() {
return prix;
}
public boolean isTelePresente() {
return telePresente;
}
public boolean isDoucheItaPresente() {
return doucheItaPresente;
}
public static TypeChambre get( boolean tele, boolean douche ){
if( tele && douche )
return LUXE;
if( !tele && !douche )
return BASIC;
if( tele )
return CONFORT;
return null;
}
}
| aKimtsPro/DemoJavaCiney | src/be/bstorm/akimts/exo/oo/enums/TypeChambre.java |
213,452 | package be.bstorm.akimts.exo.oo.enums;
public class Main {
public static void main(String[] args) {
Chambre chambre = new Chambre( 1, TypeChambre.LUXE, 2 );
System.out.println( "prix de la chambre : " + chambre.getPrice() );
System.out.println( chambre.hasTele() ? "a une télé" : "n'a pas de télé" );
System.out.println( chambre.hasDoucheIta() ? "a une douche italienne" : "n'a pas de douche italienne" );
Chambre chambre2 = new Chambre( 101, TypeChambre.CONFORT, 1 );
Hotel h = new Hotel(2);
h.ajouter( chambre );
h.ajouter( chambre2 );
System.out.println(h);
}
}
| aKimtsPro/DemoJavaCiney | src/be/bstorm/akimts/exo/oo/enums/Main.java |
213,453 | package Program;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.swing.JPanel;
public class GamePanel extends JPanel{
public static int currentWindow = 0;
public static String baseDirectory = "";
static String [] windowNames = {"Path of Exile"};
public static boolean paused = false;
static int[] loadingImageTries = new int[windowNames.length];
static Point mousePos = new Point(-1,-1);
static Robot robot;
static boolean alreadyPressed=false;
static boolean alreadyReleased=true;
static boolean debug = false;
static boolean isAuraBuild=true;
long delay = 0;
long leaderLastSeen = 0;
long lastDoorEntryTime = 0;
static long soonestAvailableKeyPress = 0;
static int lifeFlaskThreshold = 50;
boolean []flaskInUse = new boolean[5];
boolean []flaskAvailable = new boolean[5];
Color[] gemPattern = {
//new Color(210,161,122),
new Color(182,135,101),
new Color(150,114,85),
new Color(134,98,72),
new Color(134,95,67),
new Color(134,95,67),
new Color(128,90,67),
new Color(126,88,67),
new Color(126,88,67),
new Color(126,85,60),
new Color(126,85,60),
new Color(126,85,60),
new Color(126,88,60),
new Color(126,88,60),
new Color(126,88,65),
new Color(126,88,67),
new Color(126,88,67),
new Color(120,85,61),
new Color(120,85,61),
new Color(120,85,61),
new Color(126,88,67),
new Color(126,88,67),
new Color(126,88,65),
new Color(126,88,61),
new Color(126,88,61),
new Color(121,85,61),
new Color(119,85,61),
new Color(119,85,61),
new Color(126,92,67),
new Color(126,92,67),
new Color(128,93,68),
new Color(140,99,71),
new Color(140,99,71),
new Color(148,110,79),
new Color(106,82,59),
};
Color[] ressurectPattern = {
new Color(3,5,8),
new Color(22,17,17),
new Color(16,12,16),
new Color(40,34,40),
new Color(17,12,16),
new Color(14,11,11),
new Color(18,14,17),
new Color(50,46,50),
new Color(114,91,87),
new Color(16,12,16),
};
int[] inventoryPattern = {
-16250872,
-16250872,
-16250872,
-16250872,
-16250872,
-16250872,
-16251128,
-16251128,
-16251128,
-16251384,
};
Color[] scrollPattern = {
new Color(223,208,187),
new Color(199,163,120),
new Color(111,83,55),
new Color(74,50,32),
};
public static int maxFollowDistance = 120;
public static int followXOffset = 30;
public static int followYOffset = 130;
public GamePanel(){
try {
robot = new Robot();
} catch (AWTException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
static int randomNumber(int min, int max){
return min + (int)(Math.random() * ((max - min) + 1));
}
public static void click(int x, int y){
//System.out.println("attempting click at: "+x+","+y);
mousePos.x = x;
mousePos.y = y;
alreadyReleased=true;
alreadyPressed=false;
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
robot.mouseMove(x,y);
sleep(20, 50);
robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
sleep(120, 150);
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
sleep(50, 90);
}
public static void useKey(int k, boolean typing) {
if(System.currentTimeMillis()>soonestAvailableKeyPress||typing) {
robot.keyPress(k);
if(!typing) sleep(70, 152);
else sleep(18, 32);
robot.keyRelease(k);
if(typing) sleep(18,32);
soonestAvailableKeyPress = System.currentTimeMillis()+randomNumber(193,257);
}
}
public static void sleep(int min, int max){
try {
Thread.sleep(randomNumber(min, max));
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public void paintComponent(Graphics g) {
super.paintComponent(g);
Draw(g);
}
public int getScreenState(BufferedImage img){
return -1;
}
public boolean colorMatchesES(Color current) {
if(current.getRed()>=53&¤t.getRed()<=132) {
if(current.getGreen()>=150&¤t.getGreen()<=170) {
if(current.getBlue()>=85&¤t.getBlue()<=175) {
return true;
}
}
}
return false;
}
public boolean colorMatchesHP(Color current) {
if(current.getRed()>=24&¤t.getRed()<=33) {
if(current.getGreen()>=102&¤t.getGreen()<=167) {
if(current.getBlue()>=37&¤t.getBlue()<=55) {
return true;
}
}
}
return false;
}
public boolean sameColor(Color a, Color b) {
double rMax = Math.max(a.getRed(), b.getRed());
double gMax = Math.max(a.getGreen(), b.getGreen());
double bMax = Math.max(a.getBlue(), b.getBlue());
double rMin = Math.min(a.getRed(), b.getRed());
double gMin = Math.min(a.getGreen(), b.getGreen());
double bMin = Math.min(a.getBlue(), b.getBlue());
if(rMax-rMin<=50&&rMin/rMax>=.90 && gMin/gMax>=.90 && bMin/bMax>=.90) {
return true;
}
return false;
}
public static void addToClipboard(String s) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Clipboard clipboard = toolkit.getSystemClipboard();
StringSelection strSel = new StringSelection(s);
clipboard.setContents(strSel, null);
}
public static void insult() {
String[] insults = {"Fuckstick", "Gutter Slut", "Cockmuppet", "Cousin Fucker", "Assclown", "Douchemonger", "Twat", "Mouth-breather", "Cockshiner", "Cheesedick", "Fuckface", "Knuckle-dragger", "Shitstick", "Tool", "Shitbag", "Carpet-cleaner", "Asshat", "Slutbag", "Numbnuts", "Dicknose", "Cum dumpster", "Sleezebag", "Buttmunch", "Twatwaffle", "Tard", "Cunt rag", "Cuntmuscle", "Shitstain", "Dickbreath", "Jizztissue", "Cockgobbler", "Cuntkicker", "Douchenozzle", "Pigfucker", "Butknuckler", "Clitsplitter", "Shitshaker", "Douche canoe", "Fuckrag", "Rumpranger", "Cock-juggling thundercunt", "Ass fiddler", "Butt monkey", "Fat lard", "Inbreeder", "Boogerface", "Ballsack", "Cumwad", "Poo-poo head", "Village idiot", "Bozo", "Wanker", "Weirdo", "Porker", "Fatso", "Geezer", "Wuss", "Fucktard"};
String[] adverbs = {"antiquated", "rambunctious", "mundane", "misshapen", "dreary", "dopey", "clammy", "brazen", "indiscreet", "imbecilic", "dysfunctional", "drunken", "dismal", "deficient", "daft", "asinine", "morbid", "repugnant", "unkempt", "decrepit", "impertinent", "grotesque"};
addToClipboard("&You're a "+insults[randomNumber(0,insults.length-1)]+" mario.");
useKey(KeyEvent.VK_ENTER,true);
robot.keyPress(KeyEvent.VK_CONTROL);
sleep(25, 45);
useKey(KeyEvent.VK_V,true);
robot.keyRelease(KeyEvent.VK_CONTROL);
useKey(KeyEvent.VK_ENTER,true);
}
public Point getLeaderPos(BufferedImage screen) {
for(int i = 1; i<screen.getWidth()-10;i+=3) {
for(int j = 0; j<screen.getHeight()-5; j+=1) {
Color current = new Color(screen.getRGB(i, j));
//if(!colorMatchesES(new Color(screen.getRGB(i-1, j)))) {
if(colorMatchesHP(current)&&colorMatchesHP(new Color(screen.getRGB(i+3, j)))&&colorMatchesHP(new Color(screen.getRGB(i+6, j)))) {
return new Point(followXOffset+(i*2), followYOffset+(j*2));
}
//}
}
}
return null;
}
public BufferedImage resizeImage(BufferedImage img) {
BufferedImage result = new BufferedImage(img.getWidth()/2, img.getHeight()/2, BufferedImage.TYPE_INT_ARGB);
Graphics g = result.getGraphics();
g.drawImage(img, 0, 0, img.getWidth()/2, img.getHeight()/2,null);
g.dispose();
return result;
}
public static double distanceBetween(double x1, double y1, double x2, double y2) {
return Math.sqrt(Math.pow(((double)x1-x2),2)+Math.pow(((double)y1-y2),2));
}
public void delay(int a, int b) {
delay = System.currentTimeMillis()+randomNumber(a,b);
}
public void clickDoor(ArrayList<Rectangle> doors) {
if(doors.size()==0) return;
if(System.currentTimeMillis()-lastDoorEntryTime>8000) {
//determine which doors are actually usable
Rectangle closest = doors.get(0);
double closestDistance = -1;
for(int i = 0; i<doors.size();i++) {
double x = doors.get(i).x+(doors.get(i).width/2);
double y = doors.get(i).y+(doors.get(i).height/2);
double distance = Math.sqrt(Math.pow((x-480),2)+Math.pow((y-260),2));
if(i==0) {
closestDistance=distance;
closest=doors.get(i);
}
else if(distance<closestDistance) {
closestDistance=distance;
closest=doors.get(i);
}
}
int x = randomNumber(closest.x, closest.x+closest.width);
int y = randomNumber(closest.y, closest.y+closest.height);
click((x*2), (y*2));
System.out.println(" Clicked the closest door!");
}
else {
Rectangle random = doors.get(randomNumber(0, doors.size()-1));
int x = randomNumber(random.x, random.x+random.width);
int y = randomNumber(random.y, random.y+random.height);
click((x*2), (y*2));
System.out.println(" Clicked a random door!");
}
delay(200,300);
}
public void checkForLevelableGem() {
//Screenshot of potential levelable gems
BufferedImage gems = robot.createScreenCapture(new Rectangle(1910, 289, 1, 33));
boolean matchFound=true;
for(int i = 0; i<gems.getHeight(); i+=2) {
Color current = new Color(gems.getRGB(0, i));
if(!current.equals(gemPattern[i])) {
matchFound=false;
break;
}
}
if(matchFound) {
int x = randomNumber(1843,1868);
int y = randomNumber(293,318);
click(x,y);
System.out.println(" Clicking on a gem to level it up!");
}
}
public void useQuickSilver() {
boolean alreadyInEffect=false;
for(int i = 2; i<5;i++) {
if(flaskInUse[i]==true) alreadyInEffect = true;
}
if(alreadyInEffect==false) {
int roll = randomNumber(0,2);
if(flaskAvailable[2+roll]) {
System.out.println(" Using a quicksilver flask");
useKey(KeyEvent.VK_3+roll, false);
}
}
}
public void resurrect(BufferedImage screen) {
//release the mouse
if(!alreadyReleased) {
alreadyReleased=true;
alreadyPressed=false;
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
boolean found = true;
for(int i = 0; i<ressurectPattern.length;i++) {
Color c = new Color(screen.getRGB(405+i, 150));
if(!ressurectPattern[i].equals(c)) {
found = false;
break;
}
}
if(found) {
System.out.println("Resurrecting");
click(randomNumber(840, 1078), randomNumber(305, 333));
System.out.println("Sleeping for 3.8-5.1 seconds");
sleep(3820,5104);
System.out.println("Finished Resurrecting.");
castAuras();
}
}
public void castAuras() {
System.out.println("Casting auras");
BufferedImage skills = robot.createScreenCapture(new Rectangle(1415, 952, 271, 118));
Point[] positions = {
new Point(110,2),
new Point(165,2),
new Point(220,2),
new Point(0,70),
new Point(55,70),
new Point(111,70),
new Point(166,70),
new Point(222,70),
};
System.out.println("----");
for(int i = 1; i<positions.length;i++) {
Color current = new Color(skills.getRGB(positions[i].x, positions[i].y));
System.out.println(i+" - "+current);
//if this aura is off
if(current.getRed()!=113&¤t.getRed()!=204&¤t.getRed()!=203) {
System.out.println("Aura at position "+i+" is off. Casting it now.");
if(i==1) {
useKey(KeyEvent.VK_6, false);
sleep(2203,2508);
}
if(i==2) {
useKey(KeyEvent.VK_7, false);
sleep(2203,2508);
}
else if(i==3) {
useKey(KeyEvent.VK_Q, false);
sleep(2203,2508);
}
else if(i==4) {
useKey(KeyEvent.VK_W, false);
sleep(2203,2508);
}
else if(i==5) {
useKey(KeyEvent.VK_E, false);
sleep(2203,2508);
}
else if(i==6) {
useKey(KeyEvent.VK_R, false);
sleep(2203,2508);
}
else if(i==7) {
useKey(KeyEvent.VK_T, false);
sleep(2203,2508);
}
}
}
System.out.println("Finished casting auras");
}
public ArrayList<Rectangle> findDoors(BufferedImage screen){
ArrayList<Rectangle> doors = new ArrayList<Rectangle>();
Color textColor = new Color(200,200,220);
for(int i = 0; i<screen.getWidth(); i++) {
for(int j = 1; j<screen.getHeight()-1;j++) {
Color current = new Color(screen.getRGB(i, j));
if(sameColor(current, textColor)) {
closestDoor(i,j,doors);
}
}
}
ArrayList<Rectangle> usableDoors = new ArrayList<Rectangle>();
//determine which doors are actually usable
for(int i = 0; i<doors.size();i++) {
Rectangle random = doors.get(i);
if(random.getWidth()/random.getHeight()>3&&random.getHeight()>=4&&random.getWidth()<120&&random.getHeight()<=9) {
usableDoors.add(random);
}
}
return usableDoors;
}
public void doFlaskStuff(Graphics g) {
//Take a screenshot of the flasks (311, 980, 220, 94)
BufferedImage flasks = robot.createScreenCapture(new Rectangle(0, 870, 531, 210));
//determine which flasks are in use
int w = 46;
for(int i = 0; i<5; i++) {
Color current = new Color(flasks.getRGB(311+(i*w), 201));
Color charges = new Color(flasks.getRGB(322+(i*w), 180));
if(current.equals(new Color(249,215,153))) {
flaskInUse[i] = true;
}
else {
flaskInUse[i] = false;
}
if(charges.getRed()<40&&charges.getGreen()<40&&charges.getBlue()<40) {
flaskAvailable[i]=false;
}
else {
flaskAvailable[i]=true;
}
}
//determine %ES
int percentES = -1;
for(int i = 0; i<50; i++) {
for(int j = 0; j<5; j++) {
int y = (int)(double)((double)((double)flasks.getHeight()/50.0)*(double)i);
Color current = new Color(flasks.getRGB(115+(20*j), y));
if((double)current.getBlue()/(double)current.getRed()>1.4 && current.getBlue()>70) {
percentES=(50-i)*2;
break;
}
}
if(percentES!=-1)break;
}
percentES++;
g.setColor(Color.white);
g.drawString("Energy Shield: "+percentES + "%", 10, 90);
//determine %life
int percentLife = -1;
for(int i = 0; i<50; i++) {
for(int j = 0; j<5; j++) {
int y = (int)(double)((double)((double)flasks.getHeight()/50.0)*(double)i);
Color current = new Color(flasks.getRGB(110+(3*j), y));
if((double)current.getRed()/(double)current.getBlue()>2.5 && (double)current.getRed()/(double)current.getGreen()>2.5 && current.getRed()>40) {
percentLife=(50-i)*2;
break;
}
}
if(percentLife!=-1)break;
}
percentLife++;
g.setColor(Color.white);
g.drawString("Life: "+percentLife + "%", 10, 106);
//life flask
if(isAuraBuild) {
if(percentLife<=lifeFlaskThreshold&&flaskAvailable[0]) {
useKey(KeyEvent.VK_1, false);
lifeFlaskThreshold = randomNumber(55, 72);
}
}
else {
//use silver flask
if(flaskAvailable[0]) {
System.out.println(" Using silver flask");
useKey(KeyEvent.VK_1, false);
}
}
//quicksilver flask
useQuickSilver();
//doedre's elixir
if(percentES>=90&&percentLife>5&&flaskAvailable[1]) {
System.out.println(" Using doedre's elixer. Current Life is: "+percentLife+"%"+", Current ES is: "+percentES+"%");
useKey(KeyEvent.VK_2, false);
}
}
public void closestDoor(int x, int y, ArrayList<Rectangle> doors) {
boolean found = false;
int dist = 10;
for(int i = 0; i<doors.size();i++) {
Rectangle current = doors.get(i);
//left
if(x>=current.x-dist&&x<current.x&&y>=current.y-dist&&y<=current.y+current.height+dist) {
current.width+=current.x-x;
current.x=x;
found = true;
}
//right
if(x>current.x+current.width&&x<=current.x+current.width+dist&&y>=current.y-dist&&y<=current.y+current.height+dist) {
current.width = x-current.x;
found = true;
}
//top
if(y>=current.y-dist&&y<current.y&&x>=current.x-dist&&y<=current.x+current.width+dist) {
current.height+=current.y-y;
current.y=y;
found = true;
}
//bottom
if(y>current.y+current.height&&y<=current.y+current.height+dist&&x>=current.x-dist&&x<=current.x+current.width+dist) {
current.height=y-current.y;
found = true;
}
if(found) {
for(int j = 0; j<doors.size(); j++) {
Rectangle other = doors.get(j);
if(other!=current&&other.intersects(current)) {
int newX = Math.min(current.x, doors.get(j).x);
int newY = Math.min(current.y, doors.get(j).y);
int newWidth = Math.max(current.x+current.width, other.x+other.width)-newX;
int newHeight = Math.max(current.y+current.height, other.y+other.height)-newY;
current.x=newX;
current.y=newY;
current.width = newWidth;
current.height = newHeight;
doors.remove(j);
}
}
return;
}
}
doors.add(new Rectangle(x,y,1,1));
}
public void destroyItem() {
robot.keyRelease(KeyEvent.VK_SHIFT);
//click on item
robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
sleep(20, 50);
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
sleep(17, 30);
useKey(KeyEvent.VK_ENTER, true);
sleep(27, 39);
useKey(KeyEvent.VK_SLASH, true);
useKey(KeyEvent.VK_D, true);
useKey(KeyEvent.VK_E, true);
useKey(KeyEvent.VK_S, true);
useKey(KeyEvent.VK_T, true);
useKey(KeyEvent.VK_R, true);
useKey(KeyEvent.VK_O, true);
useKey(KeyEvent.VK_Y, true);
useKey(KeyEvent.VK_ENTER, true);
}
public void drawString(Graphics g, String s, int x, int y) {
g.setColor(Color.white);
Font font = new Font("Iwona Heavy",Font.BOLD,16);
g.setFont(font);
FontMetrics m = g.getFontMetrics();
g.drawString(s, x, y);
}
public void Draw(Graphics g){
mousePos = MouseInfo.getPointerInfo().getLocation();
if(!paused) {
//Take a screenshot of the window
//BufferedImage screen = resizeImage(robot.createScreenCapture(new Rectangle(200, 100, 1520, 800)));
if(debug==false) {
BufferedImage screen = resizeImage(robot.createScreenCapture(new Rectangle(0, 0, 1920, 1080)));
//block out the chat box
Graphics tmpg = screen.getGraphics();
tmpg.setColor(Color.red);
tmpg.fillRect(0, 0, 120, 540);
tmpg.fillRect(820, 0, 140, 140);
tmpg.fillRect(0, 460, 290, 80);
tmpg.fillRect(680, 460, 290, 80);
tmpg.fillRect(120, 270, 55, 150);
tmpg.dispose();
if(System.currentTimeMillis()>delay) {
//resurrect if dead
resurrect(screen);
Point leaderPos = getLeaderPos(screen);
boolean following = false;
//if the leader is on the screen
if(leaderPos!=null) {
System.out.println("Found the leader at: " + leaderPos);
drawString(g,"L Found",5,30);
double distance = distanceBetween(leaderPos.x, leaderPos.y, 960, 520);
//if the leading character is more than 150 pixels from the bot
if(distance>maxFollowDistance) {
System.out.println("The leading character is more than "+maxFollowDistance+" pixels away from the bot.");
drawString(g,"L Far",5,30);
double angleToLeader = Math.atan2(((double)leaderPos.x-960),(((double)leaderPos.y-520)));
//move the mouse so that it is over the leading character
//robot.mouseMove(leaderPos.x, leaderPos.y);
double x = leaderPos.x;//Math.cos(angleToLeader)*(distance/2);
double y = leaderPos.y;//Math.sin(angleToLeader)*(distance/2);
robot.mouseMove((int)x,(int)y);
System.out.println(" Moved the mouse to follow the leader. New Position is: "+x+","+ y);
//press the mouse if it's not already pressed
if(!alreadyPressed) {
System.out.println(" Pressing the mouse");
alreadyPressed=true;
alreadyReleased=false;
GamePanel.robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
}
else {
System.out.println("The mouse was already pressed, nothing changed");
}
//use flasks
doFlaskStuff(g);
}
else {
drawString(g,"L Close",5,30);
System.out.println("The leading character is less than "+maxFollowDistance+" pixels away from the bot.");
//check if any gems can be leveled up and click them if so
checkForLevelableGem();
}
leaderLastSeen=System.currentTimeMillis();
}
else {
g.drawImage(screen,0,0,null);
System.out.println("Unable to locate the leader");
//release the mouse
if(!alreadyReleased) {
System.out.println(" Released the mouse");
alreadyReleased=true;
alreadyPressed=false;
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
drawString(g,"L Missing",5,30);
//if the leader hasn't been seen for at least 1 second and it's been at least 5 seconds since the last door was used
if(System.currentTimeMillis()-leaderLastSeen>1000&&(System.currentTimeMillis()-lastDoorEntryTime>5000)) {
//click on a door
clickDoor(findDoors(screen));
lastDoorEntryTime = System.currentTimeMillis();
}
if(!alreadyReleased) {
System.out.println(" Released the mouse");
alreadyReleased=true;
alreadyPressed=false;
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
}
}
else {
drawString(g,"Delayed",5,30);
System.out.println("Waiting for a delay");
}
}
else {
long tmp = System.currentTimeMillis();
BufferedImage inventoryOpen = robot.createScreenCapture(new Rectangle(1880, 30, 10,1));
boolean found=true;
//System.out.println("---");
for(int i = 0; i<10;i++) {
int c = inventoryOpen.getRGB(i, 0);
//System.out.println(c+",");
if(c!=inventoryPattern[i]) found = false;
}
Point mouse = MouseInfo.getPointerInfo().getLocation();
if(found&&mouse.x>1200&&mouse.y>450&&mouse.x<1920) {
BufferedImage invContents = robot.createScreenCapture(new Rectangle(mouse.x-200,mouse.y-200,400,400));
boolean scrollInUse=false;
for(int i = 0; i<invContents.getWidth();i++) {
for(int j = 0; j<invContents.getHeight();j++) {
for(int k = 0; k<4;k++) {
Color current = new Color(invContents.getRGB(i+k, j));
if(!current.equals(scrollPattern[k])) break;
if(k==3) scrollInUse=true;
}
}
}
//System.out.println(scrollInUse);
if(!scrollInUse) {
//ItemInfo.clearClipboard();
//press ctrl-c
robot.keyPress(KeyEvent.VK_CONTROL);
sleep(25, 45);
useKey(KeyEvent.VK_C, true);
robot.keyRelease(KeyEvent.VK_CONTROL);
sleep(15, 25);
//debug stuff here
ItemInfo.Draw(g);
if(ItemInfo.item!=null&&(ItemInfo.item.rarity==ItemInfo.RARE)&&ItemInfo.item.identified) {
int totalResist = ItemInfo.item.totalResist();
//one handed melee only weapon
if((ItemInfo.item.baseType==ItemInfo.CLAW||ItemInfo.item.baseType==ItemInfo.THRUSTING_SWORD||ItemInfo.item.baseType==ItemInfo.ONE_HAND_AXE||ItemInfo.item.baseType==ItemInfo.ONE_HAND_MACE||ItemInfo.item.baseType==ItemInfo.ONE_HAND_SWORD)) {
//if the item has crappy dps
if(!(ItemInfo.item.dps>=430||ItemInfo.item.pdps>=280||ItemInfo.item.edps>=330)) {
destroyItem();
ItemInfo.clearClipboard();
}
}
//two handed melee only weapon
else if((ItemInfo.item.baseType==ItemInfo.TWO_HAND_AXE||ItemInfo.item.baseType==ItemInfo.TWO_HAND_MACE||ItemInfo.item.baseType==ItemInfo.TWO_HAND_SWORD)) {
//if the item has crappy dps
if(!(ItemInfo.item.dps>=540||ItemInfo.item.pdps>=380||ItemInfo.item.edps>=400)) {
//if the item has less than 5 links and has less than 6 sockets
if(ItemInfo.item.sockets<6&&ItemInfo.item.links<5) {
destroyItem();
ItemInfo.clearClipboard();
}
}
}
else if(ItemInfo.item.baseType==ItemInfo.BOW) {
//if the item has crappy dps and doesn't have +3 level of gems
if(!(ItemInfo.item.dps>=390||ItemInfo.item.pdps>=330||ItemInfo.item.edps>=280)&&(ItemInfo.item.hasPrefix("Socketed Bow")==null||ItemInfo.item.hasPrefix("Socketed Gems")==null)) {
//if the item has less than 5 links and has less than 6 sockets
if(ItemInfo.item.sockets<6&&ItemInfo.item.links<5) {
destroyItem();
ItemInfo.clearClipboard();
}
}
}
else if(ItemInfo.item.baseType==ItemInfo.BOOTS) {
if(!(totalResist>120||ItemInfo.item.energyShield>190||(totalResist>80&&ItemInfo.item.movespeed>=25)||(totalResist>50&&ItemInfo.item.movespeed>=25&&(ItemInfo.item.life>70||ItemInfo.item.energyShield>=100)))) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.GLOVES) {
if(!((ItemInfo.item.life>60||ItemInfo.item.energyShield>80)&&(ItemInfo.item.hasAffix("Adds")!=null||ItemInfo.item.hasAffix("Speed")!=null))) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.HELMET) {
if(!((totalResist>80&&ItemInfo.item.life>70)||ItemInfo.item.energyShield>200||ItemInfo.item.increasedRarity>=40)) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.BODY_ARMOUR) {
if(!(totalResist>80&&ItemInfo.item.life>80)||ItemInfo.item.energyShield<450) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.BELT) {
if(!(totalResist>=85&&ItemInfo.item.life>80)) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.SHIELD) {
if(!(totalResist>100&&ItemInfo.item.life>80)&&ItemInfo.item.energyShield<260&&ItemInfo.item.spellDmg<60) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.WAND||ItemInfo.item.baseType==ItemInfo.DAGGER||ItemInfo.item.baseType==ItemInfo.SCEPTRE) {
//if the item has crappy dps
if(!(ItemInfo.item.dps>=270||ItemInfo.item.pdps>=200||ItemInfo.item.edps>=180||ItemInfo.item.spellDmg>=80)) {
destroyItem();
ItemInfo.clearClipboard();
}
}
else if(ItemInfo.item.baseType==ItemInfo.STAFF) {
if(ItemInfo.item.sockets<6&&ItemInfo.item.links<5) {
if((ItemInfo.item.hasPrefix("Socketed Fire")==null&&ItemInfo.item.hasPrefix("Socketed Cold")==null&&ItemInfo.item.hasPrefix("Socketed Lightning")==null)||ItemInfo.item.hasPrefix("Socketed Gems")==null) {
destroyItem();
ItemInfo.clearClipboard();
}
}
}
}
}
}
}
//g.setColor(Color.red);
//if(leaderPos!=null)
//g.drawLine((leaderPos.x+30)/2, (leaderPos.y+100)/2, (screen.getWidth()/2), (screen.getHeight()/2));
}
else {
System.out.println("paused");
}
g.setColor(Color.white);
Font font = new Font("Iwona Heavy",Font.BOLD,26);
g.setFont(font);
FontMetrics m = g.getFontMetrics();
}
}
| mjfinzel/Aurabot | src/Program/GamePanel.java |
213,454 | package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Sep 23, 2017 17:56-0400 for FHIR v3.1.0
import org.hl7.fhir.exceptions.FHIRException;
public enum V3RouteOfAdministration {
/**
* Route of substance administration classified by administration method.
*/
_ROUTEBYMETHOD,
/**
* Immersion (soak)
*/
SOAK,
/**
* Shampoo
*/
SHAMPOO,
/**
* Translingual
*/
TRNSLING,
/**
* Swallow, oral
*/
PO,
/**
* Gargle
*/
GARGLE,
/**
* Suck, oromucosal
*/
SUCK,
/**
* Chew
*/
_CHEW,
/**
* Chew, oral
*/
CHEW,
/**
* Diffusion
*/
_DIFFUSION,
/**
* Diffusion, extracorporeal
*/
EXTCORPDIF,
/**
* Diffusion, hemodialysis
*/
HEMODIFF,
/**
* Diffusion, transdermal
*/
TRNSDERMD,
/**
* Dissolve
*/
_DISSOLVE,
/**
* Dissolve, oral
*/
DISSOLVE,
/**
* Dissolve, sublingual
*/
SL,
/**
* Douche
*/
_DOUCHE,
/**
* Douche, vaginal
*/
DOUCHE,
/**
* Electro-osmosis
*/
_ELECTROOSMOSISROUTE,
/**
* Electro-osmosis
*/
ELECTOSMOS,
/**
* Enema
*/
_ENEMA,
/**
* Enema, rectal
*/
ENEMA,
/**
* Enema, rectal retention
*/
RETENEMA,
/**
* Flush
*/
_FLUSH,
/**
* Flush, intravenous catheter
*/
IVFLUSH,
/**
* Implantation
*/
_IMPLANTATION,
/**
* Implantation, intradermal
*/
IDIMPLNT,
/**
* Implantation, intravitreal
*/
IVITIMPLNT,
/**
* Implantation, subcutaneous
*/
SQIMPLNT,
/**
* Infusion
*/
_INFUSION,
/**
* Infusion, epidural
*/
EPI,
/**
* Infusion, intraarterial catheter
*/
IA,
/**
* Infusion, intracardiac
*/
IC,
/**
* Infusion, intracoronary
*/
ICOR,
/**
* Infusion, intraosseous, continuous
*/
IOSSC,
/**
* Infusion, intrathecal
*/
IT,
/**
* Infusion, intravenous
*/
IV,
/**
* Infusion, intravenous catheter
*/
IVC,
/**
* Infusion, intravenous catheter, continuous
*/
IVCC,
/**
* Infusion, intravenous catheter, intermittent
*/
IVCI,
/**
* Infusion, intravenous catheter, pca pump
*/
PCA,
/**
* Infusion, intravascular
*/
IVASCINFUS,
/**
* Infusion, subcutaneous
*/
SQINFUS,
/**
* Inhalation
*/
_INHALATION,
/**
* Inhalation, oral
*/
IPINHL,
/**
* Inhalation, oral intermittent flow
*/
ORIFINHL,
/**
* Inhalation, oral rebreather mask
*/
REBREATH,
/**
* Inhalation, intermittent positive pressure breathing (ippb)
*/
IPPB,
/**
* Inhalation, nasal
*/
NASINHL,
/**
* Inhalation, nasal, prongs
*/
NASINHLC,
/**
* Inhalation, nebulization
*/
NEB,
/**
* Inhalation, nebulization, nasal
*/
NASNEB,
/**
* Inhalation, nebulization, oral
*/
ORNEB,
/**
* Inhalation, tracheostomy
*/
TRACH,
/**
* Inhalation, ventilator
*/
VENT,
/**
* Inhalation, ventimask
*/
VENTMASK,
/**
* Injection
*/
_INJECTION,
/**
* Injection, amniotic fluid
*/
AMNINJ,
/**
* Injection, biliary tract
*/
BILINJ,
/**
* Injection, for cholangiography
*/
CHOLINJ,
/**
* Injection, cervical
*/
CERVINJ,
/**
* Injection, epidural
*/
EPIDURINJ,
/**
* Injection, epidural, push
*/
EPIINJ,
/**
* Injection, epidural, slow push
*/
EPINJSP,
/**
* Injection, extra-amniotic
*/
EXTRAMNINJ,
/**
* Injection, extracorporeal
*/
EXTCORPINJ,
/**
* Injection, gastric button
*/
GBINJ,
/**
* Injection, gingival
*/
GINGINJ,
/**
* Injection, urinary bladder
*/
BLADINJ,
/**
* Injection, endosinusial
*/
ENDOSININJ,
/**
* Injection, hemodialysis port
*/
HEMOPORT,
/**
* Injection, intra-abdominal
*/
IABDINJ,
/**
* Injection, intraarterial
*/
IAINJ,
/**
* Injection, intraarterial, push
*/
IAINJP,
/**
* Injection, intraarterial, slow push
*/
IAINJSP,
/**
* Injection, intraarticular
*/
IARTINJ,
/**
* Injection, intrabursal
*/
IBURSINJ,
/**
* Injection, intracardiac
*/
ICARDINJ,
/**
* Injection, intracardiac, rapid push
*/
ICARDINJRP,
/**
* Injection, intracardiac, slow push
*/
ICARDINJSP,
/**
* Injection, intracardiac, push
*/
ICARINJP,
/**
* Injection, intracartilaginous
*/
ICARTINJ,
/**
* Injection, intracaudal
*/
ICAUDINJ,
/**
* Injection, intracavernous
*/
ICAVINJ,
/**
* Injection, intracavitary
*/
ICAVITINJ,
/**
* Injection, intracerebral
*/
ICEREBINJ,
/**
* Injection, intracisternal
*/
ICISTERNINJ,
/**
* Injection, intracoronary
*/
ICORONINJ,
/**
* Injection, intracoronary, push
*/
ICORONINJP,
/**
* Injection, intracorpus cavernosum
*/
ICORPCAVINJ,
/**
* Injection, intradermal
*/
IDINJ,
/**
* Injection, intradiscal
*/
IDISCINJ,
/**
* Injection, intraductal
*/
IDUCTINJ,
/**
* Injection, intradural
*/
IDURINJ,
/**
* Injection, intraepidermal
*/
IEPIDINJ,
/**
* Injection, intraepithelial
*/
IEPITHINJ,
/**
* Injection, intralesional
*/
ILESINJ,
/**
* Injection, intraluminal
*/
ILUMINJ,
/**
* Injection, intralymphatic
*/
ILYMPJINJ,
/**
* Injection, intramuscular
*/
IM,
/**
* Injection, intramuscular, deep
*/
IMD,
/**
* Injection, intramuscular, z track
*/
IMZ,
/**
* Injection, intramedullary
*/
IMEDULINJ,
/**
* Injection, interameningeal
*/
INTERMENINJ,
/**
* Injection, interstitial
*/
INTERSTITINJ,
/**
* Injection, intraocular
*/
IOINJ,
/**
* Injection, intraosseous
*/
IOSSINJ,
/**
* Injection, intraovarian
*/
IOVARINJ,
/**
* Injection, intrapericardial
*/
IPCARDINJ,
/**
* Injection, intraperitoneal
*/
IPERINJ,
/**
* Injection, intrapulmonary
*/
IPINJ,
/**
* Injection, intrapleural
*/
IPLRINJ,
/**
* Injection, intraprostatic
*/
IPROSTINJ,
/**
* Injection, insulin pump
*/
IPUMPINJ,
/**
* Injection, intraspinal
*/
ISINJ,
/**
* Injection, intrasternal
*/
ISTERINJ,
/**
* Injection, intrasynovial
*/
ISYNINJ,
/**
* Injection, intratendinous
*/
ITENDINJ,
/**
* Injection, intratesticular
*/
ITESTINJ,
/**
* Injection, intrathoracic
*/
ITHORINJ,
/**
* Injection, intrathecal
*/
ITINJ,
/**
* Injection, intratubular
*/
ITUBINJ,
/**
* Injection, intratumor
*/
ITUMINJ,
/**
* Injection, intratympanic
*/
ITYMPINJ,
/**
* Injection, intracervical (uterus)
*/
IUINJ,
/**
* Injection, intracervical (uterus)
*/
IUINJC,
/**
* Injection, intraureteral, retrograde
*/
IURETINJ,
/**
* Injection, intravascular
*/
IVASCINJ,
/**
* Injection, intraventricular (heart)
*/
IVENTINJ,
/**
* Injection, intravesicle
*/
IVESINJ,
/**
* Injection, intravenous
*/
IVINJ,
/**
* Injection, intravenous, bolus
*/
IVINJBOL,
/**
* Injection, intravenous, push
*/
IVPUSH,
/**
* Injection, intravenous, rapid push
*/
IVRPUSH,
/**
* Injection, intravenous, slow push
*/
IVSPUSH,
/**
* Injection, intravitreal
*/
IVITINJ,
/**
* Injection, periarticular
*/
PAINJ,
/**
* Injection, parenteral
*/
PARENTINJ,
/**
* Injection, periodontal
*/
PDONTINJ,
/**
* Injection, peritoneal dialysis port
*/
PDPINJ,
/**
* Injection, peridural
*/
PDURINJ,
/**
* Injection, perineural
*/
PNINJ,
/**
* Injection, paranasal sinuses
*/
PNSINJ,
/**
* Injection, retrobulbar
*/
RBINJ,
/**
* Injection, subconjunctival
*/
SCINJ,
/**
* Injection, sublesional
*/
SLESINJ,
/**
* Injection, soft tissue
*/
SOFTISINJ,
/**
* Injection, subcutaneous
*/
SQ,
/**
* Injection, subarachnoid
*/
SUBARACHINJ,
/**
* Injection, submucosal
*/
SUBMUCINJ,
/**
* Injection, transplacental
*/
TRPLACINJ,
/**
* Injection, transtracheal
*/
TRTRACHINJ,
/**
* Injection, urethral
*/
URETHINJ,
/**
* Injection, ureteral
*/
URETINJ,
/**
* Insertion
*/
_INSERTION,
/**
* Insertion, cervical (uterine)
*/
CERVINS,
/**
* Insertion, intraocular, surgical
*/
IOSURGINS,
/**
* Insertion, intrauterine
*/
IU,
/**
* Insertion, lacrimal puncta
*/
LPINS,
/**
* Insertion, rectal
*/
PR,
/**
* Insertion, subcutaneous, surgical
*/
SQSURGINS,
/**
* Insertion, urethral
*/
URETHINS,
/**
* Insertion, vaginal
*/
VAGINSI,
/**
* Instillation
*/
_INSTILLATION,
/**
* Instillation, cecostomy
*/
CECINSTL,
/**
* Instillation, enteral feeding tube
*/
EFT,
/**
* Instillation, enteral
*/
ENTINSTL,
/**
* Instillation, gastrostomy tube
*/
GT,
/**
* Instillation, nasogastric tube
*/
NGT,
/**
* Instillation, orogastric tube
*/
OGT,
/**
* Instillation, urinary catheter
*/
BLADINSTL,
/**
* Instillation, continuous ambulatory peritoneal dialysis port
*/
CAPDINSTL,
/**
* Instillation, chest tube
*/
CTINSTL,
/**
* Instillation, endotracheal tube
*/
ETINSTL,
/**
* Instillation, gastro-jejunostomy tube
*/
GJT,
/**
* Instillation, intrabronchial
*/
IBRONCHINSTIL,
/**
* Instillation, intraduodenal
*/
IDUODINSTIL,
/**
* Instillation, intraesophageal
*/
IESOPHINSTIL,
/**
* Instillation, intragastric
*/
IGASTINSTIL,
/**
* Instillation, intraileal
*/
IILEALINJ,
/**
* Instillation, intraocular
*/
IOINSTL,
/**
* Instillation, intrasinal
*/
ISININSTIL,
/**
* Instillation, intratracheal
*/
ITRACHINSTIL,
/**
* Instillation, intrauterine
*/
IUINSTL,
/**
* Instillation, jejunostomy tube
*/
JJTINSTL,
/**
* Instillation, laryngeal
*/
LARYNGINSTIL,
/**
* Instillation, nasal
*/
NASALINSTIL,
/**
* Instillation, nasogastric
*/
NASOGASINSTIL,
/**
* Instillation, nasotracheal tube
*/
NTT,
/**
* Instillation, orojejunum tube
*/
OJJ,
/**
* Instillation, otic
*/
OT,
/**
* Instillation, peritoneal dialysis port
*/
PDPINSTL,
/**
* Instillation, paranasal sinuses
*/
PNSINSTL,
/**
* Instillation, rectal
*/
RECINSTL,
/**
* Instillation, rectal tube
*/
RECTINSTL,
/**
* Instillation, sinus, unspecified
*/
SININSTIL,
/**
* Instillation, soft tissue
*/
SOFTISINSTIL,
/**
* Instillation, tracheostomy
*/
TRACHINSTL,
/**
* Instillation, transtympanic
*/
TRTYMPINSTIL,
/**
* Instillation, urethral
*/
URETHINSTL,
/**
* Iontophoresis
*/
_IONTOPHORESISROUTE,
/**
* Topical application, iontophoresis
*/
IONTO,
/**
* Irrigation
*/
_IRRIGATION,
/**
* Irrigation, genitourinary
*/
GUIRR,
/**
* Irrigation, intragastric
*/
IGASTIRR,
/**
* Irrigation, intralesional
*/
ILESIRR,
/**
* Irrigation, intraocular
*/
IOIRR,
/**
* Irrigation, urinary bladder
*/
BLADIRR,
/**
* Irrigation, urinary bladder, continuous
*/
BLADIRRC,
/**
* Irrigation, urinary bladder, tidal
*/
BLADIRRT,
/**
* Irrigation, rectal
*/
RECIRR,
/**
* Lavage
*/
_LAVAGEROUTE,
/**
* Lavage, intragastric
*/
IGASTLAV,
/**
* Mucosal absorption
*/
_MUCOSALABSORPTIONROUTE,
/**
* Mucosal absorption, intraduodenal
*/
IDOUDMAB,
/**
* Mucosal absorption, intratracheal
*/
ITRACHMAB,
/**
* Mucosal absorption, submucosal
*/
SMUCMAB,
/**
* Nebulization
*/
_NEBULIZATION,
/**
* Nebulization, endotracheal tube
*/
ETNEB,
/**
* Rinse
*/
_RINSE,
/**
* Rinse, dental
*/
DENRINSE,
/**
* Rinse, oral
*/
ORRINSE,
/**
* Suppository
*/
_SUPPOSITORYROUTE,
/**
* Suppository, urethral
*/
URETHSUP,
/**
* Swish
*/
_SWISH,
/**
* Swish and spit out, oromucosal
*/
SWISHSPIT,
/**
* Swish and swallow, oromucosal
*/
SWISHSWAL,
/**
* Topical absorption
*/
_TOPICALABSORPTIONROUTE,
/**
* Topical absorption, transtympanic
*/
TTYMPTABSORP,
/**
* Topical application
*/
_TOPICALAPPLICATION,
/**
* Topical application, soaked dressing
*/
DRESS,
/**
* Topical application, swab
*/
SWAB,
/**
* Topical
*/
TOPICAL,
/**
* Topical application, buccal
*/
BUC,
/**
* Topical application, cervical
*/
CERV,
/**
* Topical application, dental
*/
DEN,
/**
* Topical application, gingival
*/
GIN,
/**
* Topical application, hair
*/
HAIR,
/**
* Topical application, intracorneal
*/
ICORNTA,
/**
* Topical application, intracoronal (dental)
*/
ICORONTA,
/**
* Topical application, intraesophageal
*/
IESOPHTA,
/**
* Topical application, intraileal
*/
IILEALTA,
/**
* Topical application, intralesional
*/
ILTOP,
/**
* Topical application, intraluminal
*/
ILUMTA,
/**
* Topical application, intraocular
*/
IOTOP,
/**
* Topical application, laryngeal
*/
LARYNGTA,
/**
* Topical application, mucous membrane
*/
MUC,
/**
* Topical application, nail
*/
NAIL,
/**
* Topical application, nasal
*/
NASAL,
/**
* Topical application, ophthalmic
*/
OPTHALTA,
/**
* Topical application, oral
*/
ORALTA,
/**
* Topical application, oromucosal
*/
ORMUC,
/**
* Topical application, oropharyngeal
*/
OROPHARTA,
/**
* Topical application, perianal
*/
PERIANAL,
/**
* Topical application, perineal
*/
PERINEAL,
/**
* Topical application, periodontal
*/
PDONTTA,
/**
* Topical application, rectal
*/
RECTAL,
/**
* Topical application, scalp
*/
SCALP,
/**
* Occlusive dressing technique
*/
OCDRESTA,
/**
* Topical application, skin
*/
SKIN,
/**
* Subconjunctival
*/
SUBCONJTA,
/**
* Topical application, transmucosal
*/
TMUCTA,
/**
* Insertion, vaginal
*/
VAGINS,
/**
* Insufflation
*/
INSUF,
/**
* Transdermal
*/
TRNSDERM,
/**
* Route of substance administration classified by site.
*/
_ROUTEBYSITE,
/**
* Amniotic fluid sac
*/
_AMNIOTICFLUIDSACROUTE,
/**
* Biliary tract
*/
_BILIARYROUTE,
/**
* Body surface
*/
_BODYSURFACEROUTE,
/**
* Buccal mucosa
*/
_BUCCALMUCOSAROUTE,
/**
* Cecostomy
*/
_CECOSTOMYROUTE,
/**
* Cervix of the uterus
*/
_CERVICALROUTE,
/**
* Endocervical
*/
_ENDOCERVICALROUTE,
/**
* Enteral
*/
_ENTERALROUTE,
/**
* Epidural
*/
_EPIDURALROUTE,
/**
* Extra-amniotic
*/
_EXTRAAMNIOTICROUTE,
/**
* Extracorporeal circulation
*/
_EXTRACORPOREALCIRCULATIONROUTE,
/**
* Gastric
*/
_GASTRICROUTE,
/**
* Genitourinary
*/
_GENITOURINARYROUTE,
/**
* Gingival
*/
_GINGIVALROUTE,
/**
* Hair
*/
_HAIRROUTE,
/**
* Interameningeal
*/
_INTERAMENINGEALROUTE,
/**
* Interstitial
*/
_INTERSTITIALROUTE,
/**
* Intra-abdominal
*/
_INTRAABDOMINALROUTE,
/**
* Intra-arterial
*/
_INTRAARTERIALROUTE,
/**
* Intraarticular
*/
_INTRAARTICULARROUTE,
/**
* Intrabronchial
*/
_INTRABRONCHIALROUTE,
/**
* Intrabursal
*/
_INTRABURSALROUTE,
/**
* Intracardiac
*/
_INTRACARDIACROUTE,
/**
* Intracartilaginous
*/
_INTRACARTILAGINOUSROUTE,
/**
* Intracaudal
*/
_INTRACAUDALROUTE,
/**
* Intracavernosal
*/
_INTRACAVERNOSALROUTE,
/**
* Intracavitary
*/
_INTRACAVITARYROUTE,
/**
* Intracerebral
*/
_INTRACEREBRALROUTE,
/**
* Intracervical
*/
_INTRACERVICALROUTE,
/**
* Intracisternal
*/
_INTRACISTERNALROUTE,
/**
* Intracorneal
*/
_INTRACORNEALROUTE,
/**
* Intracoronal (dental)
*/
_INTRACORONALROUTE,
/**
* Intracoronary
*/
_INTRACORONARYROUTE,
/**
* Intracorpus cavernosum
*/
_INTRACORPUSCAVERNOSUMROUTE,
/**
* Intradermal
*/
_INTRADERMALROUTE,
/**
* Intradiscal
*/
_INTRADISCALROUTE,
/**
* Intraductal
*/
_INTRADUCTALROUTE,
/**
* Intraduodenal
*/
_INTRADUODENALROUTE,
/**
* Intradural
*/
_INTRADURALROUTE,
/**
* Intraepidermal
*/
_INTRAEPIDERMALROUTE,
/**
* Intraepithelial
*/
_INTRAEPITHELIALROUTE,
/**
* Intraesophageal
*/
_INTRAESOPHAGEALROUTE,
/**
* Intragastric
*/
_INTRAGASTRICROUTE,
/**
* Intraileal
*/
_INTRAILEALROUTE,
/**
* Intralesional
*/
_INTRALESIONALROUTE,
/**
* Intraluminal
*/
_INTRALUMINALROUTE,
/**
* Intralymphatic
*/
_INTRALYMPHATICROUTE,
/**
* Intramedullary
*/
_INTRAMEDULLARYROUTE,
/**
* Intramuscular
*/
_INTRAMUSCULARROUTE,
/**
* Intraocular
*/
_INTRAOCULARROUTE,
/**
* Intraosseous
*/
_INTRAOSSEOUSROUTE,
/**
* Intraovarian
*/
_INTRAOVARIANROUTE,
/**
* Intrapericardial
*/
_INTRAPERICARDIALROUTE,
/**
* Intraperitoneal
*/
_INTRAPERITONEALROUTE,
/**
* Intrapleural
*/
_INTRAPLEURALROUTE,
/**
* Intraprostatic
*/
_INTRAPROSTATICROUTE,
/**
* Intrapulmonary
*/
_INTRAPULMONARYROUTE,
/**
* Intrasinal
*/
_INTRASINALROUTE,
/**
* Intraspinal
*/
_INTRASPINALROUTE,
/**
* Intrasternal
*/
_INTRASTERNALROUTE,
/**
* Intrasynovial
*/
_INTRASYNOVIALROUTE,
/**
* Intratendinous
*/
_INTRATENDINOUSROUTE,
/**
* Intratesticular
*/
_INTRATESTICULARROUTE,
/**
* Intrathecal
*/
_INTRATHECALROUTE,
/**
* Intrathoracic
*/
_INTRATHORACICROUTE,
/**
* Intratracheal
*/
_INTRATRACHEALROUTE,
/**
* Intratubular
*/
_INTRATUBULARROUTE,
/**
* Intratumor
*/
_INTRATUMORROUTE,
/**
* Intratympanic
*/
_INTRATYMPANICROUTE,
/**
* Intrauterine
*/
_INTRAUTERINEROUTE,
/**
* Intravascular
*/
_INTRAVASCULARROUTE,
/**
* Intravenous
*/
_INTRAVENOUSROUTE,
/**
* Intraventricular
*/
_INTRAVENTRICULARROUTE,
/**
* Intravesicle
*/
_INTRAVESICLEROUTE,
/**
* Intravitreal
*/
_INTRAVITREALROUTE,
/**
* Jejunum
*/
_JEJUNUMROUTE,
/**
* Lacrimal puncta
*/
_LACRIMALPUNCTAROUTE,
/**
* Laryngeal
*/
_LARYNGEALROUTE,
/**
* Lingual
*/
_LINGUALROUTE,
/**
* Mucous membrane
*/
_MUCOUSMEMBRANEROUTE,
/**
* Nail
*/
_NAILROUTE,
/**
* Nasal
*/
_NASALROUTE,
/**
* Ophthalmic
*/
_OPHTHALMICROUTE,
/**
* Oral
*/
_ORALROUTE,
/**
* Oromucosal
*/
_OROMUCOSALROUTE,
/**
* Oropharyngeal
*/
_OROPHARYNGEALROUTE,
/**
* Otic
*/
_OTICROUTE,
/**
* Paranasal sinuses
*/
_PARANASALSINUSESROUTE,
/**
* Parenteral
*/
_PARENTERALROUTE,
/**
* Perianal
*/
_PERIANALROUTE,
/**
* Periarticular
*/
_PERIARTICULARROUTE,
/**
* Peridural
*/
_PERIDURALROUTE,
/**
* Perineal
*/
_PERINEALROUTE,
/**
* Perineural
*/
_PERINEURALROUTE,
/**
* Periodontal
*/
_PERIODONTALROUTE,
/**
* Pulmonary
*/
_PULMONARYROUTE,
/**
* Rectal
*/
_RECTALROUTE,
/**
* Respiratory tract
*/
_RESPIRATORYTRACTROUTE,
/**
* Retrobulbar
*/
_RETROBULBARROUTE,
/**
* Scalp
*/
_SCALPROUTE,
/**
* Sinus, unspecified
*/
_SINUSUNSPECIFIEDROUTE,
/**
* Skin
*/
_SKINROUTE,
/**
* Soft tissue
*/
_SOFTTISSUEROUTE,
/**
* Subarachnoid
*/
_SUBARACHNOIDROUTE,
/**
* Subconjunctival
*/
_SUBCONJUNCTIVALROUTE,
/**
* Subcutaneous
*/
_SUBCUTANEOUSROUTE,
/**
* Sublesional
*/
_SUBLESIONALROUTE,
/**
* Sublingual
*/
_SUBLINGUALROUTE,
/**
* Submucosal
*/
_SUBMUCOSALROUTE,
/**
* Tracheostomy
*/
_TRACHEOSTOMYROUTE,
/**
* Transmucosal
*/
_TRANSMUCOSALROUTE,
/**
* Transplacental
*/
_TRANSPLACENTALROUTE,
/**
* Transtracheal
*/
_TRANSTRACHEALROUTE,
/**
* Transtympanic
*/
_TRANSTYMPANICROUTE,
/**
* Ureteral
*/
_URETERALROUTE,
/**
* Urethral
*/
_URETHRALROUTE,
/**
* Urinary bladder
*/
_URINARYBLADDERROUTE,
/**
* Urinary tract
*/
_URINARYTRACTROUTE,
/**
* Vaginal
*/
_VAGINALROUTE,
/**
* Vitreous humour
*/
_VITREOUSHUMOURROUTE,
/**
* added to help the parsers
*/
NULL;
public static V3RouteOfAdministration fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("_RouteByMethod".equals(codeString))
return _ROUTEBYMETHOD;
if ("SOAK".equals(codeString))
return SOAK;
if ("SHAMPOO".equals(codeString))
return SHAMPOO;
if ("TRNSLING".equals(codeString))
return TRNSLING;
if ("PO".equals(codeString))
return PO;
if ("GARGLE".equals(codeString))
return GARGLE;
if ("SUCK".equals(codeString))
return SUCK;
if ("_Chew".equals(codeString))
return _CHEW;
if ("CHEW".equals(codeString))
return CHEW;
if ("_Diffusion".equals(codeString))
return _DIFFUSION;
if ("EXTCORPDIF".equals(codeString))
return EXTCORPDIF;
if ("HEMODIFF".equals(codeString))
return HEMODIFF;
if ("TRNSDERMD".equals(codeString))
return TRNSDERMD;
if ("_Dissolve".equals(codeString))
return _DISSOLVE;
if ("DISSOLVE".equals(codeString))
return DISSOLVE;
if ("SL".equals(codeString))
return SL;
if ("_Douche".equals(codeString))
return _DOUCHE;
if ("DOUCHE".equals(codeString))
return DOUCHE;
if ("_ElectroOsmosisRoute".equals(codeString))
return _ELECTROOSMOSISROUTE;
if ("ELECTOSMOS".equals(codeString))
return ELECTOSMOS;
if ("_Enema".equals(codeString))
return _ENEMA;
if ("ENEMA".equals(codeString))
return ENEMA;
if ("RETENEMA".equals(codeString))
return RETENEMA;
if ("_Flush".equals(codeString))
return _FLUSH;
if ("IVFLUSH".equals(codeString))
return IVFLUSH;
if ("_Implantation".equals(codeString))
return _IMPLANTATION;
if ("IDIMPLNT".equals(codeString))
return IDIMPLNT;
if ("IVITIMPLNT".equals(codeString))
return IVITIMPLNT;
if ("SQIMPLNT".equals(codeString))
return SQIMPLNT;
if ("_Infusion".equals(codeString))
return _INFUSION;
if ("EPI".equals(codeString))
return EPI;
if ("IA".equals(codeString))
return IA;
if ("IC".equals(codeString))
return IC;
if ("ICOR".equals(codeString))
return ICOR;
if ("IOSSC".equals(codeString))
return IOSSC;
if ("IT".equals(codeString))
return IT;
if ("IV".equals(codeString))
return IV;
if ("IVC".equals(codeString))
return IVC;
if ("IVCC".equals(codeString))
return IVCC;
if ("IVCI".equals(codeString))
return IVCI;
if ("PCA".equals(codeString))
return PCA;
if ("IVASCINFUS".equals(codeString))
return IVASCINFUS;
if ("SQINFUS".equals(codeString))
return SQINFUS;
if ("_Inhalation".equals(codeString))
return _INHALATION;
if ("IPINHL".equals(codeString))
return IPINHL;
if ("ORIFINHL".equals(codeString))
return ORIFINHL;
if ("REBREATH".equals(codeString))
return REBREATH;
if ("IPPB".equals(codeString))
return IPPB;
if ("NASINHL".equals(codeString))
return NASINHL;
if ("NASINHLC".equals(codeString))
return NASINHLC;
if ("NEB".equals(codeString))
return NEB;
if ("NASNEB".equals(codeString))
return NASNEB;
if ("ORNEB".equals(codeString))
return ORNEB;
if ("TRACH".equals(codeString))
return TRACH;
if ("VENT".equals(codeString))
return VENT;
if ("VENTMASK".equals(codeString))
return VENTMASK;
if ("_Injection".equals(codeString))
return _INJECTION;
if ("AMNINJ".equals(codeString))
return AMNINJ;
if ("BILINJ".equals(codeString))
return BILINJ;
if ("CHOLINJ".equals(codeString))
return CHOLINJ;
if ("CERVINJ".equals(codeString))
return CERVINJ;
if ("EPIDURINJ".equals(codeString))
return EPIDURINJ;
if ("EPIINJ".equals(codeString))
return EPIINJ;
if ("EPINJSP".equals(codeString))
return EPINJSP;
if ("EXTRAMNINJ".equals(codeString))
return EXTRAMNINJ;
if ("EXTCORPINJ".equals(codeString))
return EXTCORPINJ;
if ("GBINJ".equals(codeString))
return GBINJ;
if ("GINGINJ".equals(codeString))
return GINGINJ;
if ("BLADINJ".equals(codeString))
return BLADINJ;
if ("ENDOSININJ".equals(codeString))
return ENDOSININJ;
if ("HEMOPORT".equals(codeString))
return HEMOPORT;
if ("IABDINJ".equals(codeString))
return IABDINJ;
if ("IAINJ".equals(codeString))
return IAINJ;
if ("IAINJP".equals(codeString))
return IAINJP;
if ("IAINJSP".equals(codeString))
return IAINJSP;
if ("IARTINJ".equals(codeString))
return IARTINJ;
if ("IBURSINJ".equals(codeString))
return IBURSINJ;
if ("ICARDINJ".equals(codeString))
return ICARDINJ;
if ("ICARDINJRP".equals(codeString))
return ICARDINJRP;
if ("ICARDINJSP".equals(codeString))
return ICARDINJSP;
if ("ICARINJP".equals(codeString))
return ICARINJP;
if ("ICARTINJ".equals(codeString))
return ICARTINJ;
if ("ICAUDINJ".equals(codeString))
return ICAUDINJ;
if ("ICAVINJ".equals(codeString))
return ICAVINJ;
if ("ICAVITINJ".equals(codeString))
return ICAVITINJ;
if ("ICEREBINJ".equals(codeString))
return ICEREBINJ;
if ("ICISTERNINJ".equals(codeString))
return ICISTERNINJ;
if ("ICORONINJ".equals(codeString))
return ICORONINJ;
if ("ICORONINJP".equals(codeString))
return ICORONINJP;
if ("ICORPCAVINJ".equals(codeString))
return ICORPCAVINJ;
if ("IDINJ".equals(codeString))
return IDINJ;
if ("IDISCINJ".equals(codeString))
return IDISCINJ;
if ("IDUCTINJ".equals(codeString))
return IDUCTINJ;
if ("IDURINJ".equals(codeString))
return IDURINJ;
if ("IEPIDINJ".equals(codeString))
return IEPIDINJ;
if ("IEPITHINJ".equals(codeString))
return IEPITHINJ;
if ("ILESINJ".equals(codeString))
return ILESINJ;
if ("ILUMINJ".equals(codeString))
return ILUMINJ;
if ("ILYMPJINJ".equals(codeString))
return ILYMPJINJ;
if ("IM".equals(codeString))
return IM;
if ("IMD".equals(codeString))
return IMD;
if ("IMZ".equals(codeString))
return IMZ;
if ("IMEDULINJ".equals(codeString))
return IMEDULINJ;
if ("INTERMENINJ".equals(codeString))
return INTERMENINJ;
if ("INTERSTITINJ".equals(codeString))
return INTERSTITINJ;
if ("IOINJ".equals(codeString))
return IOINJ;
if ("IOSSINJ".equals(codeString))
return IOSSINJ;
if ("IOVARINJ".equals(codeString))
return IOVARINJ;
if ("IPCARDINJ".equals(codeString))
return IPCARDINJ;
if ("IPERINJ".equals(codeString))
return IPERINJ;
if ("IPINJ".equals(codeString))
return IPINJ;
if ("IPLRINJ".equals(codeString))
return IPLRINJ;
if ("IPROSTINJ".equals(codeString))
return IPROSTINJ;
if ("IPUMPINJ".equals(codeString))
return IPUMPINJ;
if ("ISINJ".equals(codeString))
return ISINJ;
if ("ISTERINJ".equals(codeString))
return ISTERINJ;
if ("ISYNINJ".equals(codeString))
return ISYNINJ;
if ("ITENDINJ".equals(codeString))
return ITENDINJ;
if ("ITESTINJ".equals(codeString))
return ITESTINJ;
if ("ITHORINJ".equals(codeString))
return ITHORINJ;
if ("ITINJ".equals(codeString))
return ITINJ;
if ("ITUBINJ".equals(codeString))
return ITUBINJ;
if ("ITUMINJ".equals(codeString))
return ITUMINJ;
if ("ITYMPINJ".equals(codeString))
return ITYMPINJ;
if ("IUINJ".equals(codeString))
return IUINJ;
if ("IUINJC".equals(codeString))
return IUINJC;
if ("IURETINJ".equals(codeString))
return IURETINJ;
if ("IVASCINJ".equals(codeString))
return IVASCINJ;
if ("IVENTINJ".equals(codeString))
return IVENTINJ;
if ("IVESINJ".equals(codeString))
return IVESINJ;
if ("IVINJ".equals(codeString))
return IVINJ;
if ("IVINJBOL".equals(codeString))
return IVINJBOL;
if ("IVPUSH".equals(codeString))
return IVPUSH;
if ("IVRPUSH".equals(codeString))
return IVRPUSH;
if ("IVSPUSH".equals(codeString))
return IVSPUSH;
if ("IVITINJ".equals(codeString))
return IVITINJ;
if ("PAINJ".equals(codeString))
return PAINJ;
if ("PARENTINJ".equals(codeString))
return PARENTINJ;
if ("PDONTINJ".equals(codeString))
return PDONTINJ;
if ("PDPINJ".equals(codeString))
return PDPINJ;
if ("PDURINJ".equals(codeString))
return PDURINJ;
if ("PNINJ".equals(codeString))
return PNINJ;
if ("PNSINJ".equals(codeString))
return PNSINJ;
if ("RBINJ".equals(codeString))
return RBINJ;
if ("SCINJ".equals(codeString))
return SCINJ;
if ("SLESINJ".equals(codeString))
return SLESINJ;
if ("SOFTISINJ".equals(codeString))
return SOFTISINJ;
if ("SQ".equals(codeString))
return SQ;
if ("SUBARACHINJ".equals(codeString))
return SUBARACHINJ;
if ("SUBMUCINJ".equals(codeString))
return SUBMUCINJ;
if ("TRPLACINJ".equals(codeString))
return TRPLACINJ;
if ("TRTRACHINJ".equals(codeString))
return TRTRACHINJ;
if ("URETHINJ".equals(codeString))
return URETHINJ;
if ("URETINJ".equals(codeString))
return URETINJ;
if ("_Insertion".equals(codeString))
return _INSERTION;
if ("CERVINS".equals(codeString))
return CERVINS;
if ("IOSURGINS".equals(codeString))
return IOSURGINS;
if ("IU".equals(codeString))
return IU;
if ("LPINS".equals(codeString))
return LPINS;
if ("PR".equals(codeString))
return PR;
if ("SQSURGINS".equals(codeString))
return SQSURGINS;
if ("URETHINS".equals(codeString))
return URETHINS;
if ("VAGINSI".equals(codeString))
return VAGINSI;
if ("_Instillation".equals(codeString))
return _INSTILLATION;
if ("CECINSTL".equals(codeString))
return CECINSTL;
if ("EFT".equals(codeString))
return EFT;
if ("ENTINSTL".equals(codeString))
return ENTINSTL;
if ("GT".equals(codeString))
return GT;
if ("NGT".equals(codeString))
return NGT;
if ("OGT".equals(codeString))
return OGT;
if ("BLADINSTL".equals(codeString))
return BLADINSTL;
if ("CAPDINSTL".equals(codeString))
return CAPDINSTL;
if ("CTINSTL".equals(codeString))
return CTINSTL;
if ("ETINSTL".equals(codeString))
return ETINSTL;
if ("GJT".equals(codeString))
return GJT;
if ("IBRONCHINSTIL".equals(codeString))
return IBRONCHINSTIL;
if ("IDUODINSTIL".equals(codeString))
return IDUODINSTIL;
if ("IESOPHINSTIL".equals(codeString))
return IESOPHINSTIL;
if ("IGASTINSTIL".equals(codeString))
return IGASTINSTIL;
if ("IILEALINJ".equals(codeString))
return IILEALINJ;
if ("IOINSTL".equals(codeString))
return IOINSTL;
if ("ISININSTIL".equals(codeString))
return ISININSTIL;
if ("ITRACHINSTIL".equals(codeString))
return ITRACHINSTIL;
if ("IUINSTL".equals(codeString))
return IUINSTL;
if ("JJTINSTL".equals(codeString))
return JJTINSTL;
if ("LARYNGINSTIL".equals(codeString))
return LARYNGINSTIL;
if ("NASALINSTIL".equals(codeString))
return NASALINSTIL;
if ("NASOGASINSTIL".equals(codeString))
return NASOGASINSTIL;
if ("NTT".equals(codeString))
return NTT;
if ("OJJ".equals(codeString))
return OJJ;
if ("OT".equals(codeString))
return OT;
if ("PDPINSTL".equals(codeString))
return PDPINSTL;
if ("PNSINSTL".equals(codeString))
return PNSINSTL;
if ("RECINSTL".equals(codeString))
return RECINSTL;
if ("RECTINSTL".equals(codeString))
return RECTINSTL;
if ("SININSTIL".equals(codeString))
return SININSTIL;
if ("SOFTISINSTIL".equals(codeString))
return SOFTISINSTIL;
if ("TRACHINSTL".equals(codeString))
return TRACHINSTL;
if ("TRTYMPINSTIL".equals(codeString))
return TRTYMPINSTIL;
if ("URETHINSTL".equals(codeString))
return URETHINSTL;
if ("_IontophoresisRoute".equals(codeString))
return _IONTOPHORESISROUTE;
if ("IONTO".equals(codeString))
return IONTO;
if ("_Irrigation".equals(codeString))
return _IRRIGATION;
if ("GUIRR".equals(codeString))
return GUIRR;
if ("IGASTIRR".equals(codeString))
return IGASTIRR;
if ("ILESIRR".equals(codeString))
return ILESIRR;
if ("IOIRR".equals(codeString))
return IOIRR;
if ("BLADIRR".equals(codeString))
return BLADIRR;
if ("BLADIRRC".equals(codeString))
return BLADIRRC;
if ("BLADIRRT".equals(codeString))
return BLADIRRT;
if ("RECIRR".equals(codeString))
return RECIRR;
if ("_LavageRoute".equals(codeString))
return _LAVAGEROUTE;
if ("IGASTLAV".equals(codeString))
return IGASTLAV;
if ("_MucosalAbsorptionRoute".equals(codeString))
return _MUCOSALABSORPTIONROUTE;
if ("IDOUDMAB".equals(codeString))
return IDOUDMAB;
if ("ITRACHMAB".equals(codeString))
return ITRACHMAB;
if ("SMUCMAB".equals(codeString))
return SMUCMAB;
if ("_Nebulization".equals(codeString))
return _NEBULIZATION;
if ("ETNEB".equals(codeString))
return ETNEB;
if ("_Rinse".equals(codeString))
return _RINSE;
if ("DENRINSE".equals(codeString))
return DENRINSE;
if ("ORRINSE".equals(codeString))
return ORRINSE;
if ("_SuppositoryRoute".equals(codeString))
return _SUPPOSITORYROUTE;
if ("URETHSUP".equals(codeString))
return URETHSUP;
if ("_Swish".equals(codeString))
return _SWISH;
if ("SWISHSPIT".equals(codeString))
return SWISHSPIT;
if ("SWISHSWAL".equals(codeString))
return SWISHSWAL;
if ("_TopicalAbsorptionRoute".equals(codeString))
return _TOPICALABSORPTIONROUTE;
if ("TTYMPTABSORP".equals(codeString))
return TTYMPTABSORP;
if ("_TopicalApplication".equals(codeString))
return _TOPICALAPPLICATION;
if ("DRESS".equals(codeString))
return DRESS;
if ("SWAB".equals(codeString))
return SWAB;
if ("TOPICAL".equals(codeString))
return TOPICAL;
if ("BUC".equals(codeString))
return BUC;
if ("CERV".equals(codeString))
return CERV;
if ("DEN".equals(codeString))
return DEN;
if ("GIN".equals(codeString))
return GIN;
if ("HAIR".equals(codeString))
return HAIR;
if ("ICORNTA".equals(codeString))
return ICORNTA;
if ("ICORONTA".equals(codeString))
return ICORONTA;
if ("IESOPHTA".equals(codeString))
return IESOPHTA;
if ("IILEALTA".equals(codeString))
return IILEALTA;
if ("ILTOP".equals(codeString))
return ILTOP;
if ("ILUMTA".equals(codeString))
return ILUMTA;
if ("IOTOP".equals(codeString))
return IOTOP;
if ("LARYNGTA".equals(codeString))
return LARYNGTA;
if ("MUC".equals(codeString))
return MUC;
if ("NAIL".equals(codeString))
return NAIL;
if ("NASAL".equals(codeString))
return NASAL;
if ("OPTHALTA".equals(codeString))
return OPTHALTA;
if ("ORALTA".equals(codeString))
return ORALTA;
if ("ORMUC".equals(codeString))
return ORMUC;
if ("OROPHARTA".equals(codeString))
return OROPHARTA;
if ("PERIANAL".equals(codeString))
return PERIANAL;
if ("PERINEAL".equals(codeString))
return PERINEAL;
if ("PDONTTA".equals(codeString))
return PDONTTA;
if ("RECTAL".equals(codeString))
return RECTAL;
if ("SCALP".equals(codeString))
return SCALP;
if ("OCDRESTA".equals(codeString))
return OCDRESTA;
if ("SKIN".equals(codeString))
return SKIN;
if ("SUBCONJTA".equals(codeString))
return SUBCONJTA;
if ("TMUCTA".equals(codeString))
return TMUCTA;
if ("VAGINS".equals(codeString))
return VAGINS;
if ("INSUF".equals(codeString))
return INSUF;
if ("TRNSDERM".equals(codeString))
return TRNSDERM;
if ("_RouteBySite".equals(codeString))
return _ROUTEBYSITE;
if ("_AmnioticFluidSacRoute".equals(codeString))
return _AMNIOTICFLUIDSACROUTE;
if ("_BiliaryRoute".equals(codeString))
return _BILIARYROUTE;
if ("_BodySurfaceRoute".equals(codeString))
return _BODYSURFACEROUTE;
if ("_BuccalMucosaRoute".equals(codeString))
return _BUCCALMUCOSAROUTE;
if ("_CecostomyRoute".equals(codeString))
return _CECOSTOMYROUTE;
if ("_CervicalRoute".equals(codeString))
return _CERVICALROUTE;
if ("_EndocervicalRoute".equals(codeString))
return _ENDOCERVICALROUTE;
if ("_EnteralRoute".equals(codeString))
return _ENTERALROUTE;
if ("_EpiduralRoute".equals(codeString))
return _EPIDURALROUTE;
if ("_ExtraAmnioticRoute".equals(codeString))
return _EXTRAAMNIOTICROUTE;
if ("_ExtracorporealCirculationRoute".equals(codeString))
return _EXTRACORPOREALCIRCULATIONROUTE;
if ("_GastricRoute".equals(codeString))
return _GASTRICROUTE;
if ("_GenitourinaryRoute".equals(codeString))
return _GENITOURINARYROUTE;
if ("_GingivalRoute".equals(codeString))
return _GINGIVALROUTE;
if ("_HairRoute".equals(codeString))
return _HAIRROUTE;
if ("_InterameningealRoute".equals(codeString))
return _INTERAMENINGEALROUTE;
if ("_InterstitialRoute".equals(codeString))
return _INTERSTITIALROUTE;
if ("_IntraabdominalRoute".equals(codeString))
return _INTRAABDOMINALROUTE;
if ("_IntraarterialRoute".equals(codeString))
return _INTRAARTERIALROUTE;
if ("_IntraarticularRoute".equals(codeString))
return _INTRAARTICULARROUTE;
if ("_IntrabronchialRoute".equals(codeString))
return _INTRABRONCHIALROUTE;
if ("_IntrabursalRoute".equals(codeString))
return _INTRABURSALROUTE;
if ("_IntracardiacRoute".equals(codeString))
return _INTRACARDIACROUTE;
if ("_IntracartilaginousRoute".equals(codeString))
return _INTRACARTILAGINOUSROUTE;
if ("_IntracaudalRoute".equals(codeString))
return _INTRACAUDALROUTE;
if ("_IntracavernosalRoute".equals(codeString))
return _INTRACAVERNOSALROUTE;
if ("_IntracavitaryRoute".equals(codeString))
return _INTRACAVITARYROUTE;
if ("_IntracerebralRoute".equals(codeString))
return _INTRACEREBRALROUTE;
if ("_IntracervicalRoute".equals(codeString))
return _INTRACERVICALROUTE;
if ("_IntracisternalRoute".equals(codeString))
return _INTRACISTERNALROUTE;
if ("_IntracornealRoute".equals(codeString))
return _INTRACORNEALROUTE;
if ("_IntracoronalRoute".equals(codeString))
return _INTRACORONALROUTE;
if ("_IntracoronaryRoute".equals(codeString))
return _INTRACORONARYROUTE;
if ("_IntracorpusCavernosumRoute".equals(codeString))
return _INTRACORPUSCAVERNOSUMROUTE;
if ("_IntradermalRoute".equals(codeString))
return _INTRADERMALROUTE;
if ("_IntradiscalRoute".equals(codeString))
return _INTRADISCALROUTE;
if ("_IntraductalRoute".equals(codeString))
return _INTRADUCTALROUTE;
if ("_IntraduodenalRoute".equals(codeString))
return _INTRADUODENALROUTE;
if ("_IntraduralRoute".equals(codeString))
return _INTRADURALROUTE;
if ("_IntraepidermalRoute".equals(codeString))
return _INTRAEPIDERMALROUTE;
if ("_IntraepithelialRoute".equals(codeString))
return _INTRAEPITHELIALROUTE;
if ("_IntraesophagealRoute".equals(codeString))
return _INTRAESOPHAGEALROUTE;
if ("_IntragastricRoute".equals(codeString))
return _INTRAGASTRICROUTE;
if ("_IntrailealRoute".equals(codeString))
return _INTRAILEALROUTE;
if ("_IntralesionalRoute".equals(codeString))
return _INTRALESIONALROUTE;
if ("_IntraluminalRoute".equals(codeString))
return _INTRALUMINALROUTE;
if ("_IntralymphaticRoute".equals(codeString))
return _INTRALYMPHATICROUTE;
if ("_IntramedullaryRoute".equals(codeString))
return _INTRAMEDULLARYROUTE;
if ("_IntramuscularRoute".equals(codeString))
return _INTRAMUSCULARROUTE;
if ("_IntraocularRoute".equals(codeString))
return _INTRAOCULARROUTE;
if ("_IntraosseousRoute".equals(codeString))
return _INTRAOSSEOUSROUTE;
if ("_IntraovarianRoute".equals(codeString))
return _INTRAOVARIANROUTE;
if ("_IntrapericardialRoute".equals(codeString))
return _INTRAPERICARDIALROUTE;
if ("_IntraperitonealRoute".equals(codeString))
return _INTRAPERITONEALROUTE;
if ("_IntrapleuralRoute".equals(codeString))
return _INTRAPLEURALROUTE;
if ("_IntraprostaticRoute".equals(codeString))
return _INTRAPROSTATICROUTE;
if ("_IntrapulmonaryRoute".equals(codeString))
return _INTRAPULMONARYROUTE;
if ("_IntrasinalRoute".equals(codeString))
return _INTRASINALROUTE;
if ("_IntraspinalRoute".equals(codeString))
return _INTRASPINALROUTE;
if ("_IntrasternalRoute".equals(codeString))
return _INTRASTERNALROUTE;
if ("_IntrasynovialRoute".equals(codeString))
return _INTRASYNOVIALROUTE;
if ("_IntratendinousRoute".equals(codeString))
return _INTRATENDINOUSROUTE;
if ("_IntratesticularRoute".equals(codeString))
return _INTRATESTICULARROUTE;
if ("_IntrathecalRoute".equals(codeString))
return _INTRATHECALROUTE;
if ("_IntrathoracicRoute".equals(codeString))
return _INTRATHORACICROUTE;
if ("_IntratrachealRoute".equals(codeString))
return _INTRATRACHEALROUTE;
if ("_IntratubularRoute".equals(codeString))
return _INTRATUBULARROUTE;
if ("_IntratumorRoute".equals(codeString))
return _INTRATUMORROUTE;
if ("_IntratympanicRoute".equals(codeString))
return _INTRATYMPANICROUTE;
if ("_IntrauterineRoute".equals(codeString))
return _INTRAUTERINEROUTE;
if ("_IntravascularRoute".equals(codeString))
return _INTRAVASCULARROUTE;
if ("_IntravenousRoute".equals(codeString))
return _INTRAVENOUSROUTE;
if ("_IntraventricularRoute".equals(codeString))
return _INTRAVENTRICULARROUTE;
if ("_IntravesicleRoute".equals(codeString))
return _INTRAVESICLEROUTE;
if ("_IntravitrealRoute".equals(codeString))
return _INTRAVITREALROUTE;
if ("_JejunumRoute".equals(codeString))
return _JEJUNUMROUTE;
if ("_LacrimalPunctaRoute".equals(codeString))
return _LACRIMALPUNCTAROUTE;
if ("_LaryngealRoute".equals(codeString))
return _LARYNGEALROUTE;
if ("_LingualRoute".equals(codeString))
return _LINGUALROUTE;
if ("_MucousMembraneRoute".equals(codeString))
return _MUCOUSMEMBRANEROUTE;
if ("_NailRoute".equals(codeString))
return _NAILROUTE;
if ("_NasalRoute".equals(codeString))
return _NASALROUTE;
if ("_OphthalmicRoute".equals(codeString))
return _OPHTHALMICROUTE;
if ("_OralRoute".equals(codeString))
return _ORALROUTE;
if ("_OromucosalRoute".equals(codeString))
return _OROMUCOSALROUTE;
if ("_OropharyngealRoute".equals(codeString))
return _OROPHARYNGEALROUTE;
if ("_OticRoute".equals(codeString))
return _OTICROUTE;
if ("_ParanasalSinusesRoute".equals(codeString))
return _PARANASALSINUSESROUTE;
if ("_ParenteralRoute".equals(codeString))
return _PARENTERALROUTE;
if ("_PerianalRoute".equals(codeString))
return _PERIANALROUTE;
if ("_PeriarticularRoute".equals(codeString))
return _PERIARTICULARROUTE;
if ("_PeriduralRoute".equals(codeString))
return _PERIDURALROUTE;
if ("_PerinealRoute".equals(codeString))
return _PERINEALROUTE;
if ("_PerineuralRoute".equals(codeString))
return _PERINEURALROUTE;
if ("_PeriodontalRoute".equals(codeString))
return _PERIODONTALROUTE;
if ("_PulmonaryRoute".equals(codeString))
return _PULMONARYROUTE;
if ("_RectalRoute".equals(codeString))
return _RECTALROUTE;
if ("_RespiratoryTractRoute".equals(codeString))
return _RESPIRATORYTRACTROUTE;
if ("_RetrobulbarRoute".equals(codeString))
return _RETROBULBARROUTE;
if ("_ScalpRoute".equals(codeString))
return _SCALPROUTE;
if ("_SinusUnspecifiedRoute".equals(codeString))
return _SINUSUNSPECIFIEDROUTE;
if ("_SkinRoute".equals(codeString))
return _SKINROUTE;
if ("_SoftTissueRoute".equals(codeString))
return _SOFTTISSUEROUTE;
if ("_SubarachnoidRoute".equals(codeString))
return _SUBARACHNOIDROUTE;
if ("_SubconjunctivalRoute".equals(codeString))
return _SUBCONJUNCTIVALROUTE;
if ("_SubcutaneousRoute".equals(codeString))
return _SUBCUTANEOUSROUTE;
if ("_SublesionalRoute".equals(codeString))
return _SUBLESIONALROUTE;
if ("_SublingualRoute".equals(codeString))
return _SUBLINGUALROUTE;
if ("_SubmucosalRoute".equals(codeString))
return _SUBMUCOSALROUTE;
if ("_TracheostomyRoute".equals(codeString))
return _TRACHEOSTOMYROUTE;
if ("_TransmucosalRoute".equals(codeString))
return _TRANSMUCOSALROUTE;
if ("_TransplacentalRoute".equals(codeString))
return _TRANSPLACENTALROUTE;
if ("_TranstrachealRoute".equals(codeString))
return _TRANSTRACHEALROUTE;
if ("_TranstympanicRoute".equals(codeString))
return _TRANSTYMPANICROUTE;
if ("_UreteralRoute".equals(codeString))
return _URETERALROUTE;
if ("_UrethralRoute".equals(codeString))
return _URETHRALROUTE;
if ("_UrinaryBladderRoute".equals(codeString))
return _URINARYBLADDERROUTE;
if ("_UrinaryTractRoute".equals(codeString))
return _URINARYTRACTROUTE;
if ("_VaginalRoute".equals(codeString))
return _VAGINALROUTE;
if ("_VitreousHumourRoute".equals(codeString))
return _VITREOUSHUMOURROUTE;
throw new FHIRException("Unknown V3RouteOfAdministration code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case _ROUTEBYMETHOD: return "_RouteByMethod";
case SOAK: return "SOAK";
case SHAMPOO: return "SHAMPOO";
case TRNSLING: return "TRNSLING";
case PO: return "PO";
case GARGLE: return "GARGLE";
case SUCK: return "SUCK";
case _CHEW: return "_Chew";
case CHEW: return "CHEW";
case _DIFFUSION: return "_Diffusion";
case EXTCORPDIF: return "EXTCORPDIF";
case HEMODIFF: return "HEMODIFF";
case TRNSDERMD: return "TRNSDERMD";
case _DISSOLVE: return "_Dissolve";
case DISSOLVE: return "DISSOLVE";
case SL: return "SL";
case _DOUCHE: return "_Douche";
case DOUCHE: return "DOUCHE";
case _ELECTROOSMOSISROUTE: return "_ElectroOsmosisRoute";
case ELECTOSMOS: return "ELECTOSMOS";
case _ENEMA: return "_Enema";
case ENEMA: return "ENEMA";
case RETENEMA: return "RETENEMA";
case _FLUSH: return "_Flush";
case IVFLUSH: return "IVFLUSH";
case _IMPLANTATION: return "_Implantation";
case IDIMPLNT: return "IDIMPLNT";
case IVITIMPLNT: return "IVITIMPLNT";
case SQIMPLNT: return "SQIMPLNT";
case _INFUSION: return "_Infusion";
case EPI: return "EPI";
case IA: return "IA";
case IC: return "IC";
case ICOR: return "ICOR";
case IOSSC: return "IOSSC";
case IT: return "IT";
case IV: return "IV";
case IVC: return "IVC";
case IVCC: return "IVCC";
case IVCI: return "IVCI";
case PCA: return "PCA";
case IVASCINFUS: return "IVASCINFUS";
case SQINFUS: return "SQINFUS";
case _INHALATION: return "_Inhalation";
case IPINHL: return "IPINHL";
case ORIFINHL: return "ORIFINHL";
case REBREATH: return "REBREATH";
case IPPB: return "IPPB";
case NASINHL: return "NASINHL";
case NASINHLC: return "NASINHLC";
case NEB: return "NEB";
case NASNEB: return "NASNEB";
case ORNEB: return "ORNEB";
case TRACH: return "TRACH";
case VENT: return "VENT";
case VENTMASK: return "VENTMASK";
case _INJECTION: return "_Injection";
case AMNINJ: return "AMNINJ";
case BILINJ: return "BILINJ";
case CHOLINJ: return "CHOLINJ";
case CERVINJ: return "CERVINJ";
case EPIDURINJ: return "EPIDURINJ";
case EPIINJ: return "EPIINJ";
case EPINJSP: return "EPINJSP";
case EXTRAMNINJ: return "EXTRAMNINJ";
case EXTCORPINJ: return "EXTCORPINJ";
case GBINJ: return "GBINJ";
case GINGINJ: return "GINGINJ";
case BLADINJ: return "BLADINJ";
case ENDOSININJ: return "ENDOSININJ";
case HEMOPORT: return "HEMOPORT";
case IABDINJ: return "IABDINJ";
case IAINJ: return "IAINJ";
case IAINJP: return "IAINJP";
case IAINJSP: return "IAINJSP";
case IARTINJ: return "IARTINJ";
case IBURSINJ: return "IBURSINJ";
case ICARDINJ: return "ICARDINJ";
case ICARDINJRP: return "ICARDINJRP";
case ICARDINJSP: return "ICARDINJSP";
case ICARINJP: return "ICARINJP";
case ICARTINJ: return "ICARTINJ";
case ICAUDINJ: return "ICAUDINJ";
case ICAVINJ: return "ICAVINJ";
case ICAVITINJ: return "ICAVITINJ";
case ICEREBINJ: return "ICEREBINJ";
case ICISTERNINJ: return "ICISTERNINJ";
case ICORONINJ: return "ICORONINJ";
case ICORONINJP: return "ICORONINJP";
case ICORPCAVINJ: return "ICORPCAVINJ";
case IDINJ: return "IDINJ";
case IDISCINJ: return "IDISCINJ";
case IDUCTINJ: return "IDUCTINJ";
case IDURINJ: return "IDURINJ";
case IEPIDINJ: return "IEPIDINJ";
case IEPITHINJ: return "IEPITHINJ";
case ILESINJ: return "ILESINJ";
case ILUMINJ: return "ILUMINJ";
case ILYMPJINJ: return "ILYMPJINJ";
case IM: return "IM";
case IMD: return "IMD";
case IMZ: return "IMZ";
case IMEDULINJ: return "IMEDULINJ";
case INTERMENINJ: return "INTERMENINJ";
case INTERSTITINJ: return "INTERSTITINJ";
case IOINJ: return "IOINJ";
case IOSSINJ: return "IOSSINJ";
case IOVARINJ: return "IOVARINJ";
case IPCARDINJ: return "IPCARDINJ";
case IPERINJ: return "IPERINJ";
case IPINJ: return "IPINJ";
case IPLRINJ: return "IPLRINJ";
case IPROSTINJ: return "IPROSTINJ";
case IPUMPINJ: return "IPUMPINJ";
case ISINJ: return "ISINJ";
case ISTERINJ: return "ISTERINJ";
case ISYNINJ: return "ISYNINJ";
case ITENDINJ: return "ITENDINJ";
case ITESTINJ: return "ITESTINJ";
case ITHORINJ: return "ITHORINJ";
case ITINJ: return "ITINJ";
case ITUBINJ: return "ITUBINJ";
case ITUMINJ: return "ITUMINJ";
case ITYMPINJ: return "ITYMPINJ";
case IUINJ: return "IUINJ";
case IUINJC: return "IUINJC";
case IURETINJ: return "IURETINJ";
case IVASCINJ: return "IVASCINJ";
case IVENTINJ: return "IVENTINJ";
case IVESINJ: return "IVESINJ";
case IVINJ: return "IVINJ";
case IVINJBOL: return "IVINJBOL";
case IVPUSH: return "IVPUSH";
case IVRPUSH: return "IVRPUSH";
case IVSPUSH: return "IVSPUSH";
case IVITINJ: return "IVITINJ";
case PAINJ: return "PAINJ";
case PARENTINJ: return "PARENTINJ";
case PDONTINJ: return "PDONTINJ";
case PDPINJ: return "PDPINJ";
case PDURINJ: return "PDURINJ";
case PNINJ: return "PNINJ";
case PNSINJ: return "PNSINJ";
case RBINJ: return "RBINJ";
case SCINJ: return "SCINJ";
case SLESINJ: return "SLESINJ";
case SOFTISINJ: return "SOFTISINJ";
case SQ: return "SQ";
case SUBARACHINJ: return "SUBARACHINJ";
case SUBMUCINJ: return "SUBMUCINJ";
case TRPLACINJ: return "TRPLACINJ";
case TRTRACHINJ: return "TRTRACHINJ";
case URETHINJ: return "URETHINJ";
case URETINJ: return "URETINJ";
case _INSERTION: return "_Insertion";
case CERVINS: return "CERVINS";
case IOSURGINS: return "IOSURGINS";
case IU: return "IU";
case LPINS: return "LPINS";
case PR: return "PR";
case SQSURGINS: return "SQSURGINS";
case URETHINS: return "URETHINS";
case VAGINSI: return "VAGINSI";
case _INSTILLATION: return "_Instillation";
case CECINSTL: return "CECINSTL";
case EFT: return "EFT";
case ENTINSTL: return "ENTINSTL";
case GT: return "GT";
case NGT: return "NGT";
case OGT: return "OGT";
case BLADINSTL: return "BLADINSTL";
case CAPDINSTL: return "CAPDINSTL";
case CTINSTL: return "CTINSTL";
case ETINSTL: return "ETINSTL";
case GJT: return "GJT";
case IBRONCHINSTIL: return "IBRONCHINSTIL";
case IDUODINSTIL: return "IDUODINSTIL";
case IESOPHINSTIL: return "IESOPHINSTIL";
case IGASTINSTIL: return "IGASTINSTIL";
case IILEALINJ: return "IILEALINJ";
case IOINSTL: return "IOINSTL";
case ISININSTIL: return "ISININSTIL";
case ITRACHINSTIL: return "ITRACHINSTIL";
case IUINSTL: return "IUINSTL";
case JJTINSTL: return "JJTINSTL";
case LARYNGINSTIL: return "LARYNGINSTIL";
case NASALINSTIL: return "NASALINSTIL";
case NASOGASINSTIL: return "NASOGASINSTIL";
case NTT: return "NTT";
case OJJ: return "OJJ";
case OT: return "OT";
case PDPINSTL: return "PDPINSTL";
case PNSINSTL: return "PNSINSTL";
case RECINSTL: return "RECINSTL";
case RECTINSTL: return "RECTINSTL";
case SININSTIL: return "SININSTIL";
case SOFTISINSTIL: return "SOFTISINSTIL";
case TRACHINSTL: return "TRACHINSTL";
case TRTYMPINSTIL: return "TRTYMPINSTIL";
case URETHINSTL: return "URETHINSTL";
case _IONTOPHORESISROUTE: return "_IontophoresisRoute";
case IONTO: return "IONTO";
case _IRRIGATION: return "_Irrigation";
case GUIRR: return "GUIRR";
case IGASTIRR: return "IGASTIRR";
case ILESIRR: return "ILESIRR";
case IOIRR: return "IOIRR";
case BLADIRR: return "BLADIRR";
case BLADIRRC: return "BLADIRRC";
case BLADIRRT: return "BLADIRRT";
case RECIRR: return "RECIRR";
case _LAVAGEROUTE: return "_LavageRoute";
case IGASTLAV: return "IGASTLAV";
case _MUCOSALABSORPTIONROUTE: return "_MucosalAbsorptionRoute";
case IDOUDMAB: return "IDOUDMAB";
case ITRACHMAB: return "ITRACHMAB";
case SMUCMAB: return "SMUCMAB";
case _NEBULIZATION: return "_Nebulization";
case ETNEB: return "ETNEB";
case _RINSE: return "_Rinse";
case DENRINSE: return "DENRINSE";
case ORRINSE: return "ORRINSE";
case _SUPPOSITORYROUTE: return "_SuppositoryRoute";
case URETHSUP: return "URETHSUP";
case _SWISH: return "_Swish";
case SWISHSPIT: return "SWISHSPIT";
case SWISHSWAL: return "SWISHSWAL";
case _TOPICALABSORPTIONROUTE: return "_TopicalAbsorptionRoute";
case TTYMPTABSORP: return "TTYMPTABSORP";
case _TOPICALAPPLICATION: return "_TopicalApplication";
case DRESS: return "DRESS";
case SWAB: return "SWAB";
case TOPICAL: return "TOPICAL";
case BUC: return "BUC";
case CERV: return "CERV";
case DEN: return "DEN";
case GIN: return "GIN";
case HAIR: return "HAIR";
case ICORNTA: return "ICORNTA";
case ICORONTA: return "ICORONTA";
case IESOPHTA: return "IESOPHTA";
case IILEALTA: return "IILEALTA";
case ILTOP: return "ILTOP";
case ILUMTA: return "ILUMTA";
case IOTOP: return "IOTOP";
case LARYNGTA: return "LARYNGTA";
case MUC: return "MUC";
case NAIL: return "NAIL";
case NASAL: return "NASAL";
case OPTHALTA: return "OPTHALTA";
case ORALTA: return "ORALTA";
case ORMUC: return "ORMUC";
case OROPHARTA: return "OROPHARTA";
case PERIANAL: return "PERIANAL";
case PERINEAL: return "PERINEAL";
case PDONTTA: return "PDONTTA";
case RECTAL: return "RECTAL";
case SCALP: return "SCALP";
case OCDRESTA: return "OCDRESTA";
case SKIN: return "SKIN";
case SUBCONJTA: return "SUBCONJTA";
case TMUCTA: return "TMUCTA";
case VAGINS: return "VAGINS";
case INSUF: return "INSUF";
case TRNSDERM: return "TRNSDERM";
case _ROUTEBYSITE: return "_RouteBySite";
case _AMNIOTICFLUIDSACROUTE: return "_AmnioticFluidSacRoute";
case _BILIARYROUTE: return "_BiliaryRoute";
case _BODYSURFACEROUTE: return "_BodySurfaceRoute";
case _BUCCALMUCOSAROUTE: return "_BuccalMucosaRoute";
case _CECOSTOMYROUTE: return "_CecostomyRoute";
case _CERVICALROUTE: return "_CervicalRoute";
case _ENDOCERVICALROUTE: return "_EndocervicalRoute";
case _ENTERALROUTE: return "_EnteralRoute";
case _EPIDURALROUTE: return "_EpiduralRoute";
case _EXTRAAMNIOTICROUTE: return "_ExtraAmnioticRoute";
case _EXTRACORPOREALCIRCULATIONROUTE: return "_ExtracorporealCirculationRoute";
case _GASTRICROUTE: return "_GastricRoute";
case _GENITOURINARYROUTE: return "_GenitourinaryRoute";
case _GINGIVALROUTE: return "_GingivalRoute";
case _HAIRROUTE: return "_HairRoute";
case _INTERAMENINGEALROUTE: return "_InterameningealRoute";
case _INTERSTITIALROUTE: return "_InterstitialRoute";
case _INTRAABDOMINALROUTE: return "_IntraabdominalRoute";
case _INTRAARTERIALROUTE: return "_IntraarterialRoute";
case _INTRAARTICULARROUTE: return "_IntraarticularRoute";
case _INTRABRONCHIALROUTE: return "_IntrabronchialRoute";
case _INTRABURSALROUTE: return "_IntrabursalRoute";
case _INTRACARDIACROUTE: return "_IntracardiacRoute";
case _INTRACARTILAGINOUSROUTE: return "_IntracartilaginousRoute";
case _INTRACAUDALROUTE: return "_IntracaudalRoute";
case _INTRACAVERNOSALROUTE: return "_IntracavernosalRoute";
case _INTRACAVITARYROUTE: return "_IntracavitaryRoute";
case _INTRACEREBRALROUTE: return "_IntracerebralRoute";
case _INTRACERVICALROUTE: return "_IntracervicalRoute";
case _INTRACISTERNALROUTE: return "_IntracisternalRoute";
case _INTRACORNEALROUTE: return "_IntracornealRoute";
case _INTRACORONALROUTE: return "_IntracoronalRoute";
case _INTRACORONARYROUTE: return "_IntracoronaryRoute";
case _INTRACORPUSCAVERNOSUMROUTE: return "_IntracorpusCavernosumRoute";
case _INTRADERMALROUTE: return "_IntradermalRoute";
case _INTRADISCALROUTE: return "_IntradiscalRoute";
case _INTRADUCTALROUTE: return "_IntraductalRoute";
case _INTRADUODENALROUTE: return "_IntraduodenalRoute";
case _INTRADURALROUTE: return "_IntraduralRoute";
case _INTRAEPIDERMALROUTE: return "_IntraepidermalRoute";
case _INTRAEPITHELIALROUTE: return "_IntraepithelialRoute";
case _INTRAESOPHAGEALROUTE: return "_IntraesophagealRoute";
case _INTRAGASTRICROUTE: return "_IntragastricRoute";
case _INTRAILEALROUTE: return "_IntrailealRoute";
case _INTRALESIONALROUTE: return "_IntralesionalRoute";
case _INTRALUMINALROUTE: return "_IntraluminalRoute";
case _INTRALYMPHATICROUTE: return "_IntralymphaticRoute";
case _INTRAMEDULLARYROUTE: return "_IntramedullaryRoute";
case _INTRAMUSCULARROUTE: return "_IntramuscularRoute";
case _INTRAOCULARROUTE: return "_IntraocularRoute";
case _INTRAOSSEOUSROUTE: return "_IntraosseousRoute";
case _INTRAOVARIANROUTE: return "_IntraovarianRoute";
case _INTRAPERICARDIALROUTE: return "_IntrapericardialRoute";
case _INTRAPERITONEALROUTE: return "_IntraperitonealRoute";
case _INTRAPLEURALROUTE: return "_IntrapleuralRoute";
case _INTRAPROSTATICROUTE: return "_IntraprostaticRoute";
case _INTRAPULMONARYROUTE: return "_IntrapulmonaryRoute";
case _INTRASINALROUTE: return "_IntrasinalRoute";
case _INTRASPINALROUTE: return "_IntraspinalRoute";
case _INTRASTERNALROUTE: return "_IntrasternalRoute";
case _INTRASYNOVIALROUTE: return "_IntrasynovialRoute";
case _INTRATENDINOUSROUTE: return "_IntratendinousRoute";
case _INTRATESTICULARROUTE: return "_IntratesticularRoute";
case _INTRATHECALROUTE: return "_IntrathecalRoute";
case _INTRATHORACICROUTE: return "_IntrathoracicRoute";
case _INTRATRACHEALROUTE: return "_IntratrachealRoute";
case _INTRATUBULARROUTE: return "_IntratubularRoute";
case _INTRATUMORROUTE: return "_IntratumorRoute";
case _INTRATYMPANICROUTE: return "_IntratympanicRoute";
case _INTRAUTERINEROUTE: return "_IntrauterineRoute";
case _INTRAVASCULARROUTE: return "_IntravascularRoute";
case _INTRAVENOUSROUTE: return "_IntravenousRoute";
case _INTRAVENTRICULARROUTE: return "_IntraventricularRoute";
case _INTRAVESICLEROUTE: return "_IntravesicleRoute";
case _INTRAVITREALROUTE: return "_IntravitrealRoute";
case _JEJUNUMROUTE: return "_JejunumRoute";
case _LACRIMALPUNCTAROUTE: return "_LacrimalPunctaRoute";
case _LARYNGEALROUTE: return "_LaryngealRoute";
case _LINGUALROUTE: return "_LingualRoute";
case _MUCOUSMEMBRANEROUTE: return "_MucousMembraneRoute";
case _NAILROUTE: return "_NailRoute";
case _NASALROUTE: return "_NasalRoute";
case _OPHTHALMICROUTE: return "_OphthalmicRoute";
case _ORALROUTE: return "_OralRoute";
case _OROMUCOSALROUTE: return "_OromucosalRoute";
case _OROPHARYNGEALROUTE: return "_OropharyngealRoute";
case _OTICROUTE: return "_OticRoute";
case _PARANASALSINUSESROUTE: return "_ParanasalSinusesRoute";
case _PARENTERALROUTE: return "_ParenteralRoute";
case _PERIANALROUTE: return "_PerianalRoute";
case _PERIARTICULARROUTE: return "_PeriarticularRoute";
case _PERIDURALROUTE: return "_PeriduralRoute";
case _PERINEALROUTE: return "_PerinealRoute";
case _PERINEURALROUTE: return "_PerineuralRoute";
case _PERIODONTALROUTE: return "_PeriodontalRoute";
case _PULMONARYROUTE: return "_PulmonaryRoute";
case _RECTALROUTE: return "_RectalRoute";
case _RESPIRATORYTRACTROUTE: return "_RespiratoryTractRoute";
case _RETROBULBARROUTE: return "_RetrobulbarRoute";
case _SCALPROUTE: return "_ScalpRoute";
case _SINUSUNSPECIFIEDROUTE: return "_SinusUnspecifiedRoute";
case _SKINROUTE: return "_SkinRoute";
case _SOFTTISSUEROUTE: return "_SoftTissueRoute";
case _SUBARACHNOIDROUTE: return "_SubarachnoidRoute";
case _SUBCONJUNCTIVALROUTE: return "_SubconjunctivalRoute";
case _SUBCUTANEOUSROUTE: return "_SubcutaneousRoute";
case _SUBLESIONALROUTE: return "_SublesionalRoute";
case _SUBLINGUALROUTE: return "_SublingualRoute";
case _SUBMUCOSALROUTE: return "_SubmucosalRoute";
case _TRACHEOSTOMYROUTE: return "_TracheostomyRoute";
case _TRANSMUCOSALROUTE: return "_TransmucosalRoute";
case _TRANSPLACENTALROUTE: return "_TransplacentalRoute";
case _TRANSTRACHEALROUTE: return "_TranstrachealRoute";
case _TRANSTYMPANICROUTE: return "_TranstympanicRoute";
case _URETERALROUTE: return "_UreteralRoute";
case _URETHRALROUTE: return "_UrethralRoute";
case _URINARYBLADDERROUTE: return "_UrinaryBladderRoute";
case _URINARYTRACTROUTE: return "_UrinaryTractRoute";
case _VAGINALROUTE: return "_VaginalRoute";
case _VITREOUSHUMOURROUTE: return "_VitreousHumourRoute";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/v3/RouteOfAdministration";
}
public String getDefinition() {
switch (this) {
case _ROUTEBYMETHOD: return "Route of substance administration classified by administration method.";
case SOAK: return "Immersion (soak)";
case SHAMPOO: return "Shampoo";
case TRNSLING: return "Translingual";
case PO: return "Swallow, oral";
case GARGLE: return "Gargle";
case SUCK: return "Suck, oromucosal";
case _CHEW: return "Chew";
case CHEW: return "Chew, oral";
case _DIFFUSION: return "Diffusion";
case EXTCORPDIF: return "Diffusion, extracorporeal";
case HEMODIFF: return "Diffusion, hemodialysis";
case TRNSDERMD: return "Diffusion, transdermal";
case _DISSOLVE: return "Dissolve";
case DISSOLVE: return "Dissolve, oral";
case SL: return "Dissolve, sublingual";
case _DOUCHE: return "Douche";
case DOUCHE: return "Douche, vaginal";
case _ELECTROOSMOSISROUTE: return "Electro-osmosis";
case ELECTOSMOS: return "Electro-osmosis";
case _ENEMA: return "Enema";
case ENEMA: return "Enema, rectal";
case RETENEMA: return "Enema, rectal retention";
case _FLUSH: return "Flush";
case IVFLUSH: return "Flush, intravenous catheter";
case _IMPLANTATION: return "Implantation";
case IDIMPLNT: return "Implantation, intradermal";
case IVITIMPLNT: return "Implantation, intravitreal";
case SQIMPLNT: return "Implantation, subcutaneous";
case _INFUSION: return "Infusion";
case EPI: return "Infusion, epidural";
case IA: return "Infusion, intraarterial catheter";
case IC: return "Infusion, intracardiac";
case ICOR: return "Infusion, intracoronary";
case IOSSC: return "Infusion, intraosseous, continuous";
case IT: return "Infusion, intrathecal";
case IV: return "Infusion, intravenous";
case IVC: return "Infusion, intravenous catheter";
case IVCC: return "Infusion, intravenous catheter, continuous";
case IVCI: return "Infusion, intravenous catheter, intermittent";
case PCA: return "Infusion, intravenous catheter, pca pump";
case IVASCINFUS: return "Infusion, intravascular";
case SQINFUS: return "Infusion, subcutaneous";
case _INHALATION: return "Inhalation";
case IPINHL: return "Inhalation, oral";
case ORIFINHL: return "Inhalation, oral intermittent flow";
case REBREATH: return "Inhalation, oral rebreather mask";
case IPPB: return "Inhalation, intermittent positive pressure breathing (ippb)";
case NASINHL: return "Inhalation, nasal";
case NASINHLC: return "Inhalation, nasal, prongs";
case NEB: return "Inhalation, nebulization";
case NASNEB: return "Inhalation, nebulization, nasal";
case ORNEB: return "Inhalation, nebulization, oral";
case TRACH: return "Inhalation, tracheostomy";
case VENT: return "Inhalation, ventilator";
case VENTMASK: return "Inhalation, ventimask";
case _INJECTION: return "Injection";
case AMNINJ: return "Injection, amniotic fluid";
case BILINJ: return "Injection, biliary tract";
case CHOLINJ: return "Injection, for cholangiography";
case CERVINJ: return "Injection, cervical";
case EPIDURINJ: return "Injection, epidural";
case EPIINJ: return "Injection, epidural, push";
case EPINJSP: return "Injection, epidural, slow push";
case EXTRAMNINJ: return "Injection, extra-amniotic";
case EXTCORPINJ: return "Injection, extracorporeal";
case GBINJ: return "Injection, gastric button";
case GINGINJ: return "Injection, gingival";
case BLADINJ: return "Injection, urinary bladder";
case ENDOSININJ: return "Injection, endosinusial";
case HEMOPORT: return "Injection, hemodialysis port";
case IABDINJ: return "Injection, intra-abdominal";
case IAINJ: return "Injection, intraarterial";
case IAINJP: return "Injection, intraarterial, push";
case IAINJSP: return "Injection, intraarterial, slow push";
case IARTINJ: return "Injection, intraarticular";
case IBURSINJ: return "Injection, intrabursal";
case ICARDINJ: return "Injection, intracardiac";
case ICARDINJRP: return "Injection, intracardiac, rapid push";
case ICARDINJSP: return "Injection, intracardiac, slow push";
case ICARINJP: return "Injection, intracardiac, push";
case ICARTINJ: return "Injection, intracartilaginous";
case ICAUDINJ: return "Injection, intracaudal";
case ICAVINJ: return "Injection, intracavernous";
case ICAVITINJ: return "Injection, intracavitary";
case ICEREBINJ: return "Injection, intracerebral";
case ICISTERNINJ: return "Injection, intracisternal";
case ICORONINJ: return "Injection, intracoronary";
case ICORONINJP: return "Injection, intracoronary, push";
case ICORPCAVINJ: return "Injection, intracorpus cavernosum";
case IDINJ: return "Injection, intradermal";
case IDISCINJ: return "Injection, intradiscal";
case IDUCTINJ: return "Injection, intraductal";
case IDURINJ: return "Injection, intradural";
case IEPIDINJ: return "Injection, intraepidermal";
case IEPITHINJ: return "Injection, intraepithelial";
case ILESINJ: return "Injection, intralesional";
case ILUMINJ: return "Injection, intraluminal";
case ILYMPJINJ: return "Injection, intralymphatic";
case IM: return "Injection, intramuscular";
case IMD: return "Injection, intramuscular, deep";
case IMZ: return "Injection, intramuscular, z track";
case IMEDULINJ: return "Injection, intramedullary";
case INTERMENINJ: return "Injection, interameningeal";
case INTERSTITINJ: return "Injection, interstitial";
case IOINJ: return "Injection, intraocular";
case IOSSINJ: return "Injection, intraosseous";
case IOVARINJ: return "Injection, intraovarian";
case IPCARDINJ: return "Injection, intrapericardial";
case IPERINJ: return "Injection, intraperitoneal";
case IPINJ: return "Injection, intrapulmonary";
case IPLRINJ: return "Injection, intrapleural";
case IPROSTINJ: return "Injection, intraprostatic";
case IPUMPINJ: return "Injection, insulin pump";
case ISINJ: return "Injection, intraspinal";
case ISTERINJ: return "Injection, intrasternal";
case ISYNINJ: return "Injection, intrasynovial";
case ITENDINJ: return "Injection, intratendinous";
case ITESTINJ: return "Injection, intratesticular";
case ITHORINJ: return "Injection, intrathoracic";
case ITINJ: return "Injection, intrathecal";
case ITUBINJ: return "Injection, intratubular";
case ITUMINJ: return "Injection, intratumor";
case ITYMPINJ: return "Injection, intratympanic";
case IUINJ: return "Injection, intracervical (uterus)";
case IUINJC: return "Injection, intracervical (uterus)";
case IURETINJ: return "Injection, intraureteral, retrograde";
case IVASCINJ: return "Injection, intravascular";
case IVENTINJ: return "Injection, intraventricular (heart)";
case IVESINJ: return "Injection, intravesicle";
case IVINJ: return "Injection, intravenous";
case IVINJBOL: return "Injection, intravenous, bolus";
case IVPUSH: return "Injection, intravenous, push";
case IVRPUSH: return "Injection, intravenous, rapid push";
case IVSPUSH: return "Injection, intravenous, slow push";
case IVITINJ: return "Injection, intravitreal";
case PAINJ: return "Injection, periarticular";
case PARENTINJ: return "Injection, parenteral";
case PDONTINJ: return "Injection, periodontal";
case PDPINJ: return "Injection, peritoneal dialysis port";
case PDURINJ: return "Injection, peridural";
case PNINJ: return "Injection, perineural";
case PNSINJ: return "Injection, paranasal sinuses";
case RBINJ: return "Injection, retrobulbar";
case SCINJ: return "Injection, subconjunctival";
case SLESINJ: return "Injection, sublesional";
case SOFTISINJ: return "Injection, soft tissue";
case SQ: return "Injection, subcutaneous";
case SUBARACHINJ: return "Injection, subarachnoid";
case SUBMUCINJ: return "Injection, submucosal";
case TRPLACINJ: return "Injection, transplacental";
case TRTRACHINJ: return "Injection, transtracheal";
case URETHINJ: return "Injection, urethral";
case URETINJ: return "Injection, ureteral";
case _INSERTION: return "Insertion";
case CERVINS: return "Insertion, cervical (uterine)";
case IOSURGINS: return "Insertion, intraocular, surgical";
case IU: return "Insertion, intrauterine";
case LPINS: return "Insertion, lacrimal puncta";
case PR: return "Insertion, rectal";
case SQSURGINS: return "Insertion, subcutaneous, surgical";
case URETHINS: return "Insertion, urethral";
case VAGINSI: return "Insertion, vaginal";
case _INSTILLATION: return "Instillation";
case CECINSTL: return "Instillation, cecostomy";
case EFT: return "Instillation, enteral feeding tube";
case ENTINSTL: return "Instillation, enteral";
case GT: return "Instillation, gastrostomy tube";
case NGT: return "Instillation, nasogastric tube";
case OGT: return "Instillation, orogastric tube";
case BLADINSTL: return "Instillation, urinary catheter";
case CAPDINSTL: return "Instillation, continuous ambulatory peritoneal dialysis port";
case CTINSTL: return "Instillation, chest tube";
case ETINSTL: return "Instillation, endotracheal tube";
case GJT: return "Instillation, gastro-jejunostomy tube";
case IBRONCHINSTIL: return "Instillation, intrabronchial";
case IDUODINSTIL: return "Instillation, intraduodenal";
case IESOPHINSTIL: return "Instillation, intraesophageal";
case IGASTINSTIL: return "Instillation, intragastric";
case IILEALINJ: return "Instillation, intraileal";
case IOINSTL: return "Instillation, intraocular";
case ISININSTIL: return "Instillation, intrasinal";
case ITRACHINSTIL: return "Instillation, intratracheal";
case IUINSTL: return "Instillation, intrauterine";
case JJTINSTL: return "Instillation, jejunostomy tube";
case LARYNGINSTIL: return "Instillation, laryngeal";
case NASALINSTIL: return "Instillation, nasal";
case NASOGASINSTIL: return "Instillation, nasogastric";
case NTT: return "Instillation, nasotracheal tube";
case OJJ: return "Instillation, orojejunum tube";
case OT: return "Instillation, otic";
case PDPINSTL: return "Instillation, peritoneal dialysis port";
case PNSINSTL: return "Instillation, paranasal sinuses";
case RECINSTL: return "Instillation, rectal";
case RECTINSTL: return "Instillation, rectal tube";
case SININSTIL: return "Instillation, sinus, unspecified";
case SOFTISINSTIL: return "Instillation, soft tissue";
case TRACHINSTL: return "Instillation, tracheostomy";
case TRTYMPINSTIL: return "Instillation, transtympanic";
case URETHINSTL: return "Instillation, urethral";
case _IONTOPHORESISROUTE: return "Iontophoresis";
case IONTO: return "Topical application, iontophoresis";
case _IRRIGATION: return "Irrigation";
case GUIRR: return "Irrigation, genitourinary";
case IGASTIRR: return "Irrigation, intragastric";
case ILESIRR: return "Irrigation, intralesional";
case IOIRR: return "Irrigation, intraocular";
case BLADIRR: return "Irrigation, urinary bladder";
case BLADIRRC: return "Irrigation, urinary bladder, continuous";
case BLADIRRT: return "Irrigation, urinary bladder, tidal";
case RECIRR: return "Irrigation, rectal";
case _LAVAGEROUTE: return "Lavage";
case IGASTLAV: return "Lavage, intragastric";
case _MUCOSALABSORPTIONROUTE: return "Mucosal absorption";
case IDOUDMAB: return "Mucosal absorption, intraduodenal";
case ITRACHMAB: return "Mucosal absorption, intratracheal";
case SMUCMAB: return "Mucosal absorption, submucosal";
case _NEBULIZATION: return "Nebulization";
case ETNEB: return "Nebulization, endotracheal tube";
case _RINSE: return "Rinse";
case DENRINSE: return "Rinse, dental";
case ORRINSE: return "Rinse, oral";
case _SUPPOSITORYROUTE: return "Suppository";
case URETHSUP: return "Suppository, urethral";
case _SWISH: return "Swish";
case SWISHSPIT: return "Swish and spit out, oromucosal";
case SWISHSWAL: return "Swish and swallow, oromucosal";
case _TOPICALABSORPTIONROUTE: return "Topical absorption";
case TTYMPTABSORP: return "Topical absorption, transtympanic";
case _TOPICALAPPLICATION: return "Topical application";
case DRESS: return "Topical application, soaked dressing";
case SWAB: return "Topical application, swab";
case TOPICAL: return "Topical";
case BUC: return "Topical application, buccal";
case CERV: return "Topical application, cervical";
case DEN: return "Topical application, dental";
case GIN: return "Topical application, gingival";
case HAIR: return "Topical application, hair";
case ICORNTA: return "Topical application, intracorneal";
case ICORONTA: return "Topical application, intracoronal (dental)";
case IESOPHTA: return "Topical application, intraesophageal";
case IILEALTA: return "Topical application, intraileal";
case ILTOP: return "Topical application, intralesional";
case ILUMTA: return "Topical application, intraluminal";
case IOTOP: return "Topical application, intraocular";
case LARYNGTA: return "Topical application, laryngeal";
case MUC: return "Topical application, mucous membrane";
case NAIL: return "Topical application, nail";
case NASAL: return "Topical application, nasal";
case OPTHALTA: return "Topical application, ophthalmic";
case ORALTA: return "Topical application, oral";
case ORMUC: return "Topical application, oromucosal";
case OROPHARTA: return "Topical application, oropharyngeal";
case PERIANAL: return "Topical application, perianal";
case PERINEAL: return "Topical application, perineal";
case PDONTTA: return "Topical application, periodontal";
case RECTAL: return "Topical application, rectal";
case SCALP: return "Topical application, scalp";
case OCDRESTA: return "Occlusive dressing technique";
case SKIN: return "Topical application, skin";
case SUBCONJTA: return "Subconjunctival";
case TMUCTA: return "Topical application, transmucosal";
case VAGINS: return "Insertion, vaginal";
case INSUF: return "Insufflation";
case TRNSDERM: return "Transdermal";
case _ROUTEBYSITE: return "Route of substance administration classified by site.";
case _AMNIOTICFLUIDSACROUTE: return "Amniotic fluid sac";
case _BILIARYROUTE: return "Biliary tract";
case _BODYSURFACEROUTE: return "Body surface";
case _BUCCALMUCOSAROUTE: return "Buccal mucosa";
case _CECOSTOMYROUTE: return "Cecostomy";
case _CERVICALROUTE: return "Cervix of the uterus";
case _ENDOCERVICALROUTE: return "Endocervical";
case _ENTERALROUTE: return "Enteral";
case _EPIDURALROUTE: return "Epidural";
case _EXTRAAMNIOTICROUTE: return "Extra-amniotic";
case _EXTRACORPOREALCIRCULATIONROUTE: return "Extracorporeal circulation";
case _GASTRICROUTE: return "Gastric";
case _GENITOURINARYROUTE: return "Genitourinary";
case _GINGIVALROUTE: return "Gingival";
case _HAIRROUTE: return "Hair";
case _INTERAMENINGEALROUTE: return "Interameningeal";
case _INTERSTITIALROUTE: return "Interstitial";
case _INTRAABDOMINALROUTE: return "Intra-abdominal";
case _INTRAARTERIALROUTE: return "Intra-arterial";
case _INTRAARTICULARROUTE: return "Intraarticular";
case _INTRABRONCHIALROUTE: return "Intrabronchial";
case _INTRABURSALROUTE: return "Intrabursal";
case _INTRACARDIACROUTE: return "Intracardiac";
case _INTRACARTILAGINOUSROUTE: return "Intracartilaginous";
case _INTRACAUDALROUTE: return "Intracaudal";
case _INTRACAVERNOSALROUTE: return "Intracavernosal";
case _INTRACAVITARYROUTE: return "Intracavitary";
case _INTRACEREBRALROUTE: return "Intracerebral";
case _INTRACERVICALROUTE: return "Intracervical";
case _INTRACISTERNALROUTE: return "Intracisternal";
case _INTRACORNEALROUTE: return "Intracorneal";
case _INTRACORONALROUTE: return "Intracoronal (dental)";
case _INTRACORONARYROUTE: return "Intracoronary";
case _INTRACORPUSCAVERNOSUMROUTE: return "Intracorpus cavernosum";
case _INTRADERMALROUTE: return "Intradermal";
case _INTRADISCALROUTE: return "Intradiscal";
case _INTRADUCTALROUTE: return "Intraductal";
case _INTRADUODENALROUTE: return "Intraduodenal";
case _INTRADURALROUTE: return "Intradural";
case _INTRAEPIDERMALROUTE: return "Intraepidermal";
case _INTRAEPITHELIALROUTE: return "Intraepithelial";
case _INTRAESOPHAGEALROUTE: return "Intraesophageal";
case _INTRAGASTRICROUTE: return "Intragastric";
case _INTRAILEALROUTE: return "Intraileal";
case _INTRALESIONALROUTE: return "Intralesional";
case _INTRALUMINALROUTE: return "Intraluminal";
case _INTRALYMPHATICROUTE: return "Intralymphatic";
case _INTRAMEDULLARYROUTE: return "Intramedullary";
case _INTRAMUSCULARROUTE: return "Intramuscular";
case _INTRAOCULARROUTE: return "Intraocular";
case _INTRAOSSEOUSROUTE: return "Intraosseous";
case _INTRAOVARIANROUTE: return "Intraovarian";
case _INTRAPERICARDIALROUTE: return "Intrapericardial";
case _INTRAPERITONEALROUTE: return "Intraperitoneal";
case _INTRAPLEURALROUTE: return "Intrapleural";
case _INTRAPROSTATICROUTE: return "Intraprostatic";
case _INTRAPULMONARYROUTE: return "Intrapulmonary";
case _INTRASINALROUTE: return "Intrasinal";
case _INTRASPINALROUTE: return "Intraspinal";
case _INTRASTERNALROUTE: return "Intrasternal";
case _INTRASYNOVIALROUTE: return "Intrasynovial";
case _INTRATENDINOUSROUTE: return "Intratendinous";
case _INTRATESTICULARROUTE: return "Intratesticular";
case _INTRATHECALROUTE: return "Intrathecal";
case _INTRATHORACICROUTE: return "Intrathoracic";
case _INTRATRACHEALROUTE: return "Intratracheal";
case _INTRATUBULARROUTE: return "Intratubular";
case _INTRATUMORROUTE: return "Intratumor";
case _INTRATYMPANICROUTE: return "Intratympanic";
case _INTRAUTERINEROUTE: return "Intrauterine";
case _INTRAVASCULARROUTE: return "Intravascular";
case _INTRAVENOUSROUTE: return "Intravenous";
case _INTRAVENTRICULARROUTE: return "Intraventricular";
case _INTRAVESICLEROUTE: return "Intravesicle";
case _INTRAVITREALROUTE: return "Intravitreal";
case _JEJUNUMROUTE: return "Jejunum";
case _LACRIMALPUNCTAROUTE: return "Lacrimal puncta";
case _LARYNGEALROUTE: return "Laryngeal";
case _LINGUALROUTE: return "Lingual";
case _MUCOUSMEMBRANEROUTE: return "Mucous membrane";
case _NAILROUTE: return "Nail";
case _NASALROUTE: return "Nasal";
case _OPHTHALMICROUTE: return "Ophthalmic";
case _ORALROUTE: return "Oral";
case _OROMUCOSALROUTE: return "Oromucosal";
case _OROPHARYNGEALROUTE: return "Oropharyngeal";
case _OTICROUTE: return "Otic";
case _PARANASALSINUSESROUTE: return "Paranasal sinuses";
case _PARENTERALROUTE: return "Parenteral";
case _PERIANALROUTE: return "Perianal";
case _PERIARTICULARROUTE: return "Periarticular";
case _PERIDURALROUTE: return "Peridural";
case _PERINEALROUTE: return "Perineal";
case _PERINEURALROUTE: return "Perineural";
case _PERIODONTALROUTE: return "Periodontal";
case _PULMONARYROUTE: return "Pulmonary";
case _RECTALROUTE: return "Rectal";
case _RESPIRATORYTRACTROUTE: return "Respiratory tract";
case _RETROBULBARROUTE: return "Retrobulbar";
case _SCALPROUTE: return "Scalp";
case _SINUSUNSPECIFIEDROUTE: return "Sinus, unspecified";
case _SKINROUTE: return "Skin";
case _SOFTTISSUEROUTE: return "Soft tissue";
case _SUBARACHNOIDROUTE: return "Subarachnoid";
case _SUBCONJUNCTIVALROUTE: return "Subconjunctival";
case _SUBCUTANEOUSROUTE: return "Subcutaneous";
case _SUBLESIONALROUTE: return "Sublesional";
case _SUBLINGUALROUTE: return "Sublingual";
case _SUBMUCOSALROUTE: return "Submucosal";
case _TRACHEOSTOMYROUTE: return "Tracheostomy";
case _TRANSMUCOSALROUTE: return "Transmucosal";
case _TRANSPLACENTALROUTE: return "Transplacental";
case _TRANSTRACHEALROUTE: return "Transtracheal";
case _TRANSTYMPANICROUTE: return "Transtympanic";
case _URETERALROUTE: return "Ureteral";
case _URETHRALROUTE: return "Urethral";
case _URINARYBLADDERROUTE: return "Urinary bladder";
case _URINARYTRACTROUTE: return "Urinary tract";
case _VAGINALROUTE: return "Vaginal";
case _VITREOUSHUMOURROUTE: return "Vitreous humour";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case _ROUTEBYMETHOD: return "RouteByMethod";
case SOAK: return "Immersion (soak)";
case SHAMPOO: return "Shampoo";
case TRNSLING: return "Translingual";
case PO: return "Swallow, oral";
case GARGLE: return "Gargle";
case SUCK: return "Suck, oromucosal";
case _CHEW: return "Chew";
case CHEW: return "Chew, oral";
case _DIFFUSION: return "Diffusion";
case EXTCORPDIF: return "Diffusion, extracorporeal";
case HEMODIFF: return "Diffusion, hemodialysis";
case TRNSDERMD: return "Diffusion, transdermal";
case _DISSOLVE: return "Dissolve";
case DISSOLVE: return "Dissolve, oral";
case SL: return "Dissolve, sublingual";
case _DOUCHE: return "Douche";
case DOUCHE: return "Douche, vaginal";
case _ELECTROOSMOSISROUTE: return "ElectroOsmosisRoute";
case ELECTOSMOS: return "Electro-osmosis";
case _ENEMA: return "Enema";
case ENEMA: return "Enema, rectal";
case RETENEMA: return "Enema, rectal retention";
case _FLUSH: return "Flush";
case IVFLUSH: return "Flush, intravenous catheter";
case _IMPLANTATION: return "Implantation";
case IDIMPLNT: return "Implantation, intradermal";
case IVITIMPLNT: return "Implantation, intravitreal";
case SQIMPLNT: return "Implantation, subcutaneous";
case _INFUSION: return "Infusion";
case EPI: return "Infusion, epidural";
case IA: return "Infusion, intraarterial catheter";
case IC: return "Infusion, intracardiac";
case ICOR: return "Infusion, intracoronary";
case IOSSC: return "Infusion, intraosseous, continuous";
case IT: return "Infusion, intrathecal";
case IV: return "Infusion, intravenous";
case IVC: return "Infusion, intravenous catheter";
case IVCC: return "Infusion, intravenous catheter, continuous";
case IVCI: return "Infusion, intravenous catheter, intermittent";
case PCA: return "Infusion, intravenous catheter, pca pump";
case IVASCINFUS: return "Infusion, intravascular";
case SQINFUS: return "Infusion, subcutaneous";
case _INHALATION: return "Inhalation";
case IPINHL: return "Inhalation, respiratory";
case ORIFINHL: return "Inhalation, oral intermittent flow";
case REBREATH: return "Inhalation, oral rebreather mask";
case IPPB: return "Inhalation, intermittent positive pressure breathing (ippb)";
case NASINHL: return "Inhalation, nasal";
case NASINHLC: return "Inhalation, nasal cannula";
case NEB: return "Inhalation, nebulization";
case NASNEB: return "Inhalation, nebulization, nasal";
case ORNEB: return "Inhalation, nebulization, oral";
case TRACH: return "Inhalation, tracheostomy";
case VENT: return "Inhalation, ventilator";
case VENTMASK: return "Inhalation, ventimask";
case _INJECTION: return "Injection";
case AMNINJ: return "Injection, amniotic fluid";
case BILINJ: return "Injection, biliary tract";
case CHOLINJ: return "Injection, for cholangiography";
case CERVINJ: return "Injection, cervical";
case EPIDURINJ: return "Injection, epidural";
case EPIINJ: return "Injection, epidural, push";
case EPINJSP: return "Injection, epidural, slow push";
case EXTRAMNINJ: return "Injection, extra-amniotic";
case EXTCORPINJ: return "Injection, extracorporeal";
case GBINJ: return "Injection, gastric button";
case GINGINJ: return "Injection, gingival";
case BLADINJ: return "Injection, urinary bladder";
case ENDOSININJ: return "Injection, endosinusial";
case HEMOPORT: return "Injection, hemodialysis port";
case IABDINJ: return "Injection, intra-abdominal";
case IAINJ: return "Injection, intraarterial";
case IAINJP: return "Injection, intraarterial, push";
case IAINJSP: return "Injection, intraarterial, slow push";
case IARTINJ: return "Injection, intraarticular";
case IBURSINJ: return "Injection, intrabursal";
case ICARDINJ: return "Injection, intracardiac";
case ICARDINJRP: return "Injection, intracardiac, rapid push";
case ICARDINJSP: return "Injection, intracardiac, slow push";
case ICARINJP: return "Injection, intracardiac, push";
case ICARTINJ: return "Injection, intracartilaginous";
case ICAUDINJ: return "Injection, intracaudal";
case ICAVINJ: return "Injection, intracavernous";
case ICAVITINJ: return "Injection, intracavitary";
case ICEREBINJ: return "Injection, intracerebral";
case ICISTERNINJ: return "Injection, intracisternal";
case ICORONINJ: return "Injection, intracoronary";
case ICORONINJP: return "Injection, intracoronary, push";
case ICORPCAVINJ: return "Injection, intracorpus cavernosum";
case IDINJ: return "Injection, intradermal";
case IDISCINJ: return "Injection, intradiscal";
case IDUCTINJ: return "Injection, intraductal";
case IDURINJ: return "Injection, intradural";
case IEPIDINJ: return "Injection, intraepidermal";
case IEPITHINJ: return "Injection, intraepithelial";
case ILESINJ: return "Injection, intralesional";
case ILUMINJ: return "Injection, intraluminal";
case ILYMPJINJ: return "Injection, intralymphatic";
case IM: return "Injection, intramuscular";
case IMD: return "Injection, intramuscular, deep";
case IMZ: return "Injection, intramuscular, z track";
case IMEDULINJ: return "Injection, intramedullary";
case INTERMENINJ: return "Injection, interameningeal";
case INTERSTITINJ: return "Injection, interstitial";
case IOINJ: return "Injection, intraocular";
case IOSSINJ: return "Injection, intraosseous";
case IOVARINJ: return "Injection, intraovarian";
case IPCARDINJ: return "Injection, intrapericardial";
case IPERINJ: return "Injection, intraperitoneal";
case IPINJ: return "Injection, intrapulmonary";
case IPLRINJ: return "Injection, intrapleural";
case IPROSTINJ: return "Injection, intraprostatic";
case IPUMPINJ: return "Injection, insulin pump";
case ISINJ: return "Injection, intraspinal";
case ISTERINJ: return "Injection, intrasternal";
case ISYNINJ: return "Injection, intrasynovial";
case ITENDINJ: return "Injection, intratendinous";
case ITESTINJ: return "Injection, intratesticular";
case ITHORINJ: return "Injection, intrathoracic";
case ITINJ: return "Injection, intrathecal";
case ITUBINJ: return "Injection, intratubular";
case ITUMINJ: return "Injection, intratumor";
case ITYMPINJ: return "Injection, intratympanic";
case IUINJ: return "Injection, intrauterine";
case IUINJC: return "Injection, intracervical (uterus)";
case IURETINJ: return "Injection, intraureteral, retrograde";
case IVASCINJ: return "Injection, intravascular";
case IVENTINJ: return "Injection, intraventricular (heart)";
case IVESINJ: return "Injection, intravesicle";
case IVINJ: return "Injection, intravenous";
case IVINJBOL: return "Injection, intravenous, bolus";
case IVPUSH: return "Injection, intravenous, push";
case IVRPUSH: return "Injection, intravenous, rapid push";
case IVSPUSH: return "Injection, intravenous, slow push";
case IVITINJ: return "Injection, intravitreal";
case PAINJ: return "Injection, periarticular";
case PARENTINJ: return "Injection, parenteral";
case PDONTINJ: return "Injection, periodontal";
case PDPINJ: return "Injection, peritoneal dialysis port";
case PDURINJ: return "Injection, peridural";
case PNINJ: return "Injection, perineural";
case PNSINJ: return "Injection, paranasal sinuses";
case RBINJ: return "Injection, retrobulbar";
case SCINJ: return "Injection, subconjunctival";
case SLESINJ: return "Injection, sublesional";
case SOFTISINJ: return "Injection, soft tissue";
case SQ: return "Injection, subcutaneous";
case SUBARACHINJ: return "Injection, subarachnoid";
case SUBMUCINJ: return "Injection, submucosal";
case TRPLACINJ: return "Injection, transplacental";
case TRTRACHINJ: return "Injection, transtracheal";
case URETHINJ: return "Injection, urethral";
case URETINJ: return "Injection, ureteral";
case _INSERTION: return "Insertion";
case CERVINS: return "Insertion, cervical (uterine)";
case IOSURGINS: return "Insertion, intraocular, surgical";
case IU: return "Insertion, intrauterine";
case LPINS: return "Insertion, lacrimal puncta";
case PR: return "Insertion, rectal";
case SQSURGINS: return "Insertion, subcutaneous, surgical";
case URETHINS: return "Insertion, urethral";
case VAGINSI: return "Insertion, vaginal";
case _INSTILLATION: return "Instillation";
case CECINSTL: return "Instillation, cecostomy";
case EFT: return "Instillation, enteral feeding tube";
case ENTINSTL: return "Instillation, enteral";
case GT: return "Instillation, gastrostomy tube";
case NGT: return "Instillation, nasogastric tube";
case OGT: return "Instillation, orogastric tube";
case BLADINSTL: return "Instillation, urinary catheter";
case CAPDINSTL: return "Instillation, continuous ambulatory peritoneal dialysis port";
case CTINSTL: return "Instillation, chest tube";
case ETINSTL: return "Instillation, endotracheal tube";
case GJT: return "Instillation, gastro-jejunostomy tube";
case IBRONCHINSTIL: return "Instillation, intrabronchial";
case IDUODINSTIL: return "Instillation, intraduodenal";
case IESOPHINSTIL: return "Instillation, intraesophageal";
case IGASTINSTIL: return "Instillation, intragastric";
case IILEALINJ: return "Instillation, intraileal";
case IOINSTL: return "Instillation, intraocular";
case ISININSTIL: return "Instillation, intrasinal";
case ITRACHINSTIL: return "Instillation, intratracheal";
case IUINSTL: return "Instillation, intrauterine";
case JJTINSTL: return "Instillation, jejunostomy tube";
case LARYNGINSTIL: return "Instillation, laryngeal";
case NASALINSTIL: return "Instillation, nasal";
case NASOGASINSTIL: return "Instillation, nasogastric";
case NTT: return "Instillation, nasotracheal tube";
case OJJ: return "Instillation, orojejunum tube";
case OT: return "Instillation, otic";
case PDPINSTL: return "Instillation, peritoneal dialysis port";
case PNSINSTL: return "Instillation, paranasal sinuses";
case RECINSTL: return "Instillation, rectal";
case RECTINSTL: return "Instillation, rectal tube";
case SININSTIL: return "Instillation, sinus, unspecified";
case SOFTISINSTIL: return "Instillation, soft tissue";
case TRACHINSTL: return "Instillation, tracheostomy";
case TRTYMPINSTIL: return "Instillation, transtympanic";
case URETHINSTL: return "instillation, urethral";
case _IONTOPHORESISROUTE: return "IontophoresisRoute";
case IONTO: return "Topical application, iontophoresis";
case _IRRIGATION: return "Irrigation";
case GUIRR: return "Irrigation, genitourinary";
case IGASTIRR: return "Irrigation, intragastric";
case ILESIRR: return "Irrigation, intralesional";
case IOIRR: return "Irrigation, intraocular";
case BLADIRR: return "Irrigation, urinary bladder";
case BLADIRRC: return "Irrigation, urinary bladder, continuous";
case BLADIRRT: return "Irrigation, urinary bladder, tidal";
case RECIRR: return "Irrigation, rectal";
case _LAVAGEROUTE: return "LavageRoute";
case IGASTLAV: return "Lavage, intragastric";
case _MUCOSALABSORPTIONROUTE: return "MucosalAbsorptionRoute";
case IDOUDMAB: return "Mucosal absorption, intraduodenal";
case ITRACHMAB: return "Mucosal absorption, intratracheal";
case SMUCMAB: return "Mucosal absorption, submucosal";
case _NEBULIZATION: return "Nebulization";
case ETNEB: return "Nebulization, endotracheal tube";
case _RINSE: return "Rinse";
case DENRINSE: return "Rinse, dental";
case ORRINSE: return "Rinse, oral";
case _SUPPOSITORYROUTE: return "SuppositoryRoute";
case URETHSUP: return "Suppository, urethral";
case _SWISH: return "Swish";
case SWISHSPIT: return "Swish and spit out, oromucosal";
case SWISHSWAL: return "Swish and swallow, oromucosal";
case _TOPICALABSORPTIONROUTE: return "TopicalAbsorptionRoute";
case TTYMPTABSORP: return "Topical absorption, transtympanic";
case _TOPICALAPPLICATION: return "TopicalApplication";
case DRESS: return "Topical application, soaked dressing";
case SWAB: return "Topical application, swab";
case TOPICAL: return "Topical";
case BUC: return "Topical application, buccal";
case CERV: return "Topical application, cervical";
case DEN: return "Topical application, dental";
case GIN: return "Topical application, gingival";
case HAIR: return "Topical application, hair";
case ICORNTA: return "Topical application, intracorneal";
case ICORONTA: return "Topical application, intracoronal (dental)";
case IESOPHTA: return "Topical application, intraesophageal";
case IILEALTA: return "Topical application, intraileal";
case ILTOP: return "Topical application, intralesional";
case ILUMTA: return "Topical application, intraluminal";
case IOTOP: return "Topical application, intraocular";
case LARYNGTA: return "Topical application, laryngeal";
case MUC: return "Topical application, mucous membrane";
case NAIL: return "Topical application, nail";
case NASAL: return "Topical application, nasal";
case OPTHALTA: return "Topical application, ophthalmic";
case ORALTA: return "Topical application, oral";
case ORMUC: return "Topical application, oromucosal";
case OROPHARTA: return "Topical application, oropharyngeal";
case PERIANAL: return "Topical application, perianal";
case PERINEAL: return "Topical application, perineal";
case PDONTTA: return "Topical application, periodontal";
case RECTAL: return "Topical application, rectal";
case SCALP: return "Topical application, scalp";
case OCDRESTA: return "Occlusive dressing technique";
case SKIN: return "Topical application, skin";
case SUBCONJTA: return "Subconjunctival";
case TMUCTA: return "Topical application, transmucosal";
case VAGINS: return "Topical application, vaginal";
case INSUF: return "Insufflation";
case TRNSDERM: return "Transdermal";
case _ROUTEBYSITE: return "RouteBySite";
case _AMNIOTICFLUIDSACROUTE: return "AmnioticFluidSacRoute";
case _BILIARYROUTE: return "BiliaryRoute";
case _BODYSURFACEROUTE: return "BodySurfaceRoute";
case _BUCCALMUCOSAROUTE: return "BuccalMucosaRoute";
case _CECOSTOMYROUTE: return "CecostomyRoute";
case _CERVICALROUTE: return "CervicalRoute";
case _ENDOCERVICALROUTE: return "EndocervicalRoute";
case _ENTERALROUTE: return "EnteralRoute";
case _EPIDURALROUTE: return "EpiduralRoute";
case _EXTRAAMNIOTICROUTE: return "ExtraAmnioticRoute";
case _EXTRACORPOREALCIRCULATIONROUTE: return "ExtracorporealCirculationRoute";
case _GASTRICROUTE: return "GastricRoute";
case _GENITOURINARYROUTE: return "GenitourinaryRoute";
case _GINGIVALROUTE: return "GingivalRoute";
case _HAIRROUTE: return "HairRoute";
case _INTERAMENINGEALROUTE: return "InterameningealRoute";
case _INTERSTITIALROUTE: return "InterstitialRoute";
case _INTRAABDOMINALROUTE: return "IntraabdominalRoute";
case _INTRAARTERIALROUTE: return "IntraarterialRoute";
case _INTRAARTICULARROUTE: return "IntraarticularRoute";
case _INTRABRONCHIALROUTE: return "IntrabronchialRoute";
case _INTRABURSALROUTE: return "IntrabursalRoute";
case _INTRACARDIACROUTE: return "IntracardiacRoute";
case _INTRACARTILAGINOUSROUTE: return "IntracartilaginousRoute";
case _INTRACAUDALROUTE: return "IntracaudalRoute";
case _INTRACAVERNOSALROUTE: return "IntracavernosalRoute";
case _INTRACAVITARYROUTE: return "IntracavitaryRoute";
case _INTRACEREBRALROUTE: return "IntracerebralRoute";
case _INTRACERVICALROUTE: return "IntracervicalRoute";
case _INTRACISTERNALROUTE: return "IntracisternalRoute";
case _INTRACORNEALROUTE: return "IntracornealRoute";
case _INTRACORONALROUTE: return "IntracoronalRoute";
case _INTRACORONARYROUTE: return "IntracoronaryRoute";
case _INTRACORPUSCAVERNOSUMROUTE: return "IntracorpusCavernosumRoute";
case _INTRADERMALROUTE: return "IntradermalRoute";
case _INTRADISCALROUTE: return "IntradiscalRoute";
case _INTRADUCTALROUTE: return "IntraductalRoute";
case _INTRADUODENALROUTE: return "IntraduodenalRoute";
case _INTRADURALROUTE: return "IntraduralRoute";
case _INTRAEPIDERMALROUTE: return "IntraepidermalRoute";
case _INTRAEPITHELIALROUTE: return "IntraepithelialRoute";
case _INTRAESOPHAGEALROUTE: return "IntraesophagealRoute";
case _INTRAGASTRICROUTE: return "IntragastricRoute";
case _INTRAILEALROUTE: return "IntrailealRoute";
case _INTRALESIONALROUTE: return "IntralesionalRoute";
case _INTRALUMINALROUTE: return "IntraluminalRoute";
case _INTRALYMPHATICROUTE: return "IntralymphaticRoute";
case _INTRAMEDULLARYROUTE: return "IntramedullaryRoute";
case _INTRAMUSCULARROUTE: return "IntramuscularRoute";
case _INTRAOCULARROUTE: return "IntraocularRoute";
case _INTRAOSSEOUSROUTE: return "IntraosseousRoute";
case _INTRAOVARIANROUTE: return "IntraovarianRoute";
case _INTRAPERICARDIALROUTE: return "IntrapericardialRoute";
case _INTRAPERITONEALROUTE: return "IntraperitonealRoute";
case _INTRAPLEURALROUTE: return "IntrapleuralRoute";
case _INTRAPROSTATICROUTE: return "IntraprostaticRoute";
case _INTRAPULMONARYROUTE: return "IntrapulmonaryRoute";
case _INTRASINALROUTE: return "IntrasinalRoute";
case _INTRASPINALROUTE: return "IntraspinalRoute";
case _INTRASTERNALROUTE: return "IntrasternalRoute";
case _INTRASYNOVIALROUTE: return "IntrasynovialRoute";
case _INTRATENDINOUSROUTE: return "IntratendinousRoute";
case _INTRATESTICULARROUTE: return "IntratesticularRoute";
case _INTRATHECALROUTE: return "IntrathecalRoute";
case _INTRATHORACICROUTE: return "IntrathoracicRoute";
case _INTRATRACHEALROUTE: return "IntratrachealRoute";
case _INTRATUBULARROUTE: return "IntratubularRoute";
case _INTRATUMORROUTE: return "IntratumorRoute";
case _INTRATYMPANICROUTE: return "IntratympanicRoute";
case _INTRAUTERINEROUTE: return "IntrauterineRoute";
case _INTRAVASCULARROUTE: return "IntravascularRoute";
case _INTRAVENOUSROUTE: return "IntravenousRoute";
case _INTRAVENTRICULARROUTE: return "IntraventricularRoute";
case _INTRAVESICLEROUTE: return "IntravesicleRoute";
case _INTRAVITREALROUTE: return "IntravitrealRoute";
case _JEJUNUMROUTE: return "JejunumRoute";
case _LACRIMALPUNCTAROUTE: return "LacrimalPunctaRoute";
case _LARYNGEALROUTE: return "LaryngealRoute";
case _LINGUALROUTE: return "LingualRoute";
case _MUCOUSMEMBRANEROUTE: return "MucousMembraneRoute";
case _NAILROUTE: return "NailRoute";
case _NASALROUTE: return "NasalRoute";
case _OPHTHALMICROUTE: return "OphthalmicRoute";
case _ORALROUTE: return "OralRoute";
case _OROMUCOSALROUTE: return "OromucosalRoute";
case _OROPHARYNGEALROUTE: return "OropharyngealRoute";
case _OTICROUTE: return "OticRoute";
case _PARANASALSINUSESROUTE: return "ParanasalSinusesRoute";
case _PARENTERALROUTE: return "ParenteralRoute";
case _PERIANALROUTE: return "PerianalRoute";
case _PERIARTICULARROUTE: return "PeriarticularRoute";
case _PERIDURALROUTE: return "PeriduralRoute";
case _PERINEALROUTE: return "PerinealRoute";
case _PERINEURALROUTE: return "PerineuralRoute";
case _PERIODONTALROUTE: return "PeriodontalRoute";
case _PULMONARYROUTE: return "PulmonaryRoute";
case _RECTALROUTE: return "RectalRoute";
case _RESPIRATORYTRACTROUTE: return "RespiratoryTractRoute";
case _RETROBULBARROUTE: return "RetrobulbarRoute";
case _SCALPROUTE: return "ScalpRoute";
case _SINUSUNSPECIFIEDROUTE: return "SinusUnspecifiedRoute";
case _SKINROUTE: return "SkinRoute";
case _SOFTTISSUEROUTE: return "SoftTissueRoute";
case _SUBARACHNOIDROUTE: return "SubarachnoidRoute";
case _SUBCONJUNCTIVALROUTE: return "SubconjunctivalRoute";
case _SUBCUTANEOUSROUTE: return "SubcutaneousRoute";
case _SUBLESIONALROUTE: return "SublesionalRoute";
case _SUBLINGUALROUTE: return "SublingualRoute";
case _SUBMUCOSALROUTE: return "SubmucosalRoute";
case _TRACHEOSTOMYROUTE: return "TracheostomyRoute";
case _TRANSMUCOSALROUTE: return "TransmucosalRoute";
case _TRANSPLACENTALROUTE: return "TransplacentalRoute";
case _TRANSTRACHEALROUTE: return "TranstrachealRoute";
case _TRANSTYMPANICROUTE: return "TranstympanicRoute";
case _URETERALROUTE: return "UreteralRoute";
case _URETHRALROUTE: return "UrethralRoute";
case _URINARYBLADDERROUTE: return "UrinaryBladderRoute";
case _URINARYTRACTROUTE: return "UrinaryTractRoute";
case _VAGINALROUTE: return "VaginalRoute";
case _VITREOUSHUMOURROUTE: return "VitreousHumourRoute";
default: return "?";
}
}
}
| bhits/hapi-fhir | hapi-fhir-structures-r4/src/main/java/org/hl7/fhir/r4/model/codesystems/V3RouteOfAdministration.java |
213,455 | package io.battlerune.content.activity.impl;
import io.battlerune.Config;
import io.battlerune.content.activity.Activity;
import io.battlerune.content.activity.ActivityType;
import io.battlerune.game.world.entity.mob.Mob;
import io.battlerune.game.world.entity.mob.player.Player;
public class JailActivity extends Activity {
private final Player player;
private JailActivity(Player player) {
super(Integer.MAX_VALUE, Mob.DEFAULT_INSTANCE_HEIGHT);
this.player = player;
}
public static JailActivity create(Player player) {
JailActivity activity = new JailActivity(player);
player.move(Config.JAIL_ZONE);
activity.add(player);
activity.resetCooldown();
player.setVisible(true);
return activity;
}
@Override
protected void start() {
finish();
}
@Override
public void onDeath(Mob mob) {
player.move(Config.JAIL_ZONE);
player.message("BAM! YOU'RE BACK!");
}
@Override
public boolean canTeleport(Player player) {
player.message("You are jailed you douche! untill staff member says otherwise.");
player.message("ask a staff to check your jail duration.");
return false;
}
@Override
public void onRegionChange(Player player) {
player.move(Config.JAIL_ZONE);
}
@Override
public void finish() {
remove(player);
player.move(Config.DEFAULT_POSITION);
player.message("Time's up! You are free to go, hope you learn from your mistakes.");
}
@Override
public void cleanup() {
}
@Override
public ActivityType getType() {
return ActivityType.JAIL;
}
}
| dginovker/Runity-Official-Source | src/main/java/io/battlerune/content/activity/impl/JailActivity.java |
213,456 | package net.tazpvp.tazpvp.Utils.Ranks;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.TextComponent;
import net.tazpvp.tazpvp.Tazpvp;
import net.wesjd.anvilgui.AnvilGUI;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Locale;
public class RenameSwordUtil {
public static ArrayList<String> badWords = new ArrayList<String>(Arrays.asList( "anal", "anus","arse","ass","ass","fuck","ass","assfucker","asshole","assshole","bastard","bitch","cock","boong","cock","cockfucker","cocksuck","cocksucker","coon","coonnass","cunt","cyberfuck","dick","dirty","douche","dummy","erect","erection","erotic","escort","fag","faggot","fuck","fuckass","fuckhole","gook","homoerotic","hore","lesbian","lesbians","motherfuck","motherfucker","negro","nigger","orgasim","orgasm","penis","penisfucker","piss","porn","porno","pornography","pussy","retard","sadist","sex","sexy","shit","slut","bitch","tits","viagra","whore","xxx" ));
public static void renameSword(Player p, ItemStack sword) {
new AnvilGUI.Builder()
.onComplete((player, text) -> {
if (badWords.contains(text.toLowerCase(Locale.ROOT))) {
p.sendMessage(ChatColor.RED + "That word is not allowed!");
return AnvilGUI.Response.close();
} else {
ItemMeta swordMeta = sword.getItemMeta();
swordMeta.setDisplayName(text);
sword.setItemMeta(swordMeta);
return AnvilGUI.Response.close();
}
})
.itemLeft(sword)
.title(ChatColor.YELLOW + "Rename Sword to:")
.plugin(Tazpvp.getInstance())
.open(p);
}
public static void renameChecks(Player p, ItemStack sword) {
if (Tazpvp.statsManager.getCoins(p) >= 200) {
renameSword(p, sword);
} else {
TextComponent nocred = new TextComponent(ChatColor.RED + "Insufficient Credits! " + ChatColor.WHITE + "[CLICK HERE]");
nocred.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://taznet.tebex.io/"));
p.spigot().sendMessage(nocred);
}
}
public static ItemStack getSwordToRename(Player p) {
for (ItemStack item : p.getInventory().getContents()) {
if (item != null) {
if (item.getType().toString().toLowerCase(Locale.ROOT).contains("sword")) {
return item;
}
}
}
return null;
}
}
| tazpvp/tazpvp-legacy | src/main/java/net/tazpvp/tazpvp/Utils/Ranks/RenameSwordUtil.java |
213,457 | package io.github.tehstoneman.betterstorage.misc;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import io.github.tehstoneman.betterstorage.utils.NbtUtils;
import io.github.tehstoneman.betterstorage.utils.StackUtils;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.EntityEvent.EntityConstructing;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerRespawnEvent;
public class ChristmasEventHandler
{
private static final int DAYS_BEFORE_CHRISTMAS = 14;
private static final int DAYS_AFTER_CHRISTMAS = 2;
public ChristmasEventHandler()
{
MinecraftForge.EVENT_BUS.register( this );
FMLCommonHandler.instance().bus().register( this );
}
@SubscribeEvent
public void onPlayerLogin( PlayerLoggedInEvent event )
{
final List< ItemStack > items = getItemsForYear( getYear(), event.player );
/*
* BetterChristmasProperties properties =
* EntityUtils.getProperties(event.player, BetterChristmasProperties.class);
*/
if( items == null )
return;
/*
* if (isBeforeChristmas() && (properties.year < getYear())) {
* ItemStack book = new ItemStack(BetterStorageItems.presentBook);
*
* StackUtils.set(book, getYear(), "year");
* StackUtils.set(book, event.player.getUniqueID().toString(), "uuid");
* StackUtils.set(book, event.player.getCommandSenderEntity(), "name");
*
* event.player.inventory.addItemStackToInventory(book);
* properties.year = getYear();
* properties.gotPresent = false;
* }
*/
/*
* if (isPresentTime() && !properties.gotPresent) {
* IInventory inv = event.player.inventory;
* for (int i = 0; i < inv.getSizeInventory(); i++) {
* ItemStack stack = inv.getStackInSlot(i);
* if ((stack != null) && (stack.getItem() == BetterStorageItems.presentBook) &&
* (StackUtils.get(stack, 9001, "year") == getYear()) &&
* event.player.getUniqueID().toString().equals(StackUtils.get(stack, null, "uuid"))) {
* ItemStack present = new ItemStack(BetterStorageTiles.present);
*
* present.setStackDisplayName("Christmas Present " + getYear());
* StackUtils.set(present, event.player.getCommandSenderEntity(), TileEntityPresent.TAG_NAMETAG);
*
* int color = DyeUtils.getDyeColor(new ItemStack(Items.dye, 1, 1));
* StackUtils.set(present, color, "color");
* StackUtils.set(present, (byte)14, TileEntityPresent.TAG_COLOR_INNER);
* StackUtils.set(present, (byte)16, TileEntityPresent.TAG_COLOR_OUTER);
*
* ItemStack[] contents = new ItemStack[ItemCardboardBox.getRows() * 9];
* for (int j = 0; ((j < contents.length) && !items.isEmpty()); j++)
* if (RandomUtils.getBoolean((double)items.size() / (contents.length - j)))
* contents[j] = items.remove(RandomUtils.getInt(items.size()));
* StackUtils.setStackContents(present, contents);
*
* if (event.player.getCommandSenderEntity().equalsIgnoreCase("xXxCJxXx")) {
* StackUtils.set(present, (byte)1, TileEntityPresent.TAG_SKOJANZA_MODE);
* StackUtils.set(present, NbtUtils.createList(
* "Just for you!",
* "skojanzaMode = true"
* ), "display", "Lore");
* }
*
* inv.setInventorySlotContents(i, present);
* properties.gotPresent = true;
* break;
* }
* }
* }
*/
}
@SubscribeEvent
public void onEntityConstructing( EntityConstructing event )
{
/*
* if (event.getEntity() instanceof EntityPlayerMP)
* EntityUtils.createProperties(event.getEntity(), BetterChristmasProperties.class);
*/
}
@SubscribeEvent
public void onPlayerDeath( LivingDeathEvent event )
{
if( !( event.getEntity() instanceof EntityPlayerMP ) )
return;
final EntityPlayer player = (EntityPlayer)event.getEntity();
/*
* BetterChristmasProperties properties =
* EntityUtils.getProperties(player, BetterChristmasProperties.class);
*/
final NBTTagCompound entityData = player.getEntityData();
final NBTTagCompound persistent = entityData.getCompoundTag( EntityPlayer.PERSISTED_NBT_TAG );
entityData.setTag( EntityPlayer.PERSISTED_NBT_TAG, persistent );
final NBTTagCompound propertiesCompound = new NBTTagCompound();
/*
* properties.saveNBTData(propertiesCompound);
* persistent.setTag(BetterChristmasProperties.identifier, propertiesCompound);
*/
}
@SubscribeEvent
public void onPlayerRespawn( PlayerRespawnEvent event )
{
final EntityPlayer player = event.player;
/*
* BetterChristmasProperties properties =
* EntityUtils.getProperties(player, BetterChristmasProperties.class);
*/
final NBTTagCompound entityData = player.getEntityData();
final NBTTagCompound persistent = entityData.getCompoundTag( EntityPlayer.PERSISTED_NBT_TAG );
// NBTTagCompound propertiesCompound = persistent.getCompoundTag(BetterChristmasProperties.identifier);
// if (propertiesCompound.hasNoTags()) return;
// properties.loadNBTData(propertiesCompound);
// persistent.removeTag(BetterChristmasProperties.identifier);
if( persistent.hasNoTags() )
entityData.removeTag( EntityPlayer.PERSISTED_NBT_TAG );
}
public static int getYear()
{
return Calendar.getInstance().get( Calendar.YEAR );
}
public static int getMonth()
{
return Calendar.getInstance().get( Calendar.MONTH );
}
public static int getDay()
{
return Calendar.getInstance().get( Calendar.DAY_OF_MONTH );
}
public static boolean isBeforeChristmas()
{
return getMonth() == Calendar.DECEMBER && getDay() >= 24 - DAYS_BEFORE_CHRISTMAS && getDay() < 24;
}
public static boolean isPresentTime()
{
return getMonth() == Calendar.DECEMBER && getDay() >= 24 && getDay() <= 24 + DAYS_AFTER_CHRISTMAS;
}
private static List< ItemStack > getItemsForYear( int year, EntityPlayer player )
{
final List< ItemStack > items = new ArrayList< >();
switch( year )
{
case 2014:
getItemsFor2014( items, player );
break;
default:
return null;
}
return items;
}
private static void getItemsFor2014( List< ItemStack > items, EntityPlayer player )
{
final boolean vouchers = false;
/*
* ItemStack sword = new ItemStack((BetterStorageItems.cardboardSword != null)
* ? BetterStorageItems.cardboardSword : Items.wooden_sword);
* sword.addEnchantment(Enchantment.looting, 4);
* sword.addEnchantment(Enchantment.knockback, 3);
* if (BetterStorageItems.cardboardSword != null) {
* sword.setStackDisplayName(player.getCommandSenderEntity() + "'s Magical Sword");
* sword.addEnchantment(Enchantment.unbreaking, 2);
* int color = DyeUtils.getDyeColor(new ItemStack(Items.dye, 1, 5));
* StackUtils.set(sword, color, "display", "color");
* StackUtils.set(sword, NbtUtils.createList(
* "True strength is not in power,",
* "but in overcoming challenges."
* ), "display", "Lore");
* } else {
* sword.setStackDisplayName("Fake Cardboard Sword");
* StackUtils.set(sword, NbtUtils.createList(
* "Not made of actual cardboard,",
* "because some douche disabled it."
* ), "display", "Lore");
* }
* items.add(sword);
*
* ItemStack chestplate = new ItemStack((BetterStorageItems.cardboardChestplate != null)
* ? BetterStorageItems.cardboardChestplate : Items.leather_chestplate);
* chestplate.addEnchantment(Enchantment.protection, 4);
* chestplate.addEnchantment(Enchantment.thorns, 3);
* if (BetterStorageItems.cardboardChestplate != null) {
* chestplate.setStackDisplayName(player.getCommandSenderEntity() + "'s Magical Chestpiece");
* chestplate.addEnchantment(Enchantment.unbreaking, 2);
* int color = DyeUtils.getDyeColor(new ItemStack(Items.dye, 1, 5));
* StackUtils.set(chestplate, color, "display", "color");
* StackUtils.set(chestplate, NbtUtils.createList(
* "True strength is not in power,",
* "but in overcoming challenges."
* ), "display", "Lore");
* } else {
* chestplate.setStackDisplayName("Fake Cardboard Chestplate");
* StackUtils.set(chestplate, NbtUtils.createList(
* "Not made of actual cardboard,",
* "because some douche disabled it."
* ), "display", "Lore");
* }
* items.add(chestplate);
*
* if (BetterStorageItems.drinkingHelmet != null) {
* ItemStack drinkingHelmet = new ItemStack(BetterStorageItems.drinkingHelmet);
* drinkingHelmet.setStackDisplayName("Splash Drinking Helmet");
* drinkingHelmet.addEnchantment(Enchantment.protection, 5);
* drinkingHelmet.addEnchantment(Enchantment.respiration, 4);
* ItemStack speedPotion = new ItemStack(Items.potionitem, 1, 16418);
* StackUtils.set(speedPotion, NbtUtils.createList(
* NbtUtils.createCompound("Id", 1, "Amplifier", 3, "Duration", 2000),
* NbtUtils.createCompound("Id", 9, "Amplifier", 1, "Duration", 1600)
* ), "CustomPotionEffects");
* ItemStack weaknessPotion = new ItemStack(Items.potionitem, 1, 16424);
* StackUtils.set(weaknessPotion, NbtUtils.createList(
* NbtUtils.createCompound("Id", 18, "Amplifier", 2, "Duration", 2000)
* ), "CustomPotionEffects");
* ItemDrinkingHelmet.setPotions(drinkingHelmet, new ItemStack[]{ speedPotion, weaknessPotion });
* StackUtils.set(drinkingHelmet, 24, "uses");
* items.add(drinkingHelmet);
* } else vouchers = createVoucher(items, "Drinking Helmet");
*
* ItemStack shears = new ItemStack(Items.shears);
* shears.setStackDisplayName("Shears of Destiny");
* shears.addEnchantment(Enchantment.silkTouch, 2);
* StackUtils.set(shears, NbtUtils.createList("\"Destinyyy!\" -Guude"), "display", "Lore");
* items.add(shears);
*
* if (BetterStorageItems.slimeBucket != null) {
* ItemStack slime = new ItemStack(BetterStorageItems.slimeBucket);
* StackUtils.set(slime, "Magma King", "Slime", "name");
* StackUtils.set(slime, "LavaSlime", "Slime", "id");
* StackUtils.set(slime, NbtUtils.createList(
* new PotionEffect(Potion.regeneration.id, 6000, 0).writeCustomPotionEffectToNBT(new NBTTagCompound()),
* new PotionEffect(Potion.resistance.id, 6000, 1).writeCustomPotionEffectToNBT(new NBTTagCompound()),
* new PotionEffect(Potion.fireResistance.id, 6000, 2).writeCustomPotionEffectToNBT(new NBTTagCompound()),
* new PotionEffect(Potion.waterBreathing.id, 6000, 3).writeCustomPotionEffectToNBT(new NBTTagCompound()),
* new PotionEffect(Potion.nightVision.id, 6000, 3).writeCustomPotionEffectToNBT(new NBTTagCompound())
* ), "Effects");
* StackUtils.set(slime, NbtUtils.createList(
* "Sneak and use to consume.",
* "Don't accidentially release it!"
* ), "display", "Lore");
* items.add(slime);
* } else vouchers = createVoucher(items, "Slime in a Bucket");
*
* if (BetterStorageTiles.craftingStation != null)
* items.add(new ItemStack(BetterStorageTiles.craftingStation));
* else vouchers = createVoucher(items, "Crafting Station");
* items.add(new ItemStack(Items.diamond, 8));
* items.add(new ItemStack(Items.emerald, 16));
*
* if (vouchers) {
* ItemStack book = new ItemStack(Items.written_book);
* StackUtils.set(book, "Voucher Information", "title");
* StackUtils.set(book, "copygirl", "author");
* StackUtils.set(book, 3, "generation");
* StackUtils.set(book, NbtUtils.createList(
* "If you received this book, it means whoever is in charge of " +
* "configs decided some items are not worth existing.\n\n" +
* "This, of course, is unacceptable. Now it is your job to bug " +
* "them about it and demand a way to turn your voucher(s) into " +
* "the christmas present items you deserve!"
* ), "pages");
* items.add(book);
* }
*/
}
private static boolean createVoucher( List< ItemStack > items, String itemName )
{
final ItemStack voucher = new ItemStack( Items.PAPER );
voucher.setStackDisplayName( itemName + " Voucher" );
StackUtils.set( voucher, NbtUtils.createList( "Item: " + itemName, "Redeem at server owner / modpack author." ), "display", "Lore" );
items.add( voucher );
return true;
}
/*
* public static class BetterChristmasProperties implements IExtendedEntityProperties {
*
* public static final String identifier = Constants.modId + ".betterChristmas";
*
* public int year = 2013;
* public boolean gotPresent = false;
*
* @Override
* public void init(Entity entity, World world) { }
*
* @Override
* public void saveNBTData(NBTTagCompound compound) {
* NBTTagCompound data = new NBTTagCompound();
* data.setShort("year", (short)year);
* data.setBoolean("gotPresent", gotPresent);
* compound.setTag(identifier, data);
* }
*
* @Override
* public void loadNBTData(NBTTagCompound compound) {
* NBTTagCompound data = compound.getCompoundTag(identifier);
* if (!data.hasNoTags()) {
* year = data.getShort("year");
* gotPresent = data.getBoolean("gotPresent");
* } else year = compound.getInteger("betterChristmasYear");
* }
*
* }
*/
}
| TehStoneMan/BetterStorageToo | old_src/main/java/net/mcft/copy/betterstorage/misc/ChristmasEventHandler.java |
213,458 | package com.marz.snapprefs;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.content.res.XModuleResources;
import android.content.res.XResources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.InputFilter;
import android.util.Log;
import android.view.KeyEvent;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.marz.snapprefs.Logger.LogType;
import com.marz.snapprefs.Preferences.Prefs;
import com.marz.snapprefs.Util.DebugHelper;
import com.marz.snapprefs.Util.NotificationUtils;
import com.marz.snapprefs.Util.XposedUtils;
import java.io.File;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.LinkedHashMap;
import de.robv.android.xposed.IXposedHookInitPackageResources;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.IXposedHookZygoteInit;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XC_MethodReplacement;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_InitPackageResources.InitPackageResourcesParam;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
import static de.robv.android.xposed.XposedBridge.hookAllConstructors;
import static de.robv.android.xposed.XposedHelpers.callMethod;
import static de.robv.android.xposed.XposedHelpers.callStaticMethod;
import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
import static de.robv.android.xposed.XposedHelpers.findClass;
import static de.robv.android.xposed.XposedHelpers.getObjectField;
import static de.robv.android.xposed.XposedHelpers.getStaticObjectField;
import static de.robv.android.xposed.XposedHelpers.setObjectField;
public class HookMethods
implements IXposedHookInitPackageResources, IXposedHookLoadPackage, IXposedHookZygoteInit {
public static final String PACKAGE_NAME = HookMethods.class.getPackage().getName();
public static Activity SnapContext;
public static String MODULE_PATH = null;
public static ClassLoader classLoader;
public static XModuleResources mResources;
public static Bitmap saveImg;
static EditText editText;
static Typeface defTypeface;
static boolean haveDefTypeface;
static XModuleResources modRes;
static Context context;
static int counter = 0;
private static int snapchatVersion;
private static InitPackageResourcesParam resParam;
Class CaptionEditText;
boolean latest = false;
public static int px(float f) {
return Math.round((f * SnapContext.getResources().getDisplayMetrics().density));
}
public static String getSCUsername(ClassLoader cl) {
Class scPreferenceHandler = findClass(Obfuscator.misc.PREFERENCES_CLASS, cl);
try {
return (String) callMethod(scPreferenceHandler.newInstance(), Obfuscator.misc.GETUSERNAME_METHOD);
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
return "";
}
public static void hookAllMethods(String className, ClassLoader cl, boolean hookSubClasses, boolean hookSuperClasses) {
Log.d("snapprefs", "Starting allhook");
final Class targetClass = findClass(className, cl);
Method[] allMethods = targetClass.getDeclaredMethods();
Log.d("snapprefs", "Methods to hook: " + allMethods.length);
for (final Method baseMethod : allMethods) {
final Class<?>[] paramList = baseMethod.getParameterTypes();
final String fullMethodString = targetClass.getSimpleName() + "." + baseMethod.getName() + "(" + Arrays.toString(paramList) + ") -> " + baseMethod.getReturnType();
if (Modifier.isAbstract(baseMethod.getModifiers())) {
Log.d("snapprefs", "Abstract method: " + fullMethodString);
continue;
}
Object[] finalParam = new Object[paramList.length + 1];
System.arraycopy(paramList, 0, finalParam, 0, paramList.length);
finalParam[paramList.length] = new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
Log.d("snapprefs", "HookTrigger: " + fullMethodString);
}
};
findAndHookMethod(targetClass, baseMethod.getName(), finalParam);
Log.d("snapprefs", "Hooked method: " + fullMethodString);
}
if (hookSubClasses) {
Class[] subClasses = targetClass.getClasses();
Log.d("snapprefs", "Hooking Subclasses: " + subClasses.length);
for (Class subClass : subClasses)
hookAllMethods(subClass.getName(), cl, hookSubClasses, hookSuperClasses);
}
if (hookSuperClasses) {
Class superClass = targetClass.getSuperclass();
if (superClass == null || superClass.getSimpleName().equals("Object"))
return;
Log.d("snapprefs", "FOUND SUPERCLASS: " + superClass.getSimpleName());
hookAllMethods(superClass.getName(), cl, false, true);
}
}
@Override
public void initZygote(StartupParam startupParam) throws Throwable {
MODULE_PATH = startupParam.modulePath;
mResources = XModuleResources.createInstance(startupParam.modulePath, null);
}
@Override
public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable {
try {
if (!resparam.packageName.equals(Common.PACKAGE_SNAP))
return;
Object activityThread =
callStaticMethod(findClass("android.app.ActivityThread", null), "currentActivityThread");
Context localContext = (Context) callMethod(activityThread, "getSystemContext");
int name = R.id.name;
int checkBox = R.id.checkBox;
int friend_item = R.layout.friend_item;
int group_item = R.layout.group_item;
modRes = XModuleResources.createInstance(MODULE_PATH, resparam.res);
FriendListDialog.name = XResources.getFakeResId(modRes, name);
resparam.res.setReplacement(FriendListDialog.name, modRes.fwd(name));
FriendListDialog.checkBox = XResources.getFakeResId(modRes, checkBox);
resparam.res.setReplacement(FriendListDialog.checkBox, modRes.fwd(checkBox));
FriendListDialog.friend_item = XResources.getFakeResId(modRes, checkBox);
resparam.res.setReplacement(FriendListDialog.friend_item, modRes.fwd(friend_item));
GroupDialog.group_item = XResources.getFakeResId(modRes, group_item);
resparam.res.setReplacement(GroupDialog.group_item, modRes.fwd(group_item));
Logger.log("Initialising preferences from xposed");
try {
if (Preferences.getMap() == null || Preferences.getMap().isEmpty()) {
Logger.log("Loading map from xposed");
Preferences.loadMapFromXposed();
}
} catch (Exception e) {
Log.e("snapchat", "EXCEPTION LOADING HOOKED PREFS");
e.printStackTrace();
}
//mSavePath = Preferences.getExternalPath().getAbsolutePath() + "/Snapprefs";
//mCustomFilterLocation = Preferences.getExternalPath().getAbsolutePath() + "/Snapprefs/Filters";
//Preferences.loadMapFromXposed();
resParam = resparam;
// TODO Set up removal of button when mode is changed
// Currently requires snapchat to restart to remove the button
saveImg = BitmapFactory.decodeResource(mResources, R.drawable.save_button);
try {
HookedLayouts.addSaveButtonsAndGestures(resparam, mResources, localContext);
} catch (Resources.NotFoundException ignore) {
}
try {
NotificationUtils.handleInitPackageResources(modRes);
} catch( Resources.NotFoundException ignore) {}
if (Preferences.shouldAddGhost()) {
try {
HookedLayouts.addIcons(resparam, mResources);
} catch (Resources.NotFoundException ignore) {
}
}
if (Preferences.getBool(Prefs.INTEGRATION)) {
try {
HookedLayouts.addShareIcon(resparam);
} catch (Resources.NotFoundException ignore) {
}
}
if (Preferences.getBool(Prefs.HIDE_PEOPLE)) {
try {
Stories.addSnapprefsBtn(resparam, mResources);
} catch (Resources.NotFoundException ignore) {
}
}
//Chat.initChatSave(resparam, mResources);
try {
HookedLayouts.fullScreenFilter(resparam);
} catch (Resources.NotFoundException ignore) {
}
} catch (Exception e) {
Logger.log("Exception thrown in handleInitPackageResources", e);
}
}
@Override
public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
try {
if (!lpparam.packageName.equals(Common.PACKAGE_SNAP) && !lpparam.packageName.equals(Common.PACKAGE_SP))
return;
if(lpparam.packageName.equals(Common.PACKAGE_SP)) {
findAndHookMethod("com.marz.snapprefs.Util.CommonUtils", lpparam.classLoader, "isModuleEnabled", XC_MethodReplacement.returnConstant((BuildConfig.BUILD_TYPE == "debug" ? Common.MODULE_ENABLED_CHECK_INT : BuildConfig.VERSION_CODE)));
return;
}
try {
XposedUtils.log("----------------- SNAPPREFS HOOKED -----------------", false);
Object activityThread =
callStaticMethod(findClass("android.app.ActivityThread", null), "currentActivityThread");
context = (Context) callMethod(activityThread, "getSystemContext");
classLoader = lpparam.classLoader;
PackageInfo piSnapChat =
context.getPackageManager().getPackageInfo(lpparam.packageName, 0);
XposedUtils.log(
"SnapChat Version: " + piSnapChat.versionName + " (" +
piSnapChat.versionCode +
")", false);
XposedUtils.log("SnapPrefs Version: " + BuildConfig.VERSION_NAME + " (" +
BuildConfig.VERSION_CODE + ")", false);
if (!Obfuscator.isSupported(piSnapChat.versionCode)) {
Logger.log("This Snapchat version is unsupported", true, true);
Toast.makeText(context, "This Snapchat version is unsupported", Toast.LENGTH_SHORT).show();
return;
}
} catch (Exception e) {
XposedUtils.log("Exception while trying to get version info", e);
return;
}
findAndHookMethod("android.media.MediaRecorder", lpparam.classLoader, "setMaxDuration", int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
Logger.printFinalMessage("setMaxDuration - " + param.args[0], LogType.SAVING);
param.args[0] = 12000000;//2 mins
}
});
findAndHookMethod("android.app.Application", lpparam.classLoader, "attach", Context.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
Friendmojis.init(lpparam);
DebugHelper.init(lpparam);
Logger.loadSelectedLogTypes();
Logger.log("Loading map from xposed");
Preferences.loadMapFromXposed();
Logger.log("Application hook: " + param.thisObject.getClass().getCanonicalName());
findAndHookMethod(Obfuscator.timer.RECORDING_MESSAGE_HOOK_CLASS, lpparam.classLoader, Obfuscator.timer.RECORDING_MESSAGE_HOOK_METHOD, Message.class, new XC_MethodHook() {
boolean internallyCalled = false;
int maxRecordTime = Integer.parseInt(Preferences.getString(Prefs.MAX_RECORDING_TIME).trim()) * 1000;
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
// If maxRecordTime is same as SC timecap, let SC perform as normal
if (maxRecordTime > 10000) {
super.beforeHookedMethod(param);
Message message = (Message) param.args[0];
Logger.log("HandleMessageId: " + message.what);
if (message.what == 15 && !internallyCalled) {
if (maxRecordTime > 10000) {
internallyCalled = true;
Handler handler = message.getTarget();
Message newMessage = Message.obtain(handler, 15);
handler.sendMessageDelayed(newMessage, maxRecordTime - 10000);
Logger.log(String.format("Triggering video end in %s more ms", maxRecordTime - 10000));
}
param.setResult(null);
} else if (internallyCalled)
internallyCalled = false;
}
}
});
XC_MethodHook initHook = new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
//Preferences.loadMapFromXposed();
SnapContext = (Activity) param.thisObject;
Logger.log("Loading map from xposed");
Preferences.loadMapFromXposed();
if (!Preferences.getBool(Prefs.ACCEPTED_TOU)) {//new ContextThemeWrapper(context.createPackageContext("com.marz.snapprefs", Context.CONTEXT_IGNORE_SECURITY), R.style.AppCompatDialog)
AlertDialog.Builder builder = new AlertDialog.Builder(SnapContext)
.setTitle("ToU and Privacy Policy")
.setMessage("You haven't accepted our Terms of Use and Privacy. Please read it carefully and accept it, otherwise you will not be able to use our product. Open the Snapprefs app to do that.")
.setIcon(android.R.drawable.ic_dialog_alert);
builder.setCancelable(false);
final AlertDialog dialog = builder.create();
dialog.setCanceledOnTouchOutside(false);
dialog.show();
return;
}
boolean isNull = SnapContext == null;
Logger.log("SNAPCONTEXT, NULL? - " + isNull, true);
// Fallback method to force the MediaRecorder implementation in Snapchat
// XposedHelpers.findAndHookMethod("com.snapchat.android.camera.videocamera.recordingpreferences.VideoRecorderFactory", lpparam.classLoader, "b", XC_MethodReplacement.returnConstant(false));
//SNAPPREFS
Saving.initSaving(lpparam, mResources, SnapContext);
//NewSaving.initSaving(lpparam);
Lens.initLens(lpparam, mResources, SnapContext);
File vfilters = new File(
Preferences.getExternalPath() +
"/Snapprefs/VisualFilters/xpro_map.png");
if (vfilters.exists()) {
VisualFilters.initVisualFilters(lpparam);
} else {
Toast.makeText(context, "VisualFilter files are missing, download them!", Toast.LENGTH_SHORT).show();
}
if (Preferences.getBool(Prefs.HIDE_LIVE) || Preferences.getBool(Prefs.HIDE_PEOPLE) ||
Preferences.getBool(Prefs.DISCOVER_UI)) {
Stories.initStories(lpparam);
}
if (Preferences.getBool(Prefs.GROUPS)) {
Groups.initGroups(lpparam);
}
if (Preferences.shouldAddGhost()) {
HookedLayouts.initVisiblity(lpparam);
}
if (Preferences.getBool(Prefs.MULTI_FILTER)) {
MultiFilter.initMultiFilter(lpparam, mResources, SnapContext);
}
if (Preferences.getBool(Prefs.DISCOVER_SNAP)) {
DataSaving.blockDsnap(lpparam);
}
if (Preferences.getBool(Prefs.STORY_PRELOAD)) {
DataSaving.blockStoryPreLoad(lpparam);
}
if (Preferences.getBool(Prefs.DISCOVER_UI)) {
DataSaving.blockFromUi(lpparam);
}
if (Preferences.getBool(Prefs.SPEED)) {
Spoofing.initSpeed(lpparam, SnapContext);
}
if (Preferences.getBool(Prefs.LOCATION)) {
Spoofing.initLocation(lpparam, SnapContext);
}
if (Preferences.getBool(Prefs.WEATHER)) {
Spoofing.initWeather(lpparam, SnapContext);
}
if (Preferences.getBool(Prefs.PAINT_TOOLS)) {
PaintTools.initPaint(lpparam, mResources);
}
if (Preferences.getBool(Prefs.TIMER_COUNTER)) {
Misc.initTimer(lpparam, mResources);
}
ClassLoader cl = lpparam.classLoader;
if (Preferences.getBool(Prefs.CHAT_AUTO_SAVE)) {
Chat.initTextSave(lpparam, SnapContext);
}
if (Preferences.getBool(Prefs.CHAT_LOGGING))
Chat.initChatLogging(lpparam, SnapContext);
if (Preferences.getBool(Prefs.CHAT_MEDIA_SAVE)) {
Chat.initImageSave(lpparam, mResources);
}
if (Preferences.getBool(Prefs.INTEGRATION)) {
HookedLayouts.initIntegration(lpparam, mResources);
}
Misc.forceNavBar(lpparam, Preferences.getInt(Prefs.FORCE_NAVBAR));
getEditText(lpparam);
// COMPLETED 9.39.5
findAndHookMethod(Obfuscator.save.SCREENSHOTDETECTOR_CLASS, lpparam.classLoader, Obfuscator.save.SCREENSHOTDETECTOR_RUN, LinkedHashMap.class, XC_MethodReplacement.DO_NOTHING);
findAndHookMethod(Obfuscator.save.SNAPSTATEMESSAGE_CLASS, lpparam.classLoader, Obfuscator.save.SNAPSTATEMESSAGE_SETSCREENSHOTCOUNT, Long.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
param.args[0] = 0L;
Logger.log("StateBuilder.setScreenshotCount set to 0L", true);
}
});
if (Preferences.getBool(Prefs.CUSTOM_STICKER)) {
Stickers.initStickers(lpparam, modRes, SnapContext);
}
if (Preferences.getLicence() > 0)
Premium.initPremium(lpparam);
/*hookAllConstructors(ahO, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
Logger.log("EventType: " + getObjectField(param.thisObject, "mEventName"));
}
});
findAndHookMethod("ahO", cl, "a", String.class, Object.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
Logger.log(String.format("Object event [Key:%s][Object:%s]", param.args[0], param.args[1]));
}
});
findAndHookMethod("ahO", cl, "a", String.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
Logger.log(String.format("String event [Key:%s]", param.args[0]));
}
});*/
}
};
findAndHookMethod("com.snapchat.android.LandingPageActivity",
lpparam.classLoader, "onCreate", Bundle.class, initHook);
findAndHookMethod("com.snapchat.android.LandingPageActivity",
lpparam.classLoader, "onResume", initHook);
findAndHookMethod(Obfuscator.save.LANDINGPAGEACTIVITY_CLASS, lpparam.classLoader, "onSnapCapturedEvent", findClass(Obfuscator.visualfilters.SNAPCHAPTUREDEVENT_CLASS, lpparam.classLoader), new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
VisualFilters.added.clear();
VisualFilters.added2.clear();
MultiFilter.added.clear();
PaintTools.once = false;
XposedBridge.log("CLEARING ADDED");
}
});
/*findAndHookMethod("com.snapchat.android.Timber", lpparam.classLoader, "c", String.class, String.class, Object[].class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Logger.log("TIMBER: " + param.args[0] + " : " + param.args[1], true);
}
});*/
//Showing lenses or not
// Old code - Used when share button was placed above the TAKE PICTURE button
/*
findAndHookMethod(Obfuscator.icons.ICON_HANDLER_CLASS, lpparam.classLoader, Obfuscator.icons.SHOW_LENS, boolean.class, boolean.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (HookedLayouts.upload != null) {
if ((boolean) param.args[0]) {
HookedLayouts.upload.setVisibility(View.INVISIBLE);
} else {
HookedLayouts.upload.setVisibility(View.VISIBLE);
}
}
}
});
//Recording of video ended
findAndHookMethod(Obfuscator.icons.ICON_HANDLER_CLASS, lpparam.classLoader, Obfuscator.icons.RECORDING_VIDEO, boolean.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (HookedLayouts.upload != null)
HookedLayouts.upload.setVisibility(View.VISIBLE);
}
});*/
// COMPLETED 9.39.5
for (String s : Obfuscator.ROOTDETECTOR_METHODS) {
findAndHookMethod(Obfuscator.ROOTDETECTOR_CLASS, lpparam.classLoader, s, XC_MethodReplacement.returnConstant(false));
Logger.log("ROOTCHECK: " + s, true);
}
// External class - Belongs to android
//Gabe is a douche
// COMPLETED 9.39.5
final Class<?> receivedSnapClass =
findClass(Obfuscator.save.RECEIVEDSNAP_CLASS, lpparam.classLoader);
try {
XposedHelpers.setStaticIntField(receivedSnapClass, "SECOND_MAX_VIDEO_DURATION", 99999);
//Better quality images
final Class<?> snapMediaUtils =
findClass("com.snapchat.android.util.SnapMediaUtils", lpparam.classLoader);
XposedHelpers.setStaticIntField(snapMediaUtils, "IGNORED_COMPRESSION_VALUE", 100);
XposedHelpers.setStaticIntField(snapMediaUtils, "RAW_THUMBNAIL_ENCODING_QUALITY", 100);
final Class<?> profileImageUtils =
findClass("com.snapchat.android.util.profileimages.ProfileImageUtils", lpparam.classLoader);
XposedHelpers.setStaticIntField(profileImageUtils, "COMPRESSION_QUALITY", 100);
final Class<?> snapImageBryo =
findClass(Obfuscator.save.SNAPIMAGEBRYO_CLASS, lpparam.classLoader);
XposedHelpers.setStaticIntField(snapImageBryo, "JPEG_ENCODING_QUALITY", 100);
Logger.log("Setting static fields", true);
} catch (Throwable t) {
Logger.log("Setting static fields failed :(", true);
Logger.log(t.toString());
} /*For viewing longer videos?*/
if (Preferences.getBool(Prefs.CAPTION_UNLIMITED_VANILLA)) {
// New unlimited captions function
// COMPLETED 9.39.5
XposedHelpers.findAndHookMethod(Obfuscator.misc.CAPTIONVIEW, lpparam.classLoader, Obfuscator.misc.CAPTIONVIEW_TEXT_LIMITER, int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
param.args[0] = 999999999;
}
});
String snapCaptionView =
"com.snapchat.android.app.shared.ui.caption.SnapCaptionView";
hookAllConstructors(findClass(snapCaptionView, lpparam.classLoader), new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (Preferences.getBool(Prefs.CAPTION_UNLIMITED_VANILLA)) {
XposedUtils.log("Unlimited vanilla captions - 1");
EditText vanillaCaptionEditText = (EditText) param.thisObject;
// Set single lines mode to false
vanillaCaptionEditText.setSingleLine(false);
vanillaCaptionEditText.setFilters(new InputFilter[0]);
// Remove actionDone IME option, by only setting flagNoExtractUi
vanillaCaptionEditText.setImeOptions(EditorInfo.IME_ACTION_NONE);
// Remove listener hiding keyboard when enter is pressed by setting the listener to null
vanillaCaptionEditText.setOnEditorActionListener(null);
// Remove listener for cutting of text when the first line is full by setting the text change listeners list to null
setObjectField(vanillaCaptionEditText, "mListeners", null);
}
}
});
XposedHelpers.findAndHookMethod("com.snapchat.android.app.shared.ui.caption.SnapCaptionView", lpparam.classLoader, "onCreateInputConnection", EditorInfo.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
if (Preferences.getBool(Prefs.CAPTION_UNLIMITED_VANILLA)) {
XposedUtils.log("Unlimited vanilla captions - 2");
EditorInfo editorInfo = (EditorInfo) param.args[0];
editorInfo.imeOptions = EditorInfo.IME_ACTION_NONE;
}
}
});
XposedHelpers.findAndHookMethod("TX$3", lpparam.classLoader, "onEditorAction", TextView.class, int.class, KeyEvent.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Logger.printFinalMessage("onEditorAction: int= " + param.args[1], LogType.SAVING);
}
});
//findAndHookMethod("com.snapchat.android.ui.caption.CaptionEditText", lpparam.classLoader, "n", XC_MethodReplacement.DO_NOTHING);
}
// VanillaCaptionEditText was moved from an inner-class to a separate class in 8.1.0
// TODO Find below class - ENTIRE PACKAGE REFACTORED - DONE?
/*String vanillaCaptionEditTextClassName =
"com.snapchat.android.ui.caption.VanillaCaptionEditText";
hookAllConstructors(findClass(vanillaCaptionEditTextClassName, lpparam.classLoader), new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (Preferences.getBool(Prefs.CAPTION_UNLIMITED_VANILLA)) {
XposedUtils.log("Unlimited vanilla captions");
EditText vanillaCaptionEditText = (EditText) param.thisObject;
// Set single lines mode to false
vanillaCaptionEditText.setSingleLine(false);
vanillaCaptionEditText.setFilters(new InputFilter[0]);
// Remove actionDone IME option, by only setting flagNoExtractUi
vanillaCaptionEditText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
// Remove listener hiding keyboard when enter is pressed by setting the listener to null
vanillaCaptionEditText.setOnEditorActionListener(null);
// Remove listener for cutting of text when the first line is full by setting the text change listeners list to null
setObjectField(vanillaCaptionEditText, "mListeners", null);
}
}
});
//This is all Gabe's fault
// FatCaptionEditText was moved from an inner-class to a separate class in 8.1.0
// TODO Find below class - ENTIRE PACKAGE REFACTORED
String fatCaptionEditTextClassName =
"com.snapchat.android.ui.caption.FatCaptionEditText";
hookAllConstructors(findClass(fatCaptionEditTextClassName, lpparam.classLoader), new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (Preferences.getBool(Prefs.CAPTION_UNLIMITED_FAT)) {
XposedUtils.log("Unlimited fat captions");
EditText fatCaptionEditText = (EditText) param.thisObject;
// Remove InputFilter with character limit
fatCaptionEditText.setFilters(new InputFilter[0]);
// Remove actionDone IME option, by only setting flagNoExtractUi
fatCaptionEditText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
// Remove listener hiding keyboard when enter is pressed by setting the listener to null
fatCaptionEditText.setOnEditorActionListener(null);
// Remove listener for removing new lines by setting the text change listeners list to null
setObjectField(fatCaptionEditText, "mListeners", null);
}
}
});*/
//SNAPSHARE
Sharing.initSharing(lpparam, mResources);
//SNAPPREFS
if (Preferences.getBool(Prefs.HIDE_BF)) {
// COMPLETED 9.39.5
findAndHookMethod("com.snapchat.android.model.Friend", lpparam.classLoader, Obfuscator.FRIENDS_BF, new XC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param) {
//logging("Snap Prefs: Removing Best-friends");
return false;
}
});
}
/*if (hideRecent == true){
findAndHookMethod(Common.Class_Friend, lpparam.classLoader, Common.Method_Recent, new XC_MethodReplacement(){
@Override
protected Object replaceHookedMethod(MethodHookParam param)
throws Throwable {
logging("Snap Prefs: Removing Recents");
return false;
}
});
}*/
if (Preferences.getBool(Prefs.CUSTOM_FILTER)) {
addFilter(lpparam);
}
if (Preferences.getBool(Prefs.SELECT_ALL)) {
HookSendList.initSelectAll(lpparam);
}
//Completed 9.39.5
findAndHookMethod("com.snapchat.android.camera.CameraFragment", lpparam.classLoader, "onKeyDownEvent", XposedHelpers.findClass(Obfuscator.flash.KEYEVENT_CLASS, lpparam.classLoader), new XC_MethodHook() {
public boolean frontFlash = false;
public long lastChange = System.currentTimeMillis();
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
//this.mIsVisible && this.n.e() != 0 && this.n.e() != 2 && !this.n.c()
boolean isVisible = XposedHelpers.getBooleanField(param.thisObject, Obfuscator.flash.ISVISIBLE_FIELD);
Object swipeLayout = getObjectField(param.thisObject, Obfuscator.flash.SWIPELAYOUT_FIELD);
int resId = (int) getObjectField(swipeLayout, Obfuscator.flash.GETRESID_OBJECT);
boolean c = (boolean) XposedHelpers.callMethod(swipeLayout, Obfuscator.flash.ISSCROLLED_METHOD);
if (isVisible && resId != 0 && resId != 2 && !c) {
int keycode = XposedHelpers.getIntField(param.args[0], Obfuscator.flash.KEYCODE_FIELD);
int flashkey;
if(Preferences.getBool(Prefs.FLASH_KEY) == true){
flashkey = KeyEvent.KEYCODE_VOLUME_UP;
} else {
flashkey = KeyEvent.KEYCODE_VOLUME_DOWN;
}
if (keycode == flashkey) {
if (System.currentTimeMillis() - lastChange > 500) {
lastChange = System.currentTimeMillis();
frontFlash = !frontFlash;
XposedHelpers.callMethod(getObjectField(param.thisObject, Obfuscator.flash.OVERLAY_FIELD), Obfuscator.flash.FLASH_METHOD, new Class[]{boolean.class}, frontFlash);
}
param.setResult(null);
}
}
}
});
if (Preferences.getBool(Prefs.AUTO_ADVANCE))
XposedHelpers.findAndHookMethod(Obfuscator.stories.AUTOADVANCE_CLASS, lpparam.classLoader, Obfuscator.stories.AUTOADVANCE_METHOD, XC_MethodReplacement.returnConstant(false));
}
});
} catch (Exception e) {
Logger.log("Exception thrown in handleLoadPackage", e);
}
}
private void addFilter(LoadPackageParam lpparam) {
//Replaces the batteryfilter with our custom one
//Pedro broke this part - He didn't really.
findAndHookMethod(ImageView.class, "setImageResource", int.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
try {
XModuleResources modRes = XModuleResources.createInstance(MODULE_PATH, null);
ImageView iv = (ImageView) param.thisObject;
int resId = (Integer) param.args[0];
if (iv != null)
if (iv.getContext().getPackageName().equals("com.snapchat.android"))
if (resId ==
iv.getContext().getResources().getIdentifier("camera_batteryfilter_full", "drawable", "com.snapchat.android"))
if (Preferences.getFilterPath() == null) {
iv.setImageDrawable(modRes.getDrawable(R.drawable.custom_filter_1));
Logger.log("Replaced batteryfilter from R.drawable", true);
} else {
if (Preferences.getInt(Prefs.CUSTOM_FILTER_TYPE) == 0) {
iv.setImageDrawable(Drawable.createFromPath(
Preferences.getFilterPath() +
"/fullscreen_filter.png"));
//iv.setImageDrawable(modRes.getDrawable(R.drawable.imsafe));
} else if (Preferences.getInt(Prefs.CUSTOM_FILTER_TYPE) == 1) {
//iv.setImageDrawable(modRes.getDrawable(R.drawable.imsafe));
iv.setImageDrawable(Drawable.createFromPath(
Preferences.getFilterPath() +
"/banner_filter.png"));
}
Logger.log(
"Replaced batteryfilter from " +
Preferences.getFilterPath() +
" Type: " +
Preferences.getInt(Prefs.CUSTOM_FILTER_TYPE), true);
}
//else if (resId == iv.getContext().getResources().getIdentifier("camera_batteryfilter_empty", "drawable", "com.snapchat.android"))
// iv.setImageDrawable(modRes.getDrawable(R.drawable.custom_filter_1)); quick switch to a 2nd filter?
} catch (Throwable t) {
XposedBridge.log(t);
}
}
});
//Used to emulate the battery status as being FULL -> above 90%
final Class<?> batteryInfoProviderEnum =
findClass("com.snapchat.android.app.shared.feature.preview.model.filter.BatteryLevel", lpparam.classLoader); //prev. com.snapchat.android.app.shared.model.filter.BatteryLevel
findAndHookMethod(Obfuscator.spoofing.BATTERY_FILTER, lpparam.classLoader, "a", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
Object battery = getStaticObjectField(batteryInfoProviderEnum, Obfuscator.spoofing.BATTERY_FULL_ENUM);
param.setResult(battery);
}
});
}
public void getEditText(LoadPackageParam lpparam) {
//TODO Find below hook - ENTIRE PACKAGE REFACTOR
this.CaptionEditText =
XposedHelpers.findClass("com.snapchat.android.app.shared.ui.caption.SnapCaptionView", lpparam.classLoader);
XposedBridge.hookAllConstructors(this.CaptionEditText, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param)
throws PackageManager.NameNotFoundException {
editText = (EditText) param.thisObject;
if (!haveDefTypeface) {
defTypeface = editText.getTypeface();
haveDefTypeface = true;
}
}
});
}
}
| M1kep/Snapprefs | app/src/main/java/com/marz/snapprefs/HookMethods.java |
213,461 | package com.dev.fullstackdemo;
import com.dev.fullstackdemo.domain.*;
import com.dev.fullstackdemo.service.UserServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.Arrays;
@SpringBootApplication
public class FullstackdemoApplication implements CommandLineRunner {
private static final Logger LOGGER = LoggerFactory.getLogger(FullstackdemoApplication.class);
@Autowired
private OwnerRepository ownerRepository;
@Autowired
private CarRepository carRepository;
@Autowired
private UserServiceImpl userService;
public static void main(String[] args) {
SpringApplication.run(FullstackdemoApplication.class, args);
LOGGER.info("Application started");
}
// use CommandLineRunner to implement additional logic before application is started
@Override
public void run(String... args) {
Owner ownerOne = new Owner("Kotsanai", "Chikosi");
Owner ownerTwo = new Owner("Sam", "Douche");
ownerRepository.saveAll(Arrays.asList(ownerOne, ownerTwo));
Car carA = new Car("Ford", "Mustang", "Red", "222-3321", 1999, 24000, ownerTwo);
Car carB = new Car("Nissan", "Murano", "Black", "108-7821", 2016, 34000, ownerOne);
Car carC = new Car("Nissan", "Ariya", "White", "221-4511", 2023, 54000, ownerOne);
carRepository.saveAll(Arrays.asList(carA, carB, carC));
CustomUserDetails customUserDetailsOne = new CustomUserDetails("admin", "user", "[email protected]", "pw","[email protected]", Arrays.asList("ADMIN", "USER"));
CustomUserDetails customUserDetailsTwo = new CustomUserDetails("test", "user", "[email protected]", "pw","[email protected]", Arrays.asList("USER"));
Arrays.asList(customUserDetailsOne, customUserDetailsTwo).forEach(customUser -> userService.saveUser(customUser));
//fetch all cars
LOGGER.info("Fetching data");
carRepository.findAll().forEach(car -> LOGGER.info("Vehicle -> " + car.getBrand() + ", " + car.getModel()));
}
}
| kchikosi/fullstackdemo | src/main/java/com/dev/fullstackdemo/FullstackdemoApplication.java |
213,462 | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
import org.hl7.fhir.dstu3.model.EnumFactory;
public class V3OrderableDrugFormEnumFactory implements EnumFactory<V3OrderableDrugForm> {
public V3OrderableDrugForm fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return V3OrderableDrugForm._ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return V3OrderableDrugForm.APPFUL;
if ("DROP".equals(codeString))
return V3OrderableDrugForm.DROP;
if ("NDROP".equals(codeString))
return V3OrderableDrugForm.NDROP;
if ("OPDROP".equals(codeString))
return V3OrderableDrugForm.OPDROP;
if ("ORDROP".equals(codeString))
return V3OrderableDrugForm.ORDROP;
if ("OTDROP".equals(codeString))
return V3OrderableDrugForm.OTDROP;
if ("PUFF".equals(codeString))
return V3OrderableDrugForm.PUFF;
if ("SCOOP".equals(codeString))
return V3OrderableDrugForm.SCOOP;
if ("SPRY".equals(codeString))
return V3OrderableDrugForm.SPRY;
if ("_DispensableDrugForm".equals(codeString))
return V3OrderableDrugForm._DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return V3OrderableDrugForm._GASDRUGFORM;
if ("GASINHL".equals(codeString))
return V3OrderableDrugForm.GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return V3OrderableDrugForm._GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return V3OrderableDrugForm.AER;
if ("BAINHL".equals(codeString))
return V3OrderableDrugForm.BAINHL;
if ("INHLSOL".equals(codeString))
return V3OrderableDrugForm.INHLSOL;
if ("MDINHL".equals(codeString))
return V3OrderableDrugForm.MDINHL;
if ("NASSPRY".equals(codeString))
return V3OrderableDrugForm.NASSPRY;
if ("DERMSPRY".equals(codeString))
return V3OrderableDrugForm.DERMSPRY;
if ("FOAM".equals(codeString))
return V3OrderableDrugForm.FOAM;
if ("FOAMAPL".equals(codeString))
return V3OrderableDrugForm.FOAMAPL;
if ("RECFORM".equals(codeString))
return V3OrderableDrugForm.RECFORM;
if ("VAGFOAM".equals(codeString))
return V3OrderableDrugForm.VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return V3OrderableDrugForm.VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return V3OrderableDrugForm.RECSPRY;
if ("VAGSPRY".equals(codeString))
return V3OrderableDrugForm.VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return V3OrderableDrugForm._GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return V3OrderableDrugForm.INHL;
if ("BAINHLPWD".equals(codeString))
return V3OrderableDrugForm.BAINHLPWD;
if ("INHLPWD".equals(codeString))
return V3OrderableDrugForm.INHLPWD;
if ("MDINHLPWD".equals(codeString))
return V3OrderableDrugForm.MDINHLPWD;
if ("NASINHL".equals(codeString))
return V3OrderableDrugForm.NASINHL;
if ("ORINHL".equals(codeString))
return V3OrderableDrugForm.ORINHL;
if ("PWDSPRY".equals(codeString))
return V3OrderableDrugForm.PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return V3OrderableDrugForm.SPRYADAPT;
if ("_Liquid".equals(codeString))
return V3OrderableDrugForm._LIQUID;
if ("LIQCLN".equals(codeString))
return V3OrderableDrugForm.LIQCLN;
if ("LIQSOAP".equals(codeString))
return V3OrderableDrugForm.LIQSOAP;
if ("SHMP".equals(codeString))
return V3OrderableDrugForm.SHMP;
if ("OIL".equals(codeString))
return V3OrderableDrugForm.OIL;
if ("TOPOIL".equals(codeString))
return V3OrderableDrugForm.TOPOIL;
if ("SOL".equals(codeString))
return V3OrderableDrugForm.SOL;
if ("IPSOL".equals(codeString))
return V3OrderableDrugForm.IPSOL;
if ("IRSOL".equals(codeString))
return V3OrderableDrugForm.IRSOL;
if ("DOUCHE".equals(codeString))
return V3OrderableDrugForm.DOUCHE;
if ("ENEMA".equals(codeString))
return V3OrderableDrugForm.ENEMA;
if ("OPIRSOL".equals(codeString))
return V3OrderableDrugForm.OPIRSOL;
if ("IVSOL".equals(codeString))
return V3OrderableDrugForm.IVSOL;
if ("ORALSOL".equals(codeString))
return V3OrderableDrugForm.ORALSOL;
if ("ELIXIR".equals(codeString))
return V3OrderableDrugForm.ELIXIR;
if ("RINSE".equals(codeString))
return V3OrderableDrugForm.RINSE;
if ("SYRUP".equals(codeString))
return V3OrderableDrugForm.SYRUP;
if ("RECSOL".equals(codeString))
return V3OrderableDrugForm.RECSOL;
if ("TOPSOL".equals(codeString))
return V3OrderableDrugForm.TOPSOL;
if ("LIN".equals(codeString))
return V3OrderableDrugForm.LIN;
if ("MUCTOPSOL".equals(codeString))
return V3OrderableDrugForm.MUCTOPSOL;
if ("TINC".equals(codeString))
return V3OrderableDrugForm.TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return V3OrderableDrugForm._LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return V3OrderableDrugForm.CRM;
if ("NASCRM".equals(codeString))
return V3OrderableDrugForm.NASCRM;
if ("OPCRM".equals(codeString))
return V3OrderableDrugForm.OPCRM;
if ("ORCRM".equals(codeString))
return V3OrderableDrugForm.ORCRM;
if ("OTCRM".equals(codeString))
return V3OrderableDrugForm.OTCRM;
if ("RECCRM".equals(codeString))
return V3OrderableDrugForm.RECCRM;
if ("TOPCRM".equals(codeString))
return V3OrderableDrugForm.TOPCRM;
if ("VAGCRM".equals(codeString))
return V3OrderableDrugForm.VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return V3OrderableDrugForm.VAGCRMAPL;
if ("LTN".equals(codeString))
return V3OrderableDrugForm.LTN;
if ("TOPLTN".equals(codeString))
return V3OrderableDrugForm.TOPLTN;
if ("OINT".equals(codeString))
return V3OrderableDrugForm.OINT;
if ("NASOINT".equals(codeString))
return V3OrderableDrugForm.NASOINT;
if ("OINTAPL".equals(codeString))
return V3OrderableDrugForm.OINTAPL;
if ("OPOINT".equals(codeString))
return V3OrderableDrugForm.OPOINT;
if ("OTOINT".equals(codeString))
return V3OrderableDrugForm.OTOINT;
if ("RECOINT".equals(codeString))
return V3OrderableDrugForm.RECOINT;
if ("TOPOINT".equals(codeString))
return V3OrderableDrugForm.TOPOINT;
if ("VAGOINT".equals(codeString))
return V3OrderableDrugForm.VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return V3OrderableDrugForm.VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return V3OrderableDrugForm.GEL;
if ("GELAPL".equals(codeString))
return V3OrderableDrugForm.GELAPL;
if ("NASGEL".equals(codeString))
return V3OrderableDrugForm.NASGEL;
if ("OPGEL".equals(codeString))
return V3OrderableDrugForm.OPGEL;
if ("OTGEL".equals(codeString))
return V3OrderableDrugForm.OTGEL;
if ("TOPGEL".equals(codeString))
return V3OrderableDrugForm.TOPGEL;
if ("URETHGEL".equals(codeString))
return V3OrderableDrugForm.URETHGEL;
if ("VAGGEL".equals(codeString))
return V3OrderableDrugForm.VAGGEL;
if ("VGELAPL".equals(codeString))
return V3OrderableDrugForm.VGELAPL;
if ("PASTE".equals(codeString))
return V3OrderableDrugForm.PASTE;
if ("PUD".equals(codeString))
return V3OrderableDrugForm.PUD;
if ("TPASTE".equals(codeString))
return V3OrderableDrugForm.TPASTE;
if ("SUSP".equals(codeString))
return V3OrderableDrugForm.SUSP;
if ("ITSUSP".equals(codeString))
return V3OrderableDrugForm.ITSUSP;
if ("OPSUSP".equals(codeString))
return V3OrderableDrugForm.OPSUSP;
if ("ORSUSP".equals(codeString))
return V3OrderableDrugForm.ORSUSP;
if ("ERSUSP".equals(codeString))
return V3OrderableDrugForm.ERSUSP;
if ("ERSUSP12".equals(codeString))
return V3OrderableDrugForm.ERSUSP12;
if ("ERSUSP24".equals(codeString))
return V3OrderableDrugForm.ERSUSP24;
if ("OTSUSP".equals(codeString))
return V3OrderableDrugForm.OTSUSP;
if ("RECSUSP".equals(codeString))
return V3OrderableDrugForm.RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return V3OrderableDrugForm._SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return V3OrderableDrugForm.BAR;
if ("BARSOAP".equals(codeString))
return V3OrderableDrugForm.BARSOAP;
if ("MEDBAR".equals(codeString))
return V3OrderableDrugForm.MEDBAR;
if ("CHEWBAR".equals(codeString))
return V3OrderableDrugForm.CHEWBAR;
if ("BEAD".equals(codeString))
return V3OrderableDrugForm.BEAD;
if ("CAKE".equals(codeString))
return V3OrderableDrugForm.CAKE;
if ("CEMENT".equals(codeString))
return V3OrderableDrugForm.CEMENT;
if ("CRYS".equals(codeString))
return V3OrderableDrugForm.CRYS;
if ("DISK".equals(codeString))
return V3OrderableDrugForm.DISK;
if ("FLAKE".equals(codeString))
return V3OrderableDrugForm.FLAKE;
if ("GRAN".equals(codeString))
return V3OrderableDrugForm.GRAN;
if ("GUM".equals(codeString))
return V3OrderableDrugForm.GUM;
if ("PAD".equals(codeString))
return V3OrderableDrugForm.PAD;
if ("MEDPAD".equals(codeString))
return V3OrderableDrugForm.MEDPAD;
if ("PATCH".equals(codeString))
return V3OrderableDrugForm.PATCH;
if ("TPATCH".equals(codeString))
return V3OrderableDrugForm.TPATCH;
if ("TPATH16".equals(codeString))
return V3OrderableDrugForm.TPATH16;
if ("TPATH24".equals(codeString))
return V3OrderableDrugForm.TPATH24;
if ("TPATH2WK".equals(codeString))
return V3OrderableDrugForm.TPATH2WK;
if ("TPATH72".equals(codeString))
return V3OrderableDrugForm.TPATH72;
if ("TPATHWK".equals(codeString))
return V3OrderableDrugForm.TPATHWK;
if ("PELLET".equals(codeString))
return V3OrderableDrugForm.PELLET;
if ("PILL".equals(codeString))
return V3OrderableDrugForm.PILL;
if ("CAP".equals(codeString))
return V3OrderableDrugForm.CAP;
if ("ORCAP".equals(codeString))
return V3OrderableDrugForm.ORCAP;
if ("ENTCAP".equals(codeString))
return V3OrderableDrugForm.ENTCAP;
if ("ERENTCAP".equals(codeString))
return V3OrderableDrugForm.ERENTCAP;
if ("ERCAP".equals(codeString))
return V3OrderableDrugForm.ERCAP;
if ("ERCAP12".equals(codeString))
return V3OrderableDrugForm.ERCAP12;
if ("ERCAP24".equals(codeString))
return V3OrderableDrugForm.ERCAP24;
if ("ERECCAP".equals(codeString))
return V3OrderableDrugForm.ERECCAP;
if ("TAB".equals(codeString))
return V3OrderableDrugForm.TAB;
if ("ORTAB".equals(codeString))
return V3OrderableDrugForm.ORTAB;
if ("BUCTAB".equals(codeString))
return V3OrderableDrugForm.BUCTAB;
if ("SRBUCTAB".equals(codeString))
return V3OrderableDrugForm.SRBUCTAB;
if ("CAPLET".equals(codeString))
return V3OrderableDrugForm.CAPLET;
if ("CHEWTAB".equals(codeString))
return V3OrderableDrugForm.CHEWTAB;
if ("CPTAB".equals(codeString))
return V3OrderableDrugForm.CPTAB;
if ("DISINTAB".equals(codeString))
return V3OrderableDrugForm.DISINTAB;
if ("DRTAB".equals(codeString))
return V3OrderableDrugForm.DRTAB;
if ("ECTAB".equals(codeString))
return V3OrderableDrugForm.ECTAB;
if ("ERECTAB".equals(codeString))
return V3OrderableDrugForm.ERECTAB;
if ("ERTAB".equals(codeString))
return V3OrderableDrugForm.ERTAB;
if ("ERTAB12".equals(codeString))
return V3OrderableDrugForm.ERTAB12;
if ("ERTAB24".equals(codeString))
return V3OrderableDrugForm.ERTAB24;
if ("ORTROCHE".equals(codeString))
return V3OrderableDrugForm.ORTROCHE;
if ("SLTAB".equals(codeString))
return V3OrderableDrugForm.SLTAB;
if ("VAGTAB".equals(codeString))
return V3OrderableDrugForm.VAGTAB;
if ("POWD".equals(codeString))
return V3OrderableDrugForm.POWD;
if ("TOPPWD".equals(codeString))
return V3OrderableDrugForm.TOPPWD;
if ("RECPWD".equals(codeString))
return V3OrderableDrugForm.RECPWD;
if ("VAGPWD".equals(codeString))
return V3OrderableDrugForm.VAGPWD;
if ("SUPP".equals(codeString))
return V3OrderableDrugForm.SUPP;
if ("RECSUPP".equals(codeString))
return V3OrderableDrugForm.RECSUPP;
if ("URETHSUPP".equals(codeString))
return V3OrderableDrugForm.URETHSUPP;
if ("VAGSUPP".equals(codeString))
return V3OrderableDrugForm.VAGSUPP;
if ("SWAB".equals(codeString))
return V3OrderableDrugForm.SWAB;
if ("MEDSWAB".equals(codeString))
return V3OrderableDrugForm.MEDSWAB;
if ("WAFER".equals(codeString))
return V3OrderableDrugForm.WAFER;
throw new IllegalArgumentException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode(V3OrderableDrugForm code) {
if (code == V3OrderableDrugForm._ADMINISTRABLEDRUGFORM)
return "_AdministrableDrugForm";
if (code == V3OrderableDrugForm.APPFUL)
return "APPFUL";
if (code == V3OrderableDrugForm.DROP)
return "DROP";
if (code == V3OrderableDrugForm.NDROP)
return "NDROP";
if (code == V3OrderableDrugForm.OPDROP)
return "OPDROP";
if (code == V3OrderableDrugForm.ORDROP)
return "ORDROP";
if (code == V3OrderableDrugForm.OTDROP)
return "OTDROP";
if (code == V3OrderableDrugForm.PUFF)
return "PUFF";
if (code == V3OrderableDrugForm.SCOOP)
return "SCOOP";
if (code == V3OrderableDrugForm.SPRY)
return "SPRY";
if (code == V3OrderableDrugForm._DISPENSABLEDRUGFORM)
return "_DispensableDrugForm";
if (code == V3OrderableDrugForm._GASDRUGFORM)
return "_GasDrugForm";
if (code == V3OrderableDrugForm.GASINHL)
return "GASINHL";
if (code == V3OrderableDrugForm._GASLIQUIDMIXTURE)
return "_GasLiquidMixture";
if (code == V3OrderableDrugForm.AER)
return "AER";
if (code == V3OrderableDrugForm.BAINHL)
return "BAINHL";
if (code == V3OrderableDrugForm.INHLSOL)
return "INHLSOL";
if (code == V3OrderableDrugForm.MDINHL)
return "MDINHL";
if (code == V3OrderableDrugForm.NASSPRY)
return "NASSPRY";
if (code == V3OrderableDrugForm.DERMSPRY)
return "DERMSPRY";
if (code == V3OrderableDrugForm.FOAM)
return "FOAM";
if (code == V3OrderableDrugForm.FOAMAPL)
return "FOAMAPL";
if (code == V3OrderableDrugForm.RECFORM)
return "RECFORM";
if (code == V3OrderableDrugForm.VAGFOAM)
return "VAGFOAM";
if (code == V3OrderableDrugForm.VAGFOAMAPL)
return "VAGFOAMAPL";
if (code == V3OrderableDrugForm.RECSPRY)
return "RECSPRY";
if (code == V3OrderableDrugForm.VAGSPRY)
return "VAGSPRY";
if (code == V3OrderableDrugForm._GASSOLIDSPRAY)
return "_GasSolidSpray";
if (code == V3OrderableDrugForm.INHL)
return "INHL";
if (code == V3OrderableDrugForm.BAINHLPWD)
return "BAINHLPWD";
if (code == V3OrderableDrugForm.INHLPWD)
return "INHLPWD";
if (code == V3OrderableDrugForm.MDINHLPWD)
return "MDINHLPWD";
if (code == V3OrderableDrugForm.NASINHL)
return "NASINHL";
if (code == V3OrderableDrugForm.ORINHL)
return "ORINHL";
if (code == V3OrderableDrugForm.PWDSPRY)
return "PWDSPRY";
if (code == V3OrderableDrugForm.SPRYADAPT)
return "SPRYADAPT";
if (code == V3OrderableDrugForm._LIQUID)
return "_Liquid";
if (code == V3OrderableDrugForm.LIQCLN)
return "LIQCLN";
if (code == V3OrderableDrugForm.LIQSOAP)
return "LIQSOAP";
if (code == V3OrderableDrugForm.SHMP)
return "SHMP";
if (code == V3OrderableDrugForm.OIL)
return "OIL";
if (code == V3OrderableDrugForm.TOPOIL)
return "TOPOIL";
if (code == V3OrderableDrugForm.SOL)
return "SOL";
if (code == V3OrderableDrugForm.IPSOL)
return "IPSOL";
if (code == V3OrderableDrugForm.IRSOL)
return "IRSOL";
if (code == V3OrderableDrugForm.DOUCHE)
return "DOUCHE";
if (code == V3OrderableDrugForm.ENEMA)
return "ENEMA";
if (code == V3OrderableDrugForm.OPIRSOL)
return "OPIRSOL";
if (code == V3OrderableDrugForm.IVSOL)
return "IVSOL";
if (code == V3OrderableDrugForm.ORALSOL)
return "ORALSOL";
if (code == V3OrderableDrugForm.ELIXIR)
return "ELIXIR";
if (code == V3OrderableDrugForm.RINSE)
return "RINSE";
if (code == V3OrderableDrugForm.SYRUP)
return "SYRUP";
if (code == V3OrderableDrugForm.RECSOL)
return "RECSOL";
if (code == V3OrderableDrugForm.TOPSOL)
return "TOPSOL";
if (code == V3OrderableDrugForm.LIN)
return "LIN";
if (code == V3OrderableDrugForm.MUCTOPSOL)
return "MUCTOPSOL";
if (code == V3OrderableDrugForm.TINC)
return "TINC";
if (code == V3OrderableDrugForm._LIQUIDLIQUIDEMULSION)
return "_LiquidLiquidEmulsion";
if (code == V3OrderableDrugForm.CRM)
return "CRM";
if (code == V3OrderableDrugForm.NASCRM)
return "NASCRM";
if (code == V3OrderableDrugForm.OPCRM)
return "OPCRM";
if (code == V3OrderableDrugForm.ORCRM)
return "ORCRM";
if (code == V3OrderableDrugForm.OTCRM)
return "OTCRM";
if (code == V3OrderableDrugForm.RECCRM)
return "RECCRM";
if (code == V3OrderableDrugForm.TOPCRM)
return "TOPCRM";
if (code == V3OrderableDrugForm.VAGCRM)
return "VAGCRM";
if (code == V3OrderableDrugForm.VAGCRMAPL)
return "VAGCRMAPL";
if (code == V3OrderableDrugForm.LTN)
return "LTN";
if (code == V3OrderableDrugForm.TOPLTN)
return "TOPLTN";
if (code == V3OrderableDrugForm.OINT)
return "OINT";
if (code == V3OrderableDrugForm.NASOINT)
return "NASOINT";
if (code == V3OrderableDrugForm.OINTAPL)
return "OINTAPL";
if (code == V3OrderableDrugForm.OPOINT)
return "OPOINT";
if (code == V3OrderableDrugForm.OTOINT)
return "OTOINT";
if (code == V3OrderableDrugForm.RECOINT)
return "RECOINT";
if (code == V3OrderableDrugForm.TOPOINT)
return "TOPOINT";
if (code == V3OrderableDrugForm.VAGOINT)
return "VAGOINT";
if (code == V3OrderableDrugForm.VAGOINTAPL)
return "VAGOINTAPL";
if (code == V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION)
return "_LiquidSolidSuspension";
if (code == V3OrderableDrugForm.GEL)
return "GEL";
if (code == V3OrderableDrugForm.GELAPL)
return "GELAPL";
if (code == V3OrderableDrugForm.NASGEL)
return "NASGEL";
if (code == V3OrderableDrugForm.OPGEL)
return "OPGEL";
if (code == V3OrderableDrugForm.OTGEL)
return "OTGEL";
if (code == V3OrderableDrugForm.TOPGEL)
return "TOPGEL";
if (code == V3OrderableDrugForm.URETHGEL)
return "URETHGEL";
if (code == V3OrderableDrugForm.VAGGEL)
return "VAGGEL";
if (code == V3OrderableDrugForm.VGELAPL)
return "VGELAPL";
if (code == V3OrderableDrugForm.PASTE)
return "PASTE";
if (code == V3OrderableDrugForm.PUD)
return "PUD";
if (code == V3OrderableDrugForm.TPASTE)
return "TPASTE";
if (code == V3OrderableDrugForm.SUSP)
return "SUSP";
if (code == V3OrderableDrugForm.ITSUSP)
return "ITSUSP";
if (code == V3OrderableDrugForm.OPSUSP)
return "OPSUSP";
if (code == V3OrderableDrugForm.ORSUSP)
return "ORSUSP";
if (code == V3OrderableDrugForm.ERSUSP)
return "ERSUSP";
if (code == V3OrderableDrugForm.ERSUSP12)
return "ERSUSP12";
if (code == V3OrderableDrugForm.ERSUSP24)
return "ERSUSP24";
if (code == V3OrderableDrugForm.OTSUSP)
return "OTSUSP";
if (code == V3OrderableDrugForm.RECSUSP)
return "RECSUSP";
if (code == V3OrderableDrugForm._SOLIDDRUGFORM)
return "_SolidDrugForm";
if (code == V3OrderableDrugForm.BAR)
return "BAR";
if (code == V3OrderableDrugForm.BARSOAP)
return "BARSOAP";
if (code == V3OrderableDrugForm.MEDBAR)
return "MEDBAR";
if (code == V3OrderableDrugForm.CHEWBAR)
return "CHEWBAR";
if (code == V3OrderableDrugForm.BEAD)
return "BEAD";
if (code == V3OrderableDrugForm.CAKE)
return "CAKE";
if (code == V3OrderableDrugForm.CEMENT)
return "CEMENT";
if (code == V3OrderableDrugForm.CRYS)
return "CRYS";
if (code == V3OrderableDrugForm.DISK)
return "DISK";
if (code == V3OrderableDrugForm.FLAKE)
return "FLAKE";
if (code == V3OrderableDrugForm.GRAN)
return "GRAN";
if (code == V3OrderableDrugForm.GUM)
return "GUM";
if (code == V3OrderableDrugForm.PAD)
return "PAD";
if (code == V3OrderableDrugForm.MEDPAD)
return "MEDPAD";
if (code == V3OrderableDrugForm.PATCH)
return "PATCH";
if (code == V3OrderableDrugForm.TPATCH)
return "TPATCH";
if (code == V3OrderableDrugForm.TPATH16)
return "TPATH16";
if (code == V3OrderableDrugForm.TPATH24)
return "TPATH24";
if (code == V3OrderableDrugForm.TPATH2WK)
return "TPATH2WK";
if (code == V3OrderableDrugForm.TPATH72)
return "TPATH72";
if (code == V3OrderableDrugForm.TPATHWK)
return "TPATHWK";
if (code == V3OrderableDrugForm.PELLET)
return "PELLET";
if (code == V3OrderableDrugForm.PILL)
return "PILL";
if (code == V3OrderableDrugForm.CAP)
return "CAP";
if (code == V3OrderableDrugForm.ORCAP)
return "ORCAP";
if (code == V3OrderableDrugForm.ENTCAP)
return "ENTCAP";
if (code == V3OrderableDrugForm.ERENTCAP)
return "ERENTCAP";
if (code == V3OrderableDrugForm.ERCAP)
return "ERCAP";
if (code == V3OrderableDrugForm.ERCAP12)
return "ERCAP12";
if (code == V3OrderableDrugForm.ERCAP24)
return "ERCAP24";
if (code == V3OrderableDrugForm.ERECCAP)
return "ERECCAP";
if (code == V3OrderableDrugForm.TAB)
return "TAB";
if (code == V3OrderableDrugForm.ORTAB)
return "ORTAB";
if (code == V3OrderableDrugForm.BUCTAB)
return "BUCTAB";
if (code == V3OrderableDrugForm.SRBUCTAB)
return "SRBUCTAB";
if (code == V3OrderableDrugForm.CAPLET)
return "CAPLET";
if (code == V3OrderableDrugForm.CHEWTAB)
return "CHEWTAB";
if (code == V3OrderableDrugForm.CPTAB)
return "CPTAB";
if (code == V3OrderableDrugForm.DISINTAB)
return "DISINTAB";
if (code == V3OrderableDrugForm.DRTAB)
return "DRTAB";
if (code == V3OrderableDrugForm.ECTAB)
return "ECTAB";
if (code == V3OrderableDrugForm.ERECTAB)
return "ERECTAB";
if (code == V3OrderableDrugForm.ERTAB)
return "ERTAB";
if (code == V3OrderableDrugForm.ERTAB12)
return "ERTAB12";
if (code == V3OrderableDrugForm.ERTAB24)
return "ERTAB24";
if (code == V3OrderableDrugForm.ORTROCHE)
return "ORTROCHE";
if (code == V3OrderableDrugForm.SLTAB)
return "SLTAB";
if (code == V3OrderableDrugForm.VAGTAB)
return "VAGTAB";
if (code == V3OrderableDrugForm.POWD)
return "POWD";
if (code == V3OrderableDrugForm.TOPPWD)
return "TOPPWD";
if (code == V3OrderableDrugForm.RECPWD)
return "RECPWD";
if (code == V3OrderableDrugForm.VAGPWD)
return "VAGPWD";
if (code == V3OrderableDrugForm.SUPP)
return "SUPP";
if (code == V3OrderableDrugForm.RECSUPP)
return "RECSUPP";
if (code == V3OrderableDrugForm.URETHSUPP)
return "URETHSUPP";
if (code == V3OrderableDrugForm.VAGSUPP)
return "VAGSUPP";
if (code == V3OrderableDrugForm.SWAB)
return "SWAB";
if (code == V3OrderableDrugForm.MEDSWAB)
return "MEDSWAB";
if (code == V3OrderableDrugForm.WAFER)
return "WAFER";
return "?";
}
public String toSystem(V3OrderableDrugForm code) {
return code.getSystem();
}
}
| bhits/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/V3OrderableDrugFormEnumFactory.java |
213,463 | package persistence;
import com.googlecode.lanterna.terminal.Terminal.Color;
import configuration.PropertiesReader;
import data.Conversation;
import data.ConversationLayer;
import data.ConversationOption;
import data.Game;
import data.InventoryItem;
import data.Item;
import data.Location;
import data.Person;
import data.Player;
import data.Way;
import data.action.AbstractAction.Enabling;
import data.action.AddInventoryItemsAction;
import data.action.ChangeActionAction;
import data.action.ChangeConversationAction;
import data.action.ChangeConversationOptionAction;
import data.action.ChangeCombineInformationAction;
import data.action.ChangeUseWithInformationAction;
import data.action.ChangeItemAction;
import data.action.ChangeNDObjectAction;
import data.action.ChangePersonAction;
import data.action.ChangeUsableObjectAction;
import data.action.ChangeWayAction;
import data.action.EndGameAction;
import data.action.MoveAction;
import data.action.MultiAction;
import data.action.RemoveInventoryItemAction;
/**
* Test class.
*
* General TODOs:
*
* XXX sound support (optional)
*
* @author Satia
*/
public class Main {
/**
* Creates a game database features every data class that exists.
*/
public static void main(String[] args) throws Exception {
Player player = new Player();
Game game = new Game();
// Create everything
Location flat = new Location("Flat", "Your little home.");
Location balcony = new Location("Balcony", "Your balcony. Sitting on the chair you can look at the sunset.");
Location voidLoc = new Location("Void", "You jump into the black hole and die. Well done!");
ChangeNDObjectAction changeBalconyDescriptionAction = new ChangeNDObjectAction("changeBalconyDescriptionAction",
balcony);
changeBalconyDescriptionAction
.setNewDescription("Your balcony. Standing around stupidly you can look at the sunset.");
ChangeNDObjectAction changeFlatDescriptionAction = new ChangeNDObjectAction("changeFlatDescriptionAction",
flat);
changeFlatDescriptionAction.setNewDescription(
"Your little home. But now, that you know the answer to everything, you take a completely different look at things.");
Way wayToBalcony = new Way("Balcony door", "There is a door that leads outside.", flat, balcony);
wayToBalcony.removeIdentifier(wayToBalcony.getName());
wayToBalcony.addIdentifier("out");
wayToBalcony.addIdentifier("on balcony");
wayToBalcony.addIdentifier("through balcony door");
wayToBalcony.setMoveSuccessfulText("You go outside on the balcony.");
Way wayToFlat = new Way("Balcony door", "There is a door that leads inside.", balcony, flat);
wayToFlat.removeIdentifier(wayToFlat.getName());
wayToFlat.addIdentifier("in");
wayToFlat.addIdentifier("into flat");
wayToFlat.addIdentifier("through balcony door");
wayToFlat.setMoveSuccessfulText("You go back inside");
wayToFlat.setMoveForbiddenText("I feel like you need something from here before going back in.");
wayToFlat.setMovingEnabled(false);
// Going into the black hole ends the game
Way wayToVoid = new Way("Black hole", "There is a big black hole where the front door " + "used to be.", flat,
voidLoc);
wayToVoid.addAdditionalMoveCommand("climb into (?<o0>.+?)");
wayToVoid.addAdditionalMoveCommand("jump into (?<o0>.+?)");
wayToVoid.addAdditionalMoveAction(new EndGameAction("ende"));
/*
* Inspecting satia will give you 5 bucks. You can "give them back" by
* using them with him. This is repeatable.
*/
Person satia = new Person(flat, "Satia", "Satia is hanging around there.");
satia.setInspectionText(
"He looks pretty busy programming nonsense stuff. You steal some money out of his pocket.");
InventoryItem money = new InventoryItem("Money", "5 bucks");
money.setInspectionText("You stole them from poor Satia.");
// Create conversations first, add other stuff later
Conversation satiaConversation = new Conversation("satiaConversation", "I'm busy, keep it short.");
Conversation satiaShortConversation = new Conversation("satiaShortConversation",
"Hey. Gimme back my money! Douche!", "Satia takes his money back semi-violently.");
// Combining these 2 actions
MultiAction stealMoneyAction;
{
AddInventoryItemsAction addMoneyAction = new AddInventoryItemsAction("addMoneyAction");
addMoneyAction.addPickUpItem(money);
// The order here is critical!
stealMoneyAction = new MultiAction("stealMoneyAction", addMoneyAction);
ChangeActionAction disableStealMoneyAction = new ChangeActionAction("disableStealMoneyAction",
stealMoneyAction, Enabling.DISABLE);
stealMoneyAction.addAction(disableStealMoneyAction);
}
// Combining these 3 actions
MultiAction giveMoneyBackAction;
{
RemoveInventoryItemAction removeMoneyAction = new RemoveInventoryItemAction("removeMoneyAction", money);
ChangePersonAction changeSatiaAction2 = new ChangePersonAction("changeSatiaAction2", satia);
changeSatiaAction2.setNewInspectionText(
"He looks pretty busy programming nonsense stuff. You steal some money out of his pocket.");
changeSatiaAction2.setNewConversation(satiaConversation);
changeSatiaAction2.setChangeConversation(true);
ChangeActionAction enableAddMoneyAction = new ChangeActionAction("enableAddMoneyAction", stealMoneyAction,
Enabling.ENABLE);
giveMoneyBackAction = new MultiAction("giveMoneyBackAction", removeMoneyAction, changeSatiaAction2,
enableAddMoneyAction);
}
// The order here is critical!
satia.addAdditionalInspectAction(stealMoneyAction);
ChangePersonAction changeSatiaAction1 = new ChangePersonAction("changeSatiaAction1", satia);
changeSatiaAction1.setNewInspectionText(
"He looks pretty busy programming nonsense stuff. You stole the poor guy his last 5 bucks.");
changeSatiaAction1.setNewConversation(satiaShortConversation);
changeSatiaAction1.setChangeConversation(true);
satia.addAdditionalInspectAction(changeSatiaAction1);
/*
* The normal conversation with Satia.
*/
ConversationLayer startLayer = new ConversationLayer("sL");
ConversationLayer csLayer = new ConversationLayer("csL");
startLayer.addOption(
new ConversationOption("cs", "Let's talk about computer science.", "Ask me anything.", csLayer));
startLayer.addOption(new ConversationOption("bye", "I'm gonne leave you now.", "Finally.", null));
// An option that finishes the game
ConversationOption endGameOption = new ConversationOption("", "Fuck this. Ima quit!",
"Quit what? Don't tell me I ended up in a game! Please not!", null);
endGameOption.addAdditionalAction(new EndGameAction("ente"));
startLayer.addOption(endGameOption);
ConversationOption option42 = new ConversationOption("FT",
"What is the answer to the Ultimate Question of Life, the Universe, and Everything? "
+ "Additionally, here is some text to make it cover two lines.",
"42", csLayer);
option42.addAdditionalAction(changeFlatDescriptionAction);
csLayer.addOption(option42);
csLayer.addOption(new ConversationOption("JI", "Is Java also an island?", "That's just a rumor.", csLayer));
csLayer.addOption(new ConversationOption("3L",
"Do you like this threeliner that had to come somewhere "
+ "in order to test the conversation option chosing mechasnism for a hell of a lot of options properly "
+ "and also with options that are way too long and nobody will ever read them? Assholes! "
+ "Still not long enough - need to add some more bullshit. That should do it!",
"What!?!", csLayer));
ConversationOption disappearingOption = new ConversationOption("NV", "I am never gonna say this again.",
"What!?", csLayer);
disappearingOption.setDisablingOptionAfterChosen(true);
csLayer.addOption(disappearingOption);
csLayer.addOption(
new ConversationOption("NO", "Actually I don't like computer science so much.", "Well", startLayer));
satiaConversation.addLayer(startLayer);
satiaConversation.addLayer(csLayer);
satiaConversation.setStartLayer(startLayer);
satia.setConversation(satiaConversation);
ChangeConversationAction changeSatiaConversation = new ChangeConversationAction("changeSatiaConversation",
satiaConversation);
changeSatiaConversation.setNewGreeting("What is it, stinky thief?");
ChangeConversationOptionAction changeSatiaOption42 = new ChangeConversationOptionAction("changeSatiaOption42",
option42);
changeSatiaOption42.setNewAnswer("I won't tell you that now, thief!");
ChangeActionAction disableChangeFlatDescriptionAction = new ChangeActionAction(
"disableChangeFlatDescriptionAction", changeFlatDescriptionAction, Enabling.DISABLE);
/*
* The short conversation with Satia
*/
satiaShortConversation.addAdditionalAction(giveMoneyBackAction);
satiaShortConversation.addAdditionalAction(changeSatiaConversation);
satiaShortConversation.addAdditionalAction(changeSatiaOption42);
satiaShortConversation.addAdditionalAction(disableChangeFlatDescriptionAction);
// Start item in the inventory
InventoryItem knife = new InventoryItem("Knife", "Made out of Kruppstahl.");
knife.setInspectionText("Why are you carrying that around with you!?");
game.addStartItem(knife);
// A hot chick
Person hotChick = new Person(flat, "Hot chick", "A hot chick is standing in the corner.");
hotChick.addIdentifier("chick");
hotChick.setInspectionText("Stunning.");
Conversation hotChickConversation = new Conversation("chickConv", "Sorry, you're not my type.");
hotChick.setConversation(hotChickConversation);
hotChick.addAdditionalTalkToCommand("flirt with (?<o0>.+?)");
// Using the knife with the hotchick
ChangeUsableObjectAction changeKnifeUseFBText = new ChangeUsableObjectAction("changeKnifeUseFBText", knife);
changeKnifeUseFBText.setNewUseForbiddenText("You have some bad memories associated with this knife...");
knife.setUsingEnabledWith(hotChick, true);
knife.setUseWithSuccessfulText(hotChick, "That went bad... she broke your arm.");
knife.addAdditionalActionToUseWith(hotChick, changeKnifeUseFBText);
// A gremlin
Person gremlin = new Person(flat, "Gremlin", "A gremlin is sitting around and staring at the black tv screen.");
gremlin.setInspectionText("Do not feed after midnight!");
money.setUsingEnabledWith(satia, true);
money.setUseWithSuccessfulText(satia, "You feel guilty and put the money back.");
money.addAdditionalActionToUseWith(satia, giveMoneyBackAction);
Item tv = new Item(flat, "Television", "There is a television in the corner.");
tv.setInspectionText("A 32\" television.");
tv.addIdentifier("tv");
tv.setTakeForbiddenText("This is a little heavy.");
tv.setUseForbiddenText("I am not in the mood.");
tv.addAdditionalTakeCommand("lift (?<o0>.+?)");
/*
* Inspecting the tv will change its inspection text.
*/
ChangeItemAction changeTVAction = new ChangeItemAction("changeTVAction", tv);
changeTVAction.setNewInspectionText("A 32\" television. You should not waste your time admiring it.");
tv.addAdditionalInspectAction(changeTVAction);
// A button
Item button = new Item(flat, "Button", "There is a button the wall.");
button.setInspectionText("\"DANGER. SELF-DESTRUCTION\"");
button.setUsingEnabled(true);
button.addAdditionalUseCommand("push (?<o0>.+?)");
button.setUseSuccessfulText("BOOOM. Everything is dark. What have you done?");
MoveAction moveToVoid = new MoveAction("moveToVoid", voidLoc);
button.addAdditionalUseAction(moveToVoid);
/*
* A banana. If the banana is being used the item disappears and the
* peel is being added to the inventory.
*/
Item banana = new Item(flat, "Banana", "In the fruit bowl there's a single, lonely banana.");
banana.setInspectionText("Rich in cholesterol. Now that I look at it, I might also call it banana phone.");
banana.setUsingEnabled(true);
banana.setTakeForbiddenText("It looks delicious, but I don't wanna carry that around.");
banana.setUseSuccessfulText("You ate the banana. The peel looks useful, so you kept it.");
banana.addAdditionalUseCommand("eat (?<o0>.+?)");
/*
* Inspecting the banana will "convert" it into a bananaphone.
*/
ChangeItemAction changeBananaAction = new ChangeItemAction("changeBananaAction",
banana);
changeBananaAction.setNewName("Banana phone");
changeBananaAction.setNewInspectionText("Ring ring ring ring ring ring ring - banana phone.");
changeBananaAction.addIdentifierToAdd("banana phone");
banana.addAdditionalInspectAction(changeBananaAction);
InventoryItem peel = new InventoryItem("Banana peel", "The peel of the banana you ate.");
peel.setInspectionText("You ate the banana inside it.");
peel.addIdentifier("peel");
peel.setUseForbiddenText("Do you want to eat the peel, too?");
AddInventoryItemsAction addPeelAction = new AddInventoryItemsAction("addPeelAction");
addPeelAction.addPickUpItem(peel);
banana.addAdditionalUseAction(addPeelAction);
ChangeItemAction removeBananaAction = new ChangeItemAction("removeBananaAction", banana);
removeBananaAction.setNewLocation(null);
removeBananaAction.setChangeLocation(true);
banana.addAdditionalUseAction(removeBananaAction);
InventoryItem invBanana = new InventoryItem(banana);
invBanana.setDescription("A banana");
Item chair = new Item(balcony, "Chair", "A wooden chair stands beside you.");
chair.setInspectionText("Made of solid oak.");
chair.setTakingEnabled(true);
InventoryItem invChair = new InventoryItem(chair);
invChair.setDescription("A wooden chair");
chair.addPickUpItem(invChair);
// Only let him in if he has the chair
ChangeWayAction allowGettingInsideAction = new ChangeWayAction("allowGettingInsideAction", wayToFlat);
allowGettingInsideAction.setEnabling(Enabling.ENABLE);
chair.addAdditionalTakeAction(allowGettingInsideAction);
chair.addAdditionalTakeAction(changeBalconyDescriptionAction);
/*
* The tv can be hit with the chair. It is then replaced with a
* destroyed tv.
*/
Item destroyedTv = new Item(null, "Destroyed television",
"The former so glorious television looks severely broken by brutal manforce.");
destroyedTv.setInspectionText("You hit it several times with the chair.");
destroyedTv.addIdentifier("television");
destroyedTv.addIdentifier("tv");
destroyedTv.setTakeForbiddenText("What the hell do you want with this mess?");
destroyedTv.setUseForbiddenText("It does not work anymore.");
ChangeItemAction addDTVAction = new ChangeItemAction("addDTVAction", destroyedTv);
addDTVAction.setNewLocation(flat);
addDTVAction.setChangeLocation(true);
ChangeItemAction removeTvAction = new ChangeItemAction("removeTvAction", tv);
removeTvAction.setNewLocation(null);
removeTvAction.setChangeLocation(true);
invChair.addAdditionalActionToUseWith(tv, addDTVAction);
invChair.addAdditionalActionToUseWith(tv, removeTvAction);
invChair.setUseWithSuccessfulText(tv, "You smash the chair into the television.");
invChair.setUsingEnabledWith(tv, true);
/*
* A pen that can be used to paint the banana peel. The pen can be used
* for that when in the flat and when already taken.
*/
Item pen = new Item(flat, "Pen", "A pen lies on a table.");
pen.setInspectionText("An advertising gift. Cheap.");
pen.setUseForbiddenText("You must use it with something else.");
pen.setTakingEnabled(true);
InventoryItem invPen = new InventoryItem(pen);
invPen.setDescription("A pen");
pen.addPickUpItem(invPen);
// Make it possible to paint Satia and the chick
invPen.setUsingEnabledWith(satia, true);
invPen.setUseWithSuccessfulText(satia, "You drew a penis on Satia's arm. He didn't even notice.");
invPen.setUsingEnabledWith(hotChick, true);
invPen.setUseWithSuccessfulText(hotChick,
"You drew a heart on the hot chick's arm. She looks at you as if you were a 5 year old that is very proud of achieving something competely useless.");
InventoryItem paintedPeel = new InventoryItem("Painted banana peel", "The peel of the banana you ate.");
paintedPeel.setInspectionText("You ate the banana and painted the peel.");
paintedPeel.addIdentifier("peel");
paintedPeel.addIdentifier("banana peel");
peel.setUsingEnabledWith(pen, true);
peel.setCombiningEnabledWith(invPen, true);
// Unidirectional additional combine command
peel.addAdditionalCombineCommand(invPen, "paint (?<o0>.+?) with (?<o1>.+?)");
// and additional use with command
peel.addAdditionalUseWithCommand(pen, "paint (?<o0>.+?) with (?<o1>.+?)");
// and another to test different ordering
peel.addAdditionalCombineCommand(invPen, "use (?<o1>.+?) to paint (?<o0>.+?)");
peel.addAdditionalUseWithCommand(pen, "use (?<o1>.+?) to paint (?<o0>.+?)");
peel.setUseWithSuccessfulText(pen, "You painted the banana peel.");
peel.setCombineWithSuccessfulText(invPen, "You painted the banana peel.");
peel.addNewCombinableWhenCombinedWith(invPen, paintedPeel);
AddInventoryItemsAction addPaintedPeelAction = new AddInventoryItemsAction("addPaintedPeelAction");
RemoveInventoryItemAction removePeelAction = new RemoveInventoryItemAction("removePeelAction", peel);
addPaintedPeelAction.addPickUpItem(paintedPeel);
peel.addAdditionalActionToUseWith(pen, addPaintedPeelAction);
peel.addAdditionalActionToUseWith(pen, removePeelAction);
peel.addAdditionalActionToCombineWith(invPen, removePeelAction);
ChangeUseWithInformationAction changeChairTVaction = new ChangeUseWithInformationAction("changeChairTVaction",
invChair, tv);
changeChairTVaction.setNewUseWithSuccessfulText("32\" wasted!");
ChangeUseWithInformationAction changeSatiaMoneyAction = new ChangeUseWithInformationAction(
"changeSatiaMoneyAction", money, satia);
changeSatiaMoneyAction
.setNewUseWithSuccessfulText("You feel guilty and put the money back. Although he has a big tv.");
ChangeCombineInformationAction changePeelPenCombinationAction = new ChangeCombineInformationAction(
"changePeelPenCombinationAction", peel, invPen);
changePeelPenCombinationAction.setNewCombineWithSuccessfulText(
"Absent-mindedly you paint the peel while staring at the huge tv screen - which is black.");
tv.addAdditionalInspectAction(changePeelPenCombinationAction);
tv.addAdditionalInspectAction(changeChairTVaction);
tv.addAdditionalInspectAction(changeSatiaMoneyAction);
// Game options
game.setPlayer(player);
game.setStartLocation(flat);
game.setStartText("This is a little text adventure.");
game.setNoCommandText("I don't understand you.");
game.setInvalidCommandText("This doesn't make sense.");
game.setNoSuchInventoryItemText("You do not have a <identifier>.");
game.setNoSuchItemText("There is no <identifier> here.");
game.setNoSuchPersonText("There is no <Identifier> here.");
game.setNoSuchWayText("You cannot <input>.");
game.setNotTakeableText("You cannot <pattern|the <name>||>.");
game.setNotTravelableText("You cannot <pattern|the <name>||>.");
game.setNotUsableText("You cannot <pattern|the <name>||>.");
game.setNotTalkingToEnabledText("You cannot <pattern|<Name>||>.");
game.setNotUsableWithText("You cannot do that.");
game.setInspectionDefaultText("Nothing interesting.");
game.setInventoryEmptyText("Your inventory is empty.");
game.setInventoryText("You are carrying the following things:");
game.setTakenText("You picked up the <name>.");
game.setUsedText("You <pattern|the <name>||>. Nothing interesting happens.");
// Same as above. // You use the <name> with the <name2>.
game.setUsedWithText("Nothing interesting happens.");
game.setSuccessfullFgColor(Color.GREEN);
game.setNeutralFgColor(Color.YELLOW);
game.setFailedFgColor(Color.RED);
game.setSuccessfullBgColor(Color.DEFAULT);
game.setNeutralBgColor(Color.DEFAULT);
game.setFailedBgColor(Color.DEFAULT);
game.setNumberOfOptionLines(10);
game.setExitCommandHelpText("Exit the game");
game.setHelpHelpText("Display this help");
game.setInspectHelpText("Inspect an item of your curiosity");
game.setInventoryHelpText("Look into your inventory");
game.setLookAroundHelpText("Look around");
game.setMoveHelpText("Move somewhere else");
game.setTakeHelpText("Pick something up and put it in your inventory");
game.setUseHelpText("Use an item in any imagineable way");
game.setUseWithCombineHelpText("Use one item with another or combine two items in your inventory");
game.setTalkToHelpText("Talk to someone");
game.addExitCommand("exit");
game.addExitCommand("quit");
game.addInspectCommand("look( at)? (?<o0>.+?)");
game.addInspectCommand("inspect (?<o0>.+?)");
game.addInventoryCommand("inventory");
game.addHelpCommand("help");
game.addLookAroundCommand("look around");
game.addMoveCommand("go( to)? (?<o0>.+?)");
game.addMoveCommand("move( to)? (?<o0>.+?)");
game.addTakeCommand("take (?<o0>.+?)");
game.addTakeCommand("pick up (?<o0>.+?)");
game.addTakeCommand("pick (?<o0>.+?) up");
game.addUseCommand("use (?<o0>.+?)");
game.addUseWithCombineCommand("use (?<o0>.+?) with (?<o1>.+?)");
game.addUseWithCombineCommand("combine (?<o0>.+?) and (?<o1>.+?)");
game.addUseWithCombineCommand("combine (?<o0>.+?) with (?<o1>.+?)");
game.addTalkToCommand("talk to (?<o0>.+?)");
game.addTalkToCommand("speak with (?<o0>.+?)");
game.setGameTitle("Test-Adventure");
PersistenceManager pm = new PersistenceManager();
// Connect to database
pm.connect(PropertiesReader.DIRECTORY + "Test-Adventure", true);
// Persist everything (Cascade.PERSIST persists the rest)
pm.getEntityManager().persist(player);
pm.getEntityManager().persist(game);
///////////////////////
// Additional test data
Location locToDel = new Location("Del me", "pls");
ChangeNDObjectAction cltd = new ChangeNDObjectAction("cltd", locToDel);
cltd.setNewName("Did ja del me?");
// Item thing = new Item(locToDel, "Thing", "useless");
pm.getEntityManager().persist(locToDel);
pm.getEntityManager().persist(cltd);
///////////////////////
// Updates changes and disconnect
pm.updateChanges();
pm.disconnect();
}
} | sherfert/TextAdventureMaker | src/main/java/persistence/Main.java |
213,464 | package me.ownage.xenon.commands;
import java.util.Random;
import me.ownage.xenon.main.Xenon;
public class CmdInsult extends Command {
public CmdInsult() {
super("insult");
}
@Override
public void runCommand(String s, final String[] args) {
String[] pre = {"You", "u", "You fucking", "I hate you, you", "Go die in a hole you", "Go fuck a duck you", "Go have a gay orgy with your dad you", "Kill your self you", "Go die in a fire you", "Eat my pants you", "Go have sex with your cousin you", "Go cry about your micropenis you", "Go fist a cat you", "Go take some more ritalin you", "dull", "bloody", "you bloody", "you fucking shit filled"};
String[] post = {"nodus user", "fat ass", "lard ass", "fatty", "pig", "homosexual", "terrorist", "muslim","sand nigger", "piece of shit", "nigger", "cunt", "jew", "fag", "faggot", "fucker", "motherfucker", "nazi", "bitch", "woman", "gay ass mother fucker", "runt", "asshole", "ass", "douche", "douchebag", "asshat", "smart ass", "tampon", "dumbass", "retard", "douchefag", "monkey", "Windows 8 user", "pretentious piece of shit", "femo-nazi", "mutant", "wet piece of shit", "cocksucker", "moron", "anus", "anal bouncer", "ball licker", "ballsack", "cumslut", "cum eater", "cum sponge", "cum bucket", "crackwhore", "cum guzzler", "parasite infested piece of shit", "twat", "shitface", "shit sniffer", "redneck", "swag fag", "unclefucker", "cumrag", "dick cheese", "cum stain", "ADD piece of shit", "ADHD piece of shit", "piece of flying shit", "frozen condom", "autist"};
Random rand = new Random();
int i = rand.nextInt(pre.length - 1);
int i1 = rand.nextInt(post.length - 1);
String insult = pre[i].concat(" ").concat(post[i1]);
Xenon.getMinecraft().thePlayer.sendChatMessage(insult);
}
@Override
public String getDescription() {
return "Generates an insult.";
}
@Override
public String getSyntax() {
return "insult";
}
} | cheesepickles90/test | datsauce/src/minecraft/me/ownage/xenon/commands/CmdInsult.java |
213,465 | package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Sep 23, 2017 17:56-0400 for FHIR v3.1.0
import org.hl7.fhir.r4.model.EnumFactory;
public class V3RouteOfAdministrationEnumFactory implements EnumFactory<V3RouteOfAdministration> {
public V3RouteOfAdministration fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_RouteByMethod".equals(codeString))
return V3RouteOfAdministration._ROUTEBYMETHOD;
if ("SOAK".equals(codeString))
return V3RouteOfAdministration.SOAK;
if ("SHAMPOO".equals(codeString))
return V3RouteOfAdministration.SHAMPOO;
if ("TRNSLING".equals(codeString))
return V3RouteOfAdministration.TRNSLING;
if ("PO".equals(codeString))
return V3RouteOfAdministration.PO;
if ("GARGLE".equals(codeString))
return V3RouteOfAdministration.GARGLE;
if ("SUCK".equals(codeString))
return V3RouteOfAdministration.SUCK;
if ("_Chew".equals(codeString))
return V3RouteOfAdministration._CHEW;
if ("CHEW".equals(codeString))
return V3RouteOfAdministration.CHEW;
if ("_Diffusion".equals(codeString))
return V3RouteOfAdministration._DIFFUSION;
if ("EXTCORPDIF".equals(codeString))
return V3RouteOfAdministration.EXTCORPDIF;
if ("HEMODIFF".equals(codeString))
return V3RouteOfAdministration.HEMODIFF;
if ("TRNSDERMD".equals(codeString))
return V3RouteOfAdministration.TRNSDERMD;
if ("_Dissolve".equals(codeString))
return V3RouteOfAdministration._DISSOLVE;
if ("DISSOLVE".equals(codeString))
return V3RouteOfAdministration.DISSOLVE;
if ("SL".equals(codeString))
return V3RouteOfAdministration.SL;
if ("_Douche".equals(codeString))
return V3RouteOfAdministration._DOUCHE;
if ("DOUCHE".equals(codeString))
return V3RouteOfAdministration.DOUCHE;
if ("_ElectroOsmosisRoute".equals(codeString))
return V3RouteOfAdministration._ELECTROOSMOSISROUTE;
if ("ELECTOSMOS".equals(codeString))
return V3RouteOfAdministration.ELECTOSMOS;
if ("_Enema".equals(codeString))
return V3RouteOfAdministration._ENEMA;
if ("ENEMA".equals(codeString))
return V3RouteOfAdministration.ENEMA;
if ("RETENEMA".equals(codeString))
return V3RouteOfAdministration.RETENEMA;
if ("_Flush".equals(codeString))
return V3RouteOfAdministration._FLUSH;
if ("IVFLUSH".equals(codeString))
return V3RouteOfAdministration.IVFLUSH;
if ("_Implantation".equals(codeString))
return V3RouteOfAdministration._IMPLANTATION;
if ("IDIMPLNT".equals(codeString))
return V3RouteOfAdministration.IDIMPLNT;
if ("IVITIMPLNT".equals(codeString))
return V3RouteOfAdministration.IVITIMPLNT;
if ("SQIMPLNT".equals(codeString))
return V3RouteOfAdministration.SQIMPLNT;
if ("_Infusion".equals(codeString))
return V3RouteOfAdministration._INFUSION;
if ("EPI".equals(codeString))
return V3RouteOfAdministration.EPI;
if ("IA".equals(codeString))
return V3RouteOfAdministration.IA;
if ("IC".equals(codeString))
return V3RouteOfAdministration.IC;
if ("ICOR".equals(codeString))
return V3RouteOfAdministration.ICOR;
if ("IOSSC".equals(codeString))
return V3RouteOfAdministration.IOSSC;
if ("IT".equals(codeString))
return V3RouteOfAdministration.IT;
if ("IV".equals(codeString))
return V3RouteOfAdministration.IV;
if ("IVC".equals(codeString))
return V3RouteOfAdministration.IVC;
if ("IVCC".equals(codeString))
return V3RouteOfAdministration.IVCC;
if ("IVCI".equals(codeString))
return V3RouteOfAdministration.IVCI;
if ("PCA".equals(codeString))
return V3RouteOfAdministration.PCA;
if ("IVASCINFUS".equals(codeString))
return V3RouteOfAdministration.IVASCINFUS;
if ("SQINFUS".equals(codeString))
return V3RouteOfAdministration.SQINFUS;
if ("_Inhalation".equals(codeString))
return V3RouteOfAdministration._INHALATION;
if ("IPINHL".equals(codeString))
return V3RouteOfAdministration.IPINHL;
if ("ORIFINHL".equals(codeString))
return V3RouteOfAdministration.ORIFINHL;
if ("REBREATH".equals(codeString))
return V3RouteOfAdministration.REBREATH;
if ("IPPB".equals(codeString))
return V3RouteOfAdministration.IPPB;
if ("NASINHL".equals(codeString))
return V3RouteOfAdministration.NASINHL;
if ("NASINHLC".equals(codeString))
return V3RouteOfAdministration.NASINHLC;
if ("NEB".equals(codeString))
return V3RouteOfAdministration.NEB;
if ("NASNEB".equals(codeString))
return V3RouteOfAdministration.NASNEB;
if ("ORNEB".equals(codeString))
return V3RouteOfAdministration.ORNEB;
if ("TRACH".equals(codeString))
return V3RouteOfAdministration.TRACH;
if ("VENT".equals(codeString))
return V3RouteOfAdministration.VENT;
if ("VENTMASK".equals(codeString))
return V3RouteOfAdministration.VENTMASK;
if ("_Injection".equals(codeString))
return V3RouteOfAdministration._INJECTION;
if ("AMNINJ".equals(codeString))
return V3RouteOfAdministration.AMNINJ;
if ("BILINJ".equals(codeString))
return V3RouteOfAdministration.BILINJ;
if ("CHOLINJ".equals(codeString))
return V3RouteOfAdministration.CHOLINJ;
if ("CERVINJ".equals(codeString))
return V3RouteOfAdministration.CERVINJ;
if ("EPIDURINJ".equals(codeString))
return V3RouteOfAdministration.EPIDURINJ;
if ("EPIINJ".equals(codeString))
return V3RouteOfAdministration.EPIINJ;
if ("EPINJSP".equals(codeString))
return V3RouteOfAdministration.EPINJSP;
if ("EXTRAMNINJ".equals(codeString))
return V3RouteOfAdministration.EXTRAMNINJ;
if ("EXTCORPINJ".equals(codeString))
return V3RouteOfAdministration.EXTCORPINJ;
if ("GBINJ".equals(codeString))
return V3RouteOfAdministration.GBINJ;
if ("GINGINJ".equals(codeString))
return V3RouteOfAdministration.GINGINJ;
if ("BLADINJ".equals(codeString))
return V3RouteOfAdministration.BLADINJ;
if ("ENDOSININJ".equals(codeString))
return V3RouteOfAdministration.ENDOSININJ;
if ("HEMOPORT".equals(codeString))
return V3RouteOfAdministration.HEMOPORT;
if ("IABDINJ".equals(codeString))
return V3RouteOfAdministration.IABDINJ;
if ("IAINJ".equals(codeString))
return V3RouteOfAdministration.IAINJ;
if ("IAINJP".equals(codeString))
return V3RouteOfAdministration.IAINJP;
if ("IAINJSP".equals(codeString))
return V3RouteOfAdministration.IAINJSP;
if ("IARTINJ".equals(codeString))
return V3RouteOfAdministration.IARTINJ;
if ("IBURSINJ".equals(codeString))
return V3RouteOfAdministration.IBURSINJ;
if ("ICARDINJ".equals(codeString))
return V3RouteOfAdministration.ICARDINJ;
if ("ICARDINJRP".equals(codeString))
return V3RouteOfAdministration.ICARDINJRP;
if ("ICARDINJSP".equals(codeString))
return V3RouteOfAdministration.ICARDINJSP;
if ("ICARINJP".equals(codeString))
return V3RouteOfAdministration.ICARINJP;
if ("ICARTINJ".equals(codeString))
return V3RouteOfAdministration.ICARTINJ;
if ("ICAUDINJ".equals(codeString))
return V3RouteOfAdministration.ICAUDINJ;
if ("ICAVINJ".equals(codeString))
return V3RouteOfAdministration.ICAVINJ;
if ("ICAVITINJ".equals(codeString))
return V3RouteOfAdministration.ICAVITINJ;
if ("ICEREBINJ".equals(codeString))
return V3RouteOfAdministration.ICEREBINJ;
if ("ICISTERNINJ".equals(codeString))
return V3RouteOfAdministration.ICISTERNINJ;
if ("ICORONINJ".equals(codeString))
return V3RouteOfAdministration.ICORONINJ;
if ("ICORONINJP".equals(codeString))
return V3RouteOfAdministration.ICORONINJP;
if ("ICORPCAVINJ".equals(codeString))
return V3RouteOfAdministration.ICORPCAVINJ;
if ("IDINJ".equals(codeString))
return V3RouteOfAdministration.IDINJ;
if ("IDISCINJ".equals(codeString))
return V3RouteOfAdministration.IDISCINJ;
if ("IDUCTINJ".equals(codeString))
return V3RouteOfAdministration.IDUCTINJ;
if ("IDURINJ".equals(codeString))
return V3RouteOfAdministration.IDURINJ;
if ("IEPIDINJ".equals(codeString))
return V3RouteOfAdministration.IEPIDINJ;
if ("IEPITHINJ".equals(codeString))
return V3RouteOfAdministration.IEPITHINJ;
if ("ILESINJ".equals(codeString))
return V3RouteOfAdministration.ILESINJ;
if ("ILUMINJ".equals(codeString))
return V3RouteOfAdministration.ILUMINJ;
if ("ILYMPJINJ".equals(codeString))
return V3RouteOfAdministration.ILYMPJINJ;
if ("IM".equals(codeString))
return V3RouteOfAdministration.IM;
if ("IMD".equals(codeString))
return V3RouteOfAdministration.IMD;
if ("IMZ".equals(codeString))
return V3RouteOfAdministration.IMZ;
if ("IMEDULINJ".equals(codeString))
return V3RouteOfAdministration.IMEDULINJ;
if ("INTERMENINJ".equals(codeString))
return V3RouteOfAdministration.INTERMENINJ;
if ("INTERSTITINJ".equals(codeString))
return V3RouteOfAdministration.INTERSTITINJ;
if ("IOINJ".equals(codeString))
return V3RouteOfAdministration.IOINJ;
if ("IOSSINJ".equals(codeString))
return V3RouteOfAdministration.IOSSINJ;
if ("IOVARINJ".equals(codeString))
return V3RouteOfAdministration.IOVARINJ;
if ("IPCARDINJ".equals(codeString))
return V3RouteOfAdministration.IPCARDINJ;
if ("IPERINJ".equals(codeString))
return V3RouteOfAdministration.IPERINJ;
if ("IPINJ".equals(codeString))
return V3RouteOfAdministration.IPINJ;
if ("IPLRINJ".equals(codeString))
return V3RouteOfAdministration.IPLRINJ;
if ("IPROSTINJ".equals(codeString))
return V3RouteOfAdministration.IPROSTINJ;
if ("IPUMPINJ".equals(codeString))
return V3RouteOfAdministration.IPUMPINJ;
if ("ISINJ".equals(codeString))
return V3RouteOfAdministration.ISINJ;
if ("ISTERINJ".equals(codeString))
return V3RouteOfAdministration.ISTERINJ;
if ("ISYNINJ".equals(codeString))
return V3RouteOfAdministration.ISYNINJ;
if ("ITENDINJ".equals(codeString))
return V3RouteOfAdministration.ITENDINJ;
if ("ITESTINJ".equals(codeString))
return V3RouteOfAdministration.ITESTINJ;
if ("ITHORINJ".equals(codeString))
return V3RouteOfAdministration.ITHORINJ;
if ("ITINJ".equals(codeString))
return V3RouteOfAdministration.ITINJ;
if ("ITUBINJ".equals(codeString))
return V3RouteOfAdministration.ITUBINJ;
if ("ITUMINJ".equals(codeString))
return V3RouteOfAdministration.ITUMINJ;
if ("ITYMPINJ".equals(codeString))
return V3RouteOfAdministration.ITYMPINJ;
if ("IUINJ".equals(codeString))
return V3RouteOfAdministration.IUINJ;
if ("IUINJC".equals(codeString))
return V3RouteOfAdministration.IUINJC;
if ("IURETINJ".equals(codeString))
return V3RouteOfAdministration.IURETINJ;
if ("IVASCINJ".equals(codeString))
return V3RouteOfAdministration.IVASCINJ;
if ("IVENTINJ".equals(codeString))
return V3RouteOfAdministration.IVENTINJ;
if ("IVESINJ".equals(codeString))
return V3RouteOfAdministration.IVESINJ;
if ("IVINJ".equals(codeString))
return V3RouteOfAdministration.IVINJ;
if ("IVINJBOL".equals(codeString))
return V3RouteOfAdministration.IVINJBOL;
if ("IVPUSH".equals(codeString))
return V3RouteOfAdministration.IVPUSH;
if ("IVRPUSH".equals(codeString))
return V3RouteOfAdministration.IVRPUSH;
if ("IVSPUSH".equals(codeString))
return V3RouteOfAdministration.IVSPUSH;
if ("IVITINJ".equals(codeString))
return V3RouteOfAdministration.IVITINJ;
if ("PAINJ".equals(codeString))
return V3RouteOfAdministration.PAINJ;
if ("PARENTINJ".equals(codeString))
return V3RouteOfAdministration.PARENTINJ;
if ("PDONTINJ".equals(codeString))
return V3RouteOfAdministration.PDONTINJ;
if ("PDPINJ".equals(codeString))
return V3RouteOfAdministration.PDPINJ;
if ("PDURINJ".equals(codeString))
return V3RouteOfAdministration.PDURINJ;
if ("PNINJ".equals(codeString))
return V3RouteOfAdministration.PNINJ;
if ("PNSINJ".equals(codeString))
return V3RouteOfAdministration.PNSINJ;
if ("RBINJ".equals(codeString))
return V3RouteOfAdministration.RBINJ;
if ("SCINJ".equals(codeString))
return V3RouteOfAdministration.SCINJ;
if ("SLESINJ".equals(codeString))
return V3RouteOfAdministration.SLESINJ;
if ("SOFTISINJ".equals(codeString))
return V3RouteOfAdministration.SOFTISINJ;
if ("SQ".equals(codeString))
return V3RouteOfAdministration.SQ;
if ("SUBARACHINJ".equals(codeString))
return V3RouteOfAdministration.SUBARACHINJ;
if ("SUBMUCINJ".equals(codeString))
return V3RouteOfAdministration.SUBMUCINJ;
if ("TRPLACINJ".equals(codeString))
return V3RouteOfAdministration.TRPLACINJ;
if ("TRTRACHINJ".equals(codeString))
return V3RouteOfAdministration.TRTRACHINJ;
if ("URETHINJ".equals(codeString))
return V3RouteOfAdministration.URETHINJ;
if ("URETINJ".equals(codeString))
return V3RouteOfAdministration.URETINJ;
if ("_Insertion".equals(codeString))
return V3RouteOfAdministration._INSERTION;
if ("CERVINS".equals(codeString))
return V3RouteOfAdministration.CERVINS;
if ("IOSURGINS".equals(codeString))
return V3RouteOfAdministration.IOSURGINS;
if ("IU".equals(codeString))
return V3RouteOfAdministration.IU;
if ("LPINS".equals(codeString))
return V3RouteOfAdministration.LPINS;
if ("PR".equals(codeString))
return V3RouteOfAdministration.PR;
if ("SQSURGINS".equals(codeString))
return V3RouteOfAdministration.SQSURGINS;
if ("URETHINS".equals(codeString))
return V3RouteOfAdministration.URETHINS;
if ("VAGINSI".equals(codeString))
return V3RouteOfAdministration.VAGINSI;
if ("_Instillation".equals(codeString))
return V3RouteOfAdministration._INSTILLATION;
if ("CECINSTL".equals(codeString))
return V3RouteOfAdministration.CECINSTL;
if ("EFT".equals(codeString))
return V3RouteOfAdministration.EFT;
if ("ENTINSTL".equals(codeString))
return V3RouteOfAdministration.ENTINSTL;
if ("GT".equals(codeString))
return V3RouteOfAdministration.GT;
if ("NGT".equals(codeString))
return V3RouteOfAdministration.NGT;
if ("OGT".equals(codeString))
return V3RouteOfAdministration.OGT;
if ("BLADINSTL".equals(codeString))
return V3RouteOfAdministration.BLADINSTL;
if ("CAPDINSTL".equals(codeString))
return V3RouteOfAdministration.CAPDINSTL;
if ("CTINSTL".equals(codeString))
return V3RouteOfAdministration.CTINSTL;
if ("ETINSTL".equals(codeString))
return V3RouteOfAdministration.ETINSTL;
if ("GJT".equals(codeString))
return V3RouteOfAdministration.GJT;
if ("IBRONCHINSTIL".equals(codeString))
return V3RouteOfAdministration.IBRONCHINSTIL;
if ("IDUODINSTIL".equals(codeString))
return V3RouteOfAdministration.IDUODINSTIL;
if ("IESOPHINSTIL".equals(codeString))
return V3RouteOfAdministration.IESOPHINSTIL;
if ("IGASTINSTIL".equals(codeString))
return V3RouteOfAdministration.IGASTINSTIL;
if ("IILEALINJ".equals(codeString))
return V3RouteOfAdministration.IILEALINJ;
if ("IOINSTL".equals(codeString))
return V3RouteOfAdministration.IOINSTL;
if ("ISININSTIL".equals(codeString))
return V3RouteOfAdministration.ISININSTIL;
if ("ITRACHINSTIL".equals(codeString))
return V3RouteOfAdministration.ITRACHINSTIL;
if ("IUINSTL".equals(codeString))
return V3RouteOfAdministration.IUINSTL;
if ("JJTINSTL".equals(codeString))
return V3RouteOfAdministration.JJTINSTL;
if ("LARYNGINSTIL".equals(codeString))
return V3RouteOfAdministration.LARYNGINSTIL;
if ("NASALINSTIL".equals(codeString))
return V3RouteOfAdministration.NASALINSTIL;
if ("NASOGASINSTIL".equals(codeString))
return V3RouteOfAdministration.NASOGASINSTIL;
if ("NTT".equals(codeString))
return V3RouteOfAdministration.NTT;
if ("OJJ".equals(codeString))
return V3RouteOfAdministration.OJJ;
if ("OT".equals(codeString))
return V3RouteOfAdministration.OT;
if ("PDPINSTL".equals(codeString))
return V3RouteOfAdministration.PDPINSTL;
if ("PNSINSTL".equals(codeString))
return V3RouteOfAdministration.PNSINSTL;
if ("RECINSTL".equals(codeString))
return V3RouteOfAdministration.RECINSTL;
if ("RECTINSTL".equals(codeString))
return V3RouteOfAdministration.RECTINSTL;
if ("SININSTIL".equals(codeString))
return V3RouteOfAdministration.SININSTIL;
if ("SOFTISINSTIL".equals(codeString))
return V3RouteOfAdministration.SOFTISINSTIL;
if ("TRACHINSTL".equals(codeString))
return V3RouteOfAdministration.TRACHINSTL;
if ("TRTYMPINSTIL".equals(codeString))
return V3RouteOfAdministration.TRTYMPINSTIL;
if ("URETHINSTL".equals(codeString))
return V3RouteOfAdministration.URETHINSTL;
if ("_IontophoresisRoute".equals(codeString))
return V3RouteOfAdministration._IONTOPHORESISROUTE;
if ("IONTO".equals(codeString))
return V3RouteOfAdministration.IONTO;
if ("_Irrigation".equals(codeString))
return V3RouteOfAdministration._IRRIGATION;
if ("GUIRR".equals(codeString))
return V3RouteOfAdministration.GUIRR;
if ("IGASTIRR".equals(codeString))
return V3RouteOfAdministration.IGASTIRR;
if ("ILESIRR".equals(codeString))
return V3RouteOfAdministration.ILESIRR;
if ("IOIRR".equals(codeString))
return V3RouteOfAdministration.IOIRR;
if ("BLADIRR".equals(codeString))
return V3RouteOfAdministration.BLADIRR;
if ("BLADIRRC".equals(codeString))
return V3RouteOfAdministration.BLADIRRC;
if ("BLADIRRT".equals(codeString))
return V3RouteOfAdministration.BLADIRRT;
if ("RECIRR".equals(codeString))
return V3RouteOfAdministration.RECIRR;
if ("_LavageRoute".equals(codeString))
return V3RouteOfAdministration._LAVAGEROUTE;
if ("IGASTLAV".equals(codeString))
return V3RouteOfAdministration.IGASTLAV;
if ("_MucosalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._MUCOSALABSORPTIONROUTE;
if ("IDOUDMAB".equals(codeString))
return V3RouteOfAdministration.IDOUDMAB;
if ("ITRACHMAB".equals(codeString))
return V3RouteOfAdministration.ITRACHMAB;
if ("SMUCMAB".equals(codeString))
return V3RouteOfAdministration.SMUCMAB;
if ("_Nebulization".equals(codeString))
return V3RouteOfAdministration._NEBULIZATION;
if ("ETNEB".equals(codeString))
return V3RouteOfAdministration.ETNEB;
if ("_Rinse".equals(codeString))
return V3RouteOfAdministration._RINSE;
if ("DENRINSE".equals(codeString))
return V3RouteOfAdministration.DENRINSE;
if ("ORRINSE".equals(codeString))
return V3RouteOfAdministration.ORRINSE;
if ("_SuppositoryRoute".equals(codeString))
return V3RouteOfAdministration._SUPPOSITORYROUTE;
if ("URETHSUP".equals(codeString))
return V3RouteOfAdministration.URETHSUP;
if ("_Swish".equals(codeString))
return V3RouteOfAdministration._SWISH;
if ("SWISHSPIT".equals(codeString))
return V3RouteOfAdministration.SWISHSPIT;
if ("SWISHSWAL".equals(codeString))
return V3RouteOfAdministration.SWISHSWAL;
if ("_TopicalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._TOPICALABSORPTIONROUTE;
if ("TTYMPTABSORP".equals(codeString))
return V3RouteOfAdministration.TTYMPTABSORP;
if ("_TopicalApplication".equals(codeString))
return V3RouteOfAdministration._TOPICALAPPLICATION;
if ("DRESS".equals(codeString))
return V3RouteOfAdministration.DRESS;
if ("SWAB".equals(codeString))
return V3RouteOfAdministration.SWAB;
if ("TOPICAL".equals(codeString))
return V3RouteOfAdministration.TOPICAL;
if ("BUC".equals(codeString))
return V3RouteOfAdministration.BUC;
if ("CERV".equals(codeString))
return V3RouteOfAdministration.CERV;
if ("DEN".equals(codeString))
return V3RouteOfAdministration.DEN;
if ("GIN".equals(codeString))
return V3RouteOfAdministration.GIN;
if ("HAIR".equals(codeString))
return V3RouteOfAdministration.HAIR;
if ("ICORNTA".equals(codeString))
return V3RouteOfAdministration.ICORNTA;
if ("ICORONTA".equals(codeString))
return V3RouteOfAdministration.ICORONTA;
if ("IESOPHTA".equals(codeString))
return V3RouteOfAdministration.IESOPHTA;
if ("IILEALTA".equals(codeString))
return V3RouteOfAdministration.IILEALTA;
if ("ILTOP".equals(codeString))
return V3RouteOfAdministration.ILTOP;
if ("ILUMTA".equals(codeString))
return V3RouteOfAdministration.ILUMTA;
if ("IOTOP".equals(codeString))
return V3RouteOfAdministration.IOTOP;
if ("LARYNGTA".equals(codeString))
return V3RouteOfAdministration.LARYNGTA;
if ("MUC".equals(codeString))
return V3RouteOfAdministration.MUC;
if ("NAIL".equals(codeString))
return V3RouteOfAdministration.NAIL;
if ("NASAL".equals(codeString))
return V3RouteOfAdministration.NASAL;
if ("OPTHALTA".equals(codeString))
return V3RouteOfAdministration.OPTHALTA;
if ("ORALTA".equals(codeString))
return V3RouteOfAdministration.ORALTA;
if ("ORMUC".equals(codeString))
return V3RouteOfAdministration.ORMUC;
if ("OROPHARTA".equals(codeString))
return V3RouteOfAdministration.OROPHARTA;
if ("PERIANAL".equals(codeString))
return V3RouteOfAdministration.PERIANAL;
if ("PERINEAL".equals(codeString))
return V3RouteOfAdministration.PERINEAL;
if ("PDONTTA".equals(codeString))
return V3RouteOfAdministration.PDONTTA;
if ("RECTAL".equals(codeString))
return V3RouteOfAdministration.RECTAL;
if ("SCALP".equals(codeString))
return V3RouteOfAdministration.SCALP;
if ("OCDRESTA".equals(codeString))
return V3RouteOfAdministration.OCDRESTA;
if ("SKIN".equals(codeString))
return V3RouteOfAdministration.SKIN;
if ("SUBCONJTA".equals(codeString))
return V3RouteOfAdministration.SUBCONJTA;
if ("TMUCTA".equals(codeString))
return V3RouteOfAdministration.TMUCTA;
if ("VAGINS".equals(codeString))
return V3RouteOfAdministration.VAGINS;
if ("INSUF".equals(codeString))
return V3RouteOfAdministration.INSUF;
if ("TRNSDERM".equals(codeString))
return V3RouteOfAdministration.TRNSDERM;
if ("_RouteBySite".equals(codeString))
return V3RouteOfAdministration._ROUTEBYSITE;
if ("_AmnioticFluidSacRoute".equals(codeString))
return V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE;
if ("_BiliaryRoute".equals(codeString))
return V3RouteOfAdministration._BILIARYROUTE;
if ("_BodySurfaceRoute".equals(codeString))
return V3RouteOfAdministration._BODYSURFACEROUTE;
if ("_BuccalMucosaRoute".equals(codeString))
return V3RouteOfAdministration._BUCCALMUCOSAROUTE;
if ("_CecostomyRoute".equals(codeString))
return V3RouteOfAdministration._CECOSTOMYROUTE;
if ("_CervicalRoute".equals(codeString))
return V3RouteOfAdministration._CERVICALROUTE;
if ("_EndocervicalRoute".equals(codeString))
return V3RouteOfAdministration._ENDOCERVICALROUTE;
if ("_EnteralRoute".equals(codeString))
return V3RouteOfAdministration._ENTERALROUTE;
if ("_EpiduralRoute".equals(codeString))
return V3RouteOfAdministration._EPIDURALROUTE;
if ("_ExtraAmnioticRoute".equals(codeString))
return V3RouteOfAdministration._EXTRAAMNIOTICROUTE;
if ("_ExtracorporealCirculationRoute".equals(codeString))
return V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE;
if ("_GastricRoute".equals(codeString))
return V3RouteOfAdministration._GASTRICROUTE;
if ("_GenitourinaryRoute".equals(codeString))
return V3RouteOfAdministration._GENITOURINARYROUTE;
if ("_GingivalRoute".equals(codeString))
return V3RouteOfAdministration._GINGIVALROUTE;
if ("_HairRoute".equals(codeString))
return V3RouteOfAdministration._HAIRROUTE;
if ("_InterameningealRoute".equals(codeString))
return V3RouteOfAdministration._INTERAMENINGEALROUTE;
if ("_InterstitialRoute".equals(codeString))
return V3RouteOfAdministration._INTERSTITIALROUTE;
if ("_IntraabdominalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAABDOMINALROUTE;
if ("_IntraarterialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTERIALROUTE;
if ("_IntraarticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTICULARROUTE;
if ("_IntrabronchialRoute".equals(codeString))
return V3RouteOfAdministration._INTRABRONCHIALROUTE;
if ("_IntrabursalRoute".equals(codeString))
return V3RouteOfAdministration._INTRABURSALROUTE;
if ("_IntracardiacRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARDIACROUTE;
if ("_IntracartilaginousRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARTILAGINOUSROUTE;
if ("_IntracaudalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAUDALROUTE;
if ("_IntracavernosalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVERNOSALROUTE;
if ("_IntracavitaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVITARYROUTE;
if ("_IntracerebralRoute".equals(codeString))
return V3RouteOfAdministration._INTRACEREBRALROUTE;
if ("_IntracervicalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACERVICALROUTE;
if ("_IntracisternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACISTERNALROUTE;
if ("_IntracornealRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORNEALROUTE;
if ("_IntracoronalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONALROUTE;
if ("_IntracoronaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONARYROUTE;
if ("_IntracorpusCavernosumRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE;
if ("_IntradermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADERMALROUTE;
if ("_IntradiscalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADISCALROUTE;
if ("_IntraductalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUCTALROUTE;
if ("_IntraduodenalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUODENALROUTE;
if ("_IntraduralRoute".equals(codeString))
return V3RouteOfAdministration._INTRADURALROUTE;
if ("_IntraepidermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPIDERMALROUTE;
if ("_IntraepithelialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPITHELIALROUTE;
if ("_IntraesophagealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAESOPHAGEALROUTE;
if ("_IntragastricRoute".equals(codeString))
return V3RouteOfAdministration._INTRAGASTRICROUTE;
if ("_IntrailealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAILEALROUTE;
if ("_IntralesionalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALESIONALROUTE;
if ("_IntraluminalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALUMINALROUTE;
if ("_IntralymphaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRALYMPHATICROUTE;
if ("_IntramedullaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMEDULLARYROUTE;
if ("_IntramuscularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMUSCULARROUTE;
if ("_IntraocularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOCULARROUTE;
if ("_IntraosseousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOSSEOUSROUTE;
if ("_IntraovarianRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOVARIANROUTE;
if ("_IntrapericardialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERICARDIALROUTE;
if ("_IntraperitonealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERITONEALROUTE;
if ("_IntrapleuralRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPLEURALROUTE;
if ("_IntraprostaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPROSTATICROUTE;
if ("_IntrapulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPULMONARYROUTE;
if ("_IntrasinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASINALROUTE;
if ("_IntraspinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASPINALROUTE;
if ("_IntrasternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASTERNALROUTE;
if ("_IntrasynovialRoute".equals(codeString))
return V3RouteOfAdministration._INTRASYNOVIALROUTE;
if ("_IntratendinousRoute".equals(codeString))
return V3RouteOfAdministration._INTRATENDINOUSROUTE;
if ("_IntratesticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATESTICULARROUTE;
if ("_IntrathecalRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHECALROUTE;
if ("_IntrathoracicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHORACICROUTE;
if ("_IntratrachealRoute".equals(codeString))
return V3RouteOfAdministration._INTRATRACHEALROUTE;
if ("_IntratubularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUBULARROUTE;
if ("_IntratumorRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUMORROUTE;
if ("_IntratympanicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATYMPANICROUTE;
if ("_IntrauterineRoute".equals(codeString))
return V3RouteOfAdministration._INTRAUTERINEROUTE;
if ("_IntravascularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVASCULARROUTE;
if ("_IntravenousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENOUSROUTE;
if ("_IntraventricularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENTRICULARROUTE;
if ("_IntravesicleRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVESICLEROUTE;
if ("_IntravitrealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVITREALROUTE;
if ("_JejunumRoute".equals(codeString))
return V3RouteOfAdministration._JEJUNUMROUTE;
if ("_LacrimalPunctaRoute".equals(codeString))
return V3RouteOfAdministration._LACRIMALPUNCTAROUTE;
if ("_LaryngealRoute".equals(codeString))
return V3RouteOfAdministration._LARYNGEALROUTE;
if ("_LingualRoute".equals(codeString))
return V3RouteOfAdministration._LINGUALROUTE;
if ("_MucousMembraneRoute".equals(codeString))
return V3RouteOfAdministration._MUCOUSMEMBRANEROUTE;
if ("_NailRoute".equals(codeString))
return V3RouteOfAdministration._NAILROUTE;
if ("_NasalRoute".equals(codeString))
return V3RouteOfAdministration._NASALROUTE;
if ("_OphthalmicRoute".equals(codeString))
return V3RouteOfAdministration._OPHTHALMICROUTE;
if ("_OralRoute".equals(codeString))
return V3RouteOfAdministration._ORALROUTE;
if ("_OromucosalRoute".equals(codeString))
return V3RouteOfAdministration._OROMUCOSALROUTE;
if ("_OropharyngealRoute".equals(codeString))
return V3RouteOfAdministration._OROPHARYNGEALROUTE;
if ("_OticRoute".equals(codeString))
return V3RouteOfAdministration._OTICROUTE;
if ("_ParanasalSinusesRoute".equals(codeString))
return V3RouteOfAdministration._PARANASALSINUSESROUTE;
if ("_ParenteralRoute".equals(codeString))
return V3RouteOfAdministration._PARENTERALROUTE;
if ("_PerianalRoute".equals(codeString))
return V3RouteOfAdministration._PERIANALROUTE;
if ("_PeriarticularRoute".equals(codeString))
return V3RouteOfAdministration._PERIARTICULARROUTE;
if ("_PeriduralRoute".equals(codeString))
return V3RouteOfAdministration._PERIDURALROUTE;
if ("_PerinealRoute".equals(codeString))
return V3RouteOfAdministration._PERINEALROUTE;
if ("_PerineuralRoute".equals(codeString))
return V3RouteOfAdministration._PERINEURALROUTE;
if ("_PeriodontalRoute".equals(codeString))
return V3RouteOfAdministration._PERIODONTALROUTE;
if ("_PulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._PULMONARYROUTE;
if ("_RectalRoute".equals(codeString))
return V3RouteOfAdministration._RECTALROUTE;
if ("_RespiratoryTractRoute".equals(codeString))
return V3RouteOfAdministration._RESPIRATORYTRACTROUTE;
if ("_RetrobulbarRoute".equals(codeString))
return V3RouteOfAdministration._RETROBULBARROUTE;
if ("_ScalpRoute".equals(codeString))
return V3RouteOfAdministration._SCALPROUTE;
if ("_SinusUnspecifiedRoute".equals(codeString))
return V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE;
if ("_SkinRoute".equals(codeString))
return V3RouteOfAdministration._SKINROUTE;
if ("_SoftTissueRoute".equals(codeString))
return V3RouteOfAdministration._SOFTTISSUEROUTE;
if ("_SubarachnoidRoute".equals(codeString))
return V3RouteOfAdministration._SUBARACHNOIDROUTE;
if ("_SubconjunctivalRoute".equals(codeString))
return V3RouteOfAdministration._SUBCONJUNCTIVALROUTE;
if ("_SubcutaneousRoute".equals(codeString))
return V3RouteOfAdministration._SUBCUTANEOUSROUTE;
if ("_SublesionalRoute".equals(codeString))
return V3RouteOfAdministration._SUBLESIONALROUTE;
if ("_SublingualRoute".equals(codeString))
return V3RouteOfAdministration._SUBLINGUALROUTE;
if ("_SubmucosalRoute".equals(codeString))
return V3RouteOfAdministration._SUBMUCOSALROUTE;
if ("_TracheostomyRoute".equals(codeString))
return V3RouteOfAdministration._TRACHEOSTOMYROUTE;
if ("_TransmucosalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSMUCOSALROUTE;
if ("_TransplacentalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSPLACENTALROUTE;
if ("_TranstrachealRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTRACHEALROUTE;
if ("_TranstympanicRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTYMPANICROUTE;
if ("_UreteralRoute".equals(codeString))
return V3RouteOfAdministration._URETERALROUTE;
if ("_UrethralRoute".equals(codeString))
return V3RouteOfAdministration._URETHRALROUTE;
if ("_UrinaryBladderRoute".equals(codeString))
return V3RouteOfAdministration._URINARYBLADDERROUTE;
if ("_UrinaryTractRoute".equals(codeString))
return V3RouteOfAdministration._URINARYTRACTROUTE;
if ("_VaginalRoute".equals(codeString))
return V3RouteOfAdministration._VAGINALROUTE;
if ("_VitreousHumourRoute".equals(codeString))
return V3RouteOfAdministration._VITREOUSHUMOURROUTE;
throw new IllegalArgumentException("Unknown V3RouteOfAdministration code '"+codeString+"'");
}
public String toCode(V3RouteOfAdministration code) {
if (code == V3RouteOfAdministration._ROUTEBYMETHOD)
return "_RouteByMethod";
if (code == V3RouteOfAdministration.SOAK)
return "SOAK";
if (code == V3RouteOfAdministration.SHAMPOO)
return "SHAMPOO";
if (code == V3RouteOfAdministration.TRNSLING)
return "TRNSLING";
if (code == V3RouteOfAdministration.PO)
return "PO";
if (code == V3RouteOfAdministration.GARGLE)
return "GARGLE";
if (code == V3RouteOfAdministration.SUCK)
return "SUCK";
if (code == V3RouteOfAdministration._CHEW)
return "_Chew";
if (code == V3RouteOfAdministration.CHEW)
return "CHEW";
if (code == V3RouteOfAdministration._DIFFUSION)
return "_Diffusion";
if (code == V3RouteOfAdministration.EXTCORPDIF)
return "EXTCORPDIF";
if (code == V3RouteOfAdministration.HEMODIFF)
return "HEMODIFF";
if (code == V3RouteOfAdministration.TRNSDERMD)
return "TRNSDERMD";
if (code == V3RouteOfAdministration._DISSOLVE)
return "_Dissolve";
if (code == V3RouteOfAdministration.DISSOLVE)
return "DISSOLVE";
if (code == V3RouteOfAdministration.SL)
return "SL";
if (code == V3RouteOfAdministration._DOUCHE)
return "_Douche";
if (code == V3RouteOfAdministration.DOUCHE)
return "DOUCHE";
if (code == V3RouteOfAdministration._ELECTROOSMOSISROUTE)
return "_ElectroOsmosisRoute";
if (code == V3RouteOfAdministration.ELECTOSMOS)
return "ELECTOSMOS";
if (code == V3RouteOfAdministration._ENEMA)
return "_Enema";
if (code == V3RouteOfAdministration.ENEMA)
return "ENEMA";
if (code == V3RouteOfAdministration.RETENEMA)
return "RETENEMA";
if (code == V3RouteOfAdministration._FLUSH)
return "_Flush";
if (code == V3RouteOfAdministration.IVFLUSH)
return "IVFLUSH";
if (code == V3RouteOfAdministration._IMPLANTATION)
return "_Implantation";
if (code == V3RouteOfAdministration.IDIMPLNT)
return "IDIMPLNT";
if (code == V3RouteOfAdministration.IVITIMPLNT)
return "IVITIMPLNT";
if (code == V3RouteOfAdministration.SQIMPLNT)
return "SQIMPLNT";
if (code == V3RouteOfAdministration._INFUSION)
return "_Infusion";
if (code == V3RouteOfAdministration.EPI)
return "EPI";
if (code == V3RouteOfAdministration.IA)
return "IA";
if (code == V3RouteOfAdministration.IC)
return "IC";
if (code == V3RouteOfAdministration.ICOR)
return "ICOR";
if (code == V3RouteOfAdministration.IOSSC)
return "IOSSC";
if (code == V3RouteOfAdministration.IT)
return "IT";
if (code == V3RouteOfAdministration.IV)
return "IV";
if (code == V3RouteOfAdministration.IVC)
return "IVC";
if (code == V3RouteOfAdministration.IVCC)
return "IVCC";
if (code == V3RouteOfAdministration.IVCI)
return "IVCI";
if (code == V3RouteOfAdministration.PCA)
return "PCA";
if (code == V3RouteOfAdministration.IVASCINFUS)
return "IVASCINFUS";
if (code == V3RouteOfAdministration.SQINFUS)
return "SQINFUS";
if (code == V3RouteOfAdministration._INHALATION)
return "_Inhalation";
if (code == V3RouteOfAdministration.IPINHL)
return "IPINHL";
if (code == V3RouteOfAdministration.ORIFINHL)
return "ORIFINHL";
if (code == V3RouteOfAdministration.REBREATH)
return "REBREATH";
if (code == V3RouteOfAdministration.IPPB)
return "IPPB";
if (code == V3RouteOfAdministration.NASINHL)
return "NASINHL";
if (code == V3RouteOfAdministration.NASINHLC)
return "NASINHLC";
if (code == V3RouteOfAdministration.NEB)
return "NEB";
if (code == V3RouteOfAdministration.NASNEB)
return "NASNEB";
if (code == V3RouteOfAdministration.ORNEB)
return "ORNEB";
if (code == V3RouteOfAdministration.TRACH)
return "TRACH";
if (code == V3RouteOfAdministration.VENT)
return "VENT";
if (code == V3RouteOfAdministration.VENTMASK)
return "VENTMASK";
if (code == V3RouteOfAdministration._INJECTION)
return "_Injection";
if (code == V3RouteOfAdministration.AMNINJ)
return "AMNINJ";
if (code == V3RouteOfAdministration.BILINJ)
return "BILINJ";
if (code == V3RouteOfAdministration.CHOLINJ)
return "CHOLINJ";
if (code == V3RouteOfAdministration.CERVINJ)
return "CERVINJ";
if (code == V3RouteOfAdministration.EPIDURINJ)
return "EPIDURINJ";
if (code == V3RouteOfAdministration.EPIINJ)
return "EPIINJ";
if (code == V3RouteOfAdministration.EPINJSP)
return "EPINJSP";
if (code == V3RouteOfAdministration.EXTRAMNINJ)
return "EXTRAMNINJ";
if (code == V3RouteOfAdministration.EXTCORPINJ)
return "EXTCORPINJ";
if (code == V3RouteOfAdministration.GBINJ)
return "GBINJ";
if (code == V3RouteOfAdministration.GINGINJ)
return "GINGINJ";
if (code == V3RouteOfAdministration.BLADINJ)
return "BLADINJ";
if (code == V3RouteOfAdministration.ENDOSININJ)
return "ENDOSININJ";
if (code == V3RouteOfAdministration.HEMOPORT)
return "HEMOPORT";
if (code == V3RouteOfAdministration.IABDINJ)
return "IABDINJ";
if (code == V3RouteOfAdministration.IAINJ)
return "IAINJ";
if (code == V3RouteOfAdministration.IAINJP)
return "IAINJP";
if (code == V3RouteOfAdministration.IAINJSP)
return "IAINJSP";
if (code == V3RouteOfAdministration.IARTINJ)
return "IARTINJ";
if (code == V3RouteOfAdministration.IBURSINJ)
return "IBURSINJ";
if (code == V3RouteOfAdministration.ICARDINJ)
return "ICARDINJ";
if (code == V3RouteOfAdministration.ICARDINJRP)
return "ICARDINJRP";
if (code == V3RouteOfAdministration.ICARDINJSP)
return "ICARDINJSP";
if (code == V3RouteOfAdministration.ICARINJP)
return "ICARINJP";
if (code == V3RouteOfAdministration.ICARTINJ)
return "ICARTINJ";
if (code == V3RouteOfAdministration.ICAUDINJ)
return "ICAUDINJ";
if (code == V3RouteOfAdministration.ICAVINJ)
return "ICAVINJ";
if (code == V3RouteOfAdministration.ICAVITINJ)
return "ICAVITINJ";
if (code == V3RouteOfAdministration.ICEREBINJ)
return "ICEREBINJ";
if (code == V3RouteOfAdministration.ICISTERNINJ)
return "ICISTERNINJ";
if (code == V3RouteOfAdministration.ICORONINJ)
return "ICORONINJ";
if (code == V3RouteOfAdministration.ICORONINJP)
return "ICORONINJP";
if (code == V3RouteOfAdministration.ICORPCAVINJ)
return "ICORPCAVINJ";
if (code == V3RouteOfAdministration.IDINJ)
return "IDINJ";
if (code == V3RouteOfAdministration.IDISCINJ)
return "IDISCINJ";
if (code == V3RouteOfAdministration.IDUCTINJ)
return "IDUCTINJ";
if (code == V3RouteOfAdministration.IDURINJ)
return "IDURINJ";
if (code == V3RouteOfAdministration.IEPIDINJ)
return "IEPIDINJ";
if (code == V3RouteOfAdministration.IEPITHINJ)
return "IEPITHINJ";
if (code == V3RouteOfAdministration.ILESINJ)
return "ILESINJ";
if (code == V3RouteOfAdministration.ILUMINJ)
return "ILUMINJ";
if (code == V3RouteOfAdministration.ILYMPJINJ)
return "ILYMPJINJ";
if (code == V3RouteOfAdministration.IM)
return "IM";
if (code == V3RouteOfAdministration.IMD)
return "IMD";
if (code == V3RouteOfAdministration.IMZ)
return "IMZ";
if (code == V3RouteOfAdministration.IMEDULINJ)
return "IMEDULINJ";
if (code == V3RouteOfAdministration.INTERMENINJ)
return "INTERMENINJ";
if (code == V3RouteOfAdministration.INTERSTITINJ)
return "INTERSTITINJ";
if (code == V3RouteOfAdministration.IOINJ)
return "IOINJ";
if (code == V3RouteOfAdministration.IOSSINJ)
return "IOSSINJ";
if (code == V3RouteOfAdministration.IOVARINJ)
return "IOVARINJ";
if (code == V3RouteOfAdministration.IPCARDINJ)
return "IPCARDINJ";
if (code == V3RouteOfAdministration.IPERINJ)
return "IPERINJ";
if (code == V3RouteOfAdministration.IPINJ)
return "IPINJ";
if (code == V3RouteOfAdministration.IPLRINJ)
return "IPLRINJ";
if (code == V3RouteOfAdministration.IPROSTINJ)
return "IPROSTINJ";
if (code == V3RouteOfAdministration.IPUMPINJ)
return "IPUMPINJ";
if (code == V3RouteOfAdministration.ISINJ)
return "ISINJ";
if (code == V3RouteOfAdministration.ISTERINJ)
return "ISTERINJ";
if (code == V3RouteOfAdministration.ISYNINJ)
return "ISYNINJ";
if (code == V3RouteOfAdministration.ITENDINJ)
return "ITENDINJ";
if (code == V3RouteOfAdministration.ITESTINJ)
return "ITESTINJ";
if (code == V3RouteOfAdministration.ITHORINJ)
return "ITHORINJ";
if (code == V3RouteOfAdministration.ITINJ)
return "ITINJ";
if (code == V3RouteOfAdministration.ITUBINJ)
return "ITUBINJ";
if (code == V3RouteOfAdministration.ITUMINJ)
return "ITUMINJ";
if (code == V3RouteOfAdministration.ITYMPINJ)
return "ITYMPINJ";
if (code == V3RouteOfAdministration.IUINJ)
return "IUINJ";
if (code == V3RouteOfAdministration.IUINJC)
return "IUINJC";
if (code == V3RouteOfAdministration.IURETINJ)
return "IURETINJ";
if (code == V3RouteOfAdministration.IVASCINJ)
return "IVASCINJ";
if (code == V3RouteOfAdministration.IVENTINJ)
return "IVENTINJ";
if (code == V3RouteOfAdministration.IVESINJ)
return "IVESINJ";
if (code == V3RouteOfAdministration.IVINJ)
return "IVINJ";
if (code == V3RouteOfAdministration.IVINJBOL)
return "IVINJBOL";
if (code == V3RouteOfAdministration.IVPUSH)
return "IVPUSH";
if (code == V3RouteOfAdministration.IVRPUSH)
return "IVRPUSH";
if (code == V3RouteOfAdministration.IVSPUSH)
return "IVSPUSH";
if (code == V3RouteOfAdministration.IVITINJ)
return "IVITINJ";
if (code == V3RouteOfAdministration.PAINJ)
return "PAINJ";
if (code == V3RouteOfAdministration.PARENTINJ)
return "PARENTINJ";
if (code == V3RouteOfAdministration.PDONTINJ)
return "PDONTINJ";
if (code == V3RouteOfAdministration.PDPINJ)
return "PDPINJ";
if (code == V3RouteOfAdministration.PDURINJ)
return "PDURINJ";
if (code == V3RouteOfAdministration.PNINJ)
return "PNINJ";
if (code == V3RouteOfAdministration.PNSINJ)
return "PNSINJ";
if (code == V3RouteOfAdministration.RBINJ)
return "RBINJ";
if (code == V3RouteOfAdministration.SCINJ)
return "SCINJ";
if (code == V3RouteOfAdministration.SLESINJ)
return "SLESINJ";
if (code == V3RouteOfAdministration.SOFTISINJ)
return "SOFTISINJ";
if (code == V3RouteOfAdministration.SQ)
return "SQ";
if (code == V3RouteOfAdministration.SUBARACHINJ)
return "SUBARACHINJ";
if (code == V3RouteOfAdministration.SUBMUCINJ)
return "SUBMUCINJ";
if (code == V3RouteOfAdministration.TRPLACINJ)
return "TRPLACINJ";
if (code == V3RouteOfAdministration.TRTRACHINJ)
return "TRTRACHINJ";
if (code == V3RouteOfAdministration.URETHINJ)
return "URETHINJ";
if (code == V3RouteOfAdministration.URETINJ)
return "URETINJ";
if (code == V3RouteOfAdministration._INSERTION)
return "_Insertion";
if (code == V3RouteOfAdministration.CERVINS)
return "CERVINS";
if (code == V3RouteOfAdministration.IOSURGINS)
return "IOSURGINS";
if (code == V3RouteOfAdministration.IU)
return "IU";
if (code == V3RouteOfAdministration.LPINS)
return "LPINS";
if (code == V3RouteOfAdministration.PR)
return "PR";
if (code == V3RouteOfAdministration.SQSURGINS)
return "SQSURGINS";
if (code == V3RouteOfAdministration.URETHINS)
return "URETHINS";
if (code == V3RouteOfAdministration.VAGINSI)
return "VAGINSI";
if (code == V3RouteOfAdministration._INSTILLATION)
return "_Instillation";
if (code == V3RouteOfAdministration.CECINSTL)
return "CECINSTL";
if (code == V3RouteOfAdministration.EFT)
return "EFT";
if (code == V3RouteOfAdministration.ENTINSTL)
return "ENTINSTL";
if (code == V3RouteOfAdministration.GT)
return "GT";
if (code == V3RouteOfAdministration.NGT)
return "NGT";
if (code == V3RouteOfAdministration.OGT)
return "OGT";
if (code == V3RouteOfAdministration.BLADINSTL)
return "BLADINSTL";
if (code == V3RouteOfAdministration.CAPDINSTL)
return "CAPDINSTL";
if (code == V3RouteOfAdministration.CTINSTL)
return "CTINSTL";
if (code == V3RouteOfAdministration.ETINSTL)
return "ETINSTL";
if (code == V3RouteOfAdministration.GJT)
return "GJT";
if (code == V3RouteOfAdministration.IBRONCHINSTIL)
return "IBRONCHINSTIL";
if (code == V3RouteOfAdministration.IDUODINSTIL)
return "IDUODINSTIL";
if (code == V3RouteOfAdministration.IESOPHINSTIL)
return "IESOPHINSTIL";
if (code == V3RouteOfAdministration.IGASTINSTIL)
return "IGASTINSTIL";
if (code == V3RouteOfAdministration.IILEALINJ)
return "IILEALINJ";
if (code == V3RouteOfAdministration.IOINSTL)
return "IOINSTL";
if (code == V3RouteOfAdministration.ISININSTIL)
return "ISININSTIL";
if (code == V3RouteOfAdministration.ITRACHINSTIL)
return "ITRACHINSTIL";
if (code == V3RouteOfAdministration.IUINSTL)
return "IUINSTL";
if (code == V3RouteOfAdministration.JJTINSTL)
return "JJTINSTL";
if (code == V3RouteOfAdministration.LARYNGINSTIL)
return "LARYNGINSTIL";
if (code == V3RouteOfAdministration.NASALINSTIL)
return "NASALINSTIL";
if (code == V3RouteOfAdministration.NASOGASINSTIL)
return "NASOGASINSTIL";
if (code == V3RouteOfAdministration.NTT)
return "NTT";
if (code == V3RouteOfAdministration.OJJ)
return "OJJ";
if (code == V3RouteOfAdministration.OT)
return "OT";
if (code == V3RouteOfAdministration.PDPINSTL)
return "PDPINSTL";
if (code == V3RouteOfAdministration.PNSINSTL)
return "PNSINSTL";
if (code == V3RouteOfAdministration.RECINSTL)
return "RECINSTL";
if (code == V3RouteOfAdministration.RECTINSTL)
return "RECTINSTL";
if (code == V3RouteOfAdministration.SININSTIL)
return "SININSTIL";
if (code == V3RouteOfAdministration.SOFTISINSTIL)
return "SOFTISINSTIL";
if (code == V3RouteOfAdministration.TRACHINSTL)
return "TRACHINSTL";
if (code == V3RouteOfAdministration.TRTYMPINSTIL)
return "TRTYMPINSTIL";
if (code == V3RouteOfAdministration.URETHINSTL)
return "URETHINSTL";
if (code == V3RouteOfAdministration._IONTOPHORESISROUTE)
return "_IontophoresisRoute";
if (code == V3RouteOfAdministration.IONTO)
return "IONTO";
if (code == V3RouteOfAdministration._IRRIGATION)
return "_Irrigation";
if (code == V3RouteOfAdministration.GUIRR)
return "GUIRR";
if (code == V3RouteOfAdministration.IGASTIRR)
return "IGASTIRR";
if (code == V3RouteOfAdministration.ILESIRR)
return "ILESIRR";
if (code == V3RouteOfAdministration.IOIRR)
return "IOIRR";
if (code == V3RouteOfAdministration.BLADIRR)
return "BLADIRR";
if (code == V3RouteOfAdministration.BLADIRRC)
return "BLADIRRC";
if (code == V3RouteOfAdministration.BLADIRRT)
return "BLADIRRT";
if (code == V3RouteOfAdministration.RECIRR)
return "RECIRR";
if (code == V3RouteOfAdministration._LAVAGEROUTE)
return "_LavageRoute";
if (code == V3RouteOfAdministration.IGASTLAV)
return "IGASTLAV";
if (code == V3RouteOfAdministration._MUCOSALABSORPTIONROUTE)
return "_MucosalAbsorptionRoute";
if (code == V3RouteOfAdministration.IDOUDMAB)
return "IDOUDMAB";
if (code == V3RouteOfAdministration.ITRACHMAB)
return "ITRACHMAB";
if (code == V3RouteOfAdministration.SMUCMAB)
return "SMUCMAB";
if (code == V3RouteOfAdministration._NEBULIZATION)
return "_Nebulization";
if (code == V3RouteOfAdministration.ETNEB)
return "ETNEB";
if (code == V3RouteOfAdministration._RINSE)
return "_Rinse";
if (code == V3RouteOfAdministration.DENRINSE)
return "DENRINSE";
if (code == V3RouteOfAdministration.ORRINSE)
return "ORRINSE";
if (code == V3RouteOfAdministration._SUPPOSITORYROUTE)
return "_SuppositoryRoute";
if (code == V3RouteOfAdministration.URETHSUP)
return "URETHSUP";
if (code == V3RouteOfAdministration._SWISH)
return "_Swish";
if (code == V3RouteOfAdministration.SWISHSPIT)
return "SWISHSPIT";
if (code == V3RouteOfAdministration.SWISHSWAL)
return "SWISHSWAL";
if (code == V3RouteOfAdministration._TOPICALABSORPTIONROUTE)
return "_TopicalAbsorptionRoute";
if (code == V3RouteOfAdministration.TTYMPTABSORP)
return "TTYMPTABSORP";
if (code == V3RouteOfAdministration._TOPICALAPPLICATION)
return "_TopicalApplication";
if (code == V3RouteOfAdministration.DRESS)
return "DRESS";
if (code == V3RouteOfAdministration.SWAB)
return "SWAB";
if (code == V3RouteOfAdministration.TOPICAL)
return "TOPICAL";
if (code == V3RouteOfAdministration.BUC)
return "BUC";
if (code == V3RouteOfAdministration.CERV)
return "CERV";
if (code == V3RouteOfAdministration.DEN)
return "DEN";
if (code == V3RouteOfAdministration.GIN)
return "GIN";
if (code == V3RouteOfAdministration.HAIR)
return "HAIR";
if (code == V3RouteOfAdministration.ICORNTA)
return "ICORNTA";
if (code == V3RouteOfAdministration.ICORONTA)
return "ICORONTA";
if (code == V3RouteOfAdministration.IESOPHTA)
return "IESOPHTA";
if (code == V3RouteOfAdministration.IILEALTA)
return "IILEALTA";
if (code == V3RouteOfAdministration.ILTOP)
return "ILTOP";
if (code == V3RouteOfAdministration.ILUMTA)
return "ILUMTA";
if (code == V3RouteOfAdministration.IOTOP)
return "IOTOP";
if (code == V3RouteOfAdministration.LARYNGTA)
return "LARYNGTA";
if (code == V3RouteOfAdministration.MUC)
return "MUC";
if (code == V3RouteOfAdministration.NAIL)
return "NAIL";
if (code == V3RouteOfAdministration.NASAL)
return "NASAL";
if (code == V3RouteOfAdministration.OPTHALTA)
return "OPTHALTA";
if (code == V3RouteOfAdministration.ORALTA)
return "ORALTA";
if (code == V3RouteOfAdministration.ORMUC)
return "ORMUC";
if (code == V3RouteOfAdministration.OROPHARTA)
return "OROPHARTA";
if (code == V3RouteOfAdministration.PERIANAL)
return "PERIANAL";
if (code == V3RouteOfAdministration.PERINEAL)
return "PERINEAL";
if (code == V3RouteOfAdministration.PDONTTA)
return "PDONTTA";
if (code == V3RouteOfAdministration.RECTAL)
return "RECTAL";
if (code == V3RouteOfAdministration.SCALP)
return "SCALP";
if (code == V3RouteOfAdministration.OCDRESTA)
return "OCDRESTA";
if (code == V3RouteOfAdministration.SKIN)
return "SKIN";
if (code == V3RouteOfAdministration.SUBCONJTA)
return "SUBCONJTA";
if (code == V3RouteOfAdministration.TMUCTA)
return "TMUCTA";
if (code == V3RouteOfAdministration.VAGINS)
return "VAGINS";
if (code == V3RouteOfAdministration.INSUF)
return "INSUF";
if (code == V3RouteOfAdministration.TRNSDERM)
return "TRNSDERM";
if (code == V3RouteOfAdministration._ROUTEBYSITE)
return "_RouteBySite";
if (code == V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE)
return "_AmnioticFluidSacRoute";
if (code == V3RouteOfAdministration._BILIARYROUTE)
return "_BiliaryRoute";
if (code == V3RouteOfAdministration._BODYSURFACEROUTE)
return "_BodySurfaceRoute";
if (code == V3RouteOfAdministration._BUCCALMUCOSAROUTE)
return "_BuccalMucosaRoute";
if (code == V3RouteOfAdministration._CECOSTOMYROUTE)
return "_CecostomyRoute";
if (code == V3RouteOfAdministration._CERVICALROUTE)
return "_CervicalRoute";
if (code == V3RouteOfAdministration._ENDOCERVICALROUTE)
return "_EndocervicalRoute";
if (code == V3RouteOfAdministration._ENTERALROUTE)
return "_EnteralRoute";
if (code == V3RouteOfAdministration._EPIDURALROUTE)
return "_EpiduralRoute";
if (code == V3RouteOfAdministration._EXTRAAMNIOTICROUTE)
return "_ExtraAmnioticRoute";
if (code == V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE)
return "_ExtracorporealCirculationRoute";
if (code == V3RouteOfAdministration._GASTRICROUTE)
return "_GastricRoute";
if (code == V3RouteOfAdministration._GENITOURINARYROUTE)
return "_GenitourinaryRoute";
if (code == V3RouteOfAdministration._GINGIVALROUTE)
return "_GingivalRoute";
if (code == V3RouteOfAdministration._HAIRROUTE)
return "_HairRoute";
if (code == V3RouteOfAdministration._INTERAMENINGEALROUTE)
return "_InterameningealRoute";
if (code == V3RouteOfAdministration._INTERSTITIALROUTE)
return "_InterstitialRoute";
if (code == V3RouteOfAdministration._INTRAABDOMINALROUTE)
return "_IntraabdominalRoute";
if (code == V3RouteOfAdministration._INTRAARTERIALROUTE)
return "_IntraarterialRoute";
if (code == V3RouteOfAdministration._INTRAARTICULARROUTE)
return "_IntraarticularRoute";
if (code == V3RouteOfAdministration._INTRABRONCHIALROUTE)
return "_IntrabronchialRoute";
if (code == V3RouteOfAdministration._INTRABURSALROUTE)
return "_IntrabursalRoute";
if (code == V3RouteOfAdministration._INTRACARDIACROUTE)
return "_IntracardiacRoute";
if (code == V3RouteOfAdministration._INTRACARTILAGINOUSROUTE)
return "_IntracartilaginousRoute";
if (code == V3RouteOfAdministration._INTRACAUDALROUTE)
return "_IntracaudalRoute";
if (code == V3RouteOfAdministration._INTRACAVERNOSALROUTE)
return "_IntracavernosalRoute";
if (code == V3RouteOfAdministration._INTRACAVITARYROUTE)
return "_IntracavitaryRoute";
if (code == V3RouteOfAdministration._INTRACEREBRALROUTE)
return "_IntracerebralRoute";
if (code == V3RouteOfAdministration._INTRACERVICALROUTE)
return "_IntracervicalRoute";
if (code == V3RouteOfAdministration._INTRACISTERNALROUTE)
return "_IntracisternalRoute";
if (code == V3RouteOfAdministration._INTRACORNEALROUTE)
return "_IntracornealRoute";
if (code == V3RouteOfAdministration._INTRACORONALROUTE)
return "_IntracoronalRoute";
if (code == V3RouteOfAdministration._INTRACORONARYROUTE)
return "_IntracoronaryRoute";
if (code == V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE)
return "_IntracorpusCavernosumRoute";
if (code == V3RouteOfAdministration._INTRADERMALROUTE)
return "_IntradermalRoute";
if (code == V3RouteOfAdministration._INTRADISCALROUTE)
return "_IntradiscalRoute";
if (code == V3RouteOfAdministration._INTRADUCTALROUTE)
return "_IntraductalRoute";
if (code == V3RouteOfAdministration._INTRADUODENALROUTE)
return "_IntraduodenalRoute";
if (code == V3RouteOfAdministration._INTRADURALROUTE)
return "_IntraduralRoute";
if (code == V3RouteOfAdministration._INTRAEPIDERMALROUTE)
return "_IntraepidermalRoute";
if (code == V3RouteOfAdministration._INTRAEPITHELIALROUTE)
return "_IntraepithelialRoute";
if (code == V3RouteOfAdministration._INTRAESOPHAGEALROUTE)
return "_IntraesophagealRoute";
if (code == V3RouteOfAdministration._INTRAGASTRICROUTE)
return "_IntragastricRoute";
if (code == V3RouteOfAdministration._INTRAILEALROUTE)
return "_IntrailealRoute";
if (code == V3RouteOfAdministration._INTRALESIONALROUTE)
return "_IntralesionalRoute";
if (code == V3RouteOfAdministration._INTRALUMINALROUTE)
return "_IntraluminalRoute";
if (code == V3RouteOfAdministration._INTRALYMPHATICROUTE)
return "_IntralymphaticRoute";
if (code == V3RouteOfAdministration._INTRAMEDULLARYROUTE)
return "_IntramedullaryRoute";
if (code == V3RouteOfAdministration._INTRAMUSCULARROUTE)
return "_IntramuscularRoute";
if (code == V3RouteOfAdministration._INTRAOCULARROUTE)
return "_IntraocularRoute";
if (code == V3RouteOfAdministration._INTRAOSSEOUSROUTE)
return "_IntraosseousRoute";
if (code == V3RouteOfAdministration._INTRAOVARIANROUTE)
return "_IntraovarianRoute";
if (code == V3RouteOfAdministration._INTRAPERICARDIALROUTE)
return "_IntrapericardialRoute";
if (code == V3RouteOfAdministration._INTRAPERITONEALROUTE)
return "_IntraperitonealRoute";
if (code == V3RouteOfAdministration._INTRAPLEURALROUTE)
return "_IntrapleuralRoute";
if (code == V3RouteOfAdministration._INTRAPROSTATICROUTE)
return "_IntraprostaticRoute";
if (code == V3RouteOfAdministration._INTRAPULMONARYROUTE)
return "_IntrapulmonaryRoute";
if (code == V3RouteOfAdministration._INTRASINALROUTE)
return "_IntrasinalRoute";
if (code == V3RouteOfAdministration._INTRASPINALROUTE)
return "_IntraspinalRoute";
if (code == V3RouteOfAdministration._INTRASTERNALROUTE)
return "_IntrasternalRoute";
if (code == V3RouteOfAdministration._INTRASYNOVIALROUTE)
return "_IntrasynovialRoute";
if (code == V3RouteOfAdministration._INTRATENDINOUSROUTE)
return "_IntratendinousRoute";
if (code == V3RouteOfAdministration._INTRATESTICULARROUTE)
return "_IntratesticularRoute";
if (code == V3RouteOfAdministration._INTRATHECALROUTE)
return "_IntrathecalRoute";
if (code == V3RouteOfAdministration._INTRATHORACICROUTE)
return "_IntrathoracicRoute";
if (code == V3RouteOfAdministration._INTRATRACHEALROUTE)
return "_IntratrachealRoute";
if (code == V3RouteOfAdministration._INTRATUBULARROUTE)
return "_IntratubularRoute";
if (code == V3RouteOfAdministration._INTRATUMORROUTE)
return "_IntratumorRoute";
if (code == V3RouteOfAdministration._INTRATYMPANICROUTE)
return "_IntratympanicRoute";
if (code == V3RouteOfAdministration._INTRAUTERINEROUTE)
return "_IntrauterineRoute";
if (code == V3RouteOfAdministration._INTRAVASCULARROUTE)
return "_IntravascularRoute";
if (code == V3RouteOfAdministration._INTRAVENOUSROUTE)
return "_IntravenousRoute";
if (code == V3RouteOfAdministration._INTRAVENTRICULARROUTE)
return "_IntraventricularRoute";
if (code == V3RouteOfAdministration._INTRAVESICLEROUTE)
return "_IntravesicleRoute";
if (code == V3RouteOfAdministration._INTRAVITREALROUTE)
return "_IntravitrealRoute";
if (code == V3RouteOfAdministration._JEJUNUMROUTE)
return "_JejunumRoute";
if (code == V3RouteOfAdministration._LACRIMALPUNCTAROUTE)
return "_LacrimalPunctaRoute";
if (code == V3RouteOfAdministration._LARYNGEALROUTE)
return "_LaryngealRoute";
if (code == V3RouteOfAdministration._LINGUALROUTE)
return "_LingualRoute";
if (code == V3RouteOfAdministration._MUCOUSMEMBRANEROUTE)
return "_MucousMembraneRoute";
if (code == V3RouteOfAdministration._NAILROUTE)
return "_NailRoute";
if (code == V3RouteOfAdministration._NASALROUTE)
return "_NasalRoute";
if (code == V3RouteOfAdministration._OPHTHALMICROUTE)
return "_OphthalmicRoute";
if (code == V3RouteOfAdministration._ORALROUTE)
return "_OralRoute";
if (code == V3RouteOfAdministration._OROMUCOSALROUTE)
return "_OromucosalRoute";
if (code == V3RouteOfAdministration._OROPHARYNGEALROUTE)
return "_OropharyngealRoute";
if (code == V3RouteOfAdministration._OTICROUTE)
return "_OticRoute";
if (code == V3RouteOfAdministration._PARANASALSINUSESROUTE)
return "_ParanasalSinusesRoute";
if (code == V3RouteOfAdministration._PARENTERALROUTE)
return "_ParenteralRoute";
if (code == V3RouteOfAdministration._PERIANALROUTE)
return "_PerianalRoute";
if (code == V3RouteOfAdministration._PERIARTICULARROUTE)
return "_PeriarticularRoute";
if (code == V3RouteOfAdministration._PERIDURALROUTE)
return "_PeriduralRoute";
if (code == V3RouteOfAdministration._PERINEALROUTE)
return "_PerinealRoute";
if (code == V3RouteOfAdministration._PERINEURALROUTE)
return "_PerineuralRoute";
if (code == V3RouteOfAdministration._PERIODONTALROUTE)
return "_PeriodontalRoute";
if (code == V3RouteOfAdministration._PULMONARYROUTE)
return "_PulmonaryRoute";
if (code == V3RouteOfAdministration._RECTALROUTE)
return "_RectalRoute";
if (code == V3RouteOfAdministration._RESPIRATORYTRACTROUTE)
return "_RespiratoryTractRoute";
if (code == V3RouteOfAdministration._RETROBULBARROUTE)
return "_RetrobulbarRoute";
if (code == V3RouteOfAdministration._SCALPROUTE)
return "_ScalpRoute";
if (code == V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE)
return "_SinusUnspecifiedRoute";
if (code == V3RouteOfAdministration._SKINROUTE)
return "_SkinRoute";
if (code == V3RouteOfAdministration._SOFTTISSUEROUTE)
return "_SoftTissueRoute";
if (code == V3RouteOfAdministration._SUBARACHNOIDROUTE)
return "_SubarachnoidRoute";
if (code == V3RouteOfAdministration._SUBCONJUNCTIVALROUTE)
return "_SubconjunctivalRoute";
if (code == V3RouteOfAdministration._SUBCUTANEOUSROUTE)
return "_SubcutaneousRoute";
if (code == V3RouteOfAdministration._SUBLESIONALROUTE)
return "_SublesionalRoute";
if (code == V3RouteOfAdministration._SUBLINGUALROUTE)
return "_SublingualRoute";
if (code == V3RouteOfAdministration._SUBMUCOSALROUTE)
return "_SubmucosalRoute";
if (code == V3RouteOfAdministration._TRACHEOSTOMYROUTE)
return "_TracheostomyRoute";
if (code == V3RouteOfAdministration._TRANSMUCOSALROUTE)
return "_TransmucosalRoute";
if (code == V3RouteOfAdministration._TRANSPLACENTALROUTE)
return "_TransplacentalRoute";
if (code == V3RouteOfAdministration._TRANSTRACHEALROUTE)
return "_TranstrachealRoute";
if (code == V3RouteOfAdministration._TRANSTYMPANICROUTE)
return "_TranstympanicRoute";
if (code == V3RouteOfAdministration._URETERALROUTE)
return "_UreteralRoute";
if (code == V3RouteOfAdministration._URETHRALROUTE)
return "_UrethralRoute";
if (code == V3RouteOfAdministration._URINARYBLADDERROUTE)
return "_UrinaryBladderRoute";
if (code == V3RouteOfAdministration._URINARYTRACTROUTE)
return "_UrinaryTractRoute";
if (code == V3RouteOfAdministration._VAGINALROUTE)
return "_VaginalRoute";
if (code == V3RouteOfAdministration._VITREOUSHUMOURROUTE)
return "_VitreousHumourRoute";
return "?";
}
public String toSystem(V3RouteOfAdministration code) {
return code.getSystem();
}
}
| bhits/hapi-fhir | hapi-fhir-structures-r4/src/main/java/org/hl7/fhir/r4/model/codesystems/V3RouteOfAdministrationEnumFactory.java |
213,467 | package org.hl7.fhir.dstu2016may.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0
import org.hl7.fhir.exceptions.FHIRException;
public enum V3OrderableDrugForm {
/**
* AdministrableDrugForm
*/
_ADMINISTRABLEDRUGFORM,
/**
* Applicatorful
*/
APPFUL,
/**
* Drops
*/
DROP,
/**
* Nasal Drops
*/
NDROP,
/**
* Ophthalmic Drops
*/
OPDROP,
/**
* Oral Drops
*/
ORDROP,
/**
* Otic Drops
*/
OTDROP,
/**
* Puff
*/
PUFF,
/**
* Scoops
*/
SCOOP,
/**
* Sprays
*/
SPRY,
/**
* DispensableDrugForm
*/
_DISPENSABLEDRUGFORM,
/**
* Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.
*/
_GASDRUGFORM,
/**
* Gas for Inhalation
*/
GASINHL,
/**
* GasLiquidMixture
*/
_GASLIQUIDMIXTURE,
/**
* Aerosol
*/
AER,
/**
* Breath Activated Inhaler
*/
BAINHL,
/**
* Inhalant Solution
*/
INHLSOL,
/**
* Metered Dose Inhaler
*/
MDINHL,
/**
* Nasal Spray
*/
NASSPRY,
/**
* Dermal Spray
*/
DERMSPRY,
/**
* Foam
*/
FOAM,
/**
* Foam with Applicator
*/
FOAMAPL,
/**
* Rectal foam
*/
RECFORM,
/**
* Vaginal foam
*/
VAGFOAM,
/**
* Vaginal foam with applicator
*/
VAGFOAMAPL,
/**
* Rectal Spray
*/
RECSPRY,
/**
* Vaginal Spray
*/
VAGSPRY,
/**
* GasSolidSpray
*/
_GASSOLIDSPRAY,
/**
* Inhalant
*/
INHL,
/**
* Breath Activated Powder Inhaler
*/
BAINHLPWD,
/**
* Inhalant Powder
*/
INHLPWD,
/**
* Metered Dose Powder Inhaler
*/
MDINHLPWD,
/**
* Nasal Inhalant
*/
NASINHL,
/**
* Oral Inhalant
*/
ORINHL,
/**
* Powder Spray
*/
PWDSPRY,
/**
* Spray with Adaptor
*/
SPRYADAPT,
/**
* A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)
*/
_LIQUID,
/**
* Liquid Cleanser
*/
LIQCLN,
/**
* Medicated Liquid Soap
*/
LIQSOAP,
/**
* A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.
*/
SHMP,
/**
* An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.
*/
OIL,
/**
* Topical Oil
*/
TOPOIL,
/**
* A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.
*/
SOL,
/**
* Intraperitoneal Solution
*/
IPSOL,
/**
* A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.
*/
IRSOL,
/**
* A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.
*/
DOUCHE,
/**
* A rectal preparation for therapeutic, diagnostic, or nutritive purposes.
*/
ENEMA,
/**
* Ophthalmic Irrigation Solution
*/
OPIRSOL,
/**
* Intravenous Solution
*/
IVSOL,
/**
* Oral Solution
*/
ORALSOL,
/**
* A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.
*/
ELIXIR,
/**
* An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.
*/
RINSE,
/**
* An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.
*/
SYRUP,
/**
* Rectal Solution
*/
RECSOL,
/**
* Topical Solution
*/
TOPSOL,
/**
* A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.
*/
LIN,
/**
* Mucous Membrane Topical Solution
*/
MUCTOPSOL,
/**
* Tincture
*/
TINC,
/**
* A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.
*/
_LIQUIDLIQUIDEMULSION,
/**
* A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.
*/
CRM,
/**
* Nasal Cream
*/
NASCRM,
/**
* Ophthalmic Cream
*/
OPCRM,
/**
* Oral Cream
*/
ORCRM,
/**
* Otic Cream
*/
OTCRM,
/**
* Rectal Cream
*/
RECCRM,
/**
* Topical Cream
*/
TOPCRM,
/**
* Vaginal Cream
*/
VAGCRM,
/**
* Vaginal Cream with Applicator
*/
VAGCRMAPL,
/**
* The term "lotion" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.
*/
LTN,
/**
* Topical Lotion
*/
TOPLTN,
/**
* A semisolid preparation intended for external application to the skin or mucous membranes.
*/
OINT,
/**
* Nasal Ointment
*/
NASOINT,
/**
* Ointment with Applicator
*/
OINTAPL,
/**
* Ophthalmic Ointment
*/
OPOINT,
/**
* Otic Ointment
*/
OTOINT,
/**
* Rectal Ointment
*/
RECOINT,
/**
* Topical Ointment
*/
TOPOINT,
/**
* Vaginal Ointment
*/
VAGOINT,
/**
* Vaginal Ointment with Applicator
*/
VAGOINTAPL,
/**
* A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.
*/
_LIQUIDSOLIDSUSPENSION,
/**
* A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.
*/
GEL,
/**
* Gel with Applicator
*/
GELAPL,
/**
* Nasal Gel
*/
NASGEL,
/**
* Ophthalmic Gel
*/
OPGEL,
/**
* Otic Gel
*/
OTGEL,
/**
* Topical Gel
*/
TOPGEL,
/**
* Urethral Gel
*/
URETHGEL,
/**
* Vaginal Gel
*/
VAGGEL,
/**
* Vaginal Gel with Applicator
*/
VGELAPL,
/**
* A semisolid dosage form that contains one or more drug substances intended for topical application.
*/
PASTE,
/**
* Pudding
*/
PUD,
/**
* A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.
*/
TPASTE,
/**
* Suspension
*/
SUSP,
/**
* Intrathecal Suspension
*/
ITSUSP,
/**
* Ophthalmic Suspension
*/
OPSUSP,
/**
* Oral Suspension
*/
ORSUSP,
/**
* Extended-Release Suspension
*/
ERSUSP,
/**
* 12 Hour Extended-Release Suspension
*/
ERSUSP12,
/**
* 24 Hour Extended Release Suspension
*/
ERSUSP24,
/**
* Otic Suspension
*/
OTSUSP,
/**
* Rectal Suspension
*/
RECSUSP,
/**
* SolidDrugForm
*/
_SOLIDDRUGFORM,
/**
* Bar
*/
BAR,
/**
* Bar Soap
*/
BARSOAP,
/**
* Medicated Bar Soap
*/
MEDBAR,
/**
* A solid dosage form usually in the form of a rectangle that is meant to be chewed.
*/
CHEWBAR,
/**
* A solid dosage form in the shape of a small ball.
*/
BEAD,
/**
* Cake
*/
CAKE,
/**
* A substance that serves to produce solid union between two surfaces.
*/
CEMENT,
/**
* A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.
*/
CRYS,
/**
* A circular plate-like organ or structure.
*/
DISK,
/**
* Flakes
*/
FLAKE,
/**
* A small particle or grain.
*/
GRAN,
/**
* A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.
*/
GUM,
/**
* Pad
*/
PAD,
/**
* Medicated Pad
*/
MEDPAD,
/**
* A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.
*/
PATCH,
/**
* Transdermal Patch
*/
TPATCH,
/**
* 16 Hour Transdermal Patch
*/
TPATH16,
/**
* 24 Hour Transdermal Patch
*/
TPATH24,
/**
* Biweekly Transdermal Patch
*/
TPATH2WK,
/**
* 72 Hour Transdermal Patch
*/
TPATH72,
/**
* Weekly Transdermal Patch
*/
TPATHWK,
/**
* A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.
*/
PELLET,
/**
* A small, round solid dosage form containing a medicinal agent intended for oral administration.
*/
PILL,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or "shell" made from a suitable form of gelatin.
*/
CAP,
/**
* Oral Capsule
*/
ORCAP,
/**
* Enteric Coated Capsule
*/
ENTCAP,
/**
* Extended Release Enteric Coated Capsule
*/
ERENTCAP,
/**
* A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.
*/
ERCAP,
/**
* 12 Hour Extended Release Capsule
*/
ERCAP12,
/**
* 24 Hour Extended Release Capsule
*/
ERCAP24,
/**
* Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.
*/
ERECCAP,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents.
*/
TAB,
/**
* Oral Tablet
*/
ORTAB,
/**
* Buccal Tablet
*/
BUCTAB,
/**
* Sustained Release Buccal Tablet
*/
SRBUCTAB,
/**
* Caplet
*/
CAPLET,
/**
* A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.
*/
CHEWTAB,
/**
* Coated Particles Tablet
*/
CPTAB,
/**
* A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.
*/
DISINTAB,
/**
* Delayed Release Tablet
*/
DRTAB,
/**
* Enteric Coated Tablet
*/
ECTAB,
/**
* Extended Release Enteric Coated Tablet
*/
ERECTAB,
/**
* A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.
*/
ERTAB,
/**
* 12 Hour Extended Release Tablet
*/
ERTAB12,
/**
* 24 Hour Extended Release Tablet
*/
ERTAB24,
/**
* A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.
*/
ORTROCHE,
/**
* Sublingual Tablet
*/
SLTAB,
/**
* Vaginal Tablet
*/
VAGTAB,
/**
* An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.
*/
POWD,
/**
* Topical Powder
*/
TOPPWD,
/**
* Rectal Powder
*/
RECPWD,
/**
* Vaginal Powder
*/
VAGPWD,
/**
* A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.
*/
SUPP,
/**
* Rectal Suppository
*/
RECSUPP,
/**
* Urethral suppository
*/
URETHSUPP,
/**
* Vaginal Suppository
*/
VAGSUPP,
/**
* A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.
*/
SWAB,
/**
* Medicated swab
*/
MEDSWAB,
/**
* A thin slice of material containing a medicinal agent.
*/
WAFER,
/**
* added to help the parsers
*/
NULL;
public static V3OrderableDrugForm fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return _ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return APPFUL;
if ("DROP".equals(codeString))
return DROP;
if ("NDROP".equals(codeString))
return NDROP;
if ("OPDROP".equals(codeString))
return OPDROP;
if ("ORDROP".equals(codeString))
return ORDROP;
if ("OTDROP".equals(codeString))
return OTDROP;
if ("PUFF".equals(codeString))
return PUFF;
if ("SCOOP".equals(codeString))
return SCOOP;
if ("SPRY".equals(codeString))
return SPRY;
if ("_DispensableDrugForm".equals(codeString))
return _DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return _GASDRUGFORM;
if ("GASINHL".equals(codeString))
return GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return _GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return AER;
if ("BAINHL".equals(codeString))
return BAINHL;
if ("INHLSOL".equals(codeString))
return INHLSOL;
if ("MDINHL".equals(codeString))
return MDINHL;
if ("NASSPRY".equals(codeString))
return NASSPRY;
if ("DERMSPRY".equals(codeString))
return DERMSPRY;
if ("FOAM".equals(codeString))
return FOAM;
if ("FOAMAPL".equals(codeString))
return FOAMAPL;
if ("RECFORM".equals(codeString))
return RECFORM;
if ("VAGFOAM".equals(codeString))
return VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return RECSPRY;
if ("VAGSPRY".equals(codeString))
return VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return _GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return INHL;
if ("BAINHLPWD".equals(codeString))
return BAINHLPWD;
if ("INHLPWD".equals(codeString))
return INHLPWD;
if ("MDINHLPWD".equals(codeString))
return MDINHLPWD;
if ("NASINHL".equals(codeString))
return NASINHL;
if ("ORINHL".equals(codeString))
return ORINHL;
if ("PWDSPRY".equals(codeString))
return PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return SPRYADAPT;
if ("_Liquid".equals(codeString))
return _LIQUID;
if ("LIQCLN".equals(codeString))
return LIQCLN;
if ("LIQSOAP".equals(codeString))
return LIQSOAP;
if ("SHMP".equals(codeString))
return SHMP;
if ("OIL".equals(codeString))
return OIL;
if ("TOPOIL".equals(codeString))
return TOPOIL;
if ("SOL".equals(codeString))
return SOL;
if ("IPSOL".equals(codeString))
return IPSOL;
if ("IRSOL".equals(codeString))
return IRSOL;
if ("DOUCHE".equals(codeString))
return DOUCHE;
if ("ENEMA".equals(codeString))
return ENEMA;
if ("OPIRSOL".equals(codeString))
return OPIRSOL;
if ("IVSOL".equals(codeString))
return IVSOL;
if ("ORALSOL".equals(codeString))
return ORALSOL;
if ("ELIXIR".equals(codeString))
return ELIXIR;
if ("RINSE".equals(codeString))
return RINSE;
if ("SYRUP".equals(codeString))
return SYRUP;
if ("RECSOL".equals(codeString))
return RECSOL;
if ("TOPSOL".equals(codeString))
return TOPSOL;
if ("LIN".equals(codeString))
return LIN;
if ("MUCTOPSOL".equals(codeString))
return MUCTOPSOL;
if ("TINC".equals(codeString))
return TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return _LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return CRM;
if ("NASCRM".equals(codeString))
return NASCRM;
if ("OPCRM".equals(codeString))
return OPCRM;
if ("ORCRM".equals(codeString))
return ORCRM;
if ("OTCRM".equals(codeString))
return OTCRM;
if ("RECCRM".equals(codeString))
return RECCRM;
if ("TOPCRM".equals(codeString))
return TOPCRM;
if ("VAGCRM".equals(codeString))
return VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return VAGCRMAPL;
if ("LTN".equals(codeString))
return LTN;
if ("TOPLTN".equals(codeString))
return TOPLTN;
if ("OINT".equals(codeString))
return OINT;
if ("NASOINT".equals(codeString))
return NASOINT;
if ("OINTAPL".equals(codeString))
return OINTAPL;
if ("OPOINT".equals(codeString))
return OPOINT;
if ("OTOINT".equals(codeString))
return OTOINT;
if ("RECOINT".equals(codeString))
return RECOINT;
if ("TOPOINT".equals(codeString))
return TOPOINT;
if ("VAGOINT".equals(codeString))
return VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return _LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return GEL;
if ("GELAPL".equals(codeString))
return GELAPL;
if ("NASGEL".equals(codeString))
return NASGEL;
if ("OPGEL".equals(codeString))
return OPGEL;
if ("OTGEL".equals(codeString))
return OTGEL;
if ("TOPGEL".equals(codeString))
return TOPGEL;
if ("URETHGEL".equals(codeString))
return URETHGEL;
if ("VAGGEL".equals(codeString))
return VAGGEL;
if ("VGELAPL".equals(codeString))
return VGELAPL;
if ("PASTE".equals(codeString))
return PASTE;
if ("PUD".equals(codeString))
return PUD;
if ("TPASTE".equals(codeString))
return TPASTE;
if ("SUSP".equals(codeString))
return SUSP;
if ("ITSUSP".equals(codeString))
return ITSUSP;
if ("OPSUSP".equals(codeString))
return OPSUSP;
if ("ORSUSP".equals(codeString))
return ORSUSP;
if ("ERSUSP".equals(codeString))
return ERSUSP;
if ("ERSUSP12".equals(codeString))
return ERSUSP12;
if ("ERSUSP24".equals(codeString))
return ERSUSP24;
if ("OTSUSP".equals(codeString))
return OTSUSP;
if ("RECSUSP".equals(codeString))
return RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return _SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return BAR;
if ("BARSOAP".equals(codeString))
return BARSOAP;
if ("MEDBAR".equals(codeString))
return MEDBAR;
if ("CHEWBAR".equals(codeString))
return CHEWBAR;
if ("BEAD".equals(codeString))
return BEAD;
if ("CAKE".equals(codeString))
return CAKE;
if ("CEMENT".equals(codeString))
return CEMENT;
if ("CRYS".equals(codeString))
return CRYS;
if ("DISK".equals(codeString))
return DISK;
if ("FLAKE".equals(codeString))
return FLAKE;
if ("GRAN".equals(codeString))
return GRAN;
if ("GUM".equals(codeString))
return GUM;
if ("PAD".equals(codeString))
return PAD;
if ("MEDPAD".equals(codeString))
return MEDPAD;
if ("PATCH".equals(codeString))
return PATCH;
if ("TPATCH".equals(codeString))
return TPATCH;
if ("TPATH16".equals(codeString))
return TPATH16;
if ("TPATH24".equals(codeString))
return TPATH24;
if ("TPATH2WK".equals(codeString))
return TPATH2WK;
if ("TPATH72".equals(codeString))
return TPATH72;
if ("TPATHWK".equals(codeString))
return TPATHWK;
if ("PELLET".equals(codeString))
return PELLET;
if ("PILL".equals(codeString))
return PILL;
if ("CAP".equals(codeString))
return CAP;
if ("ORCAP".equals(codeString))
return ORCAP;
if ("ENTCAP".equals(codeString))
return ENTCAP;
if ("ERENTCAP".equals(codeString))
return ERENTCAP;
if ("ERCAP".equals(codeString))
return ERCAP;
if ("ERCAP12".equals(codeString))
return ERCAP12;
if ("ERCAP24".equals(codeString))
return ERCAP24;
if ("ERECCAP".equals(codeString))
return ERECCAP;
if ("TAB".equals(codeString))
return TAB;
if ("ORTAB".equals(codeString))
return ORTAB;
if ("BUCTAB".equals(codeString))
return BUCTAB;
if ("SRBUCTAB".equals(codeString))
return SRBUCTAB;
if ("CAPLET".equals(codeString))
return CAPLET;
if ("CHEWTAB".equals(codeString))
return CHEWTAB;
if ("CPTAB".equals(codeString))
return CPTAB;
if ("DISINTAB".equals(codeString))
return DISINTAB;
if ("DRTAB".equals(codeString))
return DRTAB;
if ("ECTAB".equals(codeString))
return ECTAB;
if ("ERECTAB".equals(codeString))
return ERECTAB;
if ("ERTAB".equals(codeString))
return ERTAB;
if ("ERTAB12".equals(codeString))
return ERTAB12;
if ("ERTAB24".equals(codeString))
return ERTAB24;
if ("ORTROCHE".equals(codeString))
return ORTROCHE;
if ("SLTAB".equals(codeString))
return SLTAB;
if ("VAGTAB".equals(codeString))
return VAGTAB;
if ("POWD".equals(codeString))
return POWD;
if ("TOPPWD".equals(codeString))
return TOPPWD;
if ("RECPWD".equals(codeString))
return RECPWD;
if ("VAGPWD".equals(codeString))
return VAGPWD;
if ("SUPP".equals(codeString))
return SUPP;
if ("RECSUPP".equals(codeString))
return RECSUPP;
if ("URETHSUPP".equals(codeString))
return URETHSUPP;
if ("VAGSUPP".equals(codeString))
return VAGSUPP;
if ("SWAB".equals(codeString))
return SWAB;
if ("MEDSWAB".equals(codeString))
return MEDSWAB;
if ("WAFER".equals(codeString))
return WAFER;
throw new FHIRException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "_AdministrableDrugForm";
case APPFUL: return "APPFUL";
case DROP: return "DROP";
case NDROP: return "NDROP";
case OPDROP: return "OPDROP";
case ORDROP: return "ORDROP";
case OTDROP: return "OTDROP";
case PUFF: return "PUFF";
case SCOOP: return "SCOOP";
case SPRY: return "SPRY";
case _DISPENSABLEDRUGFORM: return "_DispensableDrugForm";
case _GASDRUGFORM: return "_GasDrugForm";
case GASINHL: return "GASINHL";
case _GASLIQUIDMIXTURE: return "_GasLiquidMixture";
case AER: return "AER";
case BAINHL: return "BAINHL";
case INHLSOL: return "INHLSOL";
case MDINHL: return "MDINHL";
case NASSPRY: return "NASSPRY";
case DERMSPRY: return "DERMSPRY";
case FOAM: return "FOAM";
case FOAMAPL: return "FOAMAPL";
case RECFORM: return "RECFORM";
case VAGFOAM: return "VAGFOAM";
case VAGFOAMAPL: return "VAGFOAMAPL";
case RECSPRY: return "RECSPRY";
case VAGSPRY: return "VAGSPRY";
case _GASSOLIDSPRAY: return "_GasSolidSpray";
case INHL: return "INHL";
case BAINHLPWD: return "BAINHLPWD";
case INHLPWD: return "INHLPWD";
case MDINHLPWD: return "MDINHLPWD";
case NASINHL: return "NASINHL";
case ORINHL: return "ORINHL";
case PWDSPRY: return "PWDSPRY";
case SPRYADAPT: return "SPRYADAPT";
case _LIQUID: return "_Liquid";
case LIQCLN: return "LIQCLN";
case LIQSOAP: return "LIQSOAP";
case SHMP: return "SHMP";
case OIL: return "OIL";
case TOPOIL: return "TOPOIL";
case SOL: return "SOL";
case IPSOL: return "IPSOL";
case IRSOL: return "IRSOL";
case DOUCHE: return "DOUCHE";
case ENEMA: return "ENEMA";
case OPIRSOL: return "OPIRSOL";
case IVSOL: return "IVSOL";
case ORALSOL: return "ORALSOL";
case ELIXIR: return "ELIXIR";
case RINSE: return "RINSE";
case SYRUP: return "SYRUP";
case RECSOL: return "RECSOL";
case TOPSOL: return "TOPSOL";
case LIN: return "LIN";
case MUCTOPSOL: return "MUCTOPSOL";
case TINC: return "TINC";
case _LIQUIDLIQUIDEMULSION: return "_LiquidLiquidEmulsion";
case CRM: return "CRM";
case NASCRM: return "NASCRM";
case OPCRM: return "OPCRM";
case ORCRM: return "ORCRM";
case OTCRM: return "OTCRM";
case RECCRM: return "RECCRM";
case TOPCRM: return "TOPCRM";
case VAGCRM: return "VAGCRM";
case VAGCRMAPL: return "VAGCRMAPL";
case LTN: return "LTN";
case TOPLTN: return "TOPLTN";
case OINT: return "OINT";
case NASOINT: return "NASOINT";
case OINTAPL: return "OINTAPL";
case OPOINT: return "OPOINT";
case OTOINT: return "OTOINT";
case RECOINT: return "RECOINT";
case TOPOINT: return "TOPOINT";
case VAGOINT: return "VAGOINT";
case VAGOINTAPL: return "VAGOINTAPL";
case _LIQUIDSOLIDSUSPENSION: return "_LiquidSolidSuspension";
case GEL: return "GEL";
case GELAPL: return "GELAPL";
case NASGEL: return "NASGEL";
case OPGEL: return "OPGEL";
case OTGEL: return "OTGEL";
case TOPGEL: return "TOPGEL";
case URETHGEL: return "URETHGEL";
case VAGGEL: return "VAGGEL";
case VGELAPL: return "VGELAPL";
case PASTE: return "PASTE";
case PUD: return "PUD";
case TPASTE: return "TPASTE";
case SUSP: return "SUSP";
case ITSUSP: return "ITSUSP";
case OPSUSP: return "OPSUSP";
case ORSUSP: return "ORSUSP";
case ERSUSP: return "ERSUSP";
case ERSUSP12: return "ERSUSP12";
case ERSUSP24: return "ERSUSP24";
case OTSUSP: return "OTSUSP";
case RECSUSP: return "RECSUSP";
case _SOLIDDRUGFORM: return "_SolidDrugForm";
case BAR: return "BAR";
case BARSOAP: return "BARSOAP";
case MEDBAR: return "MEDBAR";
case CHEWBAR: return "CHEWBAR";
case BEAD: return "BEAD";
case CAKE: return "CAKE";
case CEMENT: return "CEMENT";
case CRYS: return "CRYS";
case DISK: return "DISK";
case FLAKE: return "FLAKE";
case GRAN: return "GRAN";
case GUM: return "GUM";
case PAD: return "PAD";
case MEDPAD: return "MEDPAD";
case PATCH: return "PATCH";
case TPATCH: return "TPATCH";
case TPATH16: return "TPATH16";
case TPATH24: return "TPATH24";
case TPATH2WK: return "TPATH2WK";
case TPATH72: return "TPATH72";
case TPATHWK: return "TPATHWK";
case PELLET: return "PELLET";
case PILL: return "PILL";
case CAP: return "CAP";
case ORCAP: return "ORCAP";
case ENTCAP: return "ENTCAP";
case ERENTCAP: return "ERENTCAP";
case ERCAP: return "ERCAP";
case ERCAP12: return "ERCAP12";
case ERCAP24: return "ERCAP24";
case ERECCAP: return "ERECCAP";
case TAB: return "TAB";
case ORTAB: return "ORTAB";
case BUCTAB: return "BUCTAB";
case SRBUCTAB: return "SRBUCTAB";
case CAPLET: return "CAPLET";
case CHEWTAB: return "CHEWTAB";
case CPTAB: return "CPTAB";
case DISINTAB: return "DISINTAB";
case DRTAB: return "DRTAB";
case ECTAB: return "ECTAB";
case ERECTAB: return "ERECTAB";
case ERTAB: return "ERTAB";
case ERTAB12: return "ERTAB12";
case ERTAB24: return "ERTAB24";
case ORTROCHE: return "ORTROCHE";
case SLTAB: return "SLTAB";
case VAGTAB: return "VAGTAB";
case POWD: return "POWD";
case TOPPWD: return "TOPPWD";
case RECPWD: return "RECPWD";
case VAGPWD: return "VAGPWD";
case SUPP: return "SUPP";
case RECSUPP: return "RECSUPP";
case URETHSUPP: return "URETHSUPP";
case VAGSUPP: return "VAGSUPP";
case SWAB: return "SWAB";
case MEDSWAB: return "MEDSWAB";
case WAFER: return "WAFER";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/v3/orderableDrugForm";
}
public String getDefinition() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "Any elastic aeriform fluid in which the molecules are separated from one another and have free paths.";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "A state of substance that is an intermediate one entered into as matter goes from solid to gas; liquids are also intermediate in that they have neither the orderliness of a crystal nor the randomness of a gas. (Note: This term should not be used to describe solutions, only pure chemicals in their liquid state.)";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "A liquid soap or detergent used to clean the hair and scalp and is often used as a vehicle for dermatologic agents.";
case OIL: return "An unctuous, combustible substance which is liquid, or easily liquefiable, on warming, and is soluble in ether but insoluble in water. Such substances, depending on their origin, are classified as animal, mineral, or vegetable oils.";
case TOPOIL: return "Topical Oil";
case SOL: return "A liquid preparation that contains one or more chemical substances dissolved, i.e., molecularly dispersed, in a suitable solvent or mixture of mutually miscible solvents.";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "A sterile solution intended to bathe or flush open wounds or body cavities; they're used topically, never parenterally.";
case DOUCHE: return "A liquid preparation, intended for the irrigative cleansing of the vagina, that is prepared from powders, liquid solutions, or liquid concentrates and contains one or more chemical substances dissolved in a suitable solvent or mutually miscible solvents.";
case ENEMA: return "A rectal preparation for therapeutic, diagnostic, or nutritive purposes.";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "A clear, pleasantly flavored, sweetened hydroalcoholic liquid containing dissolved medicinal agents; it is intended for oral use.";
case RINSE: return "An aqueous solution which is most often used for its deodorant, refreshing, or antiseptic effect.";
case SYRUP: return "An oral solution containing high concentrations of sucrose or other sugars; the term has also been used to include any other liquid dosage form prepared in a sweet and viscid vehicle, including oral suspensions.";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "A solution or mixture of various substances in oil, alcoholic solutions of soap, or emulsions intended for external application.";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "A two-phase system in which one liquid is dispersed throughout another liquid in the form of small droplets.";
case CRM: return "A semisolid dosage form containing one or more drug substances dissolved or dispersed in a suitable base; more recently, the term has been restricted to products consisting of oil-in-water emulsions or aqueous microcrystalline dispersions of long chain fatty acids or alcohols that are water washable and more cosmetically and aesthetically acceptable.";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "The term \"lotion\" has been used to categorize many topical suspensions, solutions and emulsions intended for application to the skin.";
case TOPLTN: return "Topical Lotion";
case OINT: return "A semisolid preparation intended for external application to the skin or mucous membranes.";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "A liquid preparation which consists of solid particles dispersed throughout a liquid phase in which the particles are not soluble.";
case GEL: return "A semisolid system consisting of either suspensions made up of small inorganic particles or large organic molecules interpenetrated by a liquid.";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "A semisolid dosage form that contains one or more drug substances intended for topical application.";
case PUD: return "Pudding";
case TPASTE: return "A paste formulation intended to clean and/or polish the teeth, and which may contain certain additional agents.";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "A solid dosage form usually in the form of a rectangle that is meant to be chewed.";
case BEAD: return "A solid dosage form in the shape of a small ball.";
case CAKE: return "Cake";
case CEMENT: return "A substance that serves to produce solid union between two surfaces.";
case CRYS: return "A naturally produced angular solid of definite form in which the ultimate units from which it is built up are systematically arranged; they are usually evenly spaced on a regular space lattice.";
case DISK: return "A circular plate-like organ or structure.";
case FLAKE: return "Flakes";
case GRAN: return "A small particle or grain.";
case GUM: return "A sweetened and flavored insoluble plastic material of various shapes which when chewed, releases a drug substance into the oral cavity.";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "A drug delivery system that contains an adhesived backing and that permits its ingredients to diffuse from some portion of it (e.g., the backing itself, a reservoir, the adhesive, or some other component) into the body from the external site where it is applied.";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "A small sterile solid mass consisting of a highly purified drug (with or without excipients) made by the formation of granules, or by compression and molding.";
case PILL: return "A small, round solid dosage form containing a medicinal agent intended for oral administration.";
case CAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container or \"shell\" made from a suitable form of gelatin.";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "A solid dosage form in which the drug is enclosed within either a hard or soft soluble container made from a suitable form of gelatin, and which releases a drug (or drugs) in such a manner to allow a reduction in dosing frequency as compared to that drug (or drugs) presented as a conventional dosage form.";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Rationale: Duplicate of code ERENTCAP. Use code ERENTCAP instead.";
case TAB: return "A solid dosage form containing medicinal substances with or without suitable diluents.";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "A solid dosage form containing medicinal substances with or without suitable diluents that is intended to be chewed, producing a pleasant tasting residue in the oral cavity that is easily swallowed and does not leave a bitter or unpleasant after-taste.";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "A solid dosage form containing medicinal substances which disintegrates rapidly, usually within a matter of seconds, when placed upon the tongue.";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "A solid dosage form containing a drug which allows at least a reduction in dosing frequency as compared to that drug presented in conventional dosage form.";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "A solid preparation containing one or more medicaments, usually in a flavored, sweetened base which is intended to dissolve or disintegrate slowly in the mouth.";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "An intimate mixture of dry, finely divided drugs and/or chemicals that may be intended for internal or external use.";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "A solid body of various weights and shapes, adapted for introduction into the rectal, vaginal, or urethral orifice of the human body; they usually melt, soften, or dissolve at body temperature.";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "A wad of absorbent material usually wound around one end of a small stick and used for applying medication or for removing material from an area.";
case MEDSWAB: return "Medicated swab";
case WAFER: return "A thin slice of material containing a medicinal agent.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case _ADMINISTRABLEDRUGFORM: return "AdministrableDrugForm";
case APPFUL: return "Applicatorful";
case DROP: return "Drops";
case NDROP: return "Nasal Drops";
case OPDROP: return "Ophthalmic Drops";
case ORDROP: return "Oral Drops";
case OTDROP: return "Otic Drops";
case PUFF: return "Puff";
case SCOOP: return "Scoops";
case SPRY: return "Sprays";
case _DISPENSABLEDRUGFORM: return "DispensableDrugForm";
case _GASDRUGFORM: return "GasDrugForm";
case GASINHL: return "Gas for Inhalation";
case _GASLIQUIDMIXTURE: return "GasLiquidMixture";
case AER: return "Aerosol";
case BAINHL: return "Breath Activated Inhaler";
case INHLSOL: return "Inhalant Solution";
case MDINHL: return "Metered Dose Inhaler";
case NASSPRY: return "Nasal Spray";
case DERMSPRY: return "Dermal Spray";
case FOAM: return "Foam";
case FOAMAPL: return "Foam with Applicator";
case RECFORM: return "Rectal foam";
case VAGFOAM: return "Vaginal foam";
case VAGFOAMAPL: return "Vaginal foam with applicator";
case RECSPRY: return "Rectal Spray";
case VAGSPRY: return "Vaginal Spray";
case _GASSOLIDSPRAY: return "GasSolidSpray";
case INHL: return "Inhalant";
case BAINHLPWD: return "Breath Activated Powder Inhaler";
case INHLPWD: return "Inhalant Powder";
case MDINHLPWD: return "Metered Dose Powder Inhaler";
case NASINHL: return "Nasal Inhalant";
case ORINHL: return "Oral Inhalant";
case PWDSPRY: return "Powder Spray";
case SPRYADAPT: return "Spray with Adaptor";
case _LIQUID: return "Liquid";
case LIQCLN: return "Liquid Cleanser";
case LIQSOAP: return "Medicated Liquid Soap";
case SHMP: return "Shampoo";
case OIL: return "Oil";
case TOPOIL: return "Topical Oil";
case SOL: return "Solution";
case IPSOL: return "Intraperitoneal Solution";
case IRSOL: return "Irrigation Solution";
case DOUCHE: return "Douche";
case ENEMA: return "Enema";
case OPIRSOL: return "Ophthalmic Irrigation Solution";
case IVSOL: return "Intravenous Solution";
case ORALSOL: return "Oral Solution";
case ELIXIR: return "Elixir";
case RINSE: return "Mouthwash/Rinse";
case SYRUP: return "Syrup";
case RECSOL: return "Rectal Solution";
case TOPSOL: return "Topical Solution";
case LIN: return "Liniment";
case MUCTOPSOL: return "Mucous Membrane Topical Solution";
case TINC: return "Tincture";
case _LIQUIDLIQUIDEMULSION: return "LiquidLiquidEmulsion";
case CRM: return "Cream";
case NASCRM: return "Nasal Cream";
case OPCRM: return "Ophthalmic Cream";
case ORCRM: return "Oral Cream";
case OTCRM: return "Otic Cream";
case RECCRM: return "Rectal Cream";
case TOPCRM: return "Topical Cream";
case VAGCRM: return "Vaginal Cream";
case VAGCRMAPL: return "Vaginal Cream with Applicator";
case LTN: return "Lotion";
case TOPLTN: return "Topical Lotion";
case OINT: return "Ointment";
case NASOINT: return "Nasal Ointment";
case OINTAPL: return "Ointment with Applicator";
case OPOINT: return "Ophthalmic Ointment";
case OTOINT: return "Otic Ointment";
case RECOINT: return "Rectal Ointment";
case TOPOINT: return "Topical Ointment";
case VAGOINT: return "Vaginal Ointment";
case VAGOINTAPL: return "Vaginal Ointment with Applicator";
case _LIQUIDSOLIDSUSPENSION: return "LiquidSolidSuspension";
case GEL: return "Gel";
case GELAPL: return "Gel with Applicator";
case NASGEL: return "Nasal Gel";
case OPGEL: return "Ophthalmic Gel";
case OTGEL: return "Otic Gel";
case TOPGEL: return "Topical Gel";
case URETHGEL: return "Urethral Gel";
case VAGGEL: return "Vaginal Gel";
case VGELAPL: return "Vaginal Gel with Applicator";
case PASTE: return "Paste";
case PUD: return "Pudding";
case TPASTE: return "Toothpaste";
case SUSP: return "Suspension";
case ITSUSP: return "Intrathecal Suspension";
case OPSUSP: return "Ophthalmic Suspension";
case ORSUSP: return "Oral Suspension";
case ERSUSP: return "Extended-Release Suspension";
case ERSUSP12: return "12 Hour Extended-Release Suspension";
case ERSUSP24: return "24 Hour Extended Release Suspension";
case OTSUSP: return "Otic Suspension";
case RECSUSP: return "Rectal Suspension";
case _SOLIDDRUGFORM: return "SolidDrugForm";
case BAR: return "Bar";
case BARSOAP: return "Bar Soap";
case MEDBAR: return "Medicated Bar Soap";
case CHEWBAR: return "Chewable Bar";
case BEAD: return "Beads";
case CAKE: return "Cake";
case CEMENT: return "Cement";
case CRYS: return "Crystals";
case DISK: return "Disk";
case FLAKE: return "Flakes";
case GRAN: return "Granules";
case GUM: return "ChewingGum";
case PAD: return "Pad";
case MEDPAD: return "Medicated Pad";
case PATCH: return "Patch";
case TPATCH: return "Transdermal Patch";
case TPATH16: return "16 Hour Transdermal Patch";
case TPATH24: return "24 Hour Transdermal Patch";
case TPATH2WK: return "Biweekly Transdermal Patch";
case TPATH72: return "72 Hour Transdermal Patch";
case TPATHWK: return "Weekly Transdermal Patch";
case PELLET: return "Pellet";
case PILL: return "Pill";
case CAP: return "Capsule";
case ORCAP: return "Oral Capsule";
case ENTCAP: return "Enteric Coated Capsule";
case ERENTCAP: return "Extended Release Enteric Coated Capsule";
case ERCAP: return "Extended Release Capsule";
case ERCAP12: return "12 Hour Extended Release Capsule";
case ERCAP24: return "24 Hour Extended Release Capsule";
case ERECCAP: return "Extended Release Enteric Coated Capsule";
case TAB: return "Tablet";
case ORTAB: return "Oral Tablet";
case BUCTAB: return "Buccal Tablet";
case SRBUCTAB: return "Sustained Release Buccal Tablet";
case CAPLET: return "Caplet";
case CHEWTAB: return "Chewable Tablet";
case CPTAB: return "Coated Particles Tablet";
case DISINTAB: return "Disintegrating Tablet";
case DRTAB: return "Delayed Release Tablet";
case ECTAB: return "Enteric Coated Tablet";
case ERECTAB: return "Extended Release Enteric Coated Tablet";
case ERTAB: return "Extended Release Tablet";
case ERTAB12: return "12 Hour Extended Release Tablet";
case ERTAB24: return "24 Hour Extended Release Tablet";
case ORTROCHE: return "Lozenge/Oral Troche";
case SLTAB: return "Sublingual Tablet";
case VAGTAB: return "Vaginal Tablet";
case POWD: return "Powder";
case TOPPWD: return "Topical Powder";
case RECPWD: return "Rectal Powder";
case VAGPWD: return "Vaginal Powder";
case SUPP: return "Suppository";
case RECSUPP: return "Rectal Suppository";
case URETHSUPP: return "Urethral suppository";
case VAGSUPP: return "Vaginal Suppository";
case SWAB: return "Swab";
case MEDSWAB: return "Medicated swab";
case WAFER: return "Wafer";
default: return "?";
}
}
}
| fhir-ru/fhir-ru | implementations/java/org.hl7.fhir.dstu2016may/src/org/hl7/fhir/dstu2016may/model/codesystems/V3OrderableDrugForm.java |
213,468 | /*
* TLS-Scanner - A TLS configuration and analysis tool based on TLS-Attacker
*
* Copyright 2017-2023 Ruhr University Bochum, Paderborn University, Technology Innovation Institute, and Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsscanner.serverscanner.probe.cca.constans;
public enum CcaWorkflowType {
CRT_CKE_CCS_FIN("TLS handshake flow with CertificateVerify omitted.", true, false),
CRT_CKE_FIN("TLS handshake flow with CertificateVerify and CCS omitted.", true, false),
CRT_CKE_ZFIN(
"TLS handshake flow with CertificateVerify and CCS omitted. Additionally the verify_data "
+ "in the FinishedMessage is set zeroes only. Supposedly found in CyaSSL 3.2.0",
true,
false),
CKE_CCS_FIN(
"TLS handshake completely ignoring the CertificateRequest. First seen in GnuTLS 3.3.9.",
false,
false),
CKE_CCS_CRT_FIN_CCS_RND(
"Handshake abusing incorrect transitions in the JSSE state machine.", true, false),
CRT_CCS_FIN(
"TLS handshake omitting the ClientKeyExchange and CertificateVerify. This might lead to null "
+ "keys or non deterministic keys being established. Additionally same state machines might be confused "
+ "leading to a ClientAuthentication bypass.",
true,
false),
CRT_FIN(
"TLS handshake of only ClientCertificate and Finished. No encryption is enabled and no "
+ "key material is sent from the client. Uninitialized data might be used, or null keys.",
true,
false),
CRT_ZFIN(
"TLS handshake of only ClientCertificate and Finished. No encryption is enabled and no "
+ "key material is sent from the client. Uninitialized data might be used, or null keys. "
+ "VerifyData is zeroed.",
true,
false),
CRT_ECKE_CCS_FIN("TLS handshake flow with empty CKE message.", true, false),
CKE_CRT_CCS_FIN("TLS handshake flow with CRT out of order and VRFY omitted.", true, false),
CKE_CRT_VRFY_CCS_FIN("TLS handshake flow with CRT out of order.", true, true),
CRT_CKE_VRFY_CCS_FIN(
"TLS handshake that is completely valid. It's used to confirm that everything works.",
true,
true),
CRT1_CRT2_CKE_VRFY1_CCS_FIN(
"TLS handshake sending two certificate messages and afterwards only verifying "
+ "the first. The implementation ought to use the X509-Attacker generated certificate for the first and "
+ "the client provided for the second. If this testcase is true it indicates a potential vulnerability but "
+ "doesn't "
+ "signify one.",
true,
true),
CRT1_CRT2_CKE_VRFY2_CCS_FIN(
"TLS handshake sending two certificate messages and afterwards only verifying "
+ "the second. The implementation ought to use the X509-Attacker generated certificate for the first and "
+ "the client provided for the second. If this testcase is true it indicates a potential vulnerability but "
+ "doesn't signify one.",
true,
true),
CRT1_CKE_CRT2_CKE2_VRFY1_CCS_FIN(
"TLS handshake sending two certificate messages and two client key "
+ "exchanges. Beurdouche et al. reported that the JSSE state machine allows to send ClientCertificate "
+ "messages after a ClientKeyExchange. It is unclear if this behavior is exploitable and which certificate "
+ "will be consumed. Maybe it's possible to use the unverified certificate.",
true,
true),
CRT1_CKE_CRT2_CKE2_VRFY2_CCS_FIN(
"TLS handshake sending two certificate messages and two client key "
+ "exchanges. Beurdouche et al. reported that the JSSE state machine allows to send ClientCertificate "
+ "messages after a ClientKeyExchange. It is unclear if this behavior is exploitable and which certificate "
+ "will be consumed. Maybe it's possible to use the unverified certificate.",
true,
true),
CRT_VRFY_CKE_CCS_FIN("TLS handshake reordering VRFY and CKE", true, true),
CRT_CKE_CCS_VRFY_FIN("TLS handshake reordering VRFY and CCS", true, true);
private String description;
private Boolean requiresCertificate;
private Boolean requiresKey;
CcaWorkflowType(String description, Boolean requiresCertificate, Boolean requiresKey) {
this.description = description;
this.requiresCertificate = requiresCertificate;
this.requiresKey = requiresKey;
}
public String getDescription() {
return description;
}
public Boolean getRequiresCertificate() {
return this.requiresCertificate;
}
public Boolean getRequiresKey() {
return this.requiresKey;
}
}
| tls-attacker/TLS-Scanner | TLS-Server-Scanner/src/main/java/de/rub/nds/tlsscanner/serverscanner/probe/cca/constans/CcaWorkflowType.java |
213,469 | /**
* Program Development in Functional and Object-oriented languages.
*
* [email protected]
* [email protected]
*
* KTH 2013
*/
package com.douchedata.parallel;
import java.util.Random;
public class RandomList {
private static final float HIGH = Float.MAX_VALUE;
//private static final float LOW = -Float.MAX_VALUE;
private Random gen = new Random();
private float[] list;
public RandomList(int size) {
list = new float[size];
// fillList(list);
fillRandomList(list);
}
/**
* returns a copy of the list
*/
public float[] getList() {
float[] copy = new float[list.length];
for (int i = 0; i < list.length; i += 1)
copy[i] = this.list[i];
return copy;
}
private void fillRandomList(float[] list) {
for (int i = 0; i < list.length; i += 1)
list[i] = gen.nextFloat() * HIGH;
}
@SuppressWarnings("unused")
private void fillList(float[] list) {
for (int i = 0; i < list.length; i += 1)
list[i] = gen.nextInt(10);
//list[i] = list.length - i;
}
}
| pinne/parallel_sort | com/douchedata/parallel/RandomList.java |
213,470 | package chambres;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.Map;
public class Chambre implements Serializable {
private final int numeroChambre;
private final String typeLit;
private final double prixNuit;
private final int nbDouches;
private boolean estAttribuee;
private Map<LocalDate, Boolean> disponibilites;
public Chambre(int numeroChambre, String typeLit, double prixNuit, int nbDouches, boolean estAttribuee) {
this.numeroChambre = numeroChambre;
this.typeLit = typeLit;
this.prixNuit = prixNuit;
this.nbDouches = nbDouches;
this.estAttribuee = estAttribuee;
this.disponibilites = new HashMap<>();
}
public int getNumero() {
return numeroChambre;
}
public String getTypeLit() {
return typeLit;
}
public double getPrixNuit() {
return prixNuit;
}
public boolean getEstAttribuee() {
return estAttribuee;
}
public int getNbDouches() {
return nbDouches;
}
public Map<LocalDate, Boolean> getDisponibilites() {
return disponibilites;
}
public void setEstAttribuee(boolean estAttribuee) {
this.estAttribuee = estAttribuee;
}
public String toString() {
return "Chambre " + this.numeroChambre + " (lit " + this.typeLit + ", " + this.prixNuit + "€ par nuit)\n" +
"Etat : " + (this.estAttribuee ? "attribuée" : "libre") + "\n" +
"Nombre de douches : " + this.nbDouches + "\n";
}
public boolean getDisponibilite (LocalDate date) {
return !disponibilites.containsKey(date) || disponibilites.get(date);
}
public void setDisponibilites(LocalDate date, boolean disponible) {
disponibilites.put(date, disponible);
}
}
| Poukiie/HotelProject | src/chambres/Chambre.java |
213,471 | package monopolinho.obxetos;
import monopolinho.obxetos.avatares.*;
import monopolinho.obxetos.casillas.propiedades.Propiedade;
import monopolinho.excepcions.MonopolinhoGeneralException;
import monopolinho.tipos.TipoTransaccion;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.stream.Stream;
public final class Trato {
private Xogador emisorTrato;
private Xogador destinatarioTrato;
private ArrayList<Propiedade> propiedadesOferta;
private ArrayList<Propiedade> propiedadesDemanda;
private float dinheiroOferta;
private float dinheiroDemanda;
private String ID;
private HashMap<Propiedade,Integer> noAlquilerDemanda;
private HashMap<Propiedade,Integer> noAlquilerOferta;
private boolean cambioAvatares;
private final static Iterator<Integer> generadorId = Stream.iterate(1, i -> i + 1).iterator();
/**
* Constructor dos tratos
* @param emisorTrato Xogador que crea o trato
* @param destinatarioTrato Xogador ao que se lle propón o trato
*/
public Trato(Xogador emisorTrato,Xogador destinatarioTrato){
this.emisorTrato = emisorTrato;
this.destinatarioTrato = destinatarioTrato;
this.propiedadesOferta=new ArrayList<>();
this.propiedadesDemanda=new ArrayList<>();
this.dinheiroDemanda=-1f;
this.dinheiroOferta=-1f;
this.ID="trato"+generadorId.next();
this.noAlquilerDemanda=new HashMap<>();
this.noAlquilerOferta=new HashMap<>();
this.cambioAvatares=false;
}
public Trato(Xogador emisorTrato,Xogador destinatarioTrato,boolean avatar){
this(emisorTrato,destinatarioTrato);
this.cambioAvatares=avatar;
}
/**
* Este método imprime todos os datos dun trato
* @return String coa información do trato
*/
public String describirTrato(){
String texto="{";
texto+="\n\tID:"+ID;
texto+=",\n\txogadorPropon: " + emisorTrato.getNome();
texto+=",\n\ttrato: cambiar(";
if(!this.propiedadesOferta.isEmpty() || this.dinheiroOferta!=-1){
for(Propiedade p:this.propiedadesOferta){
texto+=p.getNome()+" ";
}
if(this.dinheiroOferta!=-1){
if(this.propiedadesOferta.isEmpty()){
texto+=this.dinheiroOferta;
}
else{
texto+=" e "+this.dinheiroOferta;
}
}
}
else{
texto+=" - ";
}
texto+=", ";
if(!this.propiedadesDemanda.isEmpty() || this.dinheiroDemanda!=-1){
for(Propiedade p:this.propiedadesDemanda){
texto+=p.getNome()+" ";
}
if(this.dinheiroDemanda!=-1){
if(this.propiedadesDemanda.isEmpty()){
texto+=this.dinheiroDemanda;
}
else{
texto+=" e "+this.dinheiroDemanda;
}
}
}
else{
texto+=" - ";
}
texto+=")";
if(!this.noAlquilerDemanda.isEmpty()){
texto+="\n\t"+this.emisorTrato.getNome()+" non paga alquiler en:";
for(Propiedade p:this.noAlquilerDemanda.keySet()){
texto+="\n\t\t"+p.getNome()+" durante "+this.noAlquilerDemanda.get(p)+" turnos";
}
}
if(!this.noAlquilerOferta.isEmpty()){
texto+="\n\t"+this.destinatarioTrato.getNome()+" non paga alquiler en:";
for(Propiedade p:this.noAlquilerOferta.keySet()){
texto+="\n\t\t"+p.getNome()+" durante "+this.noAlquilerOferta.get(p)+" turnos";
}
}
if(this.cambioAvatares){
texto+="\n\tIntercambiar os avatares";
}
texto+="\n}";
return texto;
}
/**
* Este metodo engade unha propiedade á oferta do trato
* @param p Propiedade a engadir
*/
public void engadirPropiedadeOferta(Propiedade p){
if(p!=null){
this.propiedadesOferta.add(p);
}
}
/**
* Este metodo engade unha propiedade á demanda do trato
* @param p Propiedade a engadir
*/
public void engadirPropiedadeDemanda(Propiedade p){
if(p!=null){
this.propiedadesDemanda.add(p);
}
}
/**
* Este método engade unha propiedade á oferta de non pagar alquiler
* @param p Propiedade
* @param veces Número de turnos
*/
public void engadirNoAlquilerOferta(Propiedade p,Integer veces){
if(p!=null){
this.noAlquilerOferta.put(p,veces);
}
}
/**
* Este método engade unha propiedade á demanda de non pagar alquiler
* @param p Propiedade
* @param veces Número de turnos
*/
public void engadirNoAlquilerDemanda(Propiedade p,Integer veces){
if(p!=null){
this.noAlquilerDemanda.put(p,veces);
}
}
/**
* Este método devolve o número de veces que non pagas nun trato de non pagar alquiler
* @param p Propiedade
* @return devolve o número de turnos que non pagas
*/
public Integer vecesNoAlqOferta(Propiedade p){
return this.noAlquilerOferta.get(p);
}
/**
* Este método devolve o número de veces que non pagas nun trato de non pagar alquiler
* @param p Propiedade
* @return devolve o número de turnos que non pagas
*/
public Integer vecesNoAlqDemanda(Propiedade p){
return this.noAlquilerDemanda.get(p);
}
/**
* Acepta un trato
* @return
* @throws MonopolinhoGeneralException
*/
public String aceptarTrato() throws MonopolinhoGeneralException {
Xogador emisor=this.emisorTrato;
Xogador destinatario=this.destinatarioTrato;
if(!comprobarPerteneceXogador(this.propiedadesOferta,emisor)){
throw new MonopolinhoGeneralException("Non se pode aceptar este trato porque as propiedades de oferta non son de "+emisor.getNome());
}
if(!comprobarPerteneceXogador(this.propiedadesDemanda,destinatario)){
throw new MonopolinhoGeneralException("Non se pode aceptar este trato porque as propiedades de demanda non son de "+destinatario.getNome());
}
if(emisor.getFortuna()<this.dinheiroOferta || destinatario.getFortuna()<this.dinheiroDemanda){
throw new MonopolinhoGeneralException("Non se pode aceptar este trato porque non se dispón dos cartos necesarios");
}
if(this.dinheiroOferta!=-1){
emisor.quitarDinheiro(this.dinheiroOferta, TipoTransaccion.COMPRA);
destinatario.engadirDinheiro(this.dinheiroOferta,TipoTransaccion.VENTA);
}
if(this.dinheiroDemanda!=-1){
destinatario.quitarDinheiro(this.dinheiroDemanda,TipoTransaccion.COMPRA);
emisor.engadirDinheiro(this.dinheiroDemanda,TipoTransaccion.VENTA);
}
for(Propiedade p:this.propiedadesOferta){
p.setDono(destinatario);
}
for (Propiedade p:this.propiedadesDemanda){
p.setDono(emisor);
}
for(Propiedade p:this.noAlquilerOferta.keySet()){
destinatario.engadirNonAlquiler(p,this.vecesNoAlqOferta(p));
}
for(Propiedade p:this.noAlquilerDemanda.keySet()){
emisor.engadirNonAlquiler(p,this.vecesNoAlqDemanda(p));
}
if(this.cambioAvatares){
Avatar avatarEmisor=emisor.getAvatar();
Avatar avatarDestinatario=destinatario.getAvatar();
System.out.println("Avatares antes de cambiarse no trato");
System.out.println(emisor.getAvatar());
System.out.println(destinatario.getAvatar());
novoAvatar(emisor,avatarEmisor,avatarDestinatario);
novoAvatar(destinatario,avatarDestinatario,avatarEmisor);
System.out.println("Avatares despois de cambiarse no trato");
System.out.println(emisor.getAvatar());
System.out.println(destinatario.getAvatar());
}
this.destinatarioTrato.eliminarTrato(this.ID);
String mensaxe = "Aceptouse o trato " + this.ID + " con " + emisor.getNome() + ": ( " + this + " )";
return mensaxe;
}
private void novoAvatar(Xogador x,Avatar orixinal,Avatar avatarACopiar){
Avatar a = null;
if(avatarACopiar instanceof Coche){
a=new Coche(x);
}else if(avatarACopiar instanceof Pelota){
a=new Pelota(x);
}else if(avatarACopiar instanceof Sombreiro){
a=new Sombreiro(x);
}else if(avatarACopiar instanceof Esfinxe){
a=new Esfinxe(x);
}
a.setId(orixinal.getId());
a.setModoXogo(orixinal.getModoXogo());
a.setPosicion(orixinal.getPosicion());
a.setVoltasTaboeiro(orixinal.getVoltasTaboeiro());
x.setAvatar(a);
}
/**
* Este método comproba se un conxunto de propiedades lle pertenecen a un xogador
* @param propiedades Arraylist de propiedades a comprobar
* @param x Xogador a comporbar
* @return true se todas lle pertenecen, false se non
*/
private boolean comprobarPerteneceXogador(ArrayList<Propiedade> propiedades,Xogador x){
for(Propiedade p:propiedades){
if(!p.pertenceXogador(x)) return false;
}
return true;
}
/**
* GETTERS E SETTERS
*/
public boolean isCambioAvatares() {
return cambioAvatares;
}
public void setCambioAvatares(boolean cambioAvatares) {
this.cambioAvatares = cambioAvatares;
}
public void setEmisorTrato(Xogador emisorTrato) {
this.emisorTrato = emisorTrato;
}
public Xogador getEmisorTrato() {
return emisorTrato;
}
public void setDestinatarioTrato(Xogador destinatarioTrato) {
this.destinatarioTrato = destinatarioTrato;
}
public Xogador getDestinatarioTrato() {
return destinatarioTrato;
}
public ArrayList<Propiedade> getPropiedadesOferta() {
return propiedadesOferta;
}
public void setPropiedadesOferta(ArrayList<Propiedade> propiedadesOferta) {
this.propiedadesOferta = propiedadesOferta;
}
public ArrayList<Propiedade> getPropiedadesDemanda() {
return propiedadesDemanda;
}
public void setPropiedadesDemanda(ArrayList<Propiedade> propiedadesDemanda) {
this.propiedadesDemanda = propiedadesDemanda;
}
public float getDinheiroDemanda() {
return dinheiroDemanda;
}
public float getDinheiroOferta() {
return dinheiroOferta;
}
public void setDinheiroDemanda(float dinheiroDemanda) {
this.dinheiroDemanda = dinheiroDemanda;
}
public void setDinheiroOferta(float dinheiroOferta) {
this.dinheiroOferta = dinheiroOferta;
}
public void setID(String ID) {
if(ID!=null){
this.ID = ID;
}
}
public void setNoAlquilerDemanda(HashMap<Propiedade, Integer> noAlquilerDemanda) {
this.noAlquilerDemanda = noAlquilerDemanda;
}
public HashMap<Propiedade, Integer> getNoAlquilerDemanda() {
return noAlquilerDemanda;
}
public HashMap<Propiedade, Integer> getNoAlquilerOferta() {
return noAlquilerOferta;
}
public void setNoAlquilerOferta(HashMap<Propiedade, Integer> noAlquilerOferta) {
this.noAlquilerOferta = noAlquilerOferta;
}
public String getID() {
return ID;
}
@Override
public String toString(){
String texto=this.destinatarioTrato.getNome();
if(cambioAvatares) texto+=", intercambiamos os avatares";
if(!this.propiedadesOferta.isEmpty() || this.dinheiroOferta!=-1){
texto+=", douche ";
for(Propiedade p:this.propiedadesOferta){
texto+=p.getNome()+", ";
}
if(this.dinheiroOferta!=-1){
if(this.propiedadesOferta.isEmpty())
texto+=this.dinheiroOferta;
else
texto+=" e "+this.dinheiroOferta;
}
}
if(!this.propiedadesDemanda.isEmpty() || this.dinheiroDemanda!=-1){
texto+=" e ti dasme ";
for(Propiedade p:this.propiedadesDemanda){
texto+=p.getNome()+", ";
}
if(this.dinheiroDemanda!=-1){
if(this.propiedadesDemanda.isEmpty())
texto+=this.dinheiroDemanda;
else
texto+=" e "+this.dinheiroDemanda;
}
}
if(!this.noAlquilerDemanda.isEmpty()){
texto+=" e "+this.emisorTrato.getNome()+" non paga alquiler en ";
for(Propiedade p:this.noAlquilerDemanda.keySet()){
texto+=p.getNome()+" durante "+this.noAlquilerDemanda.get(p)+" turnos, ";
}
}
if(!this.noAlquilerOferta.isEmpty()){
texto+=" e "+this.destinatarioTrato.getNome()+" non paga alquiler en ";
for(Propiedade p:this.noAlquilerOferta.keySet()){
texto+=p.getNome()+" durante "+this.noAlquilerOferta.get(p)+" turnos, ";
}
}
if(texto.charAt(texto.length()-2)==','){
texto=texto.substring(0,texto.length()-2);
}
texto+="? ("+this.ID+")";
return texto;
}
}
| danielchc/monopolinho | src/main/java/monopolinho/obxetos/Trato.java |
213,472 | package org.hl7.fhir.instance.model.valuesets;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
import org.hl7.fhir.instance.model.EnumFactory;
public class V3OrderableDrugFormEnumFactory implements EnumFactory<V3OrderableDrugForm> {
public V3OrderableDrugForm fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return V3OrderableDrugForm._ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return V3OrderableDrugForm.APPFUL;
if ("DROP".equals(codeString))
return V3OrderableDrugForm.DROP;
if ("NDROP".equals(codeString))
return V3OrderableDrugForm.NDROP;
if ("OPDROP".equals(codeString))
return V3OrderableDrugForm.OPDROP;
if ("ORDROP".equals(codeString))
return V3OrderableDrugForm.ORDROP;
if ("OTDROP".equals(codeString))
return V3OrderableDrugForm.OTDROP;
if ("PUFF".equals(codeString))
return V3OrderableDrugForm.PUFF;
if ("SCOOP".equals(codeString))
return V3OrderableDrugForm.SCOOP;
if ("SPRY".equals(codeString))
return V3OrderableDrugForm.SPRY;
if ("_DispensableDrugForm".equals(codeString))
return V3OrderableDrugForm._DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return V3OrderableDrugForm._GASDRUGFORM;
if ("GASINHL".equals(codeString))
return V3OrderableDrugForm.GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return V3OrderableDrugForm._GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return V3OrderableDrugForm.AER;
if ("BAINHL".equals(codeString))
return V3OrderableDrugForm.BAINHL;
if ("INHLSOL".equals(codeString))
return V3OrderableDrugForm.INHLSOL;
if ("MDINHL".equals(codeString))
return V3OrderableDrugForm.MDINHL;
if ("NASSPRY".equals(codeString))
return V3OrderableDrugForm.NASSPRY;
if ("DERMSPRY".equals(codeString))
return V3OrderableDrugForm.DERMSPRY;
if ("FOAM".equals(codeString))
return V3OrderableDrugForm.FOAM;
if ("FOAMAPL".equals(codeString))
return V3OrderableDrugForm.FOAMAPL;
if ("RECFORM".equals(codeString))
return V3OrderableDrugForm.RECFORM;
if ("VAGFOAM".equals(codeString))
return V3OrderableDrugForm.VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return V3OrderableDrugForm.VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return V3OrderableDrugForm.RECSPRY;
if ("VAGSPRY".equals(codeString))
return V3OrderableDrugForm.VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return V3OrderableDrugForm._GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return V3OrderableDrugForm.INHL;
if ("BAINHLPWD".equals(codeString))
return V3OrderableDrugForm.BAINHLPWD;
if ("INHLPWD".equals(codeString))
return V3OrderableDrugForm.INHLPWD;
if ("MDINHLPWD".equals(codeString))
return V3OrderableDrugForm.MDINHLPWD;
if ("NASINHL".equals(codeString))
return V3OrderableDrugForm.NASINHL;
if ("ORINHL".equals(codeString))
return V3OrderableDrugForm.ORINHL;
if ("PWDSPRY".equals(codeString))
return V3OrderableDrugForm.PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return V3OrderableDrugForm.SPRYADAPT;
if ("_Liquid".equals(codeString))
return V3OrderableDrugForm._LIQUID;
if ("LIQCLN".equals(codeString))
return V3OrderableDrugForm.LIQCLN;
if ("LIQSOAP".equals(codeString))
return V3OrderableDrugForm.LIQSOAP;
if ("SHMP".equals(codeString))
return V3OrderableDrugForm.SHMP;
if ("OIL".equals(codeString))
return V3OrderableDrugForm.OIL;
if ("TOPOIL".equals(codeString))
return V3OrderableDrugForm.TOPOIL;
if ("SOL".equals(codeString))
return V3OrderableDrugForm.SOL;
if ("IPSOL".equals(codeString))
return V3OrderableDrugForm.IPSOL;
if ("IRSOL".equals(codeString))
return V3OrderableDrugForm.IRSOL;
if ("DOUCHE".equals(codeString))
return V3OrderableDrugForm.DOUCHE;
if ("ENEMA".equals(codeString))
return V3OrderableDrugForm.ENEMA;
if ("OPIRSOL".equals(codeString))
return V3OrderableDrugForm.OPIRSOL;
if ("IVSOL".equals(codeString))
return V3OrderableDrugForm.IVSOL;
if ("ORALSOL".equals(codeString))
return V3OrderableDrugForm.ORALSOL;
if ("ELIXIR".equals(codeString))
return V3OrderableDrugForm.ELIXIR;
if ("RINSE".equals(codeString))
return V3OrderableDrugForm.RINSE;
if ("SYRUP".equals(codeString))
return V3OrderableDrugForm.SYRUP;
if ("RECSOL".equals(codeString))
return V3OrderableDrugForm.RECSOL;
if ("TOPSOL".equals(codeString))
return V3OrderableDrugForm.TOPSOL;
if ("LIN".equals(codeString))
return V3OrderableDrugForm.LIN;
if ("MUCTOPSOL".equals(codeString))
return V3OrderableDrugForm.MUCTOPSOL;
if ("TINC".equals(codeString))
return V3OrderableDrugForm.TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return V3OrderableDrugForm._LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return V3OrderableDrugForm.CRM;
if ("NASCRM".equals(codeString))
return V3OrderableDrugForm.NASCRM;
if ("OPCRM".equals(codeString))
return V3OrderableDrugForm.OPCRM;
if ("ORCRM".equals(codeString))
return V3OrderableDrugForm.ORCRM;
if ("OTCRM".equals(codeString))
return V3OrderableDrugForm.OTCRM;
if ("RECCRM".equals(codeString))
return V3OrderableDrugForm.RECCRM;
if ("TOPCRM".equals(codeString))
return V3OrderableDrugForm.TOPCRM;
if ("VAGCRM".equals(codeString))
return V3OrderableDrugForm.VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return V3OrderableDrugForm.VAGCRMAPL;
if ("LTN".equals(codeString))
return V3OrderableDrugForm.LTN;
if ("TOPLTN".equals(codeString))
return V3OrderableDrugForm.TOPLTN;
if ("OINT".equals(codeString))
return V3OrderableDrugForm.OINT;
if ("NASOINT".equals(codeString))
return V3OrderableDrugForm.NASOINT;
if ("OINTAPL".equals(codeString))
return V3OrderableDrugForm.OINTAPL;
if ("OPOINT".equals(codeString))
return V3OrderableDrugForm.OPOINT;
if ("OTOINT".equals(codeString))
return V3OrderableDrugForm.OTOINT;
if ("RECOINT".equals(codeString))
return V3OrderableDrugForm.RECOINT;
if ("TOPOINT".equals(codeString))
return V3OrderableDrugForm.TOPOINT;
if ("VAGOINT".equals(codeString))
return V3OrderableDrugForm.VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return V3OrderableDrugForm.VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return V3OrderableDrugForm.GEL;
if ("GELAPL".equals(codeString))
return V3OrderableDrugForm.GELAPL;
if ("NASGEL".equals(codeString))
return V3OrderableDrugForm.NASGEL;
if ("OPGEL".equals(codeString))
return V3OrderableDrugForm.OPGEL;
if ("OTGEL".equals(codeString))
return V3OrderableDrugForm.OTGEL;
if ("TOPGEL".equals(codeString))
return V3OrderableDrugForm.TOPGEL;
if ("URETHGEL".equals(codeString))
return V3OrderableDrugForm.URETHGEL;
if ("VAGGEL".equals(codeString))
return V3OrderableDrugForm.VAGGEL;
if ("VGELAPL".equals(codeString))
return V3OrderableDrugForm.VGELAPL;
if ("PASTE".equals(codeString))
return V3OrderableDrugForm.PASTE;
if ("PUD".equals(codeString))
return V3OrderableDrugForm.PUD;
if ("TPASTE".equals(codeString))
return V3OrderableDrugForm.TPASTE;
if ("SUSP".equals(codeString))
return V3OrderableDrugForm.SUSP;
if ("ITSUSP".equals(codeString))
return V3OrderableDrugForm.ITSUSP;
if ("OPSUSP".equals(codeString))
return V3OrderableDrugForm.OPSUSP;
if ("ORSUSP".equals(codeString))
return V3OrderableDrugForm.ORSUSP;
if ("ERSUSP".equals(codeString))
return V3OrderableDrugForm.ERSUSP;
if ("ERSUSP12".equals(codeString))
return V3OrderableDrugForm.ERSUSP12;
if ("ERSUSP24".equals(codeString))
return V3OrderableDrugForm.ERSUSP24;
if ("OTSUSP".equals(codeString))
return V3OrderableDrugForm.OTSUSP;
if ("RECSUSP".equals(codeString))
return V3OrderableDrugForm.RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return V3OrderableDrugForm._SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return V3OrderableDrugForm.BAR;
if ("BARSOAP".equals(codeString))
return V3OrderableDrugForm.BARSOAP;
if ("MEDBAR".equals(codeString))
return V3OrderableDrugForm.MEDBAR;
if ("CHEWBAR".equals(codeString))
return V3OrderableDrugForm.CHEWBAR;
if ("BEAD".equals(codeString))
return V3OrderableDrugForm.BEAD;
if ("CAKE".equals(codeString))
return V3OrderableDrugForm.CAKE;
if ("CEMENT".equals(codeString))
return V3OrderableDrugForm.CEMENT;
if ("CRYS".equals(codeString))
return V3OrderableDrugForm.CRYS;
if ("DISK".equals(codeString))
return V3OrderableDrugForm.DISK;
if ("FLAKE".equals(codeString))
return V3OrderableDrugForm.FLAKE;
if ("GRAN".equals(codeString))
return V3OrderableDrugForm.GRAN;
if ("GUM".equals(codeString))
return V3OrderableDrugForm.GUM;
if ("PAD".equals(codeString))
return V3OrderableDrugForm.PAD;
if ("MEDPAD".equals(codeString))
return V3OrderableDrugForm.MEDPAD;
if ("PATCH".equals(codeString))
return V3OrderableDrugForm.PATCH;
if ("TPATCH".equals(codeString))
return V3OrderableDrugForm.TPATCH;
if ("TPATH16".equals(codeString))
return V3OrderableDrugForm.TPATH16;
if ("TPATH24".equals(codeString))
return V3OrderableDrugForm.TPATH24;
if ("TPATH2WK".equals(codeString))
return V3OrderableDrugForm.TPATH2WK;
if ("TPATH72".equals(codeString))
return V3OrderableDrugForm.TPATH72;
if ("TPATHWK".equals(codeString))
return V3OrderableDrugForm.TPATHWK;
if ("PELLET".equals(codeString))
return V3OrderableDrugForm.PELLET;
if ("PILL".equals(codeString))
return V3OrderableDrugForm.PILL;
if ("CAP".equals(codeString))
return V3OrderableDrugForm.CAP;
if ("ORCAP".equals(codeString))
return V3OrderableDrugForm.ORCAP;
if ("ENTCAP".equals(codeString))
return V3OrderableDrugForm.ENTCAP;
if ("ERENTCAP".equals(codeString))
return V3OrderableDrugForm.ERENTCAP;
if ("ERCAP".equals(codeString))
return V3OrderableDrugForm.ERCAP;
if ("ERCAP12".equals(codeString))
return V3OrderableDrugForm.ERCAP12;
if ("ERCAP24".equals(codeString))
return V3OrderableDrugForm.ERCAP24;
if ("ERECCAP".equals(codeString))
return V3OrderableDrugForm.ERECCAP;
if ("TAB".equals(codeString))
return V3OrderableDrugForm.TAB;
if ("ORTAB".equals(codeString))
return V3OrderableDrugForm.ORTAB;
if ("BUCTAB".equals(codeString))
return V3OrderableDrugForm.BUCTAB;
if ("SRBUCTAB".equals(codeString))
return V3OrderableDrugForm.SRBUCTAB;
if ("CAPLET".equals(codeString))
return V3OrderableDrugForm.CAPLET;
if ("CHEWTAB".equals(codeString))
return V3OrderableDrugForm.CHEWTAB;
if ("CPTAB".equals(codeString))
return V3OrderableDrugForm.CPTAB;
if ("DISINTAB".equals(codeString))
return V3OrderableDrugForm.DISINTAB;
if ("DRTAB".equals(codeString))
return V3OrderableDrugForm.DRTAB;
if ("ECTAB".equals(codeString))
return V3OrderableDrugForm.ECTAB;
if ("ERECTAB".equals(codeString))
return V3OrderableDrugForm.ERECTAB;
if ("ERTAB".equals(codeString))
return V3OrderableDrugForm.ERTAB;
if ("ERTAB12".equals(codeString))
return V3OrderableDrugForm.ERTAB12;
if ("ERTAB24".equals(codeString))
return V3OrderableDrugForm.ERTAB24;
if ("ORTROCHE".equals(codeString))
return V3OrderableDrugForm.ORTROCHE;
if ("SLTAB".equals(codeString))
return V3OrderableDrugForm.SLTAB;
if ("VAGTAB".equals(codeString))
return V3OrderableDrugForm.VAGTAB;
if ("POWD".equals(codeString))
return V3OrderableDrugForm.POWD;
if ("TOPPWD".equals(codeString))
return V3OrderableDrugForm.TOPPWD;
if ("RECPWD".equals(codeString))
return V3OrderableDrugForm.RECPWD;
if ("VAGPWD".equals(codeString))
return V3OrderableDrugForm.VAGPWD;
if ("SUPP".equals(codeString))
return V3OrderableDrugForm.SUPP;
if ("RECSUPP".equals(codeString))
return V3OrderableDrugForm.RECSUPP;
if ("URETHSUPP".equals(codeString))
return V3OrderableDrugForm.URETHSUPP;
if ("VAGSUPP".equals(codeString))
return V3OrderableDrugForm.VAGSUPP;
if ("SWAB".equals(codeString))
return V3OrderableDrugForm.SWAB;
if ("MEDSWAB".equals(codeString))
return V3OrderableDrugForm.MEDSWAB;
if ("WAFER".equals(codeString))
return V3OrderableDrugForm.WAFER;
throw new IllegalArgumentException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode(V3OrderableDrugForm code) {
if (code == V3OrderableDrugForm._ADMINISTRABLEDRUGFORM)
return "_AdministrableDrugForm";
if (code == V3OrderableDrugForm.APPFUL)
return "APPFUL";
if (code == V3OrderableDrugForm.DROP)
return "DROP";
if (code == V3OrderableDrugForm.NDROP)
return "NDROP";
if (code == V3OrderableDrugForm.OPDROP)
return "OPDROP";
if (code == V3OrderableDrugForm.ORDROP)
return "ORDROP";
if (code == V3OrderableDrugForm.OTDROP)
return "OTDROP";
if (code == V3OrderableDrugForm.PUFF)
return "PUFF";
if (code == V3OrderableDrugForm.SCOOP)
return "SCOOP";
if (code == V3OrderableDrugForm.SPRY)
return "SPRY";
if (code == V3OrderableDrugForm._DISPENSABLEDRUGFORM)
return "_DispensableDrugForm";
if (code == V3OrderableDrugForm._GASDRUGFORM)
return "_GasDrugForm";
if (code == V3OrderableDrugForm.GASINHL)
return "GASINHL";
if (code == V3OrderableDrugForm._GASLIQUIDMIXTURE)
return "_GasLiquidMixture";
if (code == V3OrderableDrugForm.AER)
return "AER";
if (code == V3OrderableDrugForm.BAINHL)
return "BAINHL";
if (code == V3OrderableDrugForm.INHLSOL)
return "INHLSOL";
if (code == V3OrderableDrugForm.MDINHL)
return "MDINHL";
if (code == V3OrderableDrugForm.NASSPRY)
return "NASSPRY";
if (code == V3OrderableDrugForm.DERMSPRY)
return "DERMSPRY";
if (code == V3OrderableDrugForm.FOAM)
return "FOAM";
if (code == V3OrderableDrugForm.FOAMAPL)
return "FOAMAPL";
if (code == V3OrderableDrugForm.RECFORM)
return "RECFORM";
if (code == V3OrderableDrugForm.VAGFOAM)
return "VAGFOAM";
if (code == V3OrderableDrugForm.VAGFOAMAPL)
return "VAGFOAMAPL";
if (code == V3OrderableDrugForm.RECSPRY)
return "RECSPRY";
if (code == V3OrderableDrugForm.VAGSPRY)
return "VAGSPRY";
if (code == V3OrderableDrugForm._GASSOLIDSPRAY)
return "_GasSolidSpray";
if (code == V3OrderableDrugForm.INHL)
return "INHL";
if (code == V3OrderableDrugForm.BAINHLPWD)
return "BAINHLPWD";
if (code == V3OrderableDrugForm.INHLPWD)
return "INHLPWD";
if (code == V3OrderableDrugForm.MDINHLPWD)
return "MDINHLPWD";
if (code == V3OrderableDrugForm.NASINHL)
return "NASINHL";
if (code == V3OrderableDrugForm.ORINHL)
return "ORINHL";
if (code == V3OrderableDrugForm.PWDSPRY)
return "PWDSPRY";
if (code == V3OrderableDrugForm.SPRYADAPT)
return "SPRYADAPT";
if (code == V3OrderableDrugForm._LIQUID)
return "_Liquid";
if (code == V3OrderableDrugForm.LIQCLN)
return "LIQCLN";
if (code == V3OrderableDrugForm.LIQSOAP)
return "LIQSOAP";
if (code == V3OrderableDrugForm.SHMP)
return "SHMP";
if (code == V3OrderableDrugForm.OIL)
return "OIL";
if (code == V3OrderableDrugForm.TOPOIL)
return "TOPOIL";
if (code == V3OrderableDrugForm.SOL)
return "SOL";
if (code == V3OrderableDrugForm.IPSOL)
return "IPSOL";
if (code == V3OrderableDrugForm.IRSOL)
return "IRSOL";
if (code == V3OrderableDrugForm.DOUCHE)
return "DOUCHE";
if (code == V3OrderableDrugForm.ENEMA)
return "ENEMA";
if (code == V3OrderableDrugForm.OPIRSOL)
return "OPIRSOL";
if (code == V3OrderableDrugForm.IVSOL)
return "IVSOL";
if (code == V3OrderableDrugForm.ORALSOL)
return "ORALSOL";
if (code == V3OrderableDrugForm.ELIXIR)
return "ELIXIR";
if (code == V3OrderableDrugForm.RINSE)
return "RINSE";
if (code == V3OrderableDrugForm.SYRUP)
return "SYRUP";
if (code == V3OrderableDrugForm.RECSOL)
return "RECSOL";
if (code == V3OrderableDrugForm.TOPSOL)
return "TOPSOL";
if (code == V3OrderableDrugForm.LIN)
return "LIN";
if (code == V3OrderableDrugForm.MUCTOPSOL)
return "MUCTOPSOL";
if (code == V3OrderableDrugForm.TINC)
return "TINC";
if (code == V3OrderableDrugForm._LIQUIDLIQUIDEMULSION)
return "_LiquidLiquidEmulsion";
if (code == V3OrderableDrugForm.CRM)
return "CRM";
if (code == V3OrderableDrugForm.NASCRM)
return "NASCRM";
if (code == V3OrderableDrugForm.OPCRM)
return "OPCRM";
if (code == V3OrderableDrugForm.ORCRM)
return "ORCRM";
if (code == V3OrderableDrugForm.OTCRM)
return "OTCRM";
if (code == V3OrderableDrugForm.RECCRM)
return "RECCRM";
if (code == V3OrderableDrugForm.TOPCRM)
return "TOPCRM";
if (code == V3OrderableDrugForm.VAGCRM)
return "VAGCRM";
if (code == V3OrderableDrugForm.VAGCRMAPL)
return "VAGCRMAPL";
if (code == V3OrderableDrugForm.LTN)
return "LTN";
if (code == V3OrderableDrugForm.TOPLTN)
return "TOPLTN";
if (code == V3OrderableDrugForm.OINT)
return "OINT";
if (code == V3OrderableDrugForm.NASOINT)
return "NASOINT";
if (code == V3OrderableDrugForm.OINTAPL)
return "OINTAPL";
if (code == V3OrderableDrugForm.OPOINT)
return "OPOINT";
if (code == V3OrderableDrugForm.OTOINT)
return "OTOINT";
if (code == V3OrderableDrugForm.RECOINT)
return "RECOINT";
if (code == V3OrderableDrugForm.TOPOINT)
return "TOPOINT";
if (code == V3OrderableDrugForm.VAGOINT)
return "VAGOINT";
if (code == V3OrderableDrugForm.VAGOINTAPL)
return "VAGOINTAPL";
if (code == V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION)
return "_LiquidSolidSuspension";
if (code == V3OrderableDrugForm.GEL)
return "GEL";
if (code == V3OrderableDrugForm.GELAPL)
return "GELAPL";
if (code == V3OrderableDrugForm.NASGEL)
return "NASGEL";
if (code == V3OrderableDrugForm.OPGEL)
return "OPGEL";
if (code == V3OrderableDrugForm.OTGEL)
return "OTGEL";
if (code == V3OrderableDrugForm.TOPGEL)
return "TOPGEL";
if (code == V3OrderableDrugForm.URETHGEL)
return "URETHGEL";
if (code == V3OrderableDrugForm.VAGGEL)
return "VAGGEL";
if (code == V3OrderableDrugForm.VGELAPL)
return "VGELAPL";
if (code == V3OrderableDrugForm.PASTE)
return "PASTE";
if (code == V3OrderableDrugForm.PUD)
return "PUD";
if (code == V3OrderableDrugForm.TPASTE)
return "TPASTE";
if (code == V3OrderableDrugForm.SUSP)
return "SUSP";
if (code == V3OrderableDrugForm.ITSUSP)
return "ITSUSP";
if (code == V3OrderableDrugForm.OPSUSP)
return "OPSUSP";
if (code == V3OrderableDrugForm.ORSUSP)
return "ORSUSP";
if (code == V3OrderableDrugForm.ERSUSP)
return "ERSUSP";
if (code == V3OrderableDrugForm.ERSUSP12)
return "ERSUSP12";
if (code == V3OrderableDrugForm.ERSUSP24)
return "ERSUSP24";
if (code == V3OrderableDrugForm.OTSUSP)
return "OTSUSP";
if (code == V3OrderableDrugForm.RECSUSP)
return "RECSUSP";
if (code == V3OrderableDrugForm._SOLIDDRUGFORM)
return "_SolidDrugForm";
if (code == V3OrderableDrugForm.BAR)
return "BAR";
if (code == V3OrderableDrugForm.BARSOAP)
return "BARSOAP";
if (code == V3OrderableDrugForm.MEDBAR)
return "MEDBAR";
if (code == V3OrderableDrugForm.CHEWBAR)
return "CHEWBAR";
if (code == V3OrderableDrugForm.BEAD)
return "BEAD";
if (code == V3OrderableDrugForm.CAKE)
return "CAKE";
if (code == V3OrderableDrugForm.CEMENT)
return "CEMENT";
if (code == V3OrderableDrugForm.CRYS)
return "CRYS";
if (code == V3OrderableDrugForm.DISK)
return "DISK";
if (code == V3OrderableDrugForm.FLAKE)
return "FLAKE";
if (code == V3OrderableDrugForm.GRAN)
return "GRAN";
if (code == V3OrderableDrugForm.GUM)
return "GUM";
if (code == V3OrderableDrugForm.PAD)
return "PAD";
if (code == V3OrderableDrugForm.MEDPAD)
return "MEDPAD";
if (code == V3OrderableDrugForm.PATCH)
return "PATCH";
if (code == V3OrderableDrugForm.TPATCH)
return "TPATCH";
if (code == V3OrderableDrugForm.TPATH16)
return "TPATH16";
if (code == V3OrderableDrugForm.TPATH24)
return "TPATH24";
if (code == V3OrderableDrugForm.TPATH2WK)
return "TPATH2WK";
if (code == V3OrderableDrugForm.TPATH72)
return "TPATH72";
if (code == V3OrderableDrugForm.TPATHWK)
return "TPATHWK";
if (code == V3OrderableDrugForm.PELLET)
return "PELLET";
if (code == V3OrderableDrugForm.PILL)
return "PILL";
if (code == V3OrderableDrugForm.CAP)
return "CAP";
if (code == V3OrderableDrugForm.ORCAP)
return "ORCAP";
if (code == V3OrderableDrugForm.ENTCAP)
return "ENTCAP";
if (code == V3OrderableDrugForm.ERENTCAP)
return "ERENTCAP";
if (code == V3OrderableDrugForm.ERCAP)
return "ERCAP";
if (code == V3OrderableDrugForm.ERCAP12)
return "ERCAP12";
if (code == V3OrderableDrugForm.ERCAP24)
return "ERCAP24";
if (code == V3OrderableDrugForm.ERECCAP)
return "ERECCAP";
if (code == V3OrderableDrugForm.TAB)
return "TAB";
if (code == V3OrderableDrugForm.ORTAB)
return "ORTAB";
if (code == V3OrderableDrugForm.BUCTAB)
return "BUCTAB";
if (code == V3OrderableDrugForm.SRBUCTAB)
return "SRBUCTAB";
if (code == V3OrderableDrugForm.CAPLET)
return "CAPLET";
if (code == V3OrderableDrugForm.CHEWTAB)
return "CHEWTAB";
if (code == V3OrderableDrugForm.CPTAB)
return "CPTAB";
if (code == V3OrderableDrugForm.DISINTAB)
return "DISINTAB";
if (code == V3OrderableDrugForm.DRTAB)
return "DRTAB";
if (code == V3OrderableDrugForm.ECTAB)
return "ECTAB";
if (code == V3OrderableDrugForm.ERECTAB)
return "ERECTAB";
if (code == V3OrderableDrugForm.ERTAB)
return "ERTAB";
if (code == V3OrderableDrugForm.ERTAB12)
return "ERTAB12";
if (code == V3OrderableDrugForm.ERTAB24)
return "ERTAB24";
if (code == V3OrderableDrugForm.ORTROCHE)
return "ORTROCHE";
if (code == V3OrderableDrugForm.SLTAB)
return "SLTAB";
if (code == V3OrderableDrugForm.VAGTAB)
return "VAGTAB";
if (code == V3OrderableDrugForm.POWD)
return "POWD";
if (code == V3OrderableDrugForm.TOPPWD)
return "TOPPWD";
if (code == V3OrderableDrugForm.RECPWD)
return "RECPWD";
if (code == V3OrderableDrugForm.VAGPWD)
return "VAGPWD";
if (code == V3OrderableDrugForm.SUPP)
return "SUPP";
if (code == V3OrderableDrugForm.RECSUPP)
return "RECSUPP";
if (code == V3OrderableDrugForm.URETHSUPP)
return "URETHSUPP";
if (code == V3OrderableDrugForm.VAGSUPP)
return "VAGSUPP";
if (code == V3OrderableDrugForm.SWAB)
return "SWAB";
if (code == V3OrderableDrugForm.MEDSWAB)
return "MEDSWAB";
if (code == V3OrderableDrugForm.WAFER)
return "WAFER";
return "?";
}
}
| bhits/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/V3OrderableDrugFormEnumFactory.java |
213,473 | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
import org.hl7.fhir.dstu3.model.EnumFactory;
public class V3RouteOfAdministrationEnumFactory implements EnumFactory<V3RouteOfAdministration> {
public V3RouteOfAdministration fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_RouteByMethod".equals(codeString))
return V3RouteOfAdministration._ROUTEBYMETHOD;
if ("SOAK".equals(codeString))
return V3RouteOfAdministration.SOAK;
if ("SHAMPOO".equals(codeString))
return V3RouteOfAdministration.SHAMPOO;
if ("TRNSLING".equals(codeString))
return V3RouteOfAdministration.TRNSLING;
if ("PO".equals(codeString))
return V3RouteOfAdministration.PO;
if ("GARGLE".equals(codeString))
return V3RouteOfAdministration.GARGLE;
if ("SUCK".equals(codeString))
return V3RouteOfAdministration.SUCK;
if ("_Chew".equals(codeString))
return V3RouteOfAdministration._CHEW;
if ("CHEW".equals(codeString))
return V3RouteOfAdministration.CHEW;
if ("_Diffusion".equals(codeString))
return V3RouteOfAdministration._DIFFUSION;
if ("EXTCORPDIF".equals(codeString))
return V3RouteOfAdministration.EXTCORPDIF;
if ("HEMODIFF".equals(codeString))
return V3RouteOfAdministration.HEMODIFF;
if ("TRNSDERMD".equals(codeString))
return V3RouteOfAdministration.TRNSDERMD;
if ("_Dissolve".equals(codeString))
return V3RouteOfAdministration._DISSOLVE;
if ("DISSOLVE".equals(codeString))
return V3RouteOfAdministration.DISSOLVE;
if ("SL".equals(codeString))
return V3RouteOfAdministration.SL;
if ("_Douche".equals(codeString))
return V3RouteOfAdministration._DOUCHE;
if ("DOUCHE".equals(codeString))
return V3RouteOfAdministration.DOUCHE;
if ("_ElectroOsmosisRoute".equals(codeString))
return V3RouteOfAdministration._ELECTROOSMOSISROUTE;
if ("ELECTOSMOS".equals(codeString))
return V3RouteOfAdministration.ELECTOSMOS;
if ("_Enema".equals(codeString))
return V3RouteOfAdministration._ENEMA;
if ("ENEMA".equals(codeString))
return V3RouteOfAdministration.ENEMA;
if ("RETENEMA".equals(codeString))
return V3RouteOfAdministration.RETENEMA;
if ("_Flush".equals(codeString))
return V3RouteOfAdministration._FLUSH;
if ("IVFLUSH".equals(codeString))
return V3RouteOfAdministration.IVFLUSH;
if ("_Implantation".equals(codeString))
return V3RouteOfAdministration._IMPLANTATION;
if ("IDIMPLNT".equals(codeString))
return V3RouteOfAdministration.IDIMPLNT;
if ("IVITIMPLNT".equals(codeString))
return V3RouteOfAdministration.IVITIMPLNT;
if ("SQIMPLNT".equals(codeString))
return V3RouteOfAdministration.SQIMPLNT;
if ("_Infusion".equals(codeString))
return V3RouteOfAdministration._INFUSION;
if ("EPI".equals(codeString))
return V3RouteOfAdministration.EPI;
if ("IA".equals(codeString))
return V3RouteOfAdministration.IA;
if ("IC".equals(codeString))
return V3RouteOfAdministration.IC;
if ("ICOR".equals(codeString))
return V3RouteOfAdministration.ICOR;
if ("IOSSC".equals(codeString))
return V3RouteOfAdministration.IOSSC;
if ("IT".equals(codeString))
return V3RouteOfAdministration.IT;
if ("IV".equals(codeString))
return V3RouteOfAdministration.IV;
if ("IVC".equals(codeString))
return V3RouteOfAdministration.IVC;
if ("IVCC".equals(codeString))
return V3RouteOfAdministration.IVCC;
if ("IVCI".equals(codeString))
return V3RouteOfAdministration.IVCI;
if ("PCA".equals(codeString))
return V3RouteOfAdministration.PCA;
if ("IVASCINFUS".equals(codeString))
return V3RouteOfAdministration.IVASCINFUS;
if ("SQINFUS".equals(codeString))
return V3RouteOfAdministration.SQINFUS;
if ("_Inhalation".equals(codeString))
return V3RouteOfAdministration._INHALATION;
if ("IPINHL".equals(codeString))
return V3RouteOfAdministration.IPINHL;
if ("ORIFINHL".equals(codeString))
return V3RouteOfAdministration.ORIFINHL;
if ("REBREATH".equals(codeString))
return V3RouteOfAdministration.REBREATH;
if ("IPPB".equals(codeString))
return V3RouteOfAdministration.IPPB;
if ("NASINHL".equals(codeString))
return V3RouteOfAdministration.NASINHL;
if ("NASINHLC".equals(codeString))
return V3RouteOfAdministration.NASINHLC;
if ("NEB".equals(codeString))
return V3RouteOfAdministration.NEB;
if ("NASNEB".equals(codeString))
return V3RouteOfAdministration.NASNEB;
if ("ORNEB".equals(codeString))
return V3RouteOfAdministration.ORNEB;
if ("TRACH".equals(codeString))
return V3RouteOfAdministration.TRACH;
if ("VENT".equals(codeString))
return V3RouteOfAdministration.VENT;
if ("VENTMASK".equals(codeString))
return V3RouteOfAdministration.VENTMASK;
if ("_Injection".equals(codeString))
return V3RouteOfAdministration._INJECTION;
if ("AMNINJ".equals(codeString))
return V3RouteOfAdministration.AMNINJ;
if ("BILINJ".equals(codeString))
return V3RouteOfAdministration.BILINJ;
if ("CHOLINJ".equals(codeString))
return V3RouteOfAdministration.CHOLINJ;
if ("CERVINJ".equals(codeString))
return V3RouteOfAdministration.CERVINJ;
if ("EPIDURINJ".equals(codeString))
return V3RouteOfAdministration.EPIDURINJ;
if ("EPIINJ".equals(codeString))
return V3RouteOfAdministration.EPIINJ;
if ("EPINJSP".equals(codeString))
return V3RouteOfAdministration.EPINJSP;
if ("EXTRAMNINJ".equals(codeString))
return V3RouteOfAdministration.EXTRAMNINJ;
if ("EXTCORPINJ".equals(codeString))
return V3RouteOfAdministration.EXTCORPINJ;
if ("GBINJ".equals(codeString))
return V3RouteOfAdministration.GBINJ;
if ("GINGINJ".equals(codeString))
return V3RouteOfAdministration.GINGINJ;
if ("BLADINJ".equals(codeString))
return V3RouteOfAdministration.BLADINJ;
if ("ENDOSININJ".equals(codeString))
return V3RouteOfAdministration.ENDOSININJ;
if ("HEMOPORT".equals(codeString))
return V3RouteOfAdministration.HEMOPORT;
if ("IABDINJ".equals(codeString))
return V3RouteOfAdministration.IABDINJ;
if ("IAINJ".equals(codeString))
return V3RouteOfAdministration.IAINJ;
if ("IAINJP".equals(codeString))
return V3RouteOfAdministration.IAINJP;
if ("IAINJSP".equals(codeString))
return V3RouteOfAdministration.IAINJSP;
if ("IARTINJ".equals(codeString))
return V3RouteOfAdministration.IARTINJ;
if ("IBURSINJ".equals(codeString))
return V3RouteOfAdministration.IBURSINJ;
if ("ICARDINJ".equals(codeString))
return V3RouteOfAdministration.ICARDINJ;
if ("ICARDINJRP".equals(codeString))
return V3RouteOfAdministration.ICARDINJRP;
if ("ICARDINJSP".equals(codeString))
return V3RouteOfAdministration.ICARDINJSP;
if ("ICARINJP".equals(codeString))
return V3RouteOfAdministration.ICARINJP;
if ("ICARTINJ".equals(codeString))
return V3RouteOfAdministration.ICARTINJ;
if ("ICAUDINJ".equals(codeString))
return V3RouteOfAdministration.ICAUDINJ;
if ("ICAVINJ".equals(codeString))
return V3RouteOfAdministration.ICAVINJ;
if ("ICAVITINJ".equals(codeString))
return V3RouteOfAdministration.ICAVITINJ;
if ("ICEREBINJ".equals(codeString))
return V3RouteOfAdministration.ICEREBINJ;
if ("ICISTERNINJ".equals(codeString))
return V3RouteOfAdministration.ICISTERNINJ;
if ("ICORONINJ".equals(codeString))
return V3RouteOfAdministration.ICORONINJ;
if ("ICORONINJP".equals(codeString))
return V3RouteOfAdministration.ICORONINJP;
if ("ICORPCAVINJ".equals(codeString))
return V3RouteOfAdministration.ICORPCAVINJ;
if ("IDINJ".equals(codeString))
return V3RouteOfAdministration.IDINJ;
if ("IDISCINJ".equals(codeString))
return V3RouteOfAdministration.IDISCINJ;
if ("IDUCTINJ".equals(codeString))
return V3RouteOfAdministration.IDUCTINJ;
if ("IDURINJ".equals(codeString))
return V3RouteOfAdministration.IDURINJ;
if ("IEPIDINJ".equals(codeString))
return V3RouteOfAdministration.IEPIDINJ;
if ("IEPITHINJ".equals(codeString))
return V3RouteOfAdministration.IEPITHINJ;
if ("ILESINJ".equals(codeString))
return V3RouteOfAdministration.ILESINJ;
if ("ILUMINJ".equals(codeString))
return V3RouteOfAdministration.ILUMINJ;
if ("ILYMPJINJ".equals(codeString))
return V3RouteOfAdministration.ILYMPJINJ;
if ("IM".equals(codeString))
return V3RouteOfAdministration.IM;
if ("IMD".equals(codeString))
return V3RouteOfAdministration.IMD;
if ("IMZ".equals(codeString))
return V3RouteOfAdministration.IMZ;
if ("IMEDULINJ".equals(codeString))
return V3RouteOfAdministration.IMEDULINJ;
if ("INTERMENINJ".equals(codeString))
return V3RouteOfAdministration.INTERMENINJ;
if ("INTERSTITINJ".equals(codeString))
return V3RouteOfAdministration.INTERSTITINJ;
if ("IOINJ".equals(codeString))
return V3RouteOfAdministration.IOINJ;
if ("IOSSINJ".equals(codeString))
return V3RouteOfAdministration.IOSSINJ;
if ("IOVARINJ".equals(codeString))
return V3RouteOfAdministration.IOVARINJ;
if ("IPCARDINJ".equals(codeString))
return V3RouteOfAdministration.IPCARDINJ;
if ("IPERINJ".equals(codeString))
return V3RouteOfAdministration.IPERINJ;
if ("IPINJ".equals(codeString))
return V3RouteOfAdministration.IPINJ;
if ("IPLRINJ".equals(codeString))
return V3RouteOfAdministration.IPLRINJ;
if ("IPROSTINJ".equals(codeString))
return V3RouteOfAdministration.IPROSTINJ;
if ("IPUMPINJ".equals(codeString))
return V3RouteOfAdministration.IPUMPINJ;
if ("ISINJ".equals(codeString))
return V3RouteOfAdministration.ISINJ;
if ("ISTERINJ".equals(codeString))
return V3RouteOfAdministration.ISTERINJ;
if ("ISYNINJ".equals(codeString))
return V3RouteOfAdministration.ISYNINJ;
if ("ITENDINJ".equals(codeString))
return V3RouteOfAdministration.ITENDINJ;
if ("ITESTINJ".equals(codeString))
return V3RouteOfAdministration.ITESTINJ;
if ("ITHORINJ".equals(codeString))
return V3RouteOfAdministration.ITHORINJ;
if ("ITINJ".equals(codeString))
return V3RouteOfAdministration.ITINJ;
if ("ITUBINJ".equals(codeString))
return V3RouteOfAdministration.ITUBINJ;
if ("ITUMINJ".equals(codeString))
return V3RouteOfAdministration.ITUMINJ;
if ("ITYMPINJ".equals(codeString))
return V3RouteOfAdministration.ITYMPINJ;
if ("IUINJ".equals(codeString))
return V3RouteOfAdministration.IUINJ;
if ("IUINJC".equals(codeString))
return V3RouteOfAdministration.IUINJC;
if ("IURETINJ".equals(codeString))
return V3RouteOfAdministration.IURETINJ;
if ("IVASCINJ".equals(codeString))
return V3RouteOfAdministration.IVASCINJ;
if ("IVENTINJ".equals(codeString))
return V3RouteOfAdministration.IVENTINJ;
if ("IVESINJ".equals(codeString))
return V3RouteOfAdministration.IVESINJ;
if ("IVINJ".equals(codeString))
return V3RouteOfAdministration.IVINJ;
if ("IVINJBOL".equals(codeString))
return V3RouteOfAdministration.IVINJBOL;
if ("IVPUSH".equals(codeString))
return V3RouteOfAdministration.IVPUSH;
if ("IVRPUSH".equals(codeString))
return V3RouteOfAdministration.IVRPUSH;
if ("IVSPUSH".equals(codeString))
return V3RouteOfAdministration.IVSPUSH;
if ("IVITINJ".equals(codeString))
return V3RouteOfAdministration.IVITINJ;
if ("PAINJ".equals(codeString))
return V3RouteOfAdministration.PAINJ;
if ("PARENTINJ".equals(codeString))
return V3RouteOfAdministration.PARENTINJ;
if ("PDONTINJ".equals(codeString))
return V3RouteOfAdministration.PDONTINJ;
if ("PDPINJ".equals(codeString))
return V3RouteOfAdministration.PDPINJ;
if ("PDURINJ".equals(codeString))
return V3RouteOfAdministration.PDURINJ;
if ("PNINJ".equals(codeString))
return V3RouteOfAdministration.PNINJ;
if ("PNSINJ".equals(codeString))
return V3RouteOfAdministration.PNSINJ;
if ("RBINJ".equals(codeString))
return V3RouteOfAdministration.RBINJ;
if ("SCINJ".equals(codeString))
return V3RouteOfAdministration.SCINJ;
if ("SLESINJ".equals(codeString))
return V3RouteOfAdministration.SLESINJ;
if ("SOFTISINJ".equals(codeString))
return V3RouteOfAdministration.SOFTISINJ;
if ("SQ".equals(codeString))
return V3RouteOfAdministration.SQ;
if ("SUBARACHINJ".equals(codeString))
return V3RouteOfAdministration.SUBARACHINJ;
if ("SUBMUCINJ".equals(codeString))
return V3RouteOfAdministration.SUBMUCINJ;
if ("TRPLACINJ".equals(codeString))
return V3RouteOfAdministration.TRPLACINJ;
if ("TRTRACHINJ".equals(codeString))
return V3RouteOfAdministration.TRTRACHINJ;
if ("URETHINJ".equals(codeString))
return V3RouteOfAdministration.URETHINJ;
if ("URETINJ".equals(codeString))
return V3RouteOfAdministration.URETINJ;
if ("_Insertion".equals(codeString))
return V3RouteOfAdministration._INSERTION;
if ("CERVINS".equals(codeString))
return V3RouteOfAdministration.CERVINS;
if ("IOSURGINS".equals(codeString))
return V3RouteOfAdministration.IOSURGINS;
if ("IU".equals(codeString))
return V3RouteOfAdministration.IU;
if ("LPINS".equals(codeString))
return V3RouteOfAdministration.LPINS;
if ("PR".equals(codeString))
return V3RouteOfAdministration.PR;
if ("SQSURGINS".equals(codeString))
return V3RouteOfAdministration.SQSURGINS;
if ("URETHINS".equals(codeString))
return V3RouteOfAdministration.URETHINS;
if ("VAGINSI".equals(codeString))
return V3RouteOfAdministration.VAGINSI;
if ("_Instillation".equals(codeString))
return V3RouteOfAdministration._INSTILLATION;
if ("CECINSTL".equals(codeString))
return V3RouteOfAdministration.CECINSTL;
if ("EFT".equals(codeString))
return V3RouteOfAdministration.EFT;
if ("ENTINSTL".equals(codeString))
return V3RouteOfAdministration.ENTINSTL;
if ("GT".equals(codeString))
return V3RouteOfAdministration.GT;
if ("NGT".equals(codeString))
return V3RouteOfAdministration.NGT;
if ("OGT".equals(codeString))
return V3RouteOfAdministration.OGT;
if ("BLADINSTL".equals(codeString))
return V3RouteOfAdministration.BLADINSTL;
if ("CAPDINSTL".equals(codeString))
return V3RouteOfAdministration.CAPDINSTL;
if ("CTINSTL".equals(codeString))
return V3RouteOfAdministration.CTINSTL;
if ("ETINSTL".equals(codeString))
return V3RouteOfAdministration.ETINSTL;
if ("GJT".equals(codeString))
return V3RouteOfAdministration.GJT;
if ("IBRONCHINSTIL".equals(codeString))
return V3RouteOfAdministration.IBRONCHINSTIL;
if ("IDUODINSTIL".equals(codeString))
return V3RouteOfAdministration.IDUODINSTIL;
if ("IESOPHINSTIL".equals(codeString))
return V3RouteOfAdministration.IESOPHINSTIL;
if ("IGASTINSTIL".equals(codeString))
return V3RouteOfAdministration.IGASTINSTIL;
if ("IILEALINJ".equals(codeString))
return V3RouteOfAdministration.IILEALINJ;
if ("IOINSTL".equals(codeString))
return V3RouteOfAdministration.IOINSTL;
if ("ISININSTIL".equals(codeString))
return V3RouteOfAdministration.ISININSTIL;
if ("ITRACHINSTIL".equals(codeString))
return V3RouteOfAdministration.ITRACHINSTIL;
if ("IUINSTL".equals(codeString))
return V3RouteOfAdministration.IUINSTL;
if ("JJTINSTL".equals(codeString))
return V3RouteOfAdministration.JJTINSTL;
if ("LARYNGINSTIL".equals(codeString))
return V3RouteOfAdministration.LARYNGINSTIL;
if ("NASALINSTIL".equals(codeString))
return V3RouteOfAdministration.NASALINSTIL;
if ("NASOGASINSTIL".equals(codeString))
return V3RouteOfAdministration.NASOGASINSTIL;
if ("NTT".equals(codeString))
return V3RouteOfAdministration.NTT;
if ("OJJ".equals(codeString))
return V3RouteOfAdministration.OJJ;
if ("OT".equals(codeString))
return V3RouteOfAdministration.OT;
if ("PDPINSTL".equals(codeString))
return V3RouteOfAdministration.PDPINSTL;
if ("PNSINSTL".equals(codeString))
return V3RouteOfAdministration.PNSINSTL;
if ("RECINSTL".equals(codeString))
return V3RouteOfAdministration.RECINSTL;
if ("RECTINSTL".equals(codeString))
return V3RouteOfAdministration.RECTINSTL;
if ("SININSTIL".equals(codeString))
return V3RouteOfAdministration.SININSTIL;
if ("SOFTISINSTIL".equals(codeString))
return V3RouteOfAdministration.SOFTISINSTIL;
if ("TRACHINSTL".equals(codeString))
return V3RouteOfAdministration.TRACHINSTL;
if ("TRTYMPINSTIL".equals(codeString))
return V3RouteOfAdministration.TRTYMPINSTIL;
if ("URETHINSTL".equals(codeString))
return V3RouteOfAdministration.URETHINSTL;
if ("_IontophoresisRoute".equals(codeString))
return V3RouteOfAdministration._IONTOPHORESISROUTE;
if ("IONTO".equals(codeString))
return V3RouteOfAdministration.IONTO;
if ("_Irrigation".equals(codeString))
return V3RouteOfAdministration._IRRIGATION;
if ("GUIRR".equals(codeString))
return V3RouteOfAdministration.GUIRR;
if ("IGASTIRR".equals(codeString))
return V3RouteOfAdministration.IGASTIRR;
if ("ILESIRR".equals(codeString))
return V3RouteOfAdministration.ILESIRR;
if ("IOIRR".equals(codeString))
return V3RouteOfAdministration.IOIRR;
if ("BLADIRR".equals(codeString))
return V3RouteOfAdministration.BLADIRR;
if ("BLADIRRC".equals(codeString))
return V3RouteOfAdministration.BLADIRRC;
if ("BLADIRRT".equals(codeString))
return V3RouteOfAdministration.BLADIRRT;
if ("RECIRR".equals(codeString))
return V3RouteOfAdministration.RECIRR;
if ("_LavageRoute".equals(codeString))
return V3RouteOfAdministration._LAVAGEROUTE;
if ("IGASTLAV".equals(codeString))
return V3RouteOfAdministration.IGASTLAV;
if ("_MucosalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._MUCOSALABSORPTIONROUTE;
if ("IDOUDMAB".equals(codeString))
return V3RouteOfAdministration.IDOUDMAB;
if ("ITRACHMAB".equals(codeString))
return V3RouteOfAdministration.ITRACHMAB;
if ("SMUCMAB".equals(codeString))
return V3RouteOfAdministration.SMUCMAB;
if ("_Nebulization".equals(codeString))
return V3RouteOfAdministration._NEBULIZATION;
if ("ETNEB".equals(codeString))
return V3RouteOfAdministration.ETNEB;
if ("_Rinse".equals(codeString))
return V3RouteOfAdministration._RINSE;
if ("DENRINSE".equals(codeString))
return V3RouteOfAdministration.DENRINSE;
if ("ORRINSE".equals(codeString))
return V3RouteOfAdministration.ORRINSE;
if ("_SuppositoryRoute".equals(codeString))
return V3RouteOfAdministration._SUPPOSITORYROUTE;
if ("URETHSUP".equals(codeString))
return V3RouteOfAdministration.URETHSUP;
if ("_Swish".equals(codeString))
return V3RouteOfAdministration._SWISH;
if ("SWISHSPIT".equals(codeString))
return V3RouteOfAdministration.SWISHSPIT;
if ("SWISHSWAL".equals(codeString))
return V3RouteOfAdministration.SWISHSWAL;
if ("_TopicalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._TOPICALABSORPTIONROUTE;
if ("TTYMPTABSORP".equals(codeString))
return V3RouteOfAdministration.TTYMPTABSORP;
if ("_TopicalApplication".equals(codeString))
return V3RouteOfAdministration._TOPICALAPPLICATION;
if ("DRESS".equals(codeString))
return V3RouteOfAdministration.DRESS;
if ("SWAB".equals(codeString))
return V3RouteOfAdministration.SWAB;
if ("TOPICAL".equals(codeString))
return V3RouteOfAdministration.TOPICAL;
if ("BUC".equals(codeString))
return V3RouteOfAdministration.BUC;
if ("CERV".equals(codeString))
return V3RouteOfAdministration.CERV;
if ("DEN".equals(codeString))
return V3RouteOfAdministration.DEN;
if ("GIN".equals(codeString))
return V3RouteOfAdministration.GIN;
if ("HAIR".equals(codeString))
return V3RouteOfAdministration.HAIR;
if ("ICORNTA".equals(codeString))
return V3RouteOfAdministration.ICORNTA;
if ("ICORONTA".equals(codeString))
return V3RouteOfAdministration.ICORONTA;
if ("IESOPHTA".equals(codeString))
return V3RouteOfAdministration.IESOPHTA;
if ("IILEALTA".equals(codeString))
return V3RouteOfAdministration.IILEALTA;
if ("ILTOP".equals(codeString))
return V3RouteOfAdministration.ILTOP;
if ("ILUMTA".equals(codeString))
return V3RouteOfAdministration.ILUMTA;
if ("IOTOP".equals(codeString))
return V3RouteOfAdministration.IOTOP;
if ("LARYNGTA".equals(codeString))
return V3RouteOfAdministration.LARYNGTA;
if ("MUC".equals(codeString))
return V3RouteOfAdministration.MUC;
if ("NAIL".equals(codeString))
return V3RouteOfAdministration.NAIL;
if ("NASAL".equals(codeString))
return V3RouteOfAdministration.NASAL;
if ("OPTHALTA".equals(codeString))
return V3RouteOfAdministration.OPTHALTA;
if ("ORALTA".equals(codeString))
return V3RouteOfAdministration.ORALTA;
if ("ORMUC".equals(codeString))
return V3RouteOfAdministration.ORMUC;
if ("OROPHARTA".equals(codeString))
return V3RouteOfAdministration.OROPHARTA;
if ("PERIANAL".equals(codeString))
return V3RouteOfAdministration.PERIANAL;
if ("PERINEAL".equals(codeString))
return V3RouteOfAdministration.PERINEAL;
if ("PDONTTA".equals(codeString))
return V3RouteOfAdministration.PDONTTA;
if ("RECTAL".equals(codeString))
return V3RouteOfAdministration.RECTAL;
if ("SCALP".equals(codeString))
return V3RouteOfAdministration.SCALP;
if ("OCDRESTA".equals(codeString))
return V3RouteOfAdministration.OCDRESTA;
if ("SKIN".equals(codeString))
return V3RouteOfAdministration.SKIN;
if ("SUBCONJTA".equals(codeString))
return V3RouteOfAdministration.SUBCONJTA;
if ("TMUCTA".equals(codeString))
return V3RouteOfAdministration.TMUCTA;
if ("VAGINS".equals(codeString))
return V3RouteOfAdministration.VAGINS;
if ("INSUF".equals(codeString))
return V3RouteOfAdministration.INSUF;
if ("TRNSDERM".equals(codeString))
return V3RouteOfAdministration.TRNSDERM;
if ("_RouteBySite".equals(codeString))
return V3RouteOfAdministration._ROUTEBYSITE;
if ("_AmnioticFluidSacRoute".equals(codeString))
return V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE;
if ("_BiliaryRoute".equals(codeString))
return V3RouteOfAdministration._BILIARYROUTE;
if ("_BodySurfaceRoute".equals(codeString))
return V3RouteOfAdministration._BODYSURFACEROUTE;
if ("_BuccalMucosaRoute".equals(codeString))
return V3RouteOfAdministration._BUCCALMUCOSAROUTE;
if ("_CecostomyRoute".equals(codeString))
return V3RouteOfAdministration._CECOSTOMYROUTE;
if ("_CervicalRoute".equals(codeString))
return V3RouteOfAdministration._CERVICALROUTE;
if ("_EndocervicalRoute".equals(codeString))
return V3RouteOfAdministration._ENDOCERVICALROUTE;
if ("_EnteralRoute".equals(codeString))
return V3RouteOfAdministration._ENTERALROUTE;
if ("_EpiduralRoute".equals(codeString))
return V3RouteOfAdministration._EPIDURALROUTE;
if ("_ExtraAmnioticRoute".equals(codeString))
return V3RouteOfAdministration._EXTRAAMNIOTICROUTE;
if ("_ExtracorporealCirculationRoute".equals(codeString))
return V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE;
if ("_GastricRoute".equals(codeString))
return V3RouteOfAdministration._GASTRICROUTE;
if ("_GenitourinaryRoute".equals(codeString))
return V3RouteOfAdministration._GENITOURINARYROUTE;
if ("_GingivalRoute".equals(codeString))
return V3RouteOfAdministration._GINGIVALROUTE;
if ("_HairRoute".equals(codeString))
return V3RouteOfAdministration._HAIRROUTE;
if ("_InterameningealRoute".equals(codeString))
return V3RouteOfAdministration._INTERAMENINGEALROUTE;
if ("_InterstitialRoute".equals(codeString))
return V3RouteOfAdministration._INTERSTITIALROUTE;
if ("_IntraabdominalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAABDOMINALROUTE;
if ("_IntraarterialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTERIALROUTE;
if ("_IntraarticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTICULARROUTE;
if ("_IntrabronchialRoute".equals(codeString))
return V3RouteOfAdministration._INTRABRONCHIALROUTE;
if ("_IntrabursalRoute".equals(codeString))
return V3RouteOfAdministration._INTRABURSALROUTE;
if ("_IntracardiacRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARDIACROUTE;
if ("_IntracartilaginousRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARTILAGINOUSROUTE;
if ("_IntracaudalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAUDALROUTE;
if ("_IntracavernosalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVERNOSALROUTE;
if ("_IntracavitaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVITARYROUTE;
if ("_IntracerebralRoute".equals(codeString))
return V3RouteOfAdministration._INTRACEREBRALROUTE;
if ("_IntracervicalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACERVICALROUTE;
if ("_IntracisternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACISTERNALROUTE;
if ("_IntracornealRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORNEALROUTE;
if ("_IntracoronalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONALROUTE;
if ("_IntracoronaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONARYROUTE;
if ("_IntracorpusCavernosumRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE;
if ("_IntradermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADERMALROUTE;
if ("_IntradiscalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADISCALROUTE;
if ("_IntraductalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUCTALROUTE;
if ("_IntraduodenalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUODENALROUTE;
if ("_IntraduralRoute".equals(codeString))
return V3RouteOfAdministration._INTRADURALROUTE;
if ("_IntraepidermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPIDERMALROUTE;
if ("_IntraepithelialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPITHELIALROUTE;
if ("_IntraesophagealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAESOPHAGEALROUTE;
if ("_IntragastricRoute".equals(codeString))
return V3RouteOfAdministration._INTRAGASTRICROUTE;
if ("_IntrailealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAILEALROUTE;
if ("_IntralesionalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALESIONALROUTE;
if ("_IntraluminalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALUMINALROUTE;
if ("_IntralymphaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRALYMPHATICROUTE;
if ("_IntramedullaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMEDULLARYROUTE;
if ("_IntramuscularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMUSCULARROUTE;
if ("_IntraocularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOCULARROUTE;
if ("_IntraosseousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOSSEOUSROUTE;
if ("_IntraovarianRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOVARIANROUTE;
if ("_IntrapericardialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERICARDIALROUTE;
if ("_IntraperitonealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERITONEALROUTE;
if ("_IntrapleuralRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPLEURALROUTE;
if ("_IntraprostaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPROSTATICROUTE;
if ("_IntrapulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPULMONARYROUTE;
if ("_IntrasinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASINALROUTE;
if ("_IntraspinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASPINALROUTE;
if ("_IntrasternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASTERNALROUTE;
if ("_IntrasynovialRoute".equals(codeString))
return V3RouteOfAdministration._INTRASYNOVIALROUTE;
if ("_IntratendinousRoute".equals(codeString))
return V3RouteOfAdministration._INTRATENDINOUSROUTE;
if ("_IntratesticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATESTICULARROUTE;
if ("_IntrathecalRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHECALROUTE;
if ("_IntrathoracicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHORACICROUTE;
if ("_IntratrachealRoute".equals(codeString))
return V3RouteOfAdministration._INTRATRACHEALROUTE;
if ("_IntratubularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUBULARROUTE;
if ("_IntratumorRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUMORROUTE;
if ("_IntratympanicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATYMPANICROUTE;
if ("_IntrauterineRoute".equals(codeString))
return V3RouteOfAdministration._INTRAUTERINEROUTE;
if ("_IntravascularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVASCULARROUTE;
if ("_IntravenousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENOUSROUTE;
if ("_IntraventricularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENTRICULARROUTE;
if ("_IntravesicleRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVESICLEROUTE;
if ("_IntravitrealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVITREALROUTE;
if ("_JejunumRoute".equals(codeString))
return V3RouteOfAdministration._JEJUNUMROUTE;
if ("_LacrimalPunctaRoute".equals(codeString))
return V3RouteOfAdministration._LACRIMALPUNCTAROUTE;
if ("_LaryngealRoute".equals(codeString))
return V3RouteOfAdministration._LARYNGEALROUTE;
if ("_LingualRoute".equals(codeString))
return V3RouteOfAdministration._LINGUALROUTE;
if ("_MucousMembraneRoute".equals(codeString))
return V3RouteOfAdministration._MUCOUSMEMBRANEROUTE;
if ("_NailRoute".equals(codeString))
return V3RouteOfAdministration._NAILROUTE;
if ("_NasalRoute".equals(codeString))
return V3RouteOfAdministration._NASALROUTE;
if ("_OphthalmicRoute".equals(codeString))
return V3RouteOfAdministration._OPHTHALMICROUTE;
if ("_OralRoute".equals(codeString))
return V3RouteOfAdministration._ORALROUTE;
if ("_OromucosalRoute".equals(codeString))
return V3RouteOfAdministration._OROMUCOSALROUTE;
if ("_OropharyngealRoute".equals(codeString))
return V3RouteOfAdministration._OROPHARYNGEALROUTE;
if ("_OticRoute".equals(codeString))
return V3RouteOfAdministration._OTICROUTE;
if ("_ParanasalSinusesRoute".equals(codeString))
return V3RouteOfAdministration._PARANASALSINUSESROUTE;
if ("_ParenteralRoute".equals(codeString))
return V3RouteOfAdministration._PARENTERALROUTE;
if ("_PerianalRoute".equals(codeString))
return V3RouteOfAdministration._PERIANALROUTE;
if ("_PeriarticularRoute".equals(codeString))
return V3RouteOfAdministration._PERIARTICULARROUTE;
if ("_PeriduralRoute".equals(codeString))
return V3RouteOfAdministration._PERIDURALROUTE;
if ("_PerinealRoute".equals(codeString))
return V3RouteOfAdministration._PERINEALROUTE;
if ("_PerineuralRoute".equals(codeString))
return V3RouteOfAdministration._PERINEURALROUTE;
if ("_PeriodontalRoute".equals(codeString))
return V3RouteOfAdministration._PERIODONTALROUTE;
if ("_PulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._PULMONARYROUTE;
if ("_RectalRoute".equals(codeString))
return V3RouteOfAdministration._RECTALROUTE;
if ("_RespiratoryTractRoute".equals(codeString))
return V3RouteOfAdministration._RESPIRATORYTRACTROUTE;
if ("_RetrobulbarRoute".equals(codeString))
return V3RouteOfAdministration._RETROBULBARROUTE;
if ("_ScalpRoute".equals(codeString))
return V3RouteOfAdministration._SCALPROUTE;
if ("_SinusUnspecifiedRoute".equals(codeString))
return V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE;
if ("_SkinRoute".equals(codeString))
return V3RouteOfAdministration._SKINROUTE;
if ("_SoftTissueRoute".equals(codeString))
return V3RouteOfAdministration._SOFTTISSUEROUTE;
if ("_SubarachnoidRoute".equals(codeString))
return V3RouteOfAdministration._SUBARACHNOIDROUTE;
if ("_SubconjunctivalRoute".equals(codeString))
return V3RouteOfAdministration._SUBCONJUNCTIVALROUTE;
if ("_SubcutaneousRoute".equals(codeString))
return V3RouteOfAdministration._SUBCUTANEOUSROUTE;
if ("_SublesionalRoute".equals(codeString))
return V3RouteOfAdministration._SUBLESIONALROUTE;
if ("_SublingualRoute".equals(codeString))
return V3RouteOfAdministration._SUBLINGUALROUTE;
if ("_SubmucosalRoute".equals(codeString))
return V3RouteOfAdministration._SUBMUCOSALROUTE;
if ("_TracheostomyRoute".equals(codeString))
return V3RouteOfAdministration._TRACHEOSTOMYROUTE;
if ("_TransmucosalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSMUCOSALROUTE;
if ("_TransplacentalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSPLACENTALROUTE;
if ("_TranstrachealRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTRACHEALROUTE;
if ("_TranstympanicRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTYMPANICROUTE;
if ("_UreteralRoute".equals(codeString))
return V3RouteOfAdministration._URETERALROUTE;
if ("_UrethralRoute".equals(codeString))
return V3RouteOfAdministration._URETHRALROUTE;
if ("_UrinaryBladderRoute".equals(codeString))
return V3RouteOfAdministration._URINARYBLADDERROUTE;
if ("_UrinaryTractRoute".equals(codeString))
return V3RouteOfAdministration._URINARYTRACTROUTE;
if ("_VaginalRoute".equals(codeString))
return V3RouteOfAdministration._VAGINALROUTE;
if ("_VitreousHumourRoute".equals(codeString))
return V3RouteOfAdministration._VITREOUSHUMOURROUTE;
throw new IllegalArgumentException("Unknown V3RouteOfAdministration code '"+codeString+"'");
}
public String toCode(V3RouteOfAdministration code) {
if (code == V3RouteOfAdministration._ROUTEBYMETHOD)
return "_RouteByMethod";
if (code == V3RouteOfAdministration.SOAK)
return "SOAK";
if (code == V3RouteOfAdministration.SHAMPOO)
return "SHAMPOO";
if (code == V3RouteOfAdministration.TRNSLING)
return "TRNSLING";
if (code == V3RouteOfAdministration.PO)
return "PO";
if (code == V3RouteOfAdministration.GARGLE)
return "GARGLE";
if (code == V3RouteOfAdministration.SUCK)
return "SUCK";
if (code == V3RouteOfAdministration._CHEW)
return "_Chew";
if (code == V3RouteOfAdministration.CHEW)
return "CHEW";
if (code == V3RouteOfAdministration._DIFFUSION)
return "_Diffusion";
if (code == V3RouteOfAdministration.EXTCORPDIF)
return "EXTCORPDIF";
if (code == V3RouteOfAdministration.HEMODIFF)
return "HEMODIFF";
if (code == V3RouteOfAdministration.TRNSDERMD)
return "TRNSDERMD";
if (code == V3RouteOfAdministration._DISSOLVE)
return "_Dissolve";
if (code == V3RouteOfAdministration.DISSOLVE)
return "DISSOLVE";
if (code == V3RouteOfAdministration.SL)
return "SL";
if (code == V3RouteOfAdministration._DOUCHE)
return "_Douche";
if (code == V3RouteOfAdministration.DOUCHE)
return "DOUCHE";
if (code == V3RouteOfAdministration._ELECTROOSMOSISROUTE)
return "_ElectroOsmosisRoute";
if (code == V3RouteOfAdministration.ELECTOSMOS)
return "ELECTOSMOS";
if (code == V3RouteOfAdministration._ENEMA)
return "_Enema";
if (code == V3RouteOfAdministration.ENEMA)
return "ENEMA";
if (code == V3RouteOfAdministration.RETENEMA)
return "RETENEMA";
if (code == V3RouteOfAdministration._FLUSH)
return "_Flush";
if (code == V3RouteOfAdministration.IVFLUSH)
return "IVFLUSH";
if (code == V3RouteOfAdministration._IMPLANTATION)
return "_Implantation";
if (code == V3RouteOfAdministration.IDIMPLNT)
return "IDIMPLNT";
if (code == V3RouteOfAdministration.IVITIMPLNT)
return "IVITIMPLNT";
if (code == V3RouteOfAdministration.SQIMPLNT)
return "SQIMPLNT";
if (code == V3RouteOfAdministration._INFUSION)
return "_Infusion";
if (code == V3RouteOfAdministration.EPI)
return "EPI";
if (code == V3RouteOfAdministration.IA)
return "IA";
if (code == V3RouteOfAdministration.IC)
return "IC";
if (code == V3RouteOfAdministration.ICOR)
return "ICOR";
if (code == V3RouteOfAdministration.IOSSC)
return "IOSSC";
if (code == V3RouteOfAdministration.IT)
return "IT";
if (code == V3RouteOfAdministration.IV)
return "IV";
if (code == V3RouteOfAdministration.IVC)
return "IVC";
if (code == V3RouteOfAdministration.IVCC)
return "IVCC";
if (code == V3RouteOfAdministration.IVCI)
return "IVCI";
if (code == V3RouteOfAdministration.PCA)
return "PCA";
if (code == V3RouteOfAdministration.IVASCINFUS)
return "IVASCINFUS";
if (code == V3RouteOfAdministration.SQINFUS)
return "SQINFUS";
if (code == V3RouteOfAdministration._INHALATION)
return "_Inhalation";
if (code == V3RouteOfAdministration.IPINHL)
return "IPINHL";
if (code == V3RouteOfAdministration.ORIFINHL)
return "ORIFINHL";
if (code == V3RouteOfAdministration.REBREATH)
return "REBREATH";
if (code == V3RouteOfAdministration.IPPB)
return "IPPB";
if (code == V3RouteOfAdministration.NASINHL)
return "NASINHL";
if (code == V3RouteOfAdministration.NASINHLC)
return "NASINHLC";
if (code == V3RouteOfAdministration.NEB)
return "NEB";
if (code == V3RouteOfAdministration.NASNEB)
return "NASNEB";
if (code == V3RouteOfAdministration.ORNEB)
return "ORNEB";
if (code == V3RouteOfAdministration.TRACH)
return "TRACH";
if (code == V3RouteOfAdministration.VENT)
return "VENT";
if (code == V3RouteOfAdministration.VENTMASK)
return "VENTMASK";
if (code == V3RouteOfAdministration._INJECTION)
return "_Injection";
if (code == V3RouteOfAdministration.AMNINJ)
return "AMNINJ";
if (code == V3RouteOfAdministration.BILINJ)
return "BILINJ";
if (code == V3RouteOfAdministration.CHOLINJ)
return "CHOLINJ";
if (code == V3RouteOfAdministration.CERVINJ)
return "CERVINJ";
if (code == V3RouteOfAdministration.EPIDURINJ)
return "EPIDURINJ";
if (code == V3RouteOfAdministration.EPIINJ)
return "EPIINJ";
if (code == V3RouteOfAdministration.EPINJSP)
return "EPINJSP";
if (code == V3RouteOfAdministration.EXTRAMNINJ)
return "EXTRAMNINJ";
if (code == V3RouteOfAdministration.EXTCORPINJ)
return "EXTCORPINJ";
if (code == V3RouteOfAdministration.GBINJ)
return "GBINJ";
if (code == V3RouteOfAdministration.GINGINJ)
return "GINGINJ";
if (code == V3RouteOfAdministration.BLADINJ)
return "BLADINJ";
if (code == V3RouteOfAdministration.ENDOSININJ)
return "ENDOSININJ";
if (code == V3RouteOfAdministration.HEMOPORT)
return "HEMOPORT";
if (code == V3RouteOfAdministration.IABDINJ)
return "IABDINJ";
if (code == V3RouteOfAdministration.IAINJ)
return "IAINJ";
if (code == V3RouteOfAdministration.IAINJP)
return "IAINJP";
if (code == V3RouteOfAdministration.IAINJSP)
return "IAINJSP";
if (code == V3RouteOfAdministration.IARTINJ)
return "IARTINJ";
if (code == V3RouteOfAdministration.IBURSINJ)
return "IBURSINJ";
if (code == V3RouteOfAdministration.ICARDINJ)
return "ICARDINJ";
if (code == V3RouteOfAdministration.ICARDINJRP)
return "ICARDINJRP";
if (code == V3RouteOfAdministration.ICARDINJSP)
return "ICARDINJSP";
if (code == V3RouteOfAdministration.ICARINJP)
return "ICARINJP";
if (code == V3RouteOfAdministration.ICARTINJ)
return "ICARTINJ";
if (code == V3RouteOfAdministration.ICAUDINJ)
return "ICAUDINJ";
if (code == V3RouteOfAdministration.ICAVINJ)
return "ICAVINJ";
if (code == V3RouteOfAdministration.ICAVITINJ)
return "ICAVITINJ";
if (code == V3RouteOfAdministration.ICEREBINJ)
return "ICEREBINJ";
if (code == V3RouteOfAdministration.ICISTERNINJ)
return "ICISTERNINJ";
if (code == V3RouteOfAdministration.ICORONINJ)
return "ICORONINJ";
if (code == V3RouteOfAdministration.ICORONINJP)
return "ICORONINJP";
if (code == V3RouteOfAdministration.ICORPCAVINJ)
return "ICORPCAVINJ";
if (code == V3RouteOfAdministration.IDINJ)
return "IDINJ";
if (code == V3RouteOfAdministration.IDISCINJ)
return "IDISCINJ";
if (code == V3RouteOfAdministration.IDUCTINJ)
return "IDUCTINJ";
if (code == V3RouteOfAdministration.IDURINJ)
return "IDURINJ";
if (code == V3RouteOfAdministration.IEPIDINJ)
return "IEPIDINJ";
if (code == V3RouteOfAdministration.IEPITHINJ)
return "IEPITHINJ";
if (code == V3RouteOfAdministration.ILESINJ)
return "ILESINJ";
if (code == V3RouteOfAdministration.ILUMINJ)
return "ILUMINJ";
if (code == V3RouteOfAdministration.ILYMPJINJ)
return "ILYMPJINJ";
if (code == V3RouteOfAdministration.IM)
return "IM";
if (code == V3RouteOfAdministration.IMD)
return "IMD";
if (code == V3RouteOfAdministration.IMZ)
return "IMZ";
if (code == V3RouteOfAdministration.IMEDULINJ)
return "IMEDULINJ";
if (code == V3RouteOfAdministration.INTERMENINJ)
return "INTERMENINJ";
if (code == V3RouteOfAdministration.INTERSTITINJ)
return "INTERSTITINJ";
if (code == V3RouteOfAdministration.IOINJ)
return "IOINJ";
if (code == V3RouteOfAdministration.IOSSINJ)
return "IOSSINJ";
if (code == V3RouteOfAdministration.IOVARINJ)
return "IOVARINJ";
if (code == V3RouteOfAdministration.IPCARDINJ)
return "IPCARDINJ";
if (code == V3RouteOfAdministration.IPERINJ)
return "IPERINJ";
if (code == V3RouteOfAdministration.IPINJ)
return "IPINJ";
if (code == V3RouteOfAdministration.IPLRINJ)
return "IPLRINJ";
if (code == V3RouteOfAdministration.IPROSTINJ)
return "IPROSTINJ";
if (code == V3RouteOfAdministration.IPUMPINJ)
return "IPUMPINJ";
if (code == V3RouteOfAdministration.ISINJ)
return "ISINJ";
if (code == V3RouteOfAdministration.ISTERINJ)
return "ISTERINJ";
if (code == V3RouteOfAdministration.ISYNINJ)
return "ISYNINJ";
if (code == V3RouteOfAdministration.ITENDINJ)
return "ITENDINJ";
if (code == V3RouteOfAdministration.ITESTINJ)
return "ITESTINJ";
if (code == V3RouteOfAdministration.ITHORINJ)
return "ITHORINJ";
if (code == V3RouteOfAdministration.ITINJ)
return "ITINJ";
if (code == V3RouteOfAdministration.ITUBINJ)
return "ITUBINJ";
if (code == V3RouteOfAdministration.ITUMINJ)
return "ITUMINJ";
if (code == V3RouteOfAdministration.ITYMPINJ)
return "ITYMPINJ";
if (code == V3RouteOfAdministration.IUINJ)
return "IUINJ";
if (code == V3RouteOfAdministration.IUINJC)
return "IUINJC";
if (code == V3RouteOfAdministration.IURETINJ)
return "IURETINJ";
if (code == V3RouteOfAdministration.IVASCINJ)
return "IVASCINJ";
if (code == V3RouteOfAdministration.IVENTINJ)
return "IVENTINJ";
if (code == V3RouteOfAdministration.IVESINJ)
return "IVESINJ";
if (code == V3RouteOfAdministration.IVINJ)
return "IVINJ";
if (code == V3RouteOfAdministration.IVINJBOL)
return "IVINJBOL";
if (code == V3RouteOfAdministration.IVPUSH)
return "IVPUSH";
if (code == V3RouteOfAdministration.IVRPUSH)
return "IVRPUSH";
if (code == V3RouteOfAdministration.IVSPUSH)
return "IVSPUSH";
if (code == V3RouteOfAdministration.IVITINJ)
return "IVITINJ";
if (code == V3RouteOfAdministration.PAINJ)
return "PAINJ";
if (code == V3RouteOfAdministration.PARENTINJ)
return "PARENTINJ";
if (code == V3RouteOfAdministration.PDONTINJ)
return "PDONTINJ";
if (code == V3RouteOfAdministration.PDPINJ)
return "PDPINJ";
if (code == V3RouteOfAdministration.PDURINJ)
return "PDURINJ";
if (code == V3RouteOfAdministration.PNINJ)
return "PNINJ";
if (code == V3RouteOfAdministration.PNSINJ)
return "PNSINJ";
if (code == V3RouteOfAdministration.RBINJ)
return "RBINJ";
if (code == V3RouteOfAdministration.SCINJ)
return "SCINJ";
if (code == V3RouteOfAdministration.SLESINJ)
return "SLESINJ";
if (code == V3RouteOfAdministration.SOFTISINJ)
return "SOFTISINJ";
if (code == V3RouteOfAdministration.SQ)
return "SQ";
if (code == V3RouteOfAdministration.SUBARACHINJ)
return "SUBARACHINJ";
if (code == V3RouteOfAdministration.SUBMUCINJ)
return "SUBMUCINJ";
if (code == V3RouteOfAdministration.TRPLACINJ)
return "TRPLACINJ";
if (code == V3RouteOfAdministration.TRTRACHINJ)
return "TRTRACHINJ";
if (code == V3RouteOfAdministration.URETHINJ)
return "URETHINJ";
if (code == V3RouteOfAdministration.URETINJ)
return "URETINJ";
if (code == V3RouteOfAdministration._INSERTION)
return "_Insertion";
if (code == V3RouteOfAdministration.CERVINS)
return "CERVINS";
if (code == V3RouteOfAdministration.IOSURGINS)
return "IOSURGINS";
if (code == V3RouteOfAdministration.IU)
return "IU";
if (code == V3RouteOfAdministration.LPINS)
return "LPINS";
if (code == V3RouteOfAdministration.PR)
return "PR";
if (code == V3RouteOfAdministration.SQSURGINS)
return "SQSURGINS";
if (code == V3RouteOfAdministration.URETHINS)
return "URETHINS";
if (code == V3RouteOfAdministration.VAGINSI)
return "VAGINSI";
if (code == V3RouteOfAdministration._INSTILLATION)
return "_Instillation";
if (code == V3RouteOfAdministration.CECINSTL)
return "CECINSTL";
if (code == V3RouteOfAdministration.EFT)
return "EFT";
if (code == V3RouteOfAdministration.ENTINSTL)
return "ENTINSTL";
if (code == V3RouteOfAdministration.GT)
return "GT";
if (code == V3RouteOfAdministration.NGT)
return "NGT";
if (code == V3RouteOfAdministration.OGT)
return "OGT";
if (code == V3RouteOfAdministration.BLADINSTL)
return "BLADINSTL";
if (code == V3RouteOfAdministration.CAPDINSTL)
return "CAPDINSTL";
if (code == V3RouteOfAdministration.CTINSTL)
return "CTINSTL";
if (code == V3RouteOfAdministration.ETINSTL)
return "ETINSTL";
if (code == V3RouteOfAdministration.GJT)
return "GJT";
if (code == V3RouteOfAdministration.IBRONCHINSTIL)
return "IBRONCHINSTIL";
if (code == V3RouteOfAdministration.IDUODINSTIL)
return "IDUODINSTIL";
if (code == V3RouteOfAdministration.IESOPHINSTIL)
return "IESOPHINSTIL";
if (code == V3RouteOfAdministration.IGASTINSTIL)
return "IGASTINSTIL";
if (code == V3RouteOfAdministration.IILEALINJ)
return "IILEALINJ";
if (code == V3RouteOfAdministration.IOINSTL)
return "IOINSTL";
if (code == V3RouteOfAdministration.ISININSTIL)
return "ISININSTIL";
if (code == V3RouteOfAdministration.ITRACHINSTIL)
return "ITRACHINSTIL";
if (code == V3RouteOfAdministration.IUINSTL)
return "IUINSTL";
if (code == V3RouteOfAdministration.JJTINSTL)
return "JJTINSTL";
if (code == V3RouteOfAdministration.LARYNGINSTIL)
return "LARYNGINSTIL";
if (code == V3RouteOfAdministration.NASALINSTIL)
return "NASALINSTIL";
if (code == V3RouteOfAdministration.NASOGASINSTIL)
return "NASOGASINSTIL";
if (code == V3RouteOfAdministration.NTT)
return "NTT";
if (code == V3RouteOfAdministration.OJJ)
return "OJJ";
if (code == V3RouteOfAdministration.OT)
return "OT";
if (code == V3RouteOfAdministration.PDPINSTL)
return "PDPINSTL";
if (code == V3RouteOfAdministration.PNSINSTL)
return "PNSINSTL";
if (code == V3RouteOfAdministration.RECINSTL)
return "RECINSTL";
if (code == V3RouteOfAdministration.RECTINSTL)
return "RECTINSTL";
if (code == V3RouteOfAdministration.SININSTIL)
return "SININSTIL";
if (code == V3RouteOfAdministration.SOFTISINSTIL)
return "SOFTISINSTIL";
if (code == V3RouteOfAdministration.TRACHINSTL)
return "TRACHINSTL";
if (code == V3RouteOfAdministration.TRTYMPINSTIL)
return "TRTYMPINSTIL";
if (code == V3RouteOfAdministration.URETHINSTL)
return "URETHINSTL";
if (code == V3RouteOfAdministration._IONTOPHORESISROUTE)
return "_IontophoresisRoute";
if (code == V3RouteOfAdministration.IONTO)
return "IONTO";
if (code == V3RouteOfAdministration._IRRIGATION)
return "_Irrigation";
if (code == V3RouteOfAdministration.GUIRR)
return "GUIRR";
if (code == V3RouteOfAdministration.IGASTIRR)
return "IGASTIRR";
if (code == V3RouteOfAdministration.ILESIRR)
return "ILESIRR";
if (code == V3RouteOfAdministration.IOIRR)
return "IOIRR";
if (code == V3RouteOfAdministration.BLADIRR)
return "BLADIRR";
if (code == V3RouteOfAdministration.BLADIRRC)
return "BLADIRRC";
if (code == V3RouteOfAdministration.BLADIRRT)
return "BLADIRRT";
if (code == V3RouteOfAdministration.RECIRR)
return "RECIRR";
if (code == V3RouteOfAdministration._LAVAGEROUTE)
return "_LavageRoute";
if (code == V3RouteOfAdministration.IGASTLAV)
return "IGASTLAV";
if (code == V3RouteOfAdministration._MUCOSALABSORPTIONROUTE)
return "_MucosalAbsorptionRoute";
if (code == V3RouteOfAdministration.IDOUDMAB)
return "IDOUDMAB";
if (code == V3RouteOfAdministration.ITRACHMAB)
return "ITRACHMAB";
if (code == V3RouteOfAdministration.SMUCMAB)
return "SMUCMAB";
if (code == V3RouteOfAdministration._NEBULIZATION)
return "_Nebulization";
if (code == V3RouteOfAdministration.ETNEB)
return "ETNEB";
if (code == V3RouteOfAdministration._RINSE)
return "_Rinse";
if (code == V3RouteOfAdministration.DENRINSE)
return "DENRINSE";
if (code == V3RouteOfAdministration.ORRINSE)
return "ORRINSE";
if (code == V3RouteOfAdministration._SUPPOSITORYROUTE)
return "_SuppositoryRoute";
if (code == V3RouteOfAdministration.URETHSUP)
return "URETHSUP";
if (code == V3RouteOfAdministration._SWISH)
return "_Swish";
if (code == V3RouteOfAdministration.SWISHSPIT)
return "SWISHSPIT";
if (code == V3RouteOfAdministration.SWISHSWAL)
return "SWISHSWAL";
if (code == V3RouteOfAdministration._TOPICALABSORPTIONROUTE)
return "_TopicalAbsorptionRoute";
if (code == V3RouteOfAdministration.TTYMPTABSORP)
return "TTYMPTABSORP";
if (code == V3RouteOfAdministration._TOPICALAPPLICATION)
return "_TopicalApplication";
if (code == V3RouteOfAdministration.DRESS)
return "DRESS";
if (code == V3RouteOfAdministration.SWAB)
return "SWAB";
if (code == V3RouteOfAdministration.TOPICAL)
return "TOPICAL";
if (code == V3RouteOfAdministration.BUC)
return "BUC";
if (code == V3RouteOfAdministration.CERV)
return "CERV";
if (code == V3RouteOfAdministration.DEN)
return "DEN";
if (code == V3RouteOfAdministration.GIN)
return "GIN";
if (code == V3RouteOfAdministration.HAIR)
return "HAIR";
if (code == V3RouteOfAdministration.ICORNTA)
return "ICORNTA";
if (code == V3RouteOfAdministration.ICORONTA)
return "ICORONTA";
if (code == V3RouteOfAdministration.IESOPHTA)
return "IESOPHTA";
if (code == V3RouteOfAdministration.IILEALTA)
return "IILEALTA";
if (code == V3RouteOfAdministration.ILTOP)
return "ILTOP";
if (code == V3RouteOfAdministration.ILUMTA)
return "ILUMTA";
if (code == V3RouteOfAdministration.IOTOP)
return "IOTOP";
if (code == V3RouteOfAdministration.LARYNGTA)
return "LARYNGTA";
if (code == V3RouteOfAdministration.MUC)
return "MUC";
if (code == V3RouteOfAdministration.NAIL)
return "NAIL";
if (code == V3RouteOfAdministration.NASAL)
return "NASAL";
if (code == V3RouteOfAdministration.OPTHALTA)
return "OPTHALTA";
if (code == V3RouteOfAdministration.ORALTA)
return "ORALTA";
if (code == V3RouteOfAdministration.ORMUC)
return "ORMUC";
if (code == V3RouteOfAdministration.OROPHARTA)
return "OROPHARTA";
if (code == V3RouteOfAdministration.PERIANAL)
return "PERIANAL";
if (code == V3RouteOfAdministration.PERINEAL)
return "PERINEAL";
if (code == V3RouteOfAdministration.PDONTTA)
return "PDONTTA";
if (code == V3RouteOfAdministration.RECTAL)
return "RECTAL";
if (code == V3RouteOfAdministration.SCALP)
return "SCALP";
if (code == V3RouteOfAdministration.OCDRESTA)
return "OCDRESTA";
if (code == V3RouteOfAdministration.SKIN)
return "SKIN";
if (code == V3RouteOfAdministration.SUBCONJTA)
return "SUBCONJTA";
if (code == V3RouteOfAdministration.TMUCTA)
return "TMUCTA";
if (code == V3RouteOfAdministration.VAGINS)
return "VAGINS";
if (code == V3RouteOfAdministration.INSUF)
return "INSUF";
if (code == V3RouteOfAdministration.TRNSDERM)
return "TRNSDERM";
if (code == V3RouteOfAdministration._ROUTEBYSITE)
return "_RouteBySite";
if (code == V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE)
return "_AmnioticFluidSacRoute";
if (code == V3RouteOfAdministration._BILIARYROUTE)
return "_BiliaryRoute";
if (code == V3RouteOfAdministration._BODYSURFACEROUTE)
return "_BodySurfaceRoute";
if (code == V3RouteOfAdministration._BUCCALMUCOSAROUTE)
return "_BuccalMucosaRoute";
if (code == V3RouteOfAdministration._CECOSTOMYROUTE)
return "_CecostomyRoute";
if (code == V3RouteOfAdministration._CERVICALROUTE)
return "_CervicalRoute";
if (code == V3RouteOfAdministration._ENDOCERVICALROUTE)
return "_EndocervicalRoute";
if (code == V3RouteOfAdministration._ENTERALROUTE)
return "_EnteralRoute";
if (code == V3RouteOfAdministration._EPIDURALROUTE)
return "_EpiduralRoute";
if (code == V3RouteOfAdministration._EXTRAAMNIOTICROUTE)
return "_ExtraAmnioticRoute";
if (code == V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE)
return "_ExtracorporealCirculationRoute";
if (code == V3RouteOfAdministration._GASTRICROUTE)
return "_GastricRoute";
if (code == V3RouteOfAdministration._GENITOURINARYROUTE)
return "_GenitourinaryRoute";
if (code == V3RouteOfAdministration._GINGIVALROUTE)
return "_GingivalRoute";
if (code == V3RouteOfAdministration._HAIRROUTE)
return "_HairRoute";
if (code == V3RouteOfAdministration._INTERAMENINGEALROUTE)
return "_InterameningealRoute";
if (code == V3RouteOfAdministration._INTERSTITIALROUTE)
return "_InterstitialRoute";
if (code == V3RouteOfAdministration._INTRAABDOMINALROUTE)
return "_IntraabdominalRoute";
if (code == V3RouteOfAdministration._INTRAARTERIALROUTE)
return "_IntraarterialRoute";
if (code == V3RouteOfAdministration._INTRAARTICULARROUTE)
return "_IntraarticularRoute";
if (code == V3RouteOfAdministration._INTRABRONCHIALROUTE)
return "_IntrabronchialRoute";
if (code == V3RouteOfAdministration._INTRABURSALROUTE)
return "_IntrabursalRoute";
if (code == V3RouteOfAdministration._INTRACARDIACROUTE)
return "_IntracardiacRoute";
if (code == V3RouteOfAdministration._INTRACARTILAGINOUSROUTE)
return "_IntracartilaginousRoute";
if (code == V3RouteOfAdministration._INTRACAUDALROUTE)
return "_IntracaudalRoute";
if (code == V3RouteOfAdministration._INTRACAVERNOSALROUTE)
return "_IntracavernosalRoute";
if (code == V3RouteOfAdministration._INTRACAVITARYROUTE)
return "_IntracavitaryRoute";
if (code == V3RouteOfAdministration._INTRACEREBRALROUTE)
return "_IntracerebralRoute";
if (code == V3RouteOfAdministration._INTRACERVICALROUTE)
return "_IntracervicalRoute";
if (code == V3RouteOfAdministration._INTRACISTERNALROUTE)
return "_IntracisternalRoute";
if (code == V3RouteOfAdministration._INTRACORNEALROUTE)
return "_IntracornealRoute";
if (code == V3RouteOfAdministration._INTRACORONALROUTE)
return "_IntracoronalRoute";
if (code == V3RouteOfAdministration._INTRACORONARYROUTE)
return "_IntracoronaryRoute";
if (code == V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE)
return "_IntracorpusCavernosumRoute";
if (code == V3RouteOfAdministration._INTRADERMALROUTE)
return "_IntradermalRoute";
if (code == V3RouteOfAdministration._INTRADISCALROUTE)
return "_IntradiscalRoute";
if (code == V3RouteOfAdministration._INTRADUCTALROUTE)
return "_IntraductalRoute";
if (code == V3RouteOfAdministration._INTRADUODENALROUTE)
return "_IntraduodenalRoute";
if (code == V3RouteOfAdministration._INTRADURALROUTE)
return "_IntraduralRoute";
if (code == V3RouteOfAdministration._INTRAEPIDERMALROUTE)
return "_IntraepidermalRoute";
if (code == V3RouteOfAdministration._INTRAEPITHELIALROUTE)
return "_IntraepithelialRoute";
if (code == V3RouteOfAdministration._INTRAESOPHAGEALROUTE)
return "_IntraesophagealRoute";
if (code == V3RouteOfAdministration._INTRAGASTRICROUTE)
return "_IntragastricRoute";
if (code == V3RouteOfAdministration._INTRAILEALROUTE)
return "_IntrailealRoute";
if (code == V3RouteOfAdministration._INTRALESIONALROUTE)
return "_IntralesionalRoute";
if (code == V3RouteOfAdministration._INTRALUMINALROUTE)
return "_IntraluminalRoute";
if (code == V3RouteOfAdministration._INTRALYMPHATICROUTE)
return "_IntralymphaticRoute";
if (code == V3RouteOfAdministration._INTRAMEDULLARYROUTE)
return "_IntramedullaryRoute";
if (code == V3RouteOfAdministration._INTRAMUSCULARROUTE)
return "_IntramuscularRoute";
if (code == V3RouteOfAdministration._INTRAOCULARROUTE)
return "_IntraocularRoute";
if (code == V3RouteOfAdministration._INTRAOSSEOUSROUTE)
return "_IntraosseousRoute";
if (code == V3RouteOfAdministration._INTRAOVARIANROUTE)
return "_IntraovarianRoute";
if (code == V3RouteOfAdministration._INTRAPERICARDIALROUTE)
return "_IntrapericardialRoute";
if (code == V3RouteOfAdministration._INTRAPERITONEALROUTE)
return "_IntraperitonealRoute";
if (code == V3RouteOfAdministration._INTRAPLEURALROUTE)
return "_IntrapleuralRoute";
if (code == V3RouteOfAdministration._INTRAPROSTATICROUTE)
return "_IntraprostaticRoute";
if (code == V3RouteOfAdministration._INTRAPULMONARYROUTE)
return "_IntrapulmonaryRoute";
if (code == V3RouteOfAdministration._INTRASINALROUTE)
return "_IntrasinalRoute";
if (code == V3RouteOfAdministration._INTRASPINALROUTE)
return "_IntraspinalRoute";
if (code == V3RouteOfAdministration._INTRASTERNALROUTE)
return "_IntrasternalRoute";
if (code == V3RouteOfAdministration._INTRASYNOVIALROUTE)
return "_IntrasynovialRoute";
if (code == V3RouteOfAdministration._INTRATENDINOUSROUTE)
return "_IntratendinousRoute";
if (code == V3RouteOfAdministration._INTRATESTICULARROUTE)
return "_IntratesticularRoute";
if (code == V3RouteOfAdministration._INTRATHECALROUTE)
return "_IntrathecalRoute";
if (code == V3RouteOfAdministration._INTRATHORACICROUTE)
return "_IntrathoracicRoute";
if (code == V3RouteOfAdministration._INTRATRACHEALROUTE)
return "_IntratrachealRoute";
if (code == V3RouteOfAdministration._INTRATUBULARROUTE)
return "_IntratubularRoute";
if (code == V3RouteOfAdministration._INTRATUMORROUTE)
return "_IntratumorRoute";
if (code == V3RouteOfAdministration._INTRATYMPANICROUTE)
return "_IntratympanicRoute";
if (code == V3RouteOfAdministration._INTRAUTERINEROUTE)
return "_IntrauterineRoute";
if (code == V3RouteOfAdministration._INTRAVASCULARROUTE)
return "_IntravascularRoute";
if (code == V3RouteOfAdministration._INTRAVENOUSROUTE)
return "_IntravenousRoute";
if (code == V3RouteOfAdministration._INTRAVENTRICULARROUTE)
return "_IntraventricularRoute";
if (code == V3RouteOfAdministration._INTRAVESICLEROUTE)
return "_IntravesicleRoute";
if (code == V3RouteOfAdministration._INTRAVITREALROUTE)
return "_IntravitrealRoute";
if (code == V3RouteOfAdministration._JEJUNUMROUTE)
return "_JejunumRoute";
if (code == V3RouteOfAdministration._LACRIMALPUNCTAROUTE)
return "_LacrimalPunctaRoute";
if (code == V3RouteOfAdministration._LARYNGEALROUTE)
return "_LaryngealRoute";
if (code == V3RouteOfAdministration._LINGUALROUTE)
return "_LingualRoute";
if (code == V3RouteOfAdministration._MUCOUSMEMBRANEROUTE)
return "_MucousMembraneRoute";
if (code == V3RouteOfAdministration._NAILROUTE)
return "_NailRoute";
if (code == V3RouteOfAdministration._NASALROUTE)
return "_NasalRoute";
if (code == V3RouteOfAdministration._OPHTHALMICROUTE)
return "_OphthalmicRoute";
if (code == V3RouteOfAdministration._ORALROUTE)
return "_OralRoute";
if (code == V3RouteOfAdministration._OROMUCOSALROUTE)
return "_OromucosalRoute";
if (code == V3RouteOfAdministration._OROPHARYNGEALROUTE)
return "_OropharyngealRoute";
if (code == V3RouteOfAdministration._OTICROUTE)
return "_OticRoute";
if (code == V3RouteOfAdministration._PARANASALSINUSESROUTE)
return "_ParanasalSinusesRoute";
if (code == V3RouteOfAdministration._PARENTERALROUTE)
return "_ParenteralRoute";
if (code == V3RouteOfAdministration._PERIANALROUTE)
return "_PerianalRoute";
if (code == V3RouteOfAdministration._PERIARTICULARROUTE)
return "_PeriarticularRoute";
if (code == V3RouteOfAdministration._PERIDURALROUTE)
return "_PeriduralRoute";
if (code == V3RouteOfAdministration._PERINEALROUTE)
return "_PerinealRoute";
if (code == V3RouteOfAdministration._PERINEURALROUTE)
return "_PerineuralRoute";
if (code == V3RouteOfAdministration._PERIODONTALROUTE)
return "_PeriodontalRoute";
if (code == V3RouteOfAdministration._PULMONARYROUTE)
return "_PulmonaryRoute";
if (code == V3RouteOfAdministration._RECTALROUTE)
return "_RectalRoute";
if (code == V3RouteOfAdministration._RESPIRATORYTRACTROUTE)
return "_RespiratoryTractRoute";
if (code == V3RouteOfAdministration._RETROBULBARROUTE)
return "_RetrobulbarRoute";
if (code == V3RouteOfAdministration._SCALPROUTE)
return "_ScalpRoute";
if (code == V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE)
return "_SinusUnspecifiedRoute";
if (code == V3RouteOfAdministration._SKINROUTE)
return "_SkinRoute";
if (code == V3RouteOfAdministration._SOFTTISSUEROUTE)
return "_SoftTissueRoute";
if (code == V3RouteOfAdministration._SUBARACHNOIDROUTE)
return "_SubarachnoidRoute";
if (code == V3RouteOfAdministration._SUBCONJUNCTIVALROUTE)
return "_SubconjunctivalRoute";
if (code == V3RouteOfAdministration._SUBCUTANEOUSROUTE)
return "_SubcutaneousRoute";
if (code == V3RouteOfAdministration._SUBLESIONALROUTE)
return "_SublesionalRoute";
if (code == V3RouteOfAdministration._SUBLINGUALROUTE)
return "_SublingualRoute";
if (code == V3RouteOfAdministration._SUBMUCOSALROUTE)
return "_SubmucosalRoute";
if (code == V3RouteOfAdministration._TRACHEOSTOMYROUTE)
return "_TracheostomyRoute";
if (code == V3RouteOfAdministration._TRANSMUCOSALROUTE)
return "_TransmucosalRoute";
if (code == V3RouteOfAdministration._TRANSPLACENTALROUTE)
return "_TransplacentalRoute";
if (code == V3RouteOfAdministration._TRANSTRACHEALROUTE)
return "_TranstrachealRoute";
if (code == V3RouteOfAdministration._TRANSTYMPANICROUTE)
return "_TranstympanicRoute";
if (code == V3RouteOfAdministration._URETERALROUTE)
return "_UreteralRoute";
if (code == V3RouteOfAdministration._URETHRALROUTE)
return "_UrethralRoute";
if (code == V3RouteOfAdministration._URINARYBLADDERROUTE)
return "_UrinaryBladderRoute";
if (code == V3RouteOfAdministration._URINARYTRACTROUTE)
return "_UrinaryTractRoute";
if (code == V3RouteOfAdministration._VAGINALROUTE)
return "_VaginalRoute";
if (code == V3RouteOfAdministration._VITREOUSHUMOURROUTE)
return "_VitreousHumourRoute";
return "?";
}
public String toSystem(V3RouteOfAdministration code) {
return code.getSystem();
}
}
| bhits/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/V3RouteOfAdministrationEnumFactory.java |
213,474 | package com.teamdouche.pacman;
import java.lang.reflect.Field;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.ListView;
public class DownloadActivity extends Activity {
private PackageManager mPM;
private Button mOkButton;
private Button mSelectAll;
private Button mCancelButton;
private ListView mListView;
private PackageAdapter mAdapter;
private static Class StringClass = R.string.class;
private class Package {
public Package(String namespace) {
Namespace = namespace;
String resourceName = Namespace.replace('.', '_');
Field field;
try {
field = StringClass.getField(resourceName);
int resourceId = (Integer)field.get(null);
Name = getResources().getString(resourceId);
AlreadyInstalled = isInstalled(Namespace);
}
catch (Exception e) {
Name = Namespace;
}
}
public String Name;
public String Namespace;
public boolean Install;
public boolean AlreadyInstalled;
}
private class PackageAdapter extends ArrayAdapter<Package> {
private LayoutInflater mInflater;
public PackageAdapter(Context context) {
super(context, R.layout.app_package);
mInflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final Package pkg = getItem(position);
if (convertView == null) {
convertView = mInflater.inflate(R.layout.app_package, null);
}
CheckBox view = (CheckBox)convertView.findViewById(R.id.checkbox);
view.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
pkg.Install = isChecked;
}
});
view.setEnabled(!pkg.AlreadyInstalled);
view.setChecked(pkg.AlreadyInstalled || pkg.Install);
view.setText(pkg.Name);
return view;
}
}
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setTitle(R.string.activity_title);
mPM = getPackageManager();
mOkButton = (Button) findViewById(R.id.main_btn_ok);
mSelectAll = (Button) findViewById(R.id.main_btn_selectall);
mCancelButton = (Button) findViewById(R.id.main_btn_cancel);
mListView = (ListView) findViewById(R.id.listview);
mAdapter = new PackageAdapter(this);
for (String p: getResources().getStringArray(R.array.app_packages)) {
Package pkg = new Package(p);
mAdapter.add(pkg);
}
mListView.setAdapter(mAdapter);
mOkButton = (Button) findViewById(R.id.main_btn_ok);
mOkButton.setOnClickListener(new OnClickListener(){
public void onClick(View view){
for (int i = 0; i < mAdapter.getCount(); i++) {
Package pkg = mAdapter.getItem(i);
if (pkg.Install && !pkg.AlreadyInstalled)
startActivity(getMarketIntent(pkg.Namespace));
}
finish();
}
});
mSelectAll = (Button) findViewById(R.id.main_btn_selectall);
mSelectAll.setOnClickListener(new OnClickListener(){
public void onClick(View view){
for (int i = 0; i < mAdapter.getCount(); i++) {
Package pkg = mAdapter.getItem(i);
pkg.Install = true;
}
mAdapter.notifyDataSetChanged();
}
});
mCancelButton = (Button) findViewById(R.id.main_btn_cancel);
mCancelButton.setOnClickListener(new OnClickListener(){
public void onClick(View view){
finish();
}
});
}
private Intent getMarketIntent(String pname) {
Uri uri = Uri.parse("market://details?id=" + pname);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
return intent;
}
private boolean isInstalled(String pname) {
boolean installed = false;
ApplicationInfo appinfo = null;
try {
appinfo = mPM.getApplicationInfo(pname, 0);
} catch (NameNotFoundException e) {
appinfo = null;
}
if (appinfo != null) {
installed = true;
}
return installed;
}
}
| CyanogenMod/android_packages_apps_Pacman | src/com/teamdouche/pacman/DownloadActivity.java |
213,475 | package org.hl7.fhir.instance.model.valuesets;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
public enum V3RouteOfAdministration {
/**
* Route of substance administration classified by administration method.
*/
_ROUTEBYMETHOD,
/**
* Immersion (soak)
*/
SOAK,
/**
* Shampoo
*/
SHAMPOO,
/**
* Translingual
*/
TRNSLING,
/**
* Swallow, oral
*/
PO,
/**
* Gargle
*/
GARGLE,
/**
* Suck, oromucosal
*/
SUCK,
/**
* Chew
*/
_CHEW,
/**
* Chew, oral
*/
CHEW,
/**
* Diffusion
*/
_DIFFUSION,
/**
* Diffusion, extracorporeal
*/
EXTCORPDIF,
/**
* Diffusion, hemodialysis
*/
HEMODIFF,
/**
* Diffusion, transdermal
*/
TRNSDERMD,
/**
* Dissolve
*/
_DISSOLVE,
/**
* Dissolve, oral
*/
DISSOLVE,
/**
* Dissolve, sublingual
*/
SL,
/**
* Douche
*/
_DOUCHE,
/**
* Douche, vaginal
*/
DOUCHE,
/**
* Electro-osmosis
*/
_ELECTROOSMOSISROUTE,
/**
* Electro-osmosis
*/
ELECTOSMOS,
/**
* Enema
*/
_ENEMA,
/**
* Enema, rectal
*/
ENEMA,
/**
* Enema, rectal retention
*/
RETENEMA,
/**
* Flush
*/
_FLUSH,
/**
* Flush, intravenous catheter
*/
IVFLUSH,
/**
* Implantation
*/
_IMPLANTATION,
/**
* Implantation, intradermal
*/
IDIMPLNT,
/**
* Implantation, intravitreal
*/
IVITIMPLNT,
/**
* Implantation, subcutaneous
*/
SQIMPLNT,
/**
* Infusion
*/
_INFUSION,
/**
* Infusion, epidural
*/
EPI,
/**
* Infusion, intraarterial catheter
*/
IA,
/**
* Infusion, intracardiac
*/
IC,
/**
* Infusion, intracoronary
*/
ICOR,
/**
* Infusion, intraosseous, continuous
*/
IOSSC,
/**
* Infusion, intrathecal
*/
IT,
/**
* Infusion, intravenous
*/
IV,
/**
* Infusion, intravenous catheter
*/
IVC,
/**
* Infusion, intravenous catheter, continuous
*/
IVCC,
/**
* Infusion, intravenous catheter, intermittent
*/
IVCI,
/**
* Infusion, intravenous catheter, pca pump
*/
PCA,
/**
* Infusion, intravascular
*/
IVASCINFUS,
/**
* Infusion, subcutaneous
*/
SQINFUS,
/**
* Inhalation
*/
_INHALATION,
/**
* Inhalation, oral
*/
IPINHL,
/**
* Inhalation, oral intermittent flow
*/
ORIFINHL,
/**
* Inhalation, oral rebreather mask
*/
REBREATH,
/**
* Inhalation, intermittent positive pressure breathing (ippb)
*/
IPPB,
/**
* Inhalation, nasal
*/
NASINHL,
/**
* Inhalation, nasal, prongs
*/
NASINHLC,
/**
* Inhalation, nebulization
*/
NEB,
/**
* Inhalation, nebulization, nasal
*/
NASNEB,
/**
* Inhalation, nebulization, oral
*/
ORNEB,
/**
* Inhalation, tracheostomy
*/
TRACH,
/**
* Inhalation, ventilator
*/
VENT,
/**
* Inhalation, ventimask
*/
VENTMASK,
/**
* Injection
*/
_INJECTION,
/**
* Injection, amniotic fluid
*/
AMNINJ,
/**
* Injection, biliary tract
*/
BILINJ,
/**
* Injection, for cholangiography
*/
CHOLINJ,
/**
* Injection, cervical
*/
CERVINJ,
/**
* Injection, epidural
*/
EPIDURINJ,
/**
* Injection, epidural, push
*/
EPIINJ,
/**
* Injection, epidural, slow push
*/
EPINJSP,
/**
* Injection, extra-amniotic
*/
EXTRAMNINJ,
/**
* Injection, extracorporeal
*/
EXTCORPINJ,
/**
* Injection, gastric button
*/
GBINJ,
/**
* Injection, gingival
*/
GINGINJ,
/**
* Injection, urinary bladder
*/
BLADINJ,
/**
* Injection, endosinusial
*/
ENDOSININJ,
/**
* Injection, hemodialysis port
*/
HEMOPORT,
/**
* Injection, intra-abdominal
*/
IABDINJ,
/**
* Injection, intraarterial
*/
IAINJ,
/**
* Injection, intraarterial, push
*/
IAINJP,
/**
* Injection, intraarterial, slow push
*/
IAINJSP,
/**
* Injection, intraarticular
*/
IARTINJ,
/**
* Injection, intrabursal
*/
IBURSINJ,
/**
* Injection, intracardiac
*/
ICARDINJ,
/**
* Injection, intracardiac, rapid push
*/
ICARDINJRP,
/**
* Injection, intracardiac, slow push
*/
ICARDINJSP,
/**
* Injection, intracardiac, push
*/
ICARINJP,
/**
* Injection, intracartilaginous
*/
ICARTINJ,
/**
* Injection, intracaudal
*/
ICAUDINJ,
/**
* Injection, intracavernous
*/
ICAVINJ,
/**
* Injection, intracavitary
*/
ICAVITINJ,
/**
* Injection, intracerebral
*/
ICEREBINJ,
/**
* Injection, intracisternal
*/
ICISTERNINJ,
/**
* Injection, intracoronary
*/
ICORONINJ,
/**
* Injection, intracoronary, push
*/
ICORONINJP,
/**
* Injection, intracorpus cavernosum
*/
ICORPCAVINJ,
/**
* Injection, intradermal
*/
IDINJ,
/**
* Injection, intradiscal
*/
IDISCINJ,
/**
* Injection, intraductal
*/
IDUCTINJ,
/**
* Injection, intradural
*/
IDURINJ,
/**
* Injection, intraepidermal
*/
IEPIDINJ,
/**
* Injection, intraepithelial
*/
IEPITHINJ,
/**
* Injection, intralesional
*/
ILESINJ,
/**
* Injection, intraluminal
*/
ILUMINJ,
/**
* Injection, intralymphatic
*/
ILYMPJINJ,
/**
* Injection, intramuscular
*/
IM,
/**
* Injection, intramuscular, deep
*/
IMD,
/**
* Injection, intramuscular, z track
*/
IMZ,
/**
* Injection, intramedullary
*/
IMEDULINJ,
/**
* Injection, interameningeal
*/
INTERMENINJ,
/**
* Injection, interstitial
*/
INTERSTITINJ,
/**
* Injection, intraocular
*/
IOINJ,
/**
* Injection, intraosseous
*/
IOSSINJ,
/**
* Injection, intraovarian
*/
IOVARINJ,
/**
* Injection, intrapericardial
*/
IPCARDINJ,
/**
* Injection, intraperitoneal
*/
IPERINJ,
/**
* Injection, intrapulmonary
*/
IPINJ,
/**
* Injection, intrapleural
*/
IPLRINJ,
/**
* Injection, intraprostatic
*/
IPROSTINJ,
/**
* Injection, insulin pump
*/
IPUMPINJ,
/**
* Injection, intraspinal
*/
ISINJ,
/**
* Injection, intrasternal
*/
ISTERINJ,
/**
* Injection, intrasynovial
*/
ISYNINJ,
/**
* Injection, intratendinous
*/
ITENDINJ,
/**
* Injection, intratesticular
*/
ITESTINJ,
/**
* Injection, intrathoracic
*/
ITHORINJ,
/**
* Injection, intrathecal
*/
ITINJ,
/**
* Injection, intratubular
*/
ITUBINJ,
/**
* Injection, intratumor
*/
ITUMINJ,
/**
* Injection, intratympanic
*/
ITYMPINJ,
/**
* Injection, intracervical (uterus)
*/
IUINJ,
/**
* Injection, intracervical (uterus)
*/
IUINJC,
/**
* Injection, intraureteral, retrograde
*/
IURETINJ,
/**
* Injection, intravascular
*/
IVASCINJ,
/**
* Injection, intraventricular (heart)
*/
IVENTINJ,
/**
* Injection, intravesicle
*/
IVESINJ,
/**
* Injection, intravenous
*/
IVINJ,
/**
* Injection, intravenous, bolus
*/
IVINJBOL,
/**
* Injection, intravenous, push
*/
IVPUSH,
/**
* Injection, intravenous, rapid push
*/
IVRPUSH,
/**
* Injection, intravenous, slow push
*/
IVSPUSH,
/**
* Injection, intravitreal
*/
IVITINJ,
/**
* Injection, periarticular
*/
PAINJ,
/**
* Injection, parenteral
*/
PARENTINJ,
/**
* Injection, periodontal
*/
PDONTINJ,
/**
* Injection, peritoneal dialysis port
*/
PDPINJ,
/**
* Injection, peridural
*/
PDURINJ,
/**
* Injection, perineural
*/
PNINJ,
/**
* Injection, paranasal sinuses
*/
PNSINJ,
/**
* Injection, retrobulbar
*/
RBINJ,
/**
* Injection, subconjunctival
*/
SCINJ,
/**
* Injection, sublesional
*/
SLESINJ,
/**
* Injection, soft tissue
*/
SOFTISINJ,
/**
* Injection, subcutaneous
*/
SQ,
/**
* Injection, subarachnoid
*/
SUBARACHINJ,
/**
* Injection, submucosal
*/
SUBMUCINJ,
/**
* Injection, transplacental
*/
TRPLACINJ,
/**
* Injection, transtracheal
*/
TRTRACHINJ,
/**
* Injection, urethral
*/
URETHINJ,
/**
* Injection, ureteral
*/
URETINJ,
/**
* Insertion
*/
_INSERTION,
/**
* Insertion, cervical (uterine)
*/
CERVINS,
/**
* Insertion, intraocular, surgical
*/
IOSURGINS,
/**
* Insertion, intrauterine
*/
IU,
/**
* Insertion, lacrimal puncta
*/
LPINS,
/**
* Insertion, rectal
*/
PR,
/**
* Insertion, subcutaneous, surgical
*/
SQSURGINS,
/**
* Insertion, urethral
*/
URETHINS,
/**
* Insertion, vaginal
*/
VAGINSI,
/**
* Instillation
*/
_INSTILLATION,
/**
* Instillation, cecostomy
*/
CECINSTL,
/**
* Instillation, enteral feeding tube
*/
EFT,
/**
* Instillation, enteral
*/
ENTINSTL,
/**
* Instillation, gastrostomy tube
*/
GT,
/**
* Instillation, nasogastric tube
*/
NGT,
/**
* Instillation, orogastric tube
*/
OGT,
/**
* Instillation, urinary catheter
*/
BLADINSTL,
/**
* Instillation, continuous ambulatory peritoneal dialysis port
*/
CAPDINSTL,
/**
* Instillation, chest tube
*/
CTINSTL,
/**
* Instillation, endotracheal tube
*/
ETINSTL,
/**
* Instillation, gastro-jejunostomy tube
*/
GJT,
/**
* Instillation, intrabronchial
*/
IBRONCHINSTIL,
/**
* Instillation, intraduodenal
*/
IDUODINSTIL,
/**
* Instillation, intraesophageal
*/
IESOPHINSTIL,
/**
* Instillation, intragastric
*/
IGASTINSTIL,
/**
* Instillation, intraileal
*/
IILEALINJ,
/**
* Instillation, intraocular
*/
IOINSTL,
/**
* Instillation, intrasinal
*/
ISININSTIL,
/**
* Instillation, intratracheal
*/
ITRACHINSTIL,
/**
* Instillation, intrauterine
*/
IUINSTL,
/**
* Instillation, jejunostomy tube
*/
JJTINSTL,
/**
* Instillation, laryngeal
*/
LARYNGINSTIL,
/**
* Instillation, nasal
*/
NASALINSTIL,
/**
* Instillation, nasogastric
*/
NASOGASINSTIL,
/**
* Instillation, nasotracheal tube
*/
NTT,
/**
* Instillation, orojejunum tube
*/
OJJ,
/**
* Instillation, otic
*/
OT,
/**
* Instillation, peritoneal dialysis port
*/
PDPINSTL,
/**
* Instillation, paranasal sinuses
*/
PNSINSTL,
/**
* Instillation, rectal
*/
RECINSTL,
/**
* Instillation, rectal tube
*/
RECTINSTL,
/**
* Instillation, sinus, unspecified
*/
SININSTIL,
/**
* Instillation, soft tissue
*/
SOFTISINSTIL,
/**
* Instillation, tracheostomy
*/
TRACHINSTL,
/**
* Instillation, transtympanic
*/
TRTYMPINSTIL,
/**
* Instillation, urethral
*/
URETHINSTL,
/**
* Iontophoresis
*/
_IONTOPHORESISROUTE,
/**
* Topical application, iontophoresis
*/
IONTO,
/**
* Irrigation
*/
_IRRIGATION,
/**
* Irrigation, genitourinary
*/
GUIRR,
/**
* Irrigation, intragastric
*/
IGASTIRR,
/**
* Irrigation, intralesional
*/
ILESIRR,
/**
* Irrigation, intraocular
*/
IOIRR,
/**
* Irrigation, urinary bladder
*/
BLADIRR,
/**
* Irrigation, urinary bladder, continuous
*/
BLADIRRC,
/**
* Irrigation, urinary bladder, tidal
*/
BLADIRRT,
/**
* Irrigation, rectal
*/
RECIRR,
/**
* Lavage
*/
_LAVAGEROUTE,
/**
* Lavage, intragastric
*/
IGASTLAV,
/**
* Mucosal absorption
*/
_MUCOSALABSORPTIONROUTE,
/**
* Mucosal absorption, intraduodenal
*/
IDOUDMAB,
/**
* Mucosal absorption, intratracheal
*/
ITRACHMAB,
/**
* Mucosal absorption, submucosal
*/
SMUCMAB,
/**
* Nebulization
*/
_NEBULIZATION,
/**
* Nebulization, endotracheal tube
*/
ETNEB,
/**
* Rinse
*/
_RINSE,
/**
* Rinse, dental
*/
DENRINSE,
/**
* Rinse, oral
*/
ORRINSE,
/**
* Suppository
*/
_SUPPOSITORYROUTE,
/**
* Suppository, urethral
*/
URETHSUP,
/**
* Swish
*/
_SWISH,
/**
* Swish and spit out, oromucosal
*/
SWISHSPIT,
/**
* Swish and swallow, oromucosal
*/
SWISHSWAL,
/**
* Topical absorption
*/
_TOPICALABSORPTIONROUTE,
/**
* Topical absorption, transtympanic
*/
TTYMPTABSORP,
/**
* Topical application
*/
_TOPICALAPPLICATION,
/**
* Topical application, soaked dressing
*/
DRESS,
/**
* Topical application, swab
*/
SWAB,
/**
* Topical
*/
TOPICAL,
/**
* Topical application, buccal
*/
BUC,
/**
* Topical application, cervical
*/
CERV,
/**
* Topical application, dental
*/
DEN,
/**
* Topical application, gingival
*/
GIN,
/**
* Topical application, hair
*/
HAIR,
/**
* Topical application, intracorneal
*/
ICORNTA,
/**
* Topical application, intracoronal (dental)
*/
ICORONTA,
/**
* Topical application, intraesophageal
*/
IESOPHTA,
/**
* Topical application, intraileal
*/
IILEALTA,
/**
* Topical application, intralesional
*/
ILTOP,
/**
* Topical application, intraluminal
*/
ILUMTA,
/**
* Topical application, intraocular
*/
IOTOP,
/**
* Topical application, laryngeal
*/
LARYNGTA,
/**
* Topical application, mucous membrane
*/
MUC,
/**
* Topical application, nail
*/
NAIL,
/**
* Topical application, nasal
*/
NASAL,
/**
* Topical application, ophthalmic
*/
OPTHALTA,
/**
* Topical application, oral
*/
ORALTA,
/**
* Topical application, oromucosal
*/
ORMUC,
/**
* Topical application, oropharyngeal
*/
OROPHARTA,
/**
* Topical application, perianal
*/
PERIANAL,
/**
* Topical application, perineal
*/
PERINEAL,
/**
* Topical application, periodontal
*/
PDONTTA,
/**
* Topical application, rectal
*/
RECTAL,
/**
* Topical application, scalp
*/
SCALP,
/**
* Occlusive dressing technique
*/
OCDRESTA,
/**
* Topical application, skin
*/
SKIN,
/**
* Subconjunctival
*/
SUBCONJTA,
/**
* Topical application, transmucosal
*/
TMUCTA,
/**
* Insertion, vaginal
*/
VAGINS,
/**
* Insufflation
*/
INSUF,
/**
* Transdermal
*/
TRNSDERM,
/**
* Route of substance administration classified by site.
*/
_ROUTEBYSITE,
/**
* Amniotic fluid sac
*/
_AMNIOTICFLUIDSACROUTE,
/**
* Biliary tract
*/
_BILIARYROUTE,
/**
* Body surface
*/
_BODYSURFACEROUTE,
/**
* Buccal mucosa
*/
_BUCCALMUCOSAROUTE,
/**
* Cecostomy
*/
_CECOSTOMYROUTE,
/**
* Cervix of the uterus
*/
_CERVICALROUTE,
/**
* Endocervical
*/
_ENDOCERVICALROUTE,
/**
* Enteral
*/
_ENTERALROUTE,
/**
* Epidural
*/
_EPIDURALROUTE,
/**
* Extra-amniotic
*/
_EXTRAAMNIOTICROUTE,
/**
* Extracorporeal circulation
*/
_EXTRACORPOREALCIRCULATIONROUTE,
/**
* Gastric
*/
_GASTRICROUTE,
/**
* Genitourinary
*/
_GENITOURINARYROUTE,
/**
* Gingival
*/
_GINGIVALROUTE,
/**
* Hair
*/
_HAIRROUTE,
/**
* Interameningeal
*/
_INTERAMENINGEALROUTE,
/**
* Interstitial
*/
_INTERSTITIALROUTE,
/**
* Intra-abdominal
*/
_INTRAABDOMINALROUTE,
/**
* Intra-arterial
*/
_INTRAARTERIALROUTE,
/**
* Intraarticular
*/
_INTRAARTICULARROUTE,
/**
* Intrabronchial
*/
_INTRABRONCHIALROUTE,
/**
* Intrabursal
*/
_INTRABURSALROUTE,
/**
* Intracardiac
*/
_INTRACARDIACROUTE,
/**
* Intracartilaginous
*/
_INTRACARTILAGINOUSROUTE,
/**
* Intracaudal
*/
_INTRACAUDALROUTE,
/**
* Intracavernosal
*/
_INTRACAVERNOSALROUTE,
/**
* Intracavitary
*/
_INTRACAVITARYROUTE,
/**
* Intracerebral
*/
_INTRACEREBRALROUTE,
/**
* Intracervical
*/
_INTRACERVICALROUTE,
/**
* Intracisternal
*/
_INTRACISTERNALROUTE,
/**
* Intracorneal
*/
_INTRACORNEALROUTE,
/**
* Intracoronal (dental)
*/
_INTRACORONALROUTE,
/**
* Intracoronary
*/
_INTRACORONARYROUTE,
/**
* Intracorpus cavernosum
*/
_INTRACORPUSCAVERNOSUMROUTE,
/**
* Intradermal
*/
_INTRADERMALROUTE,
/**
* Intradiscal
*/
_INTRADISCALROUTE,
/**
* Intraductal
*/
_INTRADUCTALROUTE,
/**
* Intraduodenal
*/
_INTRADUODENALROUTE,
/**
* Intradural
*/
_INTRADURALROUTE,
/**
* Intraepidermal
*/
_INTRAEPIDERMALROUTE,
/**
* Intraepithelial
*/
_INTRAEPITHELIALROUTE,
/**
* Intraesophageal
*/
_INTRAESOPHAGEALROUTE,
/**
* Intragastric
*/
_INTRAGASTRICROUTE,
/**
* Intraileal
*/
_INTRAILEALROUTE,
/**
* Intralesional
*/
_INTRALESIONALROUTE,
/**
* Intraluminal
*/
_INTRALUMINALROUTE,
/**
* Intralymphatic
*/
_INTRALYMPHATICROUTE,
/**
* Intramedullary
*/
_INTRAMEDULLARYROUTE,
/**
* Intramuscular
*/
_INTRAMUSCULARROUTE,
/**
* Intraocular
*/
_INTRAOCULARROUTE,
/**
* Intraosseous
*/
_INTRAOSSEOUSROUTE,
/**
* Intraovarian
*/
_INTRAOVARIANROUTE,
/**
* Intrapericardial
*/
_INTRAPERICARDIALROUTE,
/**
* Intraperitoneal
*/
_INTRAPERITONEALROUTE,
/**
* Intrapleural
*/
_INTRAPLEURALROUTE,
/**
* Intraprostatic
*/
_INTRAPROSTATICROUTE,
/**
* Intrapulmonary
*/
_INTRAPULMONARYROUTE,
/**
* Intrasinal
*/
_INTRASINALROUTE,
/**
* Intraspinal
*/
_INTRASPINALROUTE,
/**
* Intrasternal
*/
_INTRASTERNALROUTE,
/**
* Intrasynovial
*/
_INTRASYNOVIALROUTE,
/**
* Intratendinous
*/
_INTRATENDINOUSROUTE,
/**
* Intratesticular
*/
_INTRATESTICULARROUTE,
/**
* Intrathecal
*/
_INTRATHECALROUTE,
/**
* Intrathoracic
*/
_INTRATHORACICROUTE,
/**
* Intratracheal
*/
_INTRATRACHEALROUTE,
/**
* Intratubular
*/
_INTRATUBULARROUTE,
/**
* Intratumor
*/
_INTRATUMORROUTE,
/**
* Intratympanic
*/
_INTRATYMPANICROUTE,
/**
* Intrauterine
*/
_INTRAUTERINEROUTE,
/**
* Intravascular
*/
_INTRAVASCULARROUTE,
/**
* Intravenous
*/
_INTRAVENOUSROUTE,
/**
* Intraventricular
*/
_INTRAVENTRICULARROUTE,
/**
* Intravesicle
*/
_INTRAVESICLEROUTE,
/**
* Intravitreal
*/
_INTRAVITREALROUTE,
/**
* Jejunum
*/
_JEJUNUMROUTE,
/**
* Lacrimal puncta
*/
_LACRIMALPUNCTAROUTE,
/**
* Laryngeal
*/
_LARYNGEALROUTE,
/**
* Lingual
*/
_LINGUALROUTE,
/**
* Mucous membrane
*/
_MUCOUSMEMBRANEROUTE,
/**
* Nail
*/
_NAILROUTE,
/**
* Nasal
*/
_NASALROUTE,
/**
* Ophthalmic
*/
_OPHTHALMICROUTE,
/**
* Oral
*/
_ORALROUTE,
/**
* Oromucosal
*/
_OROMUCOSALROUTE,
/**
* Oropharyngeal
*/
_OROPHARYNGEALROUTE,
/**
* Otic
*/
_OTICROUTE,
/**
* Paranasal sinuses
*/
_PARANASALSINUSESROUTE,
/**
* Parenteral
*/
_PARENTERALROUTE,
/**
* Perianal
*/
_PERIANALROUTE,
/**
* Periarticular
*/
_PERIARTICULARROUTE,
/**
* Peridural
*/
_PERIDURALROUTE,
/**
* Perineal
*/
_PERINEALROUTE,
/**
* Perineural
*/
_PERINEURALROUTE,
/**
* Periodontal
*/
_PERIODONTALROUTE,
/**
* Pulmonary
*/
_PULMONARYROUTE,
/**
* Rectal
*/
_RECTALROUTE,
/**
* Respiratory tract
*/
_RESPIRATORYTRACTROUTE,
/**
* Retrobulbar
*/
_RETROBULBARROUTE,
/**
* Scalp
*/
_SCALPROUTE,
/**
* Sinus, unspecified
*/
_SINUSUNSPECIFIEDROUTE,
/**
* Skin
*/
_SKINROUTE,
/**
* Soft tissue
*/
_SOFTTISSUEROUTE,
/**
* Subarachnoid
*/
_SUBARACHNOIDROUTE,
/**
* Subconjunctival
*/
_SUBCONJUNCTIVALROUTE,
/**
* Subcutaneous
*/
_SUBCUTANEOUSROUTE,
/**
* Sublesional
*/
_SUBLESIONALROUTE,
/**
* Sublingual
*/
_SUBLINGUALROUTE,
/**
* Submucosal
*/
_SUBMUCOSALROUTE,
/**
* Tracheostomy
*/
_TRACHEOSTOMYROUTE,
/**
* Transmucosal
*/
_TRANSMUCOSALROUTE,
/**
* Transplacental
*/
_TRANSPLACENTALROUTE,
/**
* Transtracheal
*/
_TRANSTRACHEALROUTE,
/**
* Transtympanic
*/
_TRANSTYMPANICROUTE,
/**
* Ureteral
*/
_URETERALROUTE,
/**
* Urethral
*/
_URETHRALROUTE,
/**
* Urinary bladder
*/
_URINARYBLADDERROUTE,
/**
* Urinary tract
*/
_URINARYTRACTROUTE,
/**
* Vaginal
*/
_VAGINALROUTE,
/**
* Vitreous humour
*/
_VITREOUSHUMOURROUTE,
/**
* added to help the parsers
*/
NULL;
public static V3RouteOfAdministration fromCode(String codeString) throws Exception {
if (codeString == null || "".equals(codeString))
return null;
if ("_RouteByMethod".equals(codeString))
return _ROUTEBYMETHOD;
if ("SOAK".equals(codeString))
return SOAK;
if ("SHAMPOO".equals(codeString))
return SHAMPOO;
if ("TRNSLING".equals(codeString))
return TRNSLING;
if ("PO".equals(codeString))
return PO;
if ("GARGLE".equals(codeString))
return GARGLE;
if ("SUCK".equals(codeString))
return SUCK;
if ("_Chew".equals(codeString))
return _CHEW;
if ("CHEW".equals(codeString))
return CHEW;
if ("_Diffusion".equals(codeString))
return _DIFFUSION;
if ("EXTCORPDIF".equals(codeString))
return EXTCORPDIF;
if ("HEMODIFF".equals(codeString))
return HEMODIFF;
if ("TRNSDERMD".equals(codeString))
return TRNSDERMD;
if ("_Dissolve".equals(codeString))
return _DISSOLVE;
if ("DISSOLVE".equals(codeString))
return DISSOLVE;
if ("SL".equals(codeString))
return SL;
if ("_Douche".equals(codeString))
return _DOUCHE;
if ("DOUCHE".equals(codeString))
return DOUCHE;
if ("_ElectroOsmosisRoute".equals(codeString))
return _ELECTROOSMOSISROUTE;
if ("ELECTOSMOS".equals(codeString))
return ELECTOSMOS;
if ("_Enema".equals(codeString))
return _ENEMA;
if ("ENEMA".equals(codeString))
return ENEMA;
if ("RETENEMA".equals(codeString))
return RETENEMA;
if ("_Flush".equals(codeString))
return _FLUSH;
if ("IVFLUSH".equals(codeString))
return IVFLUSH;
if ("_Implantation".equals(codeString))
return _IMPLANTATION;
if ("IDIMPLNT".equals(codeString))
return IDIMPLNT;
if ("IVITIMPLNT".equals(codeString))
return IVITIMPLNT;
if ("SQIMPLNT".equals(codeString))
return SQIMPLNT;
if ("_Infusion".equals(codeString))
return _INFUSION;
if ("EPI".equals(codeString))
return EPI;
if ("IA".equals(codeString))
return IA;
if ("IC".equals(codeString))
return IC;
if ("ICOR".equals(codeString))
return ICOR;
if ("IOSSC".equals(codeString))
return IOSSC;
if ("IT".equals(codeString))
return IT;
if ("IV".equals(codeString))
return IV;
if ("IVC".equals(codeString))
return IVC;
if ("IVCC".equals(codeString))
return IVCC;
if ("IVCI".equals(codeString))
return IVCI;
if ("PCA".equals(codeString))
return PCA;
if ("IVASCINFUS".equals(codeString))
return IVASCINFUS;
if ("SQINFUS".equals(codeString))
return SQINFUS;
if ("_Inhalation".equals(codeString))
return _INHALATION;
if ("IPINHL".equals(codeString))
return IPINHL;
if ("ORIFINHL".equals(codeString))
return ORIFINHL;
if ("REBREATH".equals(codeString))
return REBREATH;
if ("IPPB".equals(codeString))
return IPPB;
if ("NASINHL".equals(codeString))
return NASINHL;
if ("NASINHLC".equals(codeString))
return NASINHLC;
if ("NEB".equals(codeString))
return NEB;
if ("NASNEB".equals(codeString))
return NASNEB;
if ("ORNEB".equals(codeString))
return ORNEB;
if ("TRACH".equals(codeString))
return TRACH;
if ("VENT".equals(codeString))
return VENT;
if ("VENTMASK".equals(codeString))
return VENTMASK;
if ("_Injection".equals(codeString))
return _INJECTION;
if ("AMNINJ".equals(codeString))
return AMNINJ;
if ("BILINJ".equals(codeString))
return BILINJ;
if ("CHOLINJ".equals(codeString))
return CHOLINJ;
if ("CERVINJ".equals(codeString))
return CERVINJ;
if ("EPIDURINJ".equals(codeString))
return EPIDURINJ;
if ("EPIINJ".equals(codeString))
return EPIINJ;
if ("EPINJSP".equals(codeString))
return EPINJSP;
if ("EXTRAMNINJ".equals(codeString))
return EXTRAMNINJ;
if ("EXTCORPINJ".equals(codeString))
return EXTCORPINJ;
if ("GBINJ".equals(codeString))
return GBINJ;
if ("GINGINJ".equals(codeString))
return GINGINJ;
if ("BLADINJ".equals(codeString))
return BLADINJ;
if ("ENDOSININJ".equals(codeString))
return ENDOSININJ;
if ("HEMOPORT".equals(codeString))
return HEMOPORT;
if ("IABDINJ".equals(codeString))
return IABDINJ;
if ("IAINJ".equals(codeString))
return IAINJ;
if ("IAINJP".equals(codeString))
return IAINJP;
if ("IAINJSP".equals(codeString))
return IAINJSP;
if ("IARTINJ".equals(codeString))
return IARTINJ;
if ("IBURSINJ".equals(codeString))
return IBURSINJ;
if ("ICARDINJ".equals(codeString))
return ICARDINJ;
if ("ICARDINJRP".equals(codeString))
return ICARDINJRP;
if ("ICARDINJSP".equals(codeString))
return ICARDINJSP;
if ("ICARINJP".equals(codeString))
return ICARINJP;
if ("ICARTINJ".equals(codeString))
return ICARTINJ;
if ("ICAUDINJ".equals(codeString))
return ICAUDINJ;
if ("ICAVINJ".equals(codeString))
return ICAVINJ;
if ("ICAVITINJ".equals(codeString))
return ICAVITINJ;
if ("ICEREBINJ".equals(codeString))
return ICEREBINJ;
if ("ICISTERNINJ".equals(codeString))
return ICISTERNINJ;
if ("ICORONINJ".equals(codeString))
return ICORONINJ;
if ("ICORONINJP".equals(codeString))
return ICORONINJP;
if ("ICORPCAVINJ".equals(codeString))
return ICORPCAVINJ;
if ("IDINJ".equals(codeString))
return IDINJ;
if ("IDISCINJ".equals(codeString))
return IDISCINJ;
if ("IDUCTINJ".equals(codeString))
return IDUCTINJ;
if ("IDURINJ".equals(codeString))
return IDURINJ;
if ("IEPIDINJ".equals(codeString))
return IEPIDINJ;
if ("IEPITHINJ".equals(codeString))
return IEPITHINJ;
if ("ILESINJ".equals(codeString))
return ILESINJ;
if ("ILUMINJ".equals(codeString))
return ILUMINJ;
if ("ILYMPJINJ".equals(codeString))
return ILYMPJINJ;
if ("IM".equals(codeString))
return IM;
if ("IMD".equals(codeString))
return IMD;
if ("IMZ".equals(codeString))
return IMZ;
if ("IMEDULINJ".equals(codeString))
return IMEDULINJ;
if ("INTERMENINJ".equals(codeString))
return INTERMENINJ;
if ("INTERSTITINJ".equals(codeString))
return INTERSTITINJ;
if ("IOINJ".equals(codeString))
return IOINJ;
if ("IOSSINJ".equals(codeString))
return IOSSINJ;
if ("IOVARINJ".equals(codeString))
return IOVARINJ;
if ("IPCARDINJ".equals(codeString))
return IPCARDINJ;
if ("IPERINJ".equals(codeString))
return IPERINJ;
if ("IPINJ".equals(codeString))
return IPINJ;
if ("IPLRINJ".equals(codeString))
return IPLRINJ;
if ("IPROSTINJ".equals(codeString))
return IPROSTINJ;
if ("IPUMPINJ".equals(codeString))
return IPUMPINJ;
if ("ISINJ".equals(codeString))
return ISINJ;
if ("ISTERINJ".equals(codeString))
return ISTERINJ;
if ("ISYNINJ".equals(codeString))
return ISYNINJ;
if ("ITENDINJ".equals(codeString))
return ITENDINJ;
if ("ITESTINJ".equals(codeString))
return ITESTINJ;
if ("ITHORINJ".equals(codeString))
return ITHORINJ;
if ("ITINJ".equals(codeString))
return ITINJ;
if ("ITUBINJ".equals(codeString))
return ITUBINJ;
if ("ITUMINJ".equals(codeString))
return ITUMINJ;
if ("ITYMPINJ".equals(codeString))
return ITYMPINJ;
if ("IUINJ".equals(codeString))
return IUINJ;
if ("IUINJC".equals(codeString))
return IUINJC;
if ("IURETINJ".equals(codeString))
return IURETINJ;
if ("IVASCINJ".equals(codeString))
return IVASCINJ;
if ("IVENTINJ".equals(codeString))
return IVENTINJ;
if ("IVESINJ".equals(codeString))
return IVESINJ;
if ("IVINJ".equals(codeString))
return IVINJ;
if ("IVINJBOL".equals(codeString))
return IVINJBOL;
if ("IVPUSH".equals(codeString))
return IVPUSH;
if ("IVRPUSH".equals(codeString))
return IVRPUSH;
if ("IVSPUSH".equals(codeString))
return IVSPUSH;
if ("IVITINJ".equals(codeString))
return IVITINJ;
if ("PAINJ".equals(codeString))
return PAINJ;
if ("PARENTINJ".equals(codeString))
return PARENTINJ;
if ("PDONTINJ".equals(codeString))
return PDONTINJ;
if ("PDPINJ".equals(codeString))
return PDPINJ;
if ("PDURINJ".equals(codeString))
return PDURINJ;
if ("PNINJ".equals(codeString))
return PNINJ;
if ("PNSINJ".equals(codeString))
return PNSINJ;
if ("RBINJ".equals(codeString))
return RBINJ;
if ("SCINJ".equals(codeString))
return SCINJ;
if ("SLESINJ".equals(codeString))
return SLESINJ;
if ("SOFTISINJ".equals(codeString))
return SOFTISINJ;
if ("SQ".equals(codeString))
return SQ;
if ("SUBARACHINJ".equals(codeString))
return SUBARACHINJ;
if ("SUBMUCINJ".equals(codeString))
return SUBMUCINJ;
if ("TRPLACINJ".equals(codeString))
return TRPLACINJ;
if ("TRTRACHINJ".equals(codeString))
return TRTRACHINJ;
if ("URETHINJ".equals(codeString))
return URETHINJ;
if ("URETINJ".equals(codeString))
return URETINJ;
if ("_Insertion".equals(codeString))
return _INSERTION;
if ("CERVINS".equals(codeString))
return CERVINS;
if ("IOSURGINS".equals(codeString))
return IOSURGINS;
if ("IU".equals(codeString))
return IU;
if ("LPINS".equals(codeString))
return LPINS;
if ("PR".equals(codeString))
return PR;
if ("SQSURGINS".equals(codeString))
return SQSURGINS;
if ("URETHINS".equals(codeString))
return URETHINS;
if ("VAGINSI".equals(codeString))
return VAGINSI;
if ("_Instillation".equals(codeString))
return _INSTILLATION;
if ("CECINSTL".equals(codeString))
return CECINSTL;
if ("EFT".equals(codeString))
return EFT;
if ("ENTINSTL".equals(codeString))
return ENTINSTL;
if ("GT".equals(codeString))
return GT;
if ("NGT".equals(codeString))
return NGT;
if ("OGT".equals(codeString))
return OGT;
if ("BLADINSTL".equals(codeString))
return BLADINSTL;
if ("CAPDINSTL".equals(codeString))
return CAPDINSTL;
if ("CTINSTL".equals(codeString))
return CTINSTL;
if ("ETINSTL".equals(codeString))
return ETINSTL;
if ("GJT".equals(codeString))
return GJT;
if ("IBRONCHINSTIL".equals(codeString))
return IBRONCHINSTIL;
if ("IDUODINSTIL".equals(codeString))
return IDUODINSTIL;
if ("IESOPHINSTIL".equals(codeString))
return IESOPHINSTIL;
if ("IGASTINSTIL".equals(codeString))
return IGASTINSTIL;
if ("IILEALINJ".equals(codeString))
return IILEALINJ;
if ("IOINSTL".equals(codeString))
return IOINSTL;
if ("ISININSTIL".equals(codeString))
return ISININSTIL;
if ("ITRACHINSTIL".equals(codeString))
return ITRACHINSTIL;
if ("IUINSTL".equals(codeString))
return IUINSTL;
if ("JJTINSTL".equals(codeString))
return JJTINSTL;
if ("LARYNGINSTIL".equals(codeString))
return LARYNGINSTIL;
if ("NASALINSTIL".equals(codeString))
return NASALINSTIL;
if ("NASOGASINSTIL".equals(codeString))
return NASOGASINSTIL;
if ("NTT".equals(codeString))
return NTT;
if ("OJJ".equals(codeString))
return OJJ;
if ("OT".equals(codeString))
return OT;
if ("PDPINSTL".equals(codeString))
return PDPINSTL;
if ("PNSINSTL".equals(codeString))
return PNSINSTL;
if ("RECINSTL".equals(codeString))
return RECINSTL;
if ("RECTINSTL".equals(codeString))
return RECTINSTL;
if ("SININSTIL".equals(codeString))
return SININSTIL;
if ("SOFTISINSTIL".equals(codeString))
return SOFTISINSTIL;
if ("TRACHINSTL".equals(codeString))
return TRACHINSTL;
if ("TRTYMPINSTIL".equals(codeString))
return TRTYMPINSTIL;
if ("URETHINSTL".equals(codeString))
return URETHINSTL;
if ("_IontophoresisRoute".equals(codeString))
return _IONTOPHORESISROUTE;
if ("IONTO".equals(codeString))
return IONTO;
if ("_Irrigation".equals(codeString))
return _IRRIGATION;
if ("GUIRR".equals(codeString))
return GUIRR;
if ("IGASTIRR".equals(codeString))
return IGASTIRR;
if ("ILESIRR".equals(codeString))
return ILESIRR;
if ("IOIRR".equals(codeString))
return IOIRR;
if ("BLADIRR".equals(codeString))
return BLADIRR;
if ("BLADIRRC".equals(codeString))
return BLADIRRC;
if ("BLADIRRT".equals(codeString))
return BLADIRRT;
if ("RECIRR".equals(codeString))
return RECIRR;
if ("_LavageRoute".equals(codeString))
return _LAVAGEROUTE;
if ("IGASTLAV".equals(codeString))
return IGASTLAV;
if ("_MucosalAbsorptionRoute".equals(codeString))
return _MUCOSALABSORPTIONROUTE;
if ("IDOUDMAB".equals(codeString))
return IDOUDMAB;
if ("ITRACHMAB".equals(codeString))
return ITRACHMAB;
if ("SMUCMAB".equals(codeString))
return SMUCMAB;
if ("_Nebulization".equals(codeString))
return _NEBULIZATION;
if ("ETNEB".equals(codeString))
return ETNEB;
if ("_Rinse".equals(codeString))
return _RINSE;
if ("DENRINSE".equals(codeString))
return DENRINSE;
if ("ORRINSE".equals(codeString))
return ORRINSE;
if ("_SuppositoryRoute".equals(codeString))
return _SUPPOSITORYROUTE;
if ("URETHSUP".equals(codeString))
return URETHSUP;
if ("_Swish".equals(codeString))
return _SWISH;
if ("SWISHSPIT".equals(codeString))
return SWISHSPIT;
if ("SWISHSWAL".equals(codeString))
return SWISHSWAL;
if ("_TopicalAbsorptionRoute".equals(codeString))
return _TOPICALABSORPTIONROUTE;
if ("TTYMPTABSORP".equals(codeString))
return TTYMPTABSORP;
if ("_TopicalApplication".equals(codeString))
return _TOPICALAPPLICATION;
if ("DRESS".equals(codeString))
return DRESS;
if ("SWAB".equals(codeString))
return SWAB;
if ("TOPICAL".equals(codeString))
return TOPICAL;
if ("BUC".equals(codeString))
return BUC;
if ("CERV".equals(codeString))
return CERV;
if ("DEN".equals(codeString))
return DEN;
if ("GIN".equals(codeString))
return GIN;
if ("HAIR".equals(codeString))
return HAIR;
if ("ICORNTA".equals(codeString))
return ICORNTA;
if ("ICORONTA".equals(codeString))
return ICORONTA;
if ("IESOPHTA".equals(codeString))
return IESOPHTA;
if ("IILEALTA".equals(codeString))
return IILEALTA;
if ("ILTOP".equals(codeString))
return ILTOP;
if ("ILUMTA".equals(codeString))
return ILUMTA;
if ("IOTOP".equals(codeString))
return IOTOP;
if ("LARYNGTA".equals(codeString))
return LARYNGTA;
if ("MUC".equals(codeString))
return MUC;
if ("NAIL".equals(codeString))
return NAIL;
if ("NASAL".equals(codeString))
return NASAL;
if ("OPTHALTA".equals(codeString))
return OPTHALTA;
if ("ORALTA".equals(codeString))
return ORALTA;
if ("ORMUC".equals(codeString))
return ORMUC;
if ("OROPHARTA".equals(codeString))
return OROPHARTA;
if ("PERIANAL".equals(codeString))
return PERIANAL;
if ("PERINEAL".equals(codeString))
return PERINEAL;
if ("PDONTTA".equals(codeString))
return PDONTTA;
if ("RECTAL".equals(codeString))
return RECTAL;
if ("SCALP".equals(codeString))
return SCALP;
if ("OCDRESTA".equals(codeString))
return OCDRESTA;
if ("SKIN".equals(codeString))
return SKIN;
if ("SUBCONJTA".equals(codeString))
return SUBCONJTA;
if ("TMUCTA".equals(codeString))
return TMUCTA;
if ("VAGINS".equals(codeString))
return VAGINS;
if ("INSUF".equals(codeString))
return INSUF;
if ("TRNSDERM".equals(codeString))
return TRNSDERM;
if ("_RouteBySite".equals(codeString))
return _ROUTEBYSITE;
if ("_AmnioticFluidSacRoute".equals(codeString))
return _AMNIOTICFLUIDSACROUTE;
if ("_BiliaryRoute".equals(codeString))
return _BILIARYROUTE;
if ("_BodySurfaceRoute".equals(codeString))
return _BODYSURFACEROUTE;
if ("_BuccalMucosaRoute".equals(codeString))
return _BUCCALMUCOSAROUTE;
if ("_CecostomyRoute".equals(codeString))
return _CECOSTOMYROUTE;
if ("_CervicalRoute".equals(codeString))
return _CERVICALROUTE;
if ("_EndocervicalRoute".equals(codeString))
return _ENDOCERVICALROUTE;
if ("_EnteralRoute".equals(codeString))
return _ENTERALROUTE;
if ("_EpiduralRoute".equals(codeString))
return _EPIDURALROUTE;
if ("_ExtraAmnioticRoute".equals(codeString))
return _EXTRAAMNIOTICROUTE;
if ("_ExtracorporealCirculationRoute".equals(codeString))
return _EXTRACORPOREALCIRCULATIONROUTE;
if ("_GastricRoute".equals(codeString))
return _GASTRICROUTE;
if ("_GenitourinaryRoute".equals(codeString))
return _GENITOURINARYROUTE;
if ("_GingivalRoute".equals(codeString))
return _GINGIVALROUTE;
if ("_HairRoute".equals(codeString))
return _HAIRROUTE;
if ("_InterameningealRoute".equals(codeString))
return _INTERAMENINGEALROUTE;
if ("_InterstitialRoute".equals(codeString))
return _INTERSTITIALROUTE;
if ("_IntraabdominalRoute".equals(codeString))
return _INTRAABDOMINALROUTE;
if ("_IntraarterialRoute".equals(codeString))
return _INTRAARTERIALROUTE;
if ("_IntraarticularRoute".equals(codeString))
return _INTRAARTICULARROUTE;
if ("_IntrabronchialRoute".equals(codeString))
return _INTRABRONCHIALROUTE;
if ("_IntrabursalRoute".equals(codeString))
return _INTRABURSALROUTE;
if ("_IntracardiacRoute".equals(codeString))
return _INTRACARDIACROUTE;
if ("_IntracartilaginousRoute".equals(codeString))
return _INTRACARTILAGINOUSROUTE;
if ("_IntracaudalRoute".equals(codeString))
return _INTRACAUDALROUTE;
if ("_IntracavernosalRoute".equals(codeString))
return _INTRACAVERNOSALROUTE;
if ("_IntracavitaryRoute".equals(codeString))
return _INTRACAVITARYROUTE;
if ("_IntracerebralRoute".equals(codeString))
return _INTRACEREBRALROUTE;
if ("_IntracervicalRoute".equals(codeString))
return _INTRACERVICALROUTE;
if ("_IntracisternalRoute".equals(codeString))
return _INTRACISTERNALROUTE;
if ("_IntracornealRoute".equals(codeString))
return _INTRACORNEALROUTE;
if ("_IntracoronalRoute".equals(codeString))
return _INTRACORONALROUTE;
if ("_IntracoronaryRoute".equals(codeString))
return _INTRACORONARYROUTE;
if ("_IntracorpusCavernosumRoute".equals(codeString))
return _INTRACORPUSCAVERNOSUMROUTE;
if ("_IntradermalRoute".equals(codeString))
return _INTRADERMALROUTE;
if ("_IntradiscalRoute".equals(codeString))
return _INTRADISCALROUTE;
if ("_IntraductalRoute".equals(codeString))
return _INTRADUCTALROUTE;
if ("_IntraduodenalRoute".equals(codeString))
return _INTRADUODENALROUTE;
if ("_IntraduralRoute".equals(codeString))
return _INTRADURALROUTE;
if ("_IntraepidermalRoute".equals(codeString))
return _INTRAEPIDERMALROUTE;
if ("_IntraepithelialRoute".equals(codeString))
return _INTRAEPITHELIALROUTE;
if ("_IntraesophagealRoute".equals(codeString))
return _INTRAESOPHAGEALROUTE;
if ("_IntragastricRoute".equals(codeString))
return _INTRAGASTRICROUTE;
if ("_IntrailealRoute".equals(codeString))
return _INTRAILEALROUTE;
if ("_IntralesionalRoute".equals(codeString))
return _INTRALESIONALROUTE;
if ("_IntraluminalRoute".equals(codeString))
return _INTRALUMINALROUTE;
if ("_IntralymphaticRoute".equals(codeString))
return _INTRALYMPHATICROUTE;
if ("_IntramedullaryRoute".equals(codeString))
return _INTRAMEDULLARYROUTE;
if ("_IntramuscularRoute".equals(codeString))
return _INTRAMUSCULARROUTE;
if ("_IntraocularRoute".equals(codeString))
return _INTRAOCULARROUTE;
if ("_IntraosseousRoute".equals(codeString))
return _INTRAOSSEOUSROUTE;
if ("_IntraovarianRoute".equals(codeString))
return _INTRAOVARIANROUTE;
if ("_IntrapericardialRoute".equals(codeString))
return _INTRAPERICARDIALROUTE;
if ("_IntraperitonealRoute".equals(codeString))
return _INTRAPERITONEALROUTE;
if ("_IntrapleuralRoute".equals(codeString))
return _INTRAPLEURALROUTE;
if ("_IntraprostaticRoute".equals(codeString))
return _INTRAPROSTATICROUTE;
if ("_IntrapulmonaryRoute".equals(codeString))
return _INTRAPULMONARYROUTE;
if ("_IntrasinalRoute".equals(codeString))
return _INTRASINALROUTE;
if ("_IntraspinalRoute".equals(codeString))
return _INTRASPINALROUTE;
if ("_IntrasternalRoute".equals(codeString))
return _INTRASTERNALROUTE;
if ("_IntrasynovialRoute".equals(codeString))
return _INTRASYNOVIALROUTE;
if ("_IntratendinousRoute".equals(codeString))
return _INTRATENDINOUSROUTE;
if ("_IntratesticularRoute".equals(codeString))
return _INTRATESTICULARROUTE;
if ("_IntrathecalRoute".equals(codeString))
return _INTRATHECALROUTE;
if ("_IntrathoracicRoute".equals(codeString))
return _INTRATHORACICROUTE;
if ("_IntratrachealRoute".equals(codeString))
return _INTRATRACHEALROUTE;
if ("_IntratubularRoute".equals(codeString))
return _INTRATUBULARROUTE;
if ("_IntratumorRoute".equals(codeString))
return _INTRATUMORROUTE;
if ("_IntratympanicRoute".equals(codeString))
return _INTRATYMPANICROUTE;
if ("_IntrauterineRoute".equals(codeString))
return _INTRAUTERINEROUTE;
if ("_IntravascularRoute".equals(codeString))
return _INTRAVASCULARROUTE;
if ("_IntravenousRoute".equals(codeString))
return _INTRAVENOUSROUTE;
if ("_IntraventricularRoute".equals(codeString))
return _INTRAVENTRICULARROUTE;
if ("_IntravesicleRoute".equals(codeString))
return _INTRAVESICLEROUTE;
if ("_IntravitrealRoute".equals(codeString))
return _INTRAVITREALROUTE;
if ("_JejunumRoute".equals(codeString))
return _JEJUNUMROUTE;
if ("_LacrimalPunctaRoute".equals(codeString))
return _LACRIMALPUNCTAROUTE;
if ("_LaryngealRoute".equals(codeString))
return _LARYNGEALROUTE;
if ("_LingualRoute".equals(codeString))
return _LINGUALROUTE;
if ("_MucousMembraneRoute".equals(codeString))
return _MUCOUSMEMBRANEROUTE;
if ("_NailRoute".equals(codeString))
return _NAILROUTE;
if ("_NasalRoute".equals(codeString))
return _NASALROUTE;
if ("_OphthalmicRoute".equals(codeString))
return _OPHTHALMICROUTE;
if ("_OralRoute".equals(codeString))
return _ORALROUTE;
if ("_OromucosalRoute".equals(codeString))
return _OROMUCOSALROUTE;
if ("_OropharyngealRoute".equals(codeString))
return _OROPHARYNGEALROUTE;
if ("_OticRoute".equals(codeString))
return _OTICROUTE;
if ("_ParanasalSinusesRoute".equals(codeString))
return _PARANASALSINUSESROUTE;
if ("_ParenteralRoute".equals(codeString))
return _PARENTERALROUTE;
if ("_PerianalRoute".equals(codeString))
return _PERIANALROUTE;
if ("_PeriarticularRoute".equals(codeString))
return _PERIARTICULARROUTE;
if ("_PeriduralRoute".equals(codeString))
return _PERIDURALROUTE;
if ("_PerinealRoute".equals(codeString))
return _PERINEALROUTE;
if ("_PerineuralRoute".equals(codeString))
return _PERINEURALROUTE;
if ("_PeriodontalRoute".equals(codeString))
return _PERIODONTALROUTE;
if ("_PulmonaryRoute".equals(codeString))
return _PULMONARYROUTE;
if ("_RectalRoute".equals(codeString))
return _RECTALROUTE;
if ("_RespiratoryTractRoute".equals(codeString))
return _RESPIRATORYTRACTROUTE;
if ("_RetrobulbarRoute".equals(codeString))
return _RETROBULBARROUTE;
if ("_ScalpRoute".equals(codeString))
return _SCALPROUTE;
if ("_SinusUnspecifiedRoute".equals(codeString))
return _SINUSUNSPECIFIEDROUTE;
if ("_SkinRoute".equals(codeString))
return _SKINROUTE;
if ("_SoftTissueRoute".equals(codeString))
return _SOFTTISSUEROUTE;
if ("_SubarachnoidRoute".equals(codeString))
return _SUBARACHNOIDROUTE;
if ("_SubconjunctivalRoute".equals(codeString))
return _SUBCONJUNCTIVALROUTE;
if ("_SubcutaneousRoute".equals(codeString))
return _SUBCUTANEOUSROUTE;
if ("_SublesionalRoute".equals(codeString))
return _SUBLESIONALROUTE;
if ("_SublingualRoute".equals(codeString))
return _SUBLINGUALROUTE;
if ("_SubmucosalRoute".equals(codeString))
return _SUBMUCOSALROUTE;
if ("_TracheostomyRoute".equals(codeString))
return _TRACHEOSTOMYROUTE;
if ("_TransmucosalRoute".equals(codeString))
return _TRANSMUCOSALROUTE;
if ("_TransplacentalRoute".equals(codeString))
return _TRANSPLACENTALROUTE;
if ("_TranstrachealRoute".equals(codeString))
return _TRANSTRACHEALROUTE;
if ("_TranstympanicRoute".equals(codeString))
return _TRANSTYMPANICROUTE;
if ("_UreteralRoute".equals(codeString))
return _URETERALROUTE;
if ("_UrethralRoute".equals(codeString))
return _URETHRALROUTE;
if ("_UrinaryBladderRoute".equals(codeString))
return _URINARYBLADDERROUTE;
if ("_UrinaryTractRoute".equals(codeString))
return _URINARYTRACTROUTE;
if ("_VaginalRoute".equals(codeString))
return _VAGINALROUTE;
if ("_VitreousHumourRoute".equals(codeString))
return _VITREOUSHUMOURROUTE;
throw new Exception("Unknown V3RouteOfAdministration code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case _ROUTEBYMETHOD: return "_RouteByMethod";
case SOAK: return "SOAK";
case SHAMPOO: return "SHAMPOO";
case TRNSLING: return "TRNSLING";
case PO: return "PO";
case GARGLE: return "GARGLE";
case SUCK: return "SUCK";
case _CHEW: return "_Chew";
case CHEW: return "CHEW";
case _DIFFUSION: return "_Diffusion";
case EXTCORPDIF: return "EXTCORPDIF";
case HEMODIFF: return "HEMODIFF";
case TRNSDERMD: return "TRNSDERMD";
case _DISSOLVE: return "_Dissolve";
case DISSOLVE: return "DISSOLVE";
case SL: return "SL";
case _DOUCHE: return "_Douche";
case DOUCHE: return "DOUCHE";
case _ELECTROOSMOSISROUTE: return "_ElectroOsmosisRoute";
case ELECTOSMOS: return "ELECTOSMOS";
case _ENEMA: return "_Enema";
case ENEMA: return "ENEMA";
case RETENEMA: return "RETENEMA";
case _FLUSH: return "_Flush";
case IVFLUSH: return "IVFLUSH";
case _IMPLANTATION: return "_Implantation";
case IDIMPLNT: return "IDIMPLNT";
case IVITIMPLNT: return "IVITIMPLNT";
case SQIMPLNT: return "SQIMPLNT";
case _INFUSION: return "_Infusion";
case EPI: return "EPI";
case IA: return "IA";
case IC: return "IC";
case ICOR: return "ICOR";
case IOSSC: return "IOSSC";
case IT: return "IT";
case IV: return "IV";
case IVC: return "IVC";
case IVCC: return "IVCC";
case IVCI: return "IVCI";
case PCA: return "PCA";
case IVASCINFUS: return "IVASCINFUS";
case SQINFUS: return "SQINFUS";
case _INHALATION: return "_Inhalation";
case IPINHL: return "IPINHL";
case ORIFINHL: return "ORIFINHL";
case REBREATH: return "REBREATH";
case IPPB: return "IPPB";
case NASINHL: return "NASINHL";
case NASINHLC: return "NASINHLC";
case NEB: return "NEB";
case NASNEB: return "NASNEB";
case ORNEB: return "ORNEB";
case TRACH: return "TRACH";
case VENT: return "VENT";
case VENTMASK: return "VENTMASK";
case _INJECTION: return "_Injection";
case AMNINJ: return "AMNINJ";
case BILINJ: return "BILINJ";
case CHOLINJ: return "CHOLINJ";
case CERVINJ: return "CERVINJ";
case EPIDURINJ: return "EPIDURINJ";
case EPIINJ: return "EPIINJ";
case EPINJSP: return "EPINJSP";
case EXTRAMNINJ: return "EXTRAMNINJ";
case EXTCORPINJ: return "EXTCORPINJ";
case GBINJ: return "GBINJ";
case GINGINJ: return "GINGINJ";
case BLADINJ: return "BLADINJ";
case ENDOSININJ: return "ENDOSININJ";
case HEMOPORT: return "HEMOPORT";
case IABDINJ: return "IABDINJ";
case IAINJ: return "IAINJ";
case IAINJP: return "IAINJP";
case IAINJSP: return "IAINJSP";
case IARTINJ: return "IARTINJ";
case IBURSINJ: return "IBURSINJ";
case ICARDINJ: return "ICARDINJ";
case ICARDINJRP: return "ICARDINJRP";
case ICARDINJSP: return "ICARDINJSP";
case ICARINJP: return "ICARINJP";
case ICARTINJ: return "ICARTINJ";
case ICAUDINJ: return "ICAUDINJ";
case ICAVINJ: return "ICAVINJ";
case ICAVITINJ: return "ICAVITINJ";
case ICEREBINJ: return "ICEREBINJ";
case ICISTERNINJ: return "ICISTERNINJ";
case ICORONINJ: return "ICORONINJ";
case ICORONINJP: return "ICORONINJP";
case ICORPCAVINJ: return "ICORPCAVINJ";
case IDINJ: return "IDINJ";
case IDISCINJ: return "IDISCINJ";
case IDUCTINJ: return "IDUCTINJ";
case IDURINJ: return "IDURINJ";
case IEPIDINJ: return "IEPIDINJ";
case IEPITHINJ: return "IEPITHINJ";
case ILESINJ: return "ILESINJ";
case ILUMINJ: return "ILUMINJ";
case ILYMPJINJ: return "ILYMPJINJ";
case IM: return "IM";
case IMD: return "IMD";
case IMZ: return "IMZ";
case IMEDULINJ: return "IMEDULINJ";
case INTERMENINJ: return "INTERMENINJ";
case INTERSTITINJ: return "INTERSTITINJ";
case IOINJ: return "IOINJ";
case IOSSINJ: return "IOSSINJ";
case IOVARINJ: return "IOVARINJ";
case IPCARDINJ: return "IPCARDINJ";
case IPERINJ: return "IPERINJ";
case IPINJ: return "IPINJ";
case IPLRINJ: return "IPLRINJ";
case IPROSTINJ: return "IPROSTINJ";
case IPUMPINJ: return "IPUMPINJ";
case ISINJ: return "ISINJ";
case ISTERINJ: return "ISTERINJ";
case ISYNINJ: return "ISYNINJ";
case ITENDINJ: return "ITENDINJ";
case ITESTINJ: return "ITESTINJ";
case ITHORINJ: return "ITHORINJ";
case ITINJ: return "ITINJ";
case ITUBINJ: return "ITUBINJ";
case ITUMINJ: return "ITUMINJ";
case ITYMPINJ: return "ITYMPINJ";
case IUINJ: return "IUINJ";
case IUINJC: return "IUINJC";
case IURETINJ: return "IURETINJ";
case IVASCINJ: return "IVASCINJ";
case IVENTINJ: return "IVENTINJ";
case IVESINJ: return "IVESINJ";
case IVINJ: return "IVINJ";
case IVINJBOL: return "IVINJBOL";
case IVPUSH: return "IVPUSH";
case IVRPUSH: return "IVRPUSH";
case IVSPUSH: return "IVSPUSH";
case IVITINJ: return "IVITINJ";
case PAINJ: return "PAINJ";
case PARENTINJ: return "PARENTINJ";
case PDONTINJ: return "PDONTINJ";
case PDPINJ: return "PDPINJ";
case PDURINJ: return "PDURINJ";
case PNINJ: return "PNINJ";
case PNSINJ: return "PNSINJ";
case RBINJ: return "RBINJ";
case SCINJ: return "SCINJ";
case SLESINJ: return "SLESINJ";
case SOFTISINJ: return "SOFTISINJ";
case SQ: return "SQ";
case SUBARACHINJ: return "SUBARACHINJ";
case SUBMUCINJ: return "SUBMUCINJ";
case TRPLACINJ: return "TRPLACINJ";
case TRTRACHINJ: return "TRTRACHINJ";
case URETHINJ: return "URETHINJ";
case URETINJ: return "URETINJ";
case _INSERTION: return "_Insertion";
case CERVINS: return "CERVINS";
case IOSURGINS: return "IOSURGINS";
case IU: return "IU";
case LPINS: return "LPINS";
case PR: return "PR";
case SQSURGINS: return "SQSURGINS";
case URETHINS: return "URETHINS";
case VAGINSI: return "VAGINSI";
case _INSTILLATION: return "_Instillation";
case CECINSTL: return "CECINSTL";
case EFT: return "EFT";
case ENTINSTL: return "ENTINSTL";
case GT: return "GT";
case NGT: return "NGT";
case OGT: return "OGT";
case BLADINSTL: return "BLADINSTL";
case CAPDINSTL: return "CAPDINSTL";
case CTINSTL: return "CTINSTL";
case ETINSTL: return "ETINSTL";
case GJT: return "GJT";
case IBRONCHINSTIL: return "IBRONCHINSTIL";
case IDUODINSTIL: return "IDUODINSTIL";
case IESOPHINSTIL: return "IESOPHINSTIL";
case IGASTINSTIL: return "IGASTINSTIL";
case IILEALINJ: return "IILEALINJ";
case IOINSTL: return "IOINSTL";
case ISININSTIL: return "ISININSTIL";
case ITRACHINSTIL: return "ITRACHINSTIL";
case IUINSTL: return "IUINSTL";
case JJTINSTL: return "JJTINSTL";
case LARYNGINSTIL: return "LARYNGINSTIL";
case NASALINSTIL: return "NASALINSTIL";
case NASOGASINSTIL: return "NASOGASINSTIL";
case NTT: return "NTT";
case OJJ: return "OJJ";
case OT: return "OT";
case PDPINSTL: return "PDPINSTL";
case PNSINSTL: return "PNSINSTL";
case RECINSTL: return "RECINSTL";
case RECTINSTL: return "RECTINSTL";
case SININSTIL: return "SININSTIL";
case SOFTISINSTIL: return "SOFTISINSTIL";
case TRACHINSTL: return "TRACHINSTL";
case TRTYMPINSTIL: return "TRTYMPINSTIL";
case URETHINSTL: return "URETHINSTL";
case _IONTOPHORESISROUTE: return "_IontophoresisRoute";
case IONTO: return "IONTO";
case _IRRIGATION: return "_Irrigation";
case GUIRR: return "GUIRR";
case IGASTIRR: return "IGASTIRR";
case ILESIRR: return "ILESIRR";
case IOIRR: return "IOIRR";
case BLADIRR: return "BLADIRR";
case BLADIRRC: return "BLADIRRC";
case BLADIRRT: return "BLADIRRT";
case RECIRR: return "RECIRR";
case _LAVAGEROUTE: return "_LavageRoute";
case IGASTLAV: return "IGASTLAV";
case _MUCOSALABSORPTIONROUTE: return "_MucosalAbsorptionRoute";
case IDOUDMAB: return "IDOUDMAB";
case ITRACHMAB: return "ITRACHMAB";
case SMUCMAB: return "SMUCMAB";
case _NEBULIZATION: return "_Nebulization";
case ETNEB: return "ETNEB";
case _RINSE: return "_Rinse";
case DENRINSE: return "DENRINSE";
case ORRINSE: return "ORRINSE";
case _SUPPOSITORYROUTE: return "_SuppositoryRoute";
case URETHSUP: return "URETHSUP";
case _SWISH: return "_Swish";
case SWISHSPIT: return "SWISHSPIT";
case SWISHSWAL: return "SWISHSWAL";
case _TOPICALABSORPTIONROUTE: return "_TopicalAbsorptionRoute";
case TTYMPTABSORP: return "TTYMPTABSORP";
case _TOPICALAPPLICATION: return "_TopicalApplication";
case DRESS: return "DRESS";
case SWAB: return "SWAB";
case TOPICAL: return "TOPICAL";
case BUC: return "BUC";
case CERV: return "CERV";
case DEN: return "DEN";
case GIN: return "GIN";
case HAIR: return "HAIR";
case ICORNTA: return "ICORNTA";
case ICORONTA: return "ICORONTA";
case IESOPHTA: return "IESOPHTA";
case IILEALTA: return "IILEALTA";
case ILTOP: return "ILTOP";
case ILUMTA: return "ILUMTA";
case IOTOP: return "IOTOP";
case LARYNGTA: return "LARYNGTA";
case MUC: return "MUC";
case NAIL: return "NAIL";
case NASAL: return "NASAL";
case OPTHALTA: return "OPTHALTA";
case ORALTA: return "ORALTA";
case ORMUC: return "ORMUC";
case OROPHARTA: return "OROPHARTA";
case PERIANAL: return "PERIANAL";
case PERINEAL: return "PERINEAL";
case PDONTTA: return "PDONTTA";
case RECTAL: return "RECTAL";
case SCALP: return "SCALP";
case OCDRESTA: return "OCDRESTA";
case SKIN: return "SKIN";
case SUBCONJTA: return "SUBCONJTA";
case TMUCTA: return "TMUCTA";
case VAGINS: return "VAGINS";
case INSUF: return "INSUF";
case TRNSDERM: return "TRNSDERM";
case _ROUTEBYSITE: return "_RouteBySite";
case _AMNIOTICFLUIDSACROUTE: return "_AmnioticFluidSacRoute";
case _BILIARYROUTE: return "_BiliaryRoute";
case _BODYSURFACEROUTE: return "_BodySurfaceRoute";
case _BUCCALMUCOSAROUTE: return "_BuccalMucosaRoute";
case _CECOSTOMYROUTE: return "_CecostomyRoute";
case _CERVICALROUTE: return "_CervicalRoute";
case _ENDOCERVICALROUTE: return "_EndocervicalRoute";
case _ENTERALROUTE: return "_EnteralRoute";
case _EPIDURALROUTE: return "_EpiduralRoute";
case _EXTRAAMNIOTICROUTE: return "_ExtraAmnioticRoute";
case _EXTRACORPOREALCIRCULATIONROUTE: return "_ExtracorporealCirculationRoute";
case _GASTRICROUTE: return "_GastricRoute";
case _GENITOURINARYROUTE: return "_GenitourinaryRoute";
case _GINGIVALROUTE: return "_GingivalRoute";
case _HAIRROUTE: return "_HairRoute";
case _INTERAMENINGEALROUTE: return "_InterameningealRoute";
case _INTERSTITIALROUTE: return "_InterstitialRoute";
case _INTRAABDOMINALROUTE: return "_IntraabdominalRoute";
case _INTRAARTERIALROUTE: return "_IntraarterialRoute";
case _INTRAARTICULARROUTE: return "_IntraarticularRoute";
case _INTRABRONCHIALROUTE: return "_IntrabronchialRoute";
case _INTRABURSALROUTE: return "_IntrabursalRoute";
case _INTRACARDIACROUTE: return "_IntracardiacRoute";
case _INTRACARTILAGINOUSROUTE: return "_IntracartilaginousRoute";
case _INTRACAUDALROUTE: return "_IntracaudalRoute";
case _INTRACAVERNOSALROUTE: return "_IntracavernosalRoute";
case _INTRACAVITARYROUTE: return "_IntracavitaryRoute";
case _INTRACEREBRALROUTE: return "_IntracerebralRoute";
case _INTRACERVICALROUTE: return "_IntracervicalRoute";
case _INTRACISTERNALROUTE: return "_IntracisternalRoute";
case _INTRACORNEALROUTE: return "_IntracornealRoute";
case _INTRACORONALROUTE: return "_IntracoronalRoute";
case _INTRACORONARYROUTE: return "_IntracoronaryRoute";
case _INTRACORPUSCAVERNOSUMROUTE: return "_IntracorpusCavernosumRoute";
case _INTRADERMALROUTE: return "_IntradermalRoute";
case _INTRADISCALROUTE: return "_IntradiscalRoute";
case _INTRADUCTALROUTE: return "_IntraductalRoute";
case _INTRADUODENALROUTE: return "_IntraduodenalRoute";
case _INTRADURALROUTE: return "_IntraduralRoute";
case _INTRAEPIDERMALROUTE: return "_IntraepidermalRoute";
case _INTRAEPITHELIALROUTE: return "_IntraepithelialRoute";
case _INTRAESOPHAGEALROUTE: return "_IntraesophagealRoute";
case _INTRAGASTRICROUTE: return "_IntragastricRoute";
case _INTRAILEALROUTE: return "_IntrailealRoute";
case _INTRALESIONALROUTE: return "_IntralesionalRoute";
case _INTRALUMINALROUTE: return "_IntraluminalRoute";
case _INTRALYMPHATICROUTE: return "_IntralymphaticRoute";
case _INTRAMEDULLARYROUTE: return "_IntramedullaryRoute";
case _INTRAMUSCULARROUTE: return "_IntramuscularRoute";
case _INTRAOCULARROUTE: return "_IntraocularRoute";
case _INTRAOSSEOUSROUTE: return "_IntraosseousRoute";
case _INTRAOVARIANROUTE: return "_IntraovarianRoute";
case _INTRAPERICARDIALROUTE: return "_IntrapericardialRoute";
case _INTRAPERITONEALROUTE: return "_IntraperitonealRoute";
case _INTRAPLEURALROUTE: return "_IntrapleuralRoute";
case _INTRAPROSTATICROUTE: return "_IntraprostaticRoute";
case _INTRAPULMONARYROUTE: return "_IntrapulmonaryRoute";
case _INTRASINALROUTE: return "_IntrasinalRoute";
case _INTRASPINALROUTE: return "_IntraspinalRoute";
case _INTRASTERNALROUTE: return "_IntrasternalRoute";
case _INTRASYNOVIALROUTE: return "_IntrasynovialRoute";
case _INTRATENDINOUSROUTE: return "_IntratendinousRoute";
case _INTRATESTICULARROUTE: return "_IntratesticularRoute";
case _INTRATHECALROUTE: return "_IntrathecalRoute";
case _INTRATHORACICROUTE: return "_IntrathoracicRoute";
case _INTRATRACHEALROUTE: return "_IntratrachealRoute";
case _INTRATUBULARROUTE: return "_IntratubularRoute";
case _INTRATUMORROUTE: return "_IntratumorRoute";
case _INTRATYMPANICROUTE: return "_IntratympanicRoute";
case _INTRAUTERINEROUTE: return "_IntrauterineRoute";
case _INTRAVASCULARROUTE: return "_IntravascularRoute";
case _INTRAVENOUSROUTE: return "_IntravenousRoute";
case _INTRAVENTRICULARROUTE: return "_IntraventricularRoute";
case _INTRAVESICLEROUTE: return "_IntravesicleRoute";
case _INTRAVITREALROUTE: return "_IntravitrealRoute";
case _JEJUNUMROUTE: return "_JejunumRoute";
case _LACRIMALPUNCTAROUTE: return "_LacrimalPunctaRoute";
case _LARYNGEALROUTE: return "_LaryngealRoute";
case _LINGUALROUTE: return "_LingualRoute";
case _MUCOUSMEMBRANEROUTE: return "_MucousMembraneRoute";
case _NAILROUTE: return "_NailRoute";
case _NASALROUTE: return "_NasalRoute";
case _OPHTHALMICROUTE: return "_OphthalmicRoute";
case _ORALROUTE: return "_OralRoute";
case _OROMUCOSALROUTE: return "_OromucosalRoute";
case _OROPHARYNGEALROUTE: return "_OropharyngealRoute";
case _OTICROUTE: return "_OticRoute";
case _PARANASALSINUSESROUTE: return "_ParanasalSinusesRoute";
case _PARENTERALROUTE: return "_ParenteralRoute";
case _PERIANALROUTE: return "_PerianalRoute";
case _PERIARTICULARROUTE: return "_PeriarticularRoute";
case _PERIDURALROUTE: return "_PeriduralRoute";
case _PERINEALROUTE: return "_PerinealRoute";
case _PERINEURALROUTE: return "_PerineuralRoute";
case _PERIODONTALROUTE: return "_PeriodontalRoute";
case _PULMONARYROUTE: return "_PulmonaryRoute";
case _RECTALROUTE: return "_RectalRoute";
case _RESPIRATORYTRACTROUTE: return "_RespiratoryTractRoute";
case _RETROBULBARROUTE: return "_RetrobulbarRoute";
case _SCALPROUTE: return "_ScalpRoute";
case _SINUSUNSPECIFIEDROUTE: return "_SinusUnspecifiedRoute";
case _SKINROUTE: return "_SkinRoute";
case _SOFTTISSUEROUTE: return "_SoftTissueRoute";
case _SUBARACHNOIDROUTE: return "_SubarachnoidRoute";
case _SUBCONJUNCTIVALROUTE: return "_SubconjunctivalRoute";
case _SUBCUTANEOUSROUTE: return "_SubcutaneousRoute";
case _SUBLESIONALROUTE: return "_SublesionalRoute";
case _SUBLINGUALROUTE: return "_SublingualRoute";
case _SUBMUCOSALROUTE: return "_SubmucosalRoute";
case _TRACHEOSTOMYROUTE: return "_TracheostomyRoute";
case _TRANSMUCOSALROUTE: return "_TransmucosalRoute";
case _TRANSPLACENTALROUTE: return "_TransplacentalRoute";
case _TRANSTRACHEALROUTE: return "_TranstrachealRoute";
case _TRANSTYMPANICROUTE: return "_TranstympanicRoute";
case _URETERALROUTE: return "_UreteralRoute";
case _URETHRALROUTE: return "_UrethralRoute";
case _URINARYBLADDERROUTE: return "_UrinaryBladderRoute";
case _URINARYTRACTROUTE: return "_UrinaryTractRoute";
case _VAGINALROUTE: return "_VaginalRoute";
case _VITREOUSHUMOURROUTE: return "_VitreousHumourRoute";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/v3/RouteOfAdministration";
}
public String getDefinition() {
switch (this) {
case _ROUTEBYMETHOD: return "Route of substance administration classified by administration method.";
case SOAK: return "Immersion (soak)";
case SHAMPOO: return "Shampoo";
case TRNSLING: return "Translingual";
case PO: return "Swallow, oral";
case GARGLE: return "Gargle";
case SUCK: return "Suck, oromucosal";
case _CHEW: return "Chew";
case CHEW: return "Chew, oral";
case _DIFFUSION: return "Diffusion";
case EXTCORPDIF: return "Diffusion, extracorporeal";
case HEMODIFF: return "Diffusion, hemodialysis";
case TRNSDERMD: return "Diffusion, transdermal";
case _DISSOLVE: return "Dissolve";
case DISSOLVE: return "Dissolve, oral";
case SL: return "Dissolve, sublingual";
case _DOUCHE: return "Douche";
case DOUCHE: return "Douche, vaginal";
case _ELECTROOSMOSISROUTE: return "Electro-osmosis";
case ELECTOSMOS: return "Electro-osmosis";
case _ENEMA: return "Enema";
case ENEMA: return "Enema, rectal";
case RETENEMA: return "Enema, rectal retention";
case _FLUSH: return "Flush";
case IVFLUSH: return "Flush, intravenous catheter";
case _IMPLANTATION: return "Implantation";
case IDIMPLNT: return "Implantation, intradermal";
case IVITIMPLNT: return "Implantation, intravitreal";
case SQIMPLNT: return "Implantation, subcutaneous";
case _INFUSION: return "Infusion";
case EPI: return "Infusion, epidural";
case IA: return "Infusion, intraarterial catheter";
case IC: return "Infusion, intracardiac";
case ICOR: return "Infusion, intracoronary";
case IOSSC: return "Infusion, intraosseous, continuous";
case IT: return "Infusion, intrathecal";
case IV: return "Infusion, intravenous";
case IVC: return "Infusion, intravenous catheter";
case IVCC: return "Infusion, intravenous catheter, continuous";
case IVCI: return "Infusion, intravenous catheter, intermittent";
case PCA: return "Infusion, intravenous catheter, pca pump";
case IVASCINFUS: return "Infusion, intravascular";
case SQINFUS: return "Infusion, subcutaneous";
case _INHALATION: return "Inhalation";
case IPINHL: return "Inhalation, oral";
case ORIFINHL: return "Inhalation, oral intermittent flow";
case REBREATH: return "Inhalation, oral rebreather mask";
case IPPB: return "Inhalation, intermittent positive pressure breathing (ippb)";
case NASINHL: return "Inhalation, nasal";
case NASINHLC: return "Inhalation, nasal, prongs";
case NEB: return "Inhalation, nebulization";
case NASNEB: return "Inhalation, nebulization, nasal";
case ORNEB: return "Inhalation, nebulization, oral";
case TRACH: return "Inhalation, tracheostomy";
case VENT: return "Inhalation, ventilator";
case VENTMASK: return "Inhalation, ventimask";
case _INJECTION: return "Injection";
case AMNINJ: return "Injection, amniotic fluid";
case BILINJ: return "Injection, biliary tract";
case CHOLINJ: return "Injection, for cholangiography";
case CERVINJ: return "Injection, cervical";
case EPIDURINJ: return "Injection, epidural";
case EPIINJ: return "Injection, epidural, push";
case EPINJSP: return "Injection, epidural, slow push";
case EXTRAMNINJ: return "Injection, extra-amniotic";
case EXTCORPINJ: return "Injection, extracorporeal";
case GBINJ: return "Injection, gastric button";
case GINGINJ: return "Injection, gingival";
case BLADINJ: return "Injection, urinary bladder";
case ENDOSININJ: return "Injection, endosinusial";
case HEMOPORT: return "Injection, hemodialysis port";
case IABDINJ: return "Injection, intra-abdominal";
case IAINJ: return "Injection, intraarterial";
case IAINJP: return "Injection, intraarterial, push";
case IAINJSP: return "Injection, intraarterial, slow push";
case IARTINJ: return "Injection, intraarticular";
case IBURSINJ: return "Injection, intrabursal";
case ICARDINJ: return "Injection, intracardiac";
case ICARDINJRP: return "Injection, intracardiac, rapid push";
case ICARDINJSP: return "Injection, intracardiac, slow push";
case ICARINJP: return "Injection, intracardiac, push";
case ICARTINJ: return "Injection, intracartilaginous";
case ICAUDINJ: return "Injection, intracaudal";
case ICAVINJ: return "Injection, intracavernous";
case ICAVITINJ: return "Injection, intracavitary";
case ICEREBINJ: return "Injection, intracerebral";
case ICISTERNINJ: return "Injection, intracisternal";
case ICORONINJ: return "Injection, intracoronary";
case ICORONINJP: return "Injection, intracoronary, push";
case ICORPCAVINJ: return "Injection, intracorpus cavernosum";
case IDINJ: return "Injection, intradermal";
case IDISCINJ: return "Injection, intradiscal";
case IDUCTINJ: return "Injection, intraductal";
case IDURINJ: return "Injection, intradural";
case IEPIDINJ: return "Injection, intraepidermal";
case IEPITHINJ: return "Injection, intraepithelial";
case ILESINJ: return "Injection, intralesional";
case ILUMINJ: return "Injection, intraluminal";
case ILYMPJINJ: return "Injection, intralymphatic";
case IM: return "Injection, intramuscular";
case IMD: return "Injection, intramuscular, deep";
case IMZ: return "Injection, intramuscular, z track";
case IMEDULINJ: return "Injection, intramedullary";
case INTERMENINJ: return "Injection, interameningeal";
case INTERSTITINJ: return "Injection, interstitial";
case IOINJ: return "Injection, intraocular";
case IOSSINJ: return "Injection, intraosseous";
case IOVARINJ: return "Injection, intraovarian";
case IPCARDINJ: return "Injection, intrapericardial";
case IPERINJ: return "Injection, intraperitoneal";
case IPINJ: return "Injection, intrapulmonary";
case IPLRINJ: return "Injection, intrapleural";
case IPROSTINJ: return "Injection, intraprostatic";
case IPUMPINJ: return "Injection, insulin pump";
case ISINJ: return "Injection, intraspinal";
case ISTERINJ: return "Injection, intrasternal";
case ISYNINJ: return "Injection, intrasynovial";
case ITENDINJ: return "Injection, intratendinous";
case ITESTINJ: return "Injection, intratesticular";
case ITHORINJ: return "Injection, intrathoracic";
case ITINJ: return "Injection, intrathecal";
case ITUBINJ: return "Injection, intratubular";
case ITUMINJ: return "Injection, intratumor";
case ITYMPINJ: return "Injection, intratympanic";
case IUINJ: return "Injection, intracervical (uterus)";
case IUINJC: return "Injection, intracervical (uterus)";
case IURETINJ: return "Injection, intraureteral, retrograde";
case IVASCINJ: return "Injection, intravascular";
case IVENTINJ: return "Injection, intraventricular (heart)";
case IVESINJ: return "Injection, intravesicle";
case IVINJ: return "Injection, intravenous";
case IVINJBOL: return "Injection, intravenous, bolus";
case IVPUSH: return "Injection, intravenous, push";
case IVRPUSH: return "Injection, intravenous, rapid push";
case IVSPUSH: return "Injection, intravenous, slow push";
case IVITINJ: return "Injection, intravitreal";
case PAINJ: return "Injection, periarticular";
case PARENTINJ: return "Injection, parenteral";
case PDONTINJ: return "Injection, periodontal";
case PDPINJ: return "Injection, peritoneal dialysis port";
case PDURINJ: return "Injection, peridural";
case PNINJ: return "Injection, perineural";
case PNSINJ: return "Injection, paranasal sinuses";
case RBINJ: return "Injection, retrobulbar";
case SCINJ: return "Injection, subconjunctival";
case SLESINJ: return "Injection, sublesional";
case SOFTISINJ: return "Injection, soft tissue";
case SQ: return "Injection, subcutaneous";
case SUBARACHINJ: return "Injection, subarachnoid";
case SUBMUCINJ: return "Injection, submucosal";
case TRPLACINJ: return "Injection, transplacental";
case TRTRACHINJ: return "Injection, transtracheal";
case URETHINJ: return "Injection, urethral";
case URETINJ: return "Injection, ureteral";
case _INSERTION: return "Insertion";
case CERVINS: return "Insertion, cervical (uterine)";
case IOSURGINS: return "Insertion, intraocular, surgical";
case IU: return "Insertion, intrauterine";
case LPINS: return "Insertion, lacrimal puncta";
case PR: return "Insertion, rectal";
case SQSURGINS: return "Insertion, subcutaneous, surgical";
case URETHINS: return "Insertion, urethral";
case VAGINSI: return "Insertion, vaginal";
case _INSTILLATION: return "Instillation";
case CECINSTL: return "Instillation, cecostomy";
case EFT: return "Instillation, enteral feeding tube";
case ENTINSTL: return "Instillation, enteral";
case GT: return "Instillation, gastrostomy tube";
case NGT: return "Instillation, nasogastric tube";
case OGT: return "Instillation, orogastric tube";
case BLADINSTL: return "Instillation, urinary catheter";
case CAPDINSTL: return "Instillation, continuous ambulatory peritoneal dialysis port";
case CTINSTL: return "Instillation, chest tube";
case ETINSTL: return "Instillation, endotracheal tube";
case GJT: return "Instillation, gastro-jejunostomy tube";
case IBRONCHINSTIL: return "Instillation, intrabronchial";
case IDUODINSTIL: return "Instillation, intraduodenal";
case IESOPHINSTIL: return "Instillation, intraesophageal";
case IGASTINSTIL: return "Instillation, intragastric";
case IILEALINJ: return "Instillation, intraileal";
case IOINSTL: return "Instillation, intraocular";
case ISININSTIL: return "Instillation, intrasinal";
case ITRACHINSTIL: return "Instillation, intratracheal";
case IUINSTL: return "Instillation, intrauterine";
case JJTINSTL: return "Instillation, jejunostomy tube";
case LARYNGINSTIL: return "Instillation, laryngeal";
case NASALINSTIL: return "Instillation, nasal";
case NASOGASINSTIL: return "Instillation, nasogastric";
case NTT: return "Instillation, nasotracheal tube";
case OJJ: return "Instillation, orojejunum tube";
case OT: return "Instillation, otic";
case PDPINSTL: return "Instillation, peritoneal dialysis port";
case PNSINSTL: return "Instillation, paranasal sinuses";
case RECINSTL: return "Instillation, rectal";
case RECTINSTL: return "Instillation, rectal tube";
case SININSTIL: return "Instillation, sinus, unspecified";
case SOFTISINSTIL: return "Instillation, soft tissue";
case TRACHINSTL: return "Instillation, tracheostomy";
case TRTYMPINSTIL: return "Instillation, transtympanic";
case URETHINSTL: return "Instillation, urethral";
case _IONTOPHORESISROUTE: return "Iontophoresis";
case IONTO: return "Topical application, iontophoresis";
case _IRRIGATION: return "Irrigation";
case GUIRR: return "Irrigation, genitourinary";
case IGASTIRR: return "Irrigation, intragastric";
case ILESIRR: return "Irrigation, intralesional";
case IOIRR: return "Irrigation, intraocular";
case BLADIRR: return "Irrigation, urinary bladder";
case BLADIRRC: return "Irrigation, urinary bladder, continuous";
case BLADIRRT: return "Irrigation, urinary bladder, tidal";
case RECIRR: return "Irrigation, rectal";
case _LAVAGEROUTE: return "Lavage";
case IGASTLAV: return "Lavage, intragastric";
case _MUCOSALABSORPTIONROUTE: return "Mucosal absorption";
case IDOUDMAB: return "Mucosal absorption, intraduodenal";
case ITRACHMAB: return "Mucosal absorption, intratracheal";
case SMUCMAB: return "Mucosal absorption, submucosal";
case _NEBULIZATION: return "Nebulization";
case ETNEB: return "Nebulization, endotracheal tube";
case _RINSE: return "Rinse";
case DENRINSE: return "Rinse, dental";
case ORRINSE: return "Rinse, oral";
case _SUPPOSITORYROUTE: return "Suppository";
case URETHSUP: return "Suppository, urethral";
case _SWISH: return "Swish";
case SWISHSPIT: return "Swish and spit out, oromucosal";
case SWISHSWAL: return "Swish and swallow, oromucosal";
case _TOPICALABSORPTIONROUTE: return "Topical absorption";
case TTYMPTABSORP: return "Topical absorption, transtympanic";
case _TOPICALAPPLICATION: return "Topical application";
case DRESS: return "Topical application, soaked dressing";
case SWAB: return "Topical application, swab";
case TOPICAL: return "Topical";
case BUC: return "Topical application, buccal";
case CERV: return "Topical application, cervical";
case DEN: return "Topical application, dental";
case GIN: return "Topical application, gingival";
case HAIR: return "Topical application, hair";
case ICORNTA: return "Topical application, intracorneal";
case ICORONTA: return "Topical application, intracoronal (dental)";
case IESOPHTA: return "Topical application, intraesophageal";
case IILEALTA: return "Topical application, intraileal";
case ILTOP: return "Topical application, intralesional";
case ILUMTA: return "Topical application, intraluminal";
case IOTOP: return "Topical application, intraocular";
case LARYNGTA: return "Topical application, laryngeal";
case MUC: return "Topical application, mucous membrane";
case NAIL: return "Topical application, nail";
case NASAL: return "Topical application, nasal";
case OPTHALTA: return "Topical application, ophthalmic";
case ORALTA: return "Topical application, oral";
case ORMUC: return "Topical application, oromucosal";
case OROPHARTA: return "Topical application, oropharyngeal";
case PERIANAL: return "Topical application, perianal";
case PERINEAL: return "Topical application, perineal";
case PDONTTA: return "Topical application, periodontal";
case RECTAL: return "Topical application, rectal";
case SCALP: return "Topical application, scalp";
case OCDRESTA: return "Occlusive dressing technique";
case SKIN: return "Topical application, skin";
case SUBCONJTA: return "Subconjunctival";
case TMUCTA: return "Topical application, transmucosal";
case VAGINS: return "Insertion, vaginal";
case INSUF: return "Insufflation";
case TRNSDERM: return "Transdermal";
case _ROUTEBYSITE: return "Route of substance administration classified by site.";
case _AMNIOTICFLUIDSACROUTE: return "Amniotic fluid sac";
case _BILIARYROUTE: return "Biliary tract";
case _BODYSURFACEROUTE: return "Body surface";
case _BUCCALMUCOSAROUTE: return "Buccal mucosa";
case _CECOSTOMYROUTE: return "Cecostomy";
case _CERVICALROUTE: return "Cervix of the uterus";
case _ENDOCERVICALROUTE: return "Endocervical";
case _ENTERALROUTE: return "Enteral";
case _EPIDURALROUTE: return "Epidural";
case _EXTRAAMNIOTICROUTE: return "Extra-amniotic";
case _EXTRACORPOREALCIRCULATIONROUTE: return "Extracorporeal circulation";
case _GASTRICROUTE: return "Gastric";
case _GENITOURINARYROUTE: return "Genitourinary";
case _GINGIVALROUTE: return "Gingival";
case _HAIRROUTE: return "Hair";
case _INTERAMENINGEALROUTE: return "Interameningeal";
case _INTERSTITIALROUTE: return "Interstitial";
case _INTRAABDOMINALROUTE: return "Intra-abdominal";
case _INTRAARTERIALROUTE: return "Intra-arterial";
case _INTRAARTICULARROUTE: return "Intraarticular";
case _INTRABRONCHIALROUTE: return "Intrabronchial";
case _INTRABURSALROUTE: return "Intrabursal";
case _INTRACARDIACROUTE: return "Intracardiac";
case _INTRACARTILAGINOUSROUTE: return "Intracartilaginous";
case _INTRACAUDALROUTE: return "Intracaudal";
case _INTRACAVERNOSALROUTE: return "Intracavernosal";
case _INTRACAVITARYROUTE: return "Intracavitary";
case _INTRACEREBRALROUTE: return "Intracerebral";
case _INTRACERVICALROUTE: return "Intracervical";
case _INTRACISTERNALROUTE: return "Intracisternal";
case _INTRACORNEALROUTE: return "Intracorneal";
case _INTRACORONALROUTE: return "Intracoronal (dental)";
case _INTRACORONARYROUTE: return "Intracoronary";
case _INTRACORPUSCAVERNOSUMROUTE: return "Intracorpus cavernosum";
case _INTRADERMALROUTE: return "Intradermal";
case _INTRADISCALROUTE: return "Intradiscal";
case _INTRADUCTALROUTE: return "Intraductal";
case _INTRADUODENALROUTE: return "Intraduodenal";
case _INTRADURALROUTE: return "Intradural";
case _INTRAEPIDERMALROUTE: return "Intraepidermal";
case _INTRAEPITHELIALROUTE: return "Intraepithelial";
case _INTRAESOPHAGEALROUTE: return "Intraesophageal";
case _INTRAGASTRICROUTE: return "Intragastric";
case _INTRAILEALROUTE: return "Intraileal";
case _INTRALESIONALROUTE: return "Intralesional";
case _INTRALUMINALROUTE: return "Intraluminal";
case _INTRALYMPHATICROUTE: return "Intralymphatic";
case _INTRAMEDULLARYROUTE: return "Intramedullary";
case _INTRAMUSCULARROUTE: return "Intramuscular";
case _INTRAOCULARROUTE: return "Intraocular";
case _INTRAOSSEOUSROUTE: return "Intraosseous";
case _INTRAOVARIANROUTE: return "Intraovarian";
case _INTRAPERICARDIALROUTE: return "Intrapericardial";
case _INTRAPERITONEALROUTE: return "Intraperitoneal";
case _INTRAPLEURALROUTE: return "Intrapleural";
case _INTRAPROSTATICROUTE: return "Intraprostatic";
case _INTRAPULMONARYROUTE: return "Intrapulmonary";
case _INTRASINALROUTE: return "Intrasinal";
case _INTRASPINALROUTE: return "Intraspinal";
case _INTRASTERNALROUTE: return "Intrasternal";
case _INTRASYNOVIALROUTE: return "Intrasynovial";
case _INTRATENDINOUSROUTE: return "Intratendinous";
case _INTRATESTICULARROUTE: return "Intratesticular";
case _INTRATHECALROUTE: return "Intrathecal";
case _INTRATHORACICROUTE: return "Intrathoracic";
case _INTRATRACHEALROUTE: return "Intratracheal";
case _INTRATUBULARROUTE: return "Intratubular";
case _INTRATUMORROUTE: return "Intratumor";
case _INTRATYMPANICROUTE: return "Intratympanic";
case _INTRAUTERINEROUTE: return "Intrauterine";
case _INTRAVASCULARROUTE: return "Intravascular";
case _INTRAVENOUSROUTE: return "Intravenous";
case _INTRAVENTRICULARROUTE: return "Intraventricular";
case _INTRAVESICLEROUTE: return "Intravesicle";
case _INTRAVITREALROUTE: return "Intravitreal";
case _JEJUNUMROUTE: return "Jejunum";
case _LACRIMALPUNCTAROUTE: return "Lacrimal puncta";
case _LARYNGEALROUTE: return "Laryngeal";
case _LINGUALROUTE: return "Lingual";
case _MUCOUSMEMBRANEROUTE: return "Mucous membrane";
case _NAILROUTE: return "Nail";
case _NASALROUTE: return "Nasal";
case _OPHTHALMICROUTE: return "Ophthalmic";
case _ORALROUTE: return "Oral";
case _OROMUCOSALROUTE: return "Oromucosal";
case _OROPHARYNGEALROUTE: return "Oropharyngeal";
case _OTICROUTE: return "Otic";
case _PARANASALSINUSESROUTE: return "Paranasal sinuses";
case _PARENTERALROUTE: return "Parenteral";
case _PERIANALROUTE: return "Perianal";
case _PERIARTICULARROUTE: return "Periarticular";
case _PERIDURALROUTE: return "Peridural";
case _PERINEALROUTE: return "Perineal";
case _PERINEURALROUTE: return "Perineural";
case _PERIODONTALROUTE: return "Periodontal";
case _PULMONARYROUTE: return "Pulmonary";
case _RECTALROUTE: return "Rectal";
case _RESPIRATORYTRACTROUTE: return "Respiratory tract";
case _RETROBULBARROUTE: return "Retrobulbar";
case _SCALPROUTE: return "Scalp";
case _SINUSUNSPECIFIEDROUTE: return "Sinus, unspecified";
case _SKINROUTE: return "Skin";
case _SOFTTISSUEROUTE: return "Soft tissue";
case _SUBARACHNOIDROUTE: return "Subarachnoid";
case _SUBCONJUNCTIVALROUTE: return "Subconjunctival";
case _SUBCUTANEOUSROUTE: return "Subcutaneous";
case _SUBLESIONALROUTE: return "Sublesional";
case _SUBLINGUALROUTE: return "Sublingual";
case _SUBMUCOSALROUTE: return "Submucosal";
case _TRACHEOSTOMYROUTE: return "Tracheostomy";
case _TRANSMUCOSALROUTE: return "Transmucosal";
case _TRANSPLACENTALROUTE: return "Transplacental";
case _TRANSTRACHEALROUTE: return "Transtracheal";
case _TRANSTYMPANICROUTE: return "Transtympanic";
case _URETERALROUTE: return "Ureteral";
case _URETHRALROUTE: return "Urethral";
case _URINARYBLADDERROUTE: return "Urinary bladder";
case _URINARYTRACTROUTE: return "Urinary tract";
case _VAGINALROUTE: return "Vaginal";
case _VITREOUSHUMOURROUTE: return "Vitreous humour";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case _ROUTEBYMETHOD: return "RouteByMethod";
case SOAK: return "Immersion (soak)";
case SHAMPOO: return "Shampoo";
case TRNSLING: return "Translingual";
case PO: return "Swallow, oral";
case GARGLE: return "Gargle";
case SUCK: return "Suck, oromucosal";
case _CHEW: return "Chew";
case CHEW: return "Chew, oral";
case _DIFFUSION: return "Diffusion";
case EXTCORPDIF: return "Diffusion, extracorporeal";
case HEMODIFF: return "Diffusion, hemodialysis";
case TRNSDERMD: return "Diffusion, transdermal";
case _DISSOLVE: return "Dissolve";
case DISSOLVE: return "Dissolve, oral";
case SL: return "Dissolve, sublingual";
case _DOUCHE: return "Douche";
case DOUCHE: return "Douche, vaginal";
case _ELECTROOSMOSISROUTE: return "ElectroOsmosisRoute";
case ELECTOSMOS: return "Electro-osmosis";
case _ENEMA: return "Enema";
case ENEMA: return "Enema, rectal";
case RETENEMA: return "Enema, rectal retention";
case _FLUSH: return "Flush";
case IVFLUSH: return "Flush, intravenous catheter";
case _IMPLANTATION: return "Implantation";
case IDIMPLNT: return "Implantation, intradermal";
case IVITIMPLNT: return "Implantation, intravitreal";
case SQIMPLNT: return "Implantation, subcutaneous";
case _INFUSION: return "Infusion";
case EPI: return "Infusion, epidural";
case IA: return "Infusion, intraarterial catheter";
case IC: return "Infusion, intracardiac";
case ICOR: return "Infusion, intracoronary";
case IOSSC: return "Infusion, intraosseous, continuous";
case IT: return "Infusion, intrathecal";
case IV: return "Infusion, intravenous";
case IVC: return "Infusion, intravenous catheter";
case IVCC: return "Infusion, intravenous catheter, continuous";
case IVCI: return "Infusion, intravenous catheter, intermittent";
case PCA: return "Infusion, intravenous catheter, pca pump";
case IVASCINFUS: return "Infusion, intravascular";
case SQINFUS: return "Infusion, subcutaneous";
case _INHALATION: return "Inhalation";
case IPINHL: return "Inhalation, respiratory";
case ORIFINHL: return "Inhalation, oral intermittent flow";
case REBREATH: return "Inhalation, oral rebreather mask";
case IPPB: return "Inhalation, intermittent positive pressure breathing (ippb)";
case NASINHL: return "Inhalation, nasal";
case NASINHLC: return "Inhalation, nasal cannula";
case NEB: return "Inhalation, nebulization";
case NASNEB: return "Inhalation, nebulization, nasal";
case ORNEB: return "Inhalation, nebulization, oral";
case TRACH: return "Inhalation, tracheostomy";
case VENT: return "Inhalation, ventilator";
case VENTMASK: return "Inhalation, ventimask";
case _INJECTION: return "Injection";
case AMNINJ: return "Injection, amniotic fluid";
case BILINJ: return "Injection, biliary tract";
case CHOLINJ: return "Injection, for cholangiography";
case CERVINJ: return "Injection, cervical";
case EPIDURINJ: return "Injection, epidural";
case EPIINJ: return "Injection, epidural, push";
case EPINJSP: return "Injection, epidural, slow push";
case EXTRAMNINJ: return "Injection, extra-amniotic";
case EXTCORPINJ: return "Injection, extracorporeal";
case GBINJ: return "Injection, gastric button";
case GINGINJ: return "Injection, gingival";
case BLADINJ: return "Injection, urinary bladder";
case ENDOSININJ: return "Injection, endosinusial";
case HEMOPORT: return "Injection, hemodialysis port";
case IABDINJ: return "Injection, intra-abdominal";
case IAINJ: return "Injection, intraarterial";
case IAINJP: return "Injection, intraarterial, push";
case IAINJSP: return "Injection, intraarterial, slow push";
case IARTINJ: return "Injection, intraarticular";
case IBURSINJ: return "Injection, intrabursal";
case ICARDINJ: return "Injection, intracardiac";
case ICARDINJRP: return "Injection, intracardiac, rapid push";
case ICARDINJSP: return "Injection, intracardiac, slow push";
case ICARINJP: return "Injection, intracardiac, push";
case ICARTINJ: return "Injection, intracartilaginous";
case ICAUDINJ: return "Injection, intracaudal";
case ICAVINJ: return "Injection, intracavernous";
case ICAVITINJ: return "Injection, intracavitary";
case ICEREBINJ: return "Injection, intracerebral";
case ICISTERNINJ: return "Injection, intracisternal";
case ICORONINJ: return "Injection, intracoronary";
case ICORONINJP: return "Injection, intracoronary, push";
case ICORPCAVINJ: return "Injection, intracorpus cavernosum";
case IDINJ: return "Injection, intradermal";
case IDISCINJ: return "Injection, intradiscal";
case IDUCTINJ: return "Injection, intraductal";
case IDURINJ: return "Injection, intradural";
case IEPIDINJ: return "Injection, intraepidermal";
case IEPITHINJ: return "Injection, intraepithelial";
case ILESINJ: return "Injection, intralesional";
case ILUMINJ: return "Injection, intraluminal";
case ILYMPJINJ: return "Injection, intralymphatic";
case IM: return "Injection, intramuscular";
case IMD: return "Injection, intramuscular, deep";
case IMZ: return "Injection, intramuscular, z track";
case IMEDULINJ: return "Injection, intramedullary";
case INTERMENINJ: return "Injection, interameningeal";
case INTERSTITINJ: return "Injection, interstitial";
case IOINJ: return "Injection, intraocular";
case IOSSINJ: return "Injection, intraosseous";
case IOVARINJ: return "Injection, intraovarian";
case IPCARDINJ: return "Injection, intrapericardial";
case IPERINJ: return "Injection, intraperitoneal";
case IPINJ: return "Injection, intrapulmonary";
case IPLRINJ: return "Injection, intrapleural";
case IPROSTINJ: return "Injection, intraprostatic";
case IPUMPINJ: return "Injection, insulin pump";
case ISINJ: return "Injection, intraspinal";
case ISTERINJ: return "Injection, intrasternal";
case ISYNINJ: return "Injection, intrasynovial";
case ITENDINJ: return "Injection, intratendinous";
case ITESTINJ: return "Injection, intratesticular";
case ITHORINJ: return "Injection, intrathoracic";
case ITINJ: return "Injection, intrathecal";
case ITUBINJ: return "Injection, intratubular";
case ITUMINJ: return "Injection, intratumor";
case ITYMPINJ: return "Injection, intratympanic";
case IUINJ: return "Injection, intrauterine";
case IUINJC: return "Injection, intracervical (uterus)";
case IURETINJ: return "Injection, intraureteral, retrograde";
case IVASCINJ: return "Injection, intravascular";
case IVENTINJ: return "Injection, intraventricular (heart)";
case IVESINJ: return "Injection, intravesicle";
case IVINJ: return "Injection, intravenous";
case IVINJBOL: return "Injection, intravenous, bolus";
case IVPUSH: return "Injection, intravenous, push";
case IVRPUSH: return "Injection, intravenous, rapid push";
case IVSPUSH: return "Injection, intravenous, slow push";
case IVITINJ: return "Injection, intravitreal";
case PAINJ: return "Injection, periarticular";
case PARENTINJ: return "Injection, parenteral";
case PDONTINJ: return "Injection, periodontal";
case PDPINJ: return "Injection, peritoneal dialysis port";
case PDURINJ: return "Injection, peridural";
case PNINJ: return "Injection, perineural";
case PNSINJ: return "Injection, paranasal sinuses";
case RBINJ: return "Injection, retrobulbar";
case SCINJ: return "Injection, subconjunctival";
case SLESINJ: return "Injection, sublesional";
case SOFTISINJ: return "Injection, soft tissue";
case SQ: return "Injection, subcutaneous";
case SUBARACHINJ: return "Injection, subarachnoid";
case SUBMUCINJ: return "Injection, submucosal";
case TRPLACINJ: return "Injection, transplacental";
case TRTRACHINJ: return "Injection, transtracheal";
case URETHINJ: return "Injection, urethral";
case URETINJ: return "Injection, ureteral";
case _INSERTION: return "Insertion";
case CERVINS: return "Insertion, cervical (uterine)";
case IOSURGINS: return "Insertion, intraocular, surgical";
case IU: return "Insertion, intrauterine";
case LPINS: return "Insertion, lacrimal puncta";
case PR: return "Insertion, rectal";
case SQSURGINS: return "Insertion, subcutaneous, surgical";
case URETHINS: return "Insertion, urethral";
case VAGINSI: return "Insertion, vaginal";
case _INSTILLATION: return "Instillation";
case CECINSTL: return "Instillation, cecostomy";
case EFT: return "Instillation, enteral feeding tube";
case ENTINSTL: return "Instillation, enteral";
case GT: return "Instillation, gastrostomy tube";
case NGT: return "Instillation, nasogastric tube";
case OGT: return "Instillation, orogastric tube";
case BLADINSTL: return "Instillation, urinary catheter";
case CAPDINSTL: return "Instillation, continuous ambulatory peritoneal dialysis port";
case CTINSTL: return "Instillation, chest tube";
case ETINSTL: return "Instillation, endotracheal tube";
case GJT: return "Instillation, gastro-jejunostomy tube";
case IBRONCHINSTIL: return "Instillation, intrabronchial";
case IDUODINSTIL: return "Instillation, intraduodenal";
case IESOPHINSTIL: return "Instillation, intraesophageal";
case IGASTINSTIL: return "Instillation, intragastric";
case IILEALINJ: return "Instillation, intraileal";
case IOINSTL: return "Instillation, intraocular";
case ISININSTIL: return "Instillation, intrasinal";
case ITRACHINSTIL: return "Instillation, intratracheal";
case IUINSTL: return "Instillation, intrauterine";
case JJTINSTL: return "Instillation, jejunostomy tube";
case LARYNGINSTIL: return "Instillation, laryngeal";
case NASALINSTIL: return "Instillation, nasal";
case NASOGASINSTIL: return "Instillation, nasogastric";
case NTT: return "Instillation, nasotracheal tube";
case OJJ: return "Instillation, orojejunum tube";
case OT: return "Instillation, otic";
case PDPINSTL: return "Instillation, peritoneal dialysis port";
case PNSINSTL: return "Instillation, paranasal sinuses";
case RECINSTL: return "Instillation, rectal";
case RECTINSTL: return "Instillation, rectal tube";
case SININSTIL: return "Instillation, sinus, unspecified";
case SOFTISINSTIL: return "Instillation, soft tissue";
case TRACHINSTL: return "Instillation, tracheostomy";
case TRTYMPINSTIL: return "Instillation, transtympanic";
case URETHINSTL: return "instillation, urethral";
case _IONTOPHORESISROUTE: return "IontophoresisRoute";
case IONTO: return "Topical application, iontophoresis";
case _IRRIGATION: return "Irrigation";
case GUIRR: return "Irrigation, genitourinary";
case IGASTIRR: return "Irrigation, intragastric";
case ILESIRR: return "Irrigation, intralesional";
case IOIRR: return "Irrigation, intraocular";
case BLADIRR: return "Irrigation, urinary bladder";
case BLADIRRC: return "Irrigation, urinary bladder, continuous";
case BLADIRRT: return "Irrigation, urinary bladder, tidal";
case RECIRR: return "Irrigation, rectal";
case _LAVAGEROUTE: return "LavageRoute";
case IGASTLAV: return "Lavage, intragastric";
case _MUCOSALABSORPTIONROUTE: return "MucosalAbsorptionRoute";
case IDOUDMAB: return "Mucosal absorption, intraduodenal";
case ITRACHMAB: return "Mucosal absorption, intratracheal";
case SMUCMAB: return "Mucosal absorption, submucosal";
case _NEBULIZATION: return "Nebulization";
case ETNEB: return "Nebulization, endotracheal tube";
case _RINSE: return "Rinse";
case DENRINSE: return "Rinse, dental";
case ORRINSE: return "Rinse, oral";
case _SUPPOSITORYROUTE: return "SuppositoryRoute";
case URETHSUP: return "Suppository, urethral";
case _SWISH: return "Swish";
case SWISHSPIT: return "Swish and spit out, oromucosal";
case SWISHSWAL: return "Swish and swallow, oromucosal";
case _TOPICALABSORPTIONROUTE: return "TopicalAbsorptionRoute";
case TTYMPTABSORP: return "Topical absorption, transtympanic";
case _TOPICALAPPLICATION: return "TopicalApplication";
case DRESS: return "Topical application, soaked dressing";
case SWAB: return "Topical application, swab";
case TOPICAL: return "Topical";
case BUC: return "Topical application, buccal";
case CERV: return "Topical application, cervical";
case DEN: return "Topical application, dental";
case GIN: return "Topical application, gingival";
case HAIR: return "Topical application, hair";
case ICORNTA: return "Topical application, intracorneal";
case ICORONTA: return "Topical application, intracoronal (dental)";
case IESOPHTA: return "Topical application, intraesophageal";
case IILEALTA: return "Topical application, intraileal";
case ILTOP: return "Topical application, intralesional";
case ILUMTA: return "Topical application, intraluminal";
case IOTOP: return "Topical application, intraocular";
case LARYNGTA: return "Topical application, laryngeal";
case MUC: return "Topical application, mucous membrane";
case NAIL: return "Topical application, nail";
case NASAL: return "Topical application, nasal";
case OPTHALTA: return "Topical application, ophthalmic";
case ORALTA: return "Topical application, oral";
case ORMUC: return "Topical application, oromucosal";
case OROPHARTA: return "Topical application, oropharyngeal";
case PERIANAL: return "Topical application, perianal";
case PERINEAL: return "Topical application, perineal";
case PDONTTA: return "Topical application, periodontal";
case RECTAL: return "Topical application, rectal";
case SCALP: return "Topical application, scalp";
case OCDRESTA: return "Occlusive dressing technique";
case SKIN: return "Topical application, skin";
case SUBCONJTA: return "Subconjunctival";
case TMUCTA: return "Topical application, transmucosal";
case VAGINS: return "Topical application, vaginal";
case INSUF: return "Insufflation";
case TRNSDERM: return "Transdermal";
case _ROUTEBYSITE: return "RouteBySite";
case _AMNIOTICFLUIDSACROUTE: return "AmnioticFluidSacRoute";
case _BILIARYROUTE: return "BiliaryRoute";
case _BODYSURFACEROUTE: return "BodySurfaceRoute";
case _BUCCALMUCOSAROUTE: return "BuccalMucosaRoute";
case _CECOSTOMYROUTE: return "CecostomyRoute";
case _CERVICALROUTE: return "CervicalRoute";
case _ENDOCERVICALROUTE: return "EndocervicalRoute";
case _ENTERALROUTE: return "EnteralRoute";
case _EPIDURALROUTE: return "EpiduralRoute";
case _EXTRAAMNIOTICROUTE: return "ExtraAmnioticRoute";
case _EXTRACORPOREALCIRCULATIONROUTE: return "ExtracorporealCirculationRoute";
case _GASTRICROUTE: return "GastricRoute";
case _GENITOURINARYROUTE: return "GenitourinaryRoute";
case _GINGIVALROUTE: return "GingivalRoute";
case _HAIRROUTE: return "HairRoute";
case _INTERAMENINGEALROUTE: return "InterameningealRoute";
case _INTERSTITIALROUTE: return "InterstitialRoute";
case _INTRAABDOMINALROUTE: return "IntraabdominalRoute";
case _INTRAARTERIALROUTE: return "IntraarterialRoute";
case _INTRAARTICULARROUTE: return "IntraarticularRoute";
case _INTRABRONCHIALROUTE: return "IntrabronchialRoute";
case _INTRABURSALROUTE: return "IntrabursalRoute";
case _INTRACARDIACROUTE: return "IntracardiacRoute";
case _INTRACARTILAGINOUSROUTE: return "IntracartilaginousRoute";
case _INTRACAUDALROUTE: return "IntracaudalRoute";
case _INTRACAVERNOSALROUTE: return "IntracavernosalRoute";
case _INTRACAVITARYROUTE: return "IntracavitaryRoute";
case _INTRACEREBRALROUTE: return "IntracerebralRoute";
case _INTRACERVICALROUTE: return "IntracervicalRoute";
case _INTRACISTERNALROUTE: return "IntracisternalRoute";
case _INTRACORNEALROUTE: return "IntracornealRoute";
case _INTRACORONALROUTE: return "IntracoronalRoute";
case _INTRACORONARYROUTE: return "IntracoronaryRoute";
case _INTRACORPUSCAVERNOSUMROUTE: return "IntracorpusCavernosumRoute";
case _INTRADERMALROUTE: return "IntradermalRoute";
case _INTRADISCALROUTE: return "IntradiscalRoute";
case _INTRADUCTALROUTE: return "IntraductalRoute";
case _INTRADUODENALROUTE: return "IntraduodenalRoute";
case _INTRADURALROUTE: return "IntraduralRoute";
case _INTRAEPIDERMALROUTE: return "IntraepidermalRoute";
case _INTRAEPITHELIALROUTE: return "IntraepithelialRoute";
case _INTRAESOPHAGEALROUTE: return "IntraesophagealRoute";
case _INTRAGASTRICROUTE: return "IntragastricRoute";
case _INTRAILEALROUTE: return "IntrailealRoute";
case _INTRALESIONALROUTE: return "IntralesionalRoute";
case _INTRALUMINALROUTE: return "IntraluminalRoute";
case _INTRALYMPHATICROUTE: return "IntralymphaticRoute";
case _INTRAMEDULLARYROUTE: return "IntramedullaryRoute";
case _INTRAMUSCULARROUTE: return "IntramuscularRoute";
case _INTRAOCULARROUTE: return "IntraocularRoute";
case _INTRAOSSEOUSROUTE: return "IntraosseousRoute";
case _INTRAOVARIANROUTE: return "IntraovarianRoute";
case _INTRAPERICARDIALROUTE: return "IntrapericardialRoute";
case _INTRAPERITONEALROUTE: return "IntraperitonealRoute";
case _INTRAPLEURALROUTE: return "IntrapleuralRoute";
case _INTRAPROSTATICROUTE: return "IntraprostaticRoute";
case _INTRAPULMONARYROUTE: return "IntrapulmonaryRoute";
case _INTRASINALROUTE: return "IntrasinalRoute";
case _INTRASPINALROUTE: return "IntraspinalRoute";
case _INTRASTERNALROUTE: return "IntrasternalRoute";
case _INTRASYNOVIALROUTE: return "IntrasynovialRoute";
case _INTRATENDINOUSROUTE: return "IntratendinousRoute";
case _INTRATESTICULARROUTE: return "IntratesticularRoute";
case _INTRATHECALROUTE: return "IntrathecalRoute";
case _INTRATHORACICROUTE: return "IntrathoracicRoute";
case _INTRATRACHEALROUTE: return "IntratrachealRoute";
case _INTRATUBULARROUTE: return "IntratubularRoute";
case _INTRATUMORROUTE: return "IntratumorRoute";
case _INTRATYMPANICROUTE: return "IntratympanicRoute";
case _INTRAUTERINEROUTE: return "IntrauterineRoute";
case _INTRAVASCULARROUTE: return "IntravascularRoute";
case _INTRAVENOUSROUTE: return "IntravenousRoute";
case _INTRAVENTRICULARROUTE: return "IntraventricularRoute";
case _INTRAVESICLEROUTE: return "IntravesicleRoute";
case _INTRAVITREALROUTE: return "IntravitrealRoute";
case _JEJUNUMROUTE: return "JejunumRoute";
case _LACRIMALPUNCTAROUTE: return "LacrimalPunctaRoute";
case _LARYNGEALROUTE: return "LaryngealRoute";
case _LINGUALROUTE: return "LingualRoute";
case _MUCOUSMEMBRANEROUTE: return "MucousMembraneRoute";
case _NAILROUTE: return "NailRoute";
case _NASALROUTE: return "NasalRoute";
case _OPHTHALMICROUTE: return "OphthalmicRoute";
case _ORALROUTE: return "OralRoute";
case _OROMUCOSALROUTE: return "OromucosalRoute";
case _OROPHARYNGEALROUTE: return "OropharyngealRoute";
case _OTICROUTE: return "OticRoute";
case _PARANASALSINUSESROUTE: return "ParanasalSinusesRoute";
case _PARENTERALROUTE: return "ParenteralRoute";
case _PERIANALROUTE: return "PerianalRoute";
case _PERIARTICULARROUTE: return "PeriarticularRoute";
case _PERIDURALROUTE: return "PeriduralRoute";
case _PERINEALROUTE: return "PerinealRoute";
case _PERINEURALROUTE: return "PerineuralRoute";
case _PERIODONTALROUTE: return "PeriodontalRoute";
case _PULMONARYROUTE: return "PulmonaryRoute";
case _RECTALROUTE: return "RectalRoute";
case _RESPIRATORYTRACTROUTE: return "RespiratoryTractRoute";
case _RETROBULBARROUTE: return "RetrobulbarRoute";
case _SCALPROUTE: return "ScalpRoute";
case _SINUSUNSPECIFIEDROUTE: return "SinusUnspecifiedRoute";
case _SKINROUTE: return "SkinRoute";
case _SOFTTISSUEROUTE: return "SoftTissueRoute";
case _SUBARACHNOIDROUTE: return "SubarachnoidRoute";
case _SUBCONJUNCTIVALROUTE: return "SubconjunctivalRoute";
case _SUBCUTANEOUSROUTE: return "SubcutaneousRoute";
case _SUBLESIONALROUTE: return "SublesionalRoute";
case _SUBLINGUALROUTE: return "SublingualRoute";
case _SUBMUCOSALROUTE: return "SubmucosalRoute";
case _TRACHEOSTOMYROUTE: return "TracheostomyRoute";
case _TRANSMUCOSALROUTE: return "TransmucosalRoute";
case _TRANSPLACENTALROUTE: return "TransplacentalRoute";
case _TRANSTRACHEALROUTE: return "TranstrachealRoute";
case _TRANSTYMPANICROUTE: return "TranstympanicRoute";
case _URETERALROUTE: return "UreteralRoute";
case _URETHRALROUTE: return "UrethralRoute";
case _URINARYBLADDERROUTE: return "UrinaryBladderRoute";
case _URINARYTRACTROUTE: return "UrinaryTractRoute";
case _VAGINALROUTE: return "VaginalRoute";
case _VITREOUSHUMOURROUTE: return "VitreousHumourRoute";
default: return "?";
}
}
}
| bhits/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/V3RouteOfAdministration.java |
213,476 | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.server;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Locale;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import mage.server.util.SystemUtil;
import mage.view.ChatMessage.MessageColor;
import mage.view.ChatMessage.MessageType;
import mage.view.ChatMessage.SoundToPlay;
import org.apache.log4j.Logger;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class ChatManager {
private static final Logger logger = Logger.getLogger(ChatManager.class);
private static HashMap<String, String> userMessages = new HashMap<>();
private static final ChatManager INSTANCE = new ChatManager();
public static ChatManager getInstance() {
return INSTANCE;
}
private ChatManager() {
}
private final ConcurrentHashMap<UUID, ChatSession> chatSessions = new ConcurrentHashMap<>();
public UUID createChatSession(String info) {
ChatSession chatSession = new ChatSession(info);
chatSessions.put(chatSession.getChatId(), chatSession);
return chatSession.getChatId();
}
public void joinChat(UUID chatId, UUID userId) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
chatSession.join(userId);
} else {
logger.trace("Chat to join not found - chatId: " + chatId + " userId: " + userId);
}
}
public void leaveChat(UUID chatId, UUID userId) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null && chatSession.hasUser(userId)) {
chatSession.kill(userId, DisconnectReason.CleaningUp);
}
}
public void destroyChatSession(UUID chatId) {
if (chatId != null) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
synchronized (chatSession) {
if (chatSessions.containsKey(chatId)) {
chatSessions.remove(chatId);
logger.trace("Chat removed - chatId: " + chatId);
} else {
logger.trace("Chat to destroy does not exist - chatId: " + chatId);
}
}
}
}
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime) {
this.broadcast(chatId, userName, message, color, withTime, MessageType.TALK);
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime, MessageType messageType) {
this.broadcast(chatId, userName, message, color, withTime, messageType, null);
}
private boolean containsSwearing(String message) {
if (message != null && message.toLowerCase().matches("^.*(anal|asshole|balls|bastard|bitch|blowjob|cock|crap|cunt|cum|damn|dick|dildo|douche|fag|fuck|idiot|moron|penis|piss|prick|pussy|rape|rapist|sex|screw|shit|slut|vagina).*$")) {
return true;
}
return false;
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime, MessageType messageType, SoundToPlay soundToPlay) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
if (message.startsWith("\\") || message.startsWith("/")) {
User user = UserManager.getInstance().getUserByName(userName);
if (user != null) {
if (!performUserCommand(user, message, chatId, false)) {
performUserCommand(user, message, chatId, true);
}
return;
}
}
if (!messageType.equals(MessageType.GAME)) {
if (message != null && userName != null && !userName.equals("")) {
if (message.equals(userMessages.get(userName))) {
// prevent identical messages
return;
}
userMessages.put(userName, message);
if (containsSwearing(message)) {
return;
}
}
if (messageType.equals(MessageType.TALK)) {
User user = UserManager.getInstance().getUserByName(userName);
if (user != null) {
if (user.getChatLockedUntil() != null) {
if (user.getChatLockedUntil().compareTo(Calendar.getInstance().getTime()) > 0) {
chatSessions.get(chatId).broadcastInfoToUser(user, "Your chat is muted until " + SystemUtil.dateFormat.format(user.getChatLockedUntil()));
return;
} else {
user.setChatLockedUntil(null);
}
}
}
}
}
chatSession.broadcast(userName, message, color, withTime, messageType, soundToPlay);
}
}
private static final String COMMANDS_LIST
= "<br/>List of commands:"
+ "<br/>\\history or \\h [username] - shows the history of a player"
+ "<br/>\\me - shows the history of the current player"
+ "<br/>\\list or \\l - Show a list of commands"
+ "<br/>\\whisper or \\w [player name] [text] - whisper to the player with the given name";
private boolean performUserCommand(User user, String message, UUID chatId, boolean doError) {
String command = message.substring(1).trim().toUpperCase(Locale.ENGLISH);
if (doError) {
message += new StringBuilder("<br/>Invalid User Command '" + message + "'.").append(COMMANDS_LIST).toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.startsWith("H ") || command.startsWith("HISTORY ")) {
message += "<br/>" + UserManager.getInstance().getUserHistory(message.substring(command.startsWith("H ") ? 3 : 9));
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.equals("ME")) {
message += "<br/>" + UserManager.getInstance().getUserHistory(user.getName());
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.startsWith("W ") || command.startsWith("WHISPER ")) {
String rest = message.substring(command.startsWith("W ") ? 3 : 9);
int first = rest.indexOf(" ");
if (first > 1) {
String userToName = rest.substring(0, first);
rest = rest.substring(first + 1).trim();
User userTo = UserManager.getInstance().getUserByName(userToName);
if (userTo != null) {
if (!chatSessions.get(chatId).broadcastWhisperToUser(user, userTo, rest)) {
message += new StringBuilder("<br/>User ").append(userToName).append(" not found").toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
}
} else {
message += new StringBuilder("<br/>User ").append(userToName).append(" not found").toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
}
return true;
}
}
if (command.equals("L") || command.equals("LIST")) {
message += COMMANDS_LIST;
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
return false;
}
/**
*
* use mainly for announcing that a user connection was lost or that a user
* has reconnected
*
* @param userId
* @param message
* @param color
*/
public void broadcast(UUID userId, String message, MessageColor color) {
User user = UserManager.getInstance().getUser(userId);
if (user != null) {
for (ChatSession chat : chatSessions.values()) {
if (chat.hasUser(userId)) {
chat.broadcast(user.getName(), message, color, true, MessageType.TALK, null);
}
}
}
}
public void sendReconnectMessage(UUID userId) {
User user = UserManager.getInstance().getUser(userId);
if (user != null) {
for (ChatSession chat : chatSessions.values()) {
if (chat.hasUser(userId)) {
chat.broadcast(null, user.getName() + " has reconnected", MessageColor.BLUE, true, MessageType.STATUS, null);
}
}
}
}
public void removeUser(UUID userId, DisconnectReason reason) {
for (ChatSession chatSession : chatSessions.values()) {
if (chatSession.hasUser(userId)) {
chatSession.kill(userId, reason);
}
}
}
public ArrayList<ChatSession> getChatSessions() {
ArrayList<ChatSession> chatSessionList = new ArrayList<>();
chatSessionList.addAll(chatSessions.values());
return chatSessionList;
}
}
| keflavich/mage | Mage.Server/src/main/java/mage/server/ChatManager.java |
213,477 | package blue.endless.wtrader.gui;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Locale;
import javax.imageio.ImageIO;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListCellRenderer;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.KeyStroke;
import javax.swing.ListSelectionModel;
import javax.swing.SwingConstants;
import javax.swing.filechooser.FileFilter;
import blue.endless.jankson.Jankson;
import blue.endless.jankson.JsonObject;
import blue.endless.jankson.api.SyntaxError;
import blue.endless.splinter.LayoutElementMetrics;
import blue.endless.wtrader.DependencyResolver;
import blue.endless.wtrader.ModInfo;
import blue.endless.wtrader.ModLoaders;
import blue.endless.wtrader.ModSelection;
import blue.endless.wtrader.Modpack;
import blue.endless.wtrader.ZipAccess;
import blue.endless.wtrader.loader.CurseLoader;
import blue.endless.wtrader.loader.VoodooLoader;
public class TraderGui extends JFrame {
private static final long serialVersionUID = 3683901432454302841L;
private Modpack pack;
private DefaultListModel<ModSelection> modListModel = new DefaultListModel<>();
private JList<ModSelection> modsList;
private JComboBox<String> modLoaderMenu;
private JComboBox<String> mcVersionMenu;
private JComboBox<String> loaderVersionMenu;
private JTextField packNameField = new JTextField();
private JTextField packVersionField = new JTextField();
private JTextArea authorsField = new JTextArea();
private JTextArea descriptionField = new JTextArea();
private JPanel cards = new JPanel(new CardLayout());
private ProgressPanel progress = new ProgressPanel();
private JMenuBar menuBar = new JMenuBar();
private Action saveAction = new AbstractAction("Save") {
private static final long serialVersionUID = -6092381200788056073L;
@Override
public void actionPerformed(ActionEvent e) {
if (pack==null || pack.getSaveLocation()==null) {
//this.setEnabled(false);
return;
}
pack.save();
}
//@Override
//public boolean isEnabled() {
// return (pack!=null && pack.getSaveLocation()!=null);
//}
};
private Action saveAsAction = new SimpleAction("Save As...", ()->{
if (pack==null) {
this.setEnabled(false);
return;
}
//TOOD: Show a save dialog
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(new File("."));
chooser.setDialogTitle("Create New Modpack");
chooser.setApproveButtonText("Create");
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
chooser.setFileFilter(new FileFilter() {
@Override
public boolean accept(File file) {
return file.getName().endsWith(".json");
}
@Override
public String getDescription() {
return "JSON Files";
}
});
chooser.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent fileEvent) {
if (fileEvent.getActionCommand().equals(JFileChooser.APPROVE_SELECTION)) {
//System.out.println("Selected: "+test.getSelectedFile());
File f = chooser.getSelectedFile();
pack.saveAs(f);
}
}
});
chooser.setSelectedFile(new File(".", pack.packInfo.name.toLowerCase(Locale.ROOT).replace(' ','_')+".json"));
chooser.showSaveDialog(TraderGui.this);
});
private Action closeAction = new AbstractAction("Close") {
private static final long serialVersionUID = -3812793752411022325L;
@Override
public void actionPerformed(ActionEvent event) {
pack = null;
this.setEnabled(false);
saveAction.setEnabled(false);
saveAsAction.setEnabled(false);
setTitle("Wandering Trader");
showCard("load");
}
//@Override
//public boolean isEnabled() {
// return (pack!=null);
//}
};
static Image jarImage;
static Image unknownImage;
public TraderGui() {
this.pack = null;
this.setJMenuBar(menuBar);
JMenu fileMenu = new JMenu("File");
fileMenu.setMnemonic('f');
fileMenu.add(saveAction);
saveAction.setEnabled(false);
fileMenu.add(saveAsAction);
saveAsAction.setEnabled(false);
fileMenu.add(closeAction);
closeAction.setEnabled(false);
menuBar.add(fileMenu);
//try {
//SynthLookAndFeel laf = new SynthLookAndFeel();
//UIManager.setLookAndFeel(laf);
//SynthLookAndFeel.setStyleFactory(new ColorblockStyleFactory());
//} catch (UnsupportedLookAndFeelException e) {
// e.printStackTrace ();
//}
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setMinimumSize(new Dimension(800,600));
try {
InputStream iconStream = TraderGui.class.getClassLoader().getResourceAsStream("icon.png");
if (iconStream==null) {
System.out.println("Unable to find resource");
} else {
BufferedImage icon = ImageIO.read(iconStream);
this.setIconImage(icon);
}
//InputStream jarIconStream = TraderGui.class.getClassLoader().getResourceAsStream("jar.png");
//if (jarIconStream!=null) jarImage = ImageIO.read(jarIconStream);
//InputStream unknownIconStream = TraderGui.class.getClassLoader().getResourceAsStream("unknown.png");
//if (unknownIconStream!=null) unknownImage = ImageIO.read(unknownIconStream);
//jarImage = ImageIO.read(TraderGui.class.getResourceAsStream("jar.png"));
} catch (IOException e) {
e.printStackTrace();
}
//this.setIconImage(Toolkit.getDefaultToolkit().getImage("icon.png"));
//jarImage = this.getIconImage();
//this.setIconImage(jarImage);
this.setTitle("Wandering Trader");// - "+pack.getInfo().name+" - "+pack.getInfo().version);
//this.setTitle("Wandering Trader - Center of the Multiverse - 11.2");
//JPanel cards = new JPanel(new CardLayout());
this.setContentPane(cards); //We could set our own layout but that screws up LaF applications because we apply LaF so late.
LoadPanel loader = new LoadPanel();
loader.onNewModpack = this::createModpack;
loader.onOpenModpack = this::openModpack;
cards.add(loader, "load");
cards.add(progress, "progress");
SplinterBox mainPanel = new SplinterBox().withAxis(Axis.HORIZONTAL);
cards.add(mainPanel, "main");
SplinterBox packInfo = new SplinterBox();
packInfo.setMaximumSize(new Dimension(400, Integer.MAX_VALUE));
packInfo.setPreferredSize(new Dimension(600, Integer.MAX_VALUE));
packInfo.setMinimumSize(new Dimension(400, 400));
JIcon packIcon = new JIcon(Toolkit.getDefaultToolkit().getImage("icon.png"));
modLoaderMenu = new JComboBox<String>(new String[] {"fabric", "forge"});
modLoaderMenu.setSelectedItem("fabric");
modLoaderMenu.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
updateLoaderSelection();
}
});
//modLoaderMenu.setSelectedItem(pack.getInfo().modLoader);
DefaultComboBoxModel<String> mcVersionModel = new DefaultComboBoxModel<>();
mcVersionMenu = new JComboBox<>(mcVersionModel);
mcVersionMenu.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
updateMCSelection();
}
});
mcVersionMenu.setEditable(true);
//mcVersionMenu.setSelectedItem(pack.getInfo().mcVersion);
loaderVersionMenu = new JComboBox<>(new DefaultComboBoxModel<String>());
loaderVersionMenu.setEditable(true);
//loaderVersionMenu.setSelectedItem(pack.getInfo().loaderVersion);
updateLoaderSelection();
LayoutElementMetrics iconMetrics = new LayoutElementMetrics(0, 0);
iconMetrics.cellsX = 2;
iconMetrics.fixedMinX = 64;
iconMetrics.fixedMinY = 64;
packInfo.add(packIcon, iconMetrics);
packInfo.addComponents(new JLabel("Pack Name:"), packNameField);
packInfo.addComponents(new JLabel("Pack Version:"), packVersionField);
packInfo.addComponents(new JLabel("Mod Loader:"), modLoaderMenu);
packInfo.addComponents(new JLabel("MC Version:"), mcVersionMenu);
packInfo.addComponents(new JLabel("Loader Version:"), loaderVersionMenu);
LayoutElementMetrics separatorMetrics = packInfo.nextRow();
separatorMetrics.cellsX = 2;
separatorMetrics.fixedMinY = new JSeparator().getPreferredSize().height;
packInfo.add(new JSeparator(SwingConstants.HORIZONTAL), separatorMetrics);
packInfo.addComponents(new JLabel("Pack Authors:"), authorsField);
packInfo.addComponents(new JLabel("Pack Description:"), descriptionField);
//packInfo.addComponents(new JButton("This is a test"));
packInfo.addComponents(Box.createVerticalGlue());
//packInfo.addComponents(new JPanel());
LayoutElementMetrics packInfoMetrics = mainPanel.nextRow();
packInfoMetrics.fixedMinX = 300;
mainPanel.add(packInfo, packInfoMetrics);
mainPanel.addComponents(new JSeparator(SwingConstants.VERTICAL));
JPanel contentsPanel = new JPanel();
contentsPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.setLayout(new BoxLayout(contentsPanel, BoxLayout.Y_AXIS));
JLabel packContentsLabel = new JLabel("Pack Contents");
packContentsLabel.setFont(makeNormalFont(24.0).deriveFont(Font.BOLD));
packContentsLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
//packContentsLabel.setFont(packContentsLabel.getFont().deriveFont(Font.BOLD, packContentsLabel.getFont().getSize()+8));
contentsPanel.add(packContentsLabel);
JLabel modsLabel = new JLabel("Mods");
modsLabel.setFont(makeNormalFont(20.0).deriveFont(Font.BOLD));
modsLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(modsLabel);
syncMods();
modsList = new JList<>(modListModel);
modsList.setCellRenderer(new ModItemRenderer());
modsList.setAlignmentX(Component.LEFT_ALIGNMENT);
//modsList.setPreferredSize(new Dimension(Short.MAX_VALUE, 0));
modsList.setMinimumSize(new Dimension(500, 0));
modsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
JScrollPane modsScroller = new JScrollPane(modsList);
modsScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
modsScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
contentsPanel.add(modsScroller);
JButton addModButton = new JButton("Add Mod");
addModButton.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(addModButton);
contentsPanel.add(Box.createRigidArea(new Dimension(0, 16)));
//Removed till resource support is a thing
/*
JLabel resourcesLabel = new JLabel("Resources");
resourcesLabel.setFont(makeNormalFont(20.0).deriveFont(Font.BOLD));
resourcesLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(resourcesLabel);
String[] resourceColumnNames = new String[] { "Name", "Version", "Author(s)", "Project Link" };
Object[][] resourceCells = new Object[][] {
{ "SPHax Even More Awful Edition", "12.2", "Some Douche", "https://example.com/" }
};
JTable resourcesTable = new JTable(resourceCells, resourceColumnNames);
resourcesTable.setAlignmentX(Component.LEFT_ALIGNMENT);
resourcesTable.getTableHeader().setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(resourcesTable.getTableHeader());
contentsPanel.add(resourcesTable);
JButton addResourceButton = new JButton("Add Resource Pack");
addResourceButton.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(addResourceButton);
contentsPanel.add(Box.createRigidArea(new Dimension(0, 16)));
*/
//Removed till feature support is a thing
/*
JLabel featuresLabel = new JLabel("Features");
featuresLabel.setFont(makeNormalFont(20.0).deriveFont(Font.BOLD));
featuresLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(featuresLabel);
ListTableModel<ModInfo.Version> featuresModel = new ListTableModel<>();
featuresModel.addColumn("Name", (it)->it.modId);
featuresModel.addColumn("Version", it->it.number);
featuresModel.addColumn("Reccommended", it->new JCheckBox()); //TODO: This doesn't work because the TableModel reports its class as Object
ModInfo.Version dummy = new ModInfo.Version();
dummy.modId = "asdfasdf";
dummy.number = "1.0";
featuresModel.addRow(dummy);
JTable featuresTable = new JTable(featuresModel);
//JTable featuresTable = new JTable(featureCells, featureColumnNames);
featuresTable.setAlignmentX(Component.LEFT_ALIGNMENT);
featuresTable.getTableHeader().setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(featuresTable.getTableHeader());
contentsPanel.add(featuresTable);
JButton addFeatureButton = new JButton("Add Feature");
addFeatureButton.setAlignmentX(Component.LEFT_ALIGNMENT);
contentsPanel.add(addFeatureButton);
*/
//JScrollPane contentsScroller = new JScrollPane(contentsPanel);
//contentsScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
//contentsScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
LayoutElementMetrics scrollPaneMetrics = mainPanel.nextRow();
scrollPaneMetrics.fixedMinY = -1; //Take up any extra space you can
//mainPanel.add(contentsScroller, scrollPaneMetrics);
mainPanel.add(contentsPanel, scrollPaneMetrics);
ModSelectPanel addModPanel = new ModSelectPanel();
this.add(addModPanel, "addMod");
addModButton.setAction(new AbstractAction("Add Mod") {
private static final long serialVersionUID = -8970861151647527752L;
@Override
public void actionPerformed(ActionEvent event) {
showCard("addMod");
//((CardLayout) cards.getLayout()).show(cards, "addMod");
}
});
addModPanel.curseAddModButton.setAction(new AbstractAction("Add Mod") {
private static final long serialVersionUID = -4152159785202161582L;
@Override
public void actionPerformed(ActionEvent event) {
if (addModPanel.curseModList.getSelectedValue()==null) {
showCard("main");
return;
}
ModInfo mod = addModPanel.curseModList.getSelectedValue();
System.out.println("Adding "+mod.id+" to pack.");
//Pick the right version for this pack
String targetVersion = DependencyResolver.getMajorMinor("1.12.2");
String targetLoader = "forge";
ModInfo.Version bestVersion = null;
for(ModInfo.Version cur : mod.versions) {
if (DependencyResolver.getMajorMinor(cur.mcVersion).equals(targetVersion) && cur.loaders.contains(targetLoader)) {
if (bestVersion==null || cur.timestamp>bestVersion.timestamp) bestVersion = cur;
}
}
if (bestVersion!=null) {
ModSelection selection = new ModSelection();
selection.info = mod;
selection.cachedVersion = bestVersion;
selection.version = bestVersion.number;
selection.constraint = ModSelection.Constraint.GREATER_THAN_OR_EQUAL;
selection.timestamp = bestVersion.timestamp;
selection.modCacheId = bestVersion.modId;
pack.mods.add(selection);
syncMods();
} else {
JOptionPane.showMessageDialog(TraderGui.this, "Can't find a version of "+mod.id+" that's compatible with this pack!");
}
showCard("main");
//((CardLayout) cards.getLayout()).show(cards, "main");
}
});
}
public void showCard(String card) {
((CardLayout) cards.getLayout()).show(cards, card);
}
private void syncMods() {
modListModel.clear();
if (pack==null) return;
for(ModSelection item : pack.mods) {
modListModel.addElement(item);
}
if (modsList!=null) {
modsList.invalidate();
modsList.repaint();
}
}
public void updateLoaderSelection() {
if (modLoaderMenu.getSelectedItem()==null) {
modLoaderMenu.setSelectedItem("fabric");
}
String loader = modLoaderMenu.getSelectedItem().toString();
List<String> mcVersions = ModLoaders.instance().getMCVersions(loader);
DefaultComboBoxModel<String> mcVersionModel = (DefaultComboBoxModel<String>) mcVersionMenu.getModel();
mcVersionModel.removeAllElements();
for(String s : mcVersions) {
mcVersionModel.addElement(s);
}
if (mcVersionMenu.getSelectedItem()==null) {
if (!mcVersions.isEmpty()) mcVersionMenu.setSelectedIndex(0);
}
updateMCSelection();
}
public void updateMCSelection() {
String loader = "";
String mcVersion = "";
if (modLoaderMenu.getSelectedItem()!=null) {
loader = modLoaderMenu.getSelectedItem().toString();
}
if (mcVersionMenu.getSelectedItem()!=null) {
mcVersion = mcVersionMenu.getSelectedItem().toString();
}
List<String> loaderVersions = ModLoaders.instance().getLoaderVersions(loader, mcVersion);
DefaultComboBoxModel<String> loaderVersionModel = (DefaultComboBoxModel<String>) loaderVersionMenu.getModel();
loaderVersionMenu.removeAllItems();
for(String s : loaderVersions) {
loaderVersionModel.addElement(s);
}
loaderVersionMenu.setSelectedItem(ModLoaders.instance().getRecommendedVersion(loader, mcVersion));
}
private static class ModItemRenderer extends DefaultListCellRenderer {
private static final long serialVersionUID = 7603059254886882671L;
@Override
public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
if (value instanceof ModSelection) {
ModSelection item = (ModSelection) value;
String modName = "";
String version = "";
if (item.info!=null) {
//Use the filename reported by the ModProvider in its ModInfo
modName = item.info.name;
} else {
//Derive a mod-name from the filename
modName = item.cachedVersion.fileName;
int hyphen = modName.indexOf('-');
if (hyphen!=-1) {
modName = modName.substring(0, hyphen);
} else {
if (modName.endsWith(".jar")) {
modName = modName.substring(0, modName.length()-4);
}
}
}
if (item.cachedVersion!=null) {
version = item.cachedVersion.number;
}
JLabel result = new JLabel(modName+" "+version);
String fileName = "unknown";
if (item.cachedVersion!=null) {
fileName = item.cachedVersion.fileName;
}
String extension = "";
if (fileName.lastIndexOf('.')!=-1) extension = fileName.substring(fileName.lastIndexOf('.')+1);
result.setIcon(new ImageIcon(FileIcons.getIcon(extension)));
//if (((Modpack.ModItem) value).selection.cachedVersion.fileName.endsWith(".jar")) {
// result.setIcon(new ImageIcon(TraderGui.jarImage));
//}
result.setFocusable(true);
if (cellHasFocus) {
result.setBorder(BorderFactory.createLineBorder(Color.BLUE, 2));
result.setOpaque(true);
result.setBackground(new Color(220, 220, 255));
} else {
result.setBorder(null);
}
result.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
System.out.println("Focused!");
result.requestFocusInWindow();
}
});
result.setPreferredSize(new Dimension(500, 64));
result.setMaximumSize(new Dimension(500, 64));
return result;
} else {
System.out.println("DEFAULTED");
JLabel result = new JLabel(value.toString());
//result.setSize(500, 64);
Dimension d = new Dimension(500, 64);
result.setPreferredSize(d);
result.setMaximumSize(d);
return result;
}
}
}
private static Font makeNormalFont(double pointSize) {
String[] fontPreferences = { "Liberation Sans", "Ubuntu", "Arial", Font.SANS_SERIF };
for(String preferred : fontPreferences) {
for(String s : GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()) {
if (s.equals(preferred)) {
//System.out.println("Selected "+s+" as display font.");
return sizeFontForDisplay(new Font(s, Font.PLAIN, (int)pointSize), pointSize);
}
//System.out.println(s);
}
}
//System.out.println("Selected Font.SANS_SERIF as display font.");
return sizeFontForDisplay(new Font(Font.SANS_SERIF, Font.PLAIN, (int)pointSize), pointSize);
}
private static Font sizeFontForDisplay(Font f, double points) {
int dpi = Toolkit.getDefaultToolkit().getScreenResolution();
//System.out.println("DPI: "+dpi);
if (dpi<72) dpi=72;
int scaledSize = (int) ( points * (dpi/72.0) );
return f.deriveFont(scaledSize);
}
/*
public static class ModItemView extends JPanel {
private static final long serialVersionUID = 3064929838898888378L;
public JLabel fileItem = new JLabel();
public ModItemView() {
this.setBackground(Color.WHITE);
this.setOpaque(true);
}
public void setMod(ModSelection item) {
String modName = "";
if (item.info!=null) {
//Use the filename reported by the ModProvider in its ModInfo
modName = item.info.name;
} else {
//Derive a mod-name from the filename
modName = item.cachedVersion.fileName;
int hyphen = modName.indexOf('-');
if (hyphen!=-1) {
modName = modName.substring(0, hyphen);
} else {
if (modName.endsWith(".jar")) {
modName = modName.substring(0, modName.length()-4);
}
}
}
String fileName = item.cachedVersion.fileName;
String extension = "";
if (fileName.lastIndexOf('.')!=-1) extension = fileName.substring(fileName.lastIndexOf('.')+1);
fileItem.setIcon(new ImageIcon(FileIcons.getIcon(extension)));
}
public void setComment(String comment) {
fileItem.setForeground(new Color(100, 180, 100));
fileItem.setFont(fileItem.getFont().deriveFont(16.0f).deriveFont(Font.ITALIC));
fileItem.setBorder(BorderFactory.createEmptyBorder(4, 16, 4, 16));
fileItem.setText(comment);
}
}*/
public void loadPack(Modpack pack) {
this.pack = pack;
packNameField.setText(pack.getInfo().name);
packVersionField.setText(pack.getInfo().version);
modLoaderMenu.setSelectedItem(pack.getInfo().modLoader);
mcVersionMenu.setSelectedItem(pack.getInfo().mcVersion);
loaderVersionMenu.setSelectedItem(pack.getInfo().loaderVersion);
authorsField.setText(pack.getInfo().authors);
descriptionField.setText(pack.getInfo().description);
syncMods();
this.setTitle("Wandering Trader - "+pack.packInfo.name+" - "+pack.packInfo.version);
menuBar.setEnabled(true);
saveAsAction.setEnabled(true);
closeAction.setEnabled(true);
if (pack.getSaveLocation()!=null) saveAction.setEnabled(true);
//showCard("main");
}
private void createModpack(File f) {
//if (!f.exists()) f.mkdirs();
pack = new Modpack();
pack.packInfo.name = f.getName();
pack.packInfo.version = "1.0";
pack.setSaveLocation(f);
this.loadPack(pack);
showCard("main");
}
private void openModpack(File f) {
if (f.isDirectory()) {
//TODO: Look for identifying files
} else {
if (f.getName().endsWith(".zip")) {
//Is it a curse pack?
if (ZipAccess.hasFile(f, "manifest.json")) {
try {
showCard("progress");
this.paint(this.getGraphics());
Modpack pack = CurseLoader.load(f, progress::accept);
this.loadPack(pack);
showCard("main");
} catch (IOException ex) {
ex.printStackTrace();
JOptionPane.showMessageDialog(this, ex.getMessage(), "Error loading Curse pack", JOptionPane.ERROR_MESSAGE);
showCard("load");
}
}
} else if (f.getName().endsWith(".lock.pack.hjson") || f.getName().endsWith(".lock.pack.json")) { //Voodoo pack lockfile
try {
showCard("progress");
//this.repaint(1);
this.paint(this.getGraphics());
Thread.yield();
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
Modpack pack = VoodooLoader.load(f, progress::accept);
pack.setSaveLocation(null);
this.loadPack(pack);
showCard("main");
//pack.saveAs(new File(".", "pack_import.json"));
} catch (IOException e) {
e.printStackTrace();
JOptionPane.showMessageDialog(this, e.getMessage(), "Error loading Voodoo pack", JOptionPane.ERROR_MESSAGE);
showCard("load");
}
} else if (f.getName().endsWith(".json")) {
try {
Jankson jankson = Jankson.builder().build();
JsonObject obj = jankson.load(f);
Integer curseManifestVersion = (obj.get(Integer.class, "manifestVersion"));
if (curseManifestVersion!=null) {
try {
showCard("progress");
Modpack pack = CurseLoader.load(f, progress::accept);
this.loadPack(pack);
showCard("main");
return;
} catch (Throwable t) {
JOptionPane.showMessageDialog(this, t.getMessage(), "Error loading Curse pack", JOptionPane.ERROR_MESSAGE);
showCard("load");
return;
}
}
Modpack pack = jankson.fromJson(jankson.load(f), Modpack.class);
pack.setSaveLocation(f);
//Re-cache versions
for(ModSelection selection : pack.mods) {
ModInfo modInfo = selection.info;
for(ModInfo.Version version : modInfo.versions) {
if (version.timestamp==selection.timestamp) {
selection.cachedVersion = version;
break;
}
}
}
//System.out.println("Modpack: "+jankson.toJson(pack).toJson(JsonGrammar.JSON5));
this.loadPack(pack);
showCard("main");
} catch (IOException | SyntaxError error) {
error.printStackTrace();
JOptionPane.showMessageDialog(this, error.getMessage(), "Error loading WT pack", JOptionPane.ERROR_MESSAGE);
showCard("load");
}
}
}
}
}
| falkreon/WanderingTrader | src/main/java/blue/endless/wtrader/gui/TraderGui.java |
213,478 | /**
* Program Development in Functional and Object-oriented languages.
*
* [email protected]
* [email protected]
*
* KTH 2013
*/
package com.douchedata.parallel;
import java.util.concurrent.RecursiveTask;
public class FibonacciTask extends RecursiveTask<Long> {
private static final long serialVersionUID = -8294482541788169399L;
public static final int THRESHHOLD = 5;
private long result;
private int n;
public FibonacciTask(int n) {
this.n = n;
}
public Long compute() {
if (n < THRESHHOLD) {
result = computeDirectly();
} else {
FibonacciTask worker1 = new FibonacciTask(n-1);
FibonacciTask worker2 = new FibonacciTask(n-2);
worker1.fork();
result = worker2.compute() + worker1.join();
}
return result;
}
private long computeDirectly() {
return fibonacci(n);
}
private long fibonacci(int n) {
if (n <= 2)
return 1;
else
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
| pinne/parallel_sort | com/douchedata/parallel/FibonacciTask.java |
213,479 | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.server;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Locale;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import mage.cards.repository.CardInfo;
import mage.cards.repository.CardRepository;
import mage.server.util.SystemUtil;
import mage.view.ChatMessage.MessageColor;
import mage.view.ChatMessage.MessageType;
import mage.view.ChatMessage.SoundToPlay;
import org.apache.log4j.Logger;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class ChatManager {
private static final Logger logger = Logger.getLogger(ChatManager.class);
private static HashMap<String, String> userMessages = new HashMap<>();
private static final ChatManager INSTANCE = new ChatManager();
public static ChatManager getInstance() {
return INSTANCE;
}
private ChatManager() {
}
private final ConcurrentHashMap<UUID, ChatSession> chatSessions = new ConcurrentHashMap<>();
public UUID createChatSession(String info) {
ChatSession chatSession = new ChatSession(info);
chatSessions.put(chatSession.getChatId(), chatSession);
return chatSession.getChatId();
}
public void joinChat(UUID chatId, UUID userId) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
chatSession.join(userId);
} else {
logger.trace("Chat to join not found - chatId: " + chatId + " userId: " + userId);
}
}
public void leaveChat(UUID chatId, UUID userId) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null && chatSession.hasUser(userId)) {
chatSession.kill(userId, DisconnectReason.CleaningUp);
}
}
public void destroyChatSession(UUID chatId) {
if (chatId != null) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
synchronized (chatSession) {
if (chatSessions.containsKey(chatId)) {
chatSessions.remove(chatId);
logger.trace("Chat removed - chatId: " + chatId);
} else {
logger.trace("Chat to destroy does not exist - chatId: " + chatId);
}
}
}
}
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime) {
this.broadcast(chatId, userName, message, color, withTime, MessageType.TALK);
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime, MessageType messageType) {
this.broadcast(chatId, userName, message, color, withTime, messageType, null);
}
private boolean containsSwearing(String message) {
if (message != null && message.toLowerCase().matches("^.*(anal|asshole|balls|bastard|bitch|blowjob|cock|crap|cunt|cum|damn|dick|dildo|douche|fag|fuck|idiot|moron|penis|piss|prick|pussy|rape|rapist|sex|screw|shit|slut|vagina).*$")) {
return true;
}
return false;
}
Pattern cardNamePattern = Pattern.compile("\\[(.*?)\\]");
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime, MessageType messageType, SoundToPlay soundToPlay) {
ChatSession chatSession = chatSessions.get(chatId);
if (chatSession != null) {
if (message.startsWith("\\") || message.startsWith("/")) {
User user = UserManager.getInstance().getUserByName(userName);
if (user != null) {
if (!performUserCommand(user, message, chatId, false)) {
performUserCommand(user, message, chatId, true);
}
return;
}
}
if (!messageType.equals(MessageType.GAME)) {
User user = UserManager.getInstance().getUserByName(userName);
if (message != null && userName != null && !userName.equals("")) {
if (message.equals(userMessages.get(userName))) {
// prevent identical messages
String informUser = "Your message appears to be identical to your last message";
chatSessions.get(chatId).broadcastInfoToUser(user, informUser);
return;
}
String messageToCheck = message;
Matcher matchPattern = cardNamePattern.matcher(message);
while (matchPattern.find()) {
String cardName = matchPattern.group(1);
CardInfo cardInfo = CardRepository.instance.findPreferedCoreExpansionCard(cardName, true);
if (cardInfo != null) {
String colour = "silver";
if (cardInfo.getCard().getColor(null).isMulticolored()) {
colour = "yellow";
} else if (cardInfo.getCard().getColor(null).isWhite()) {
colour = "white";
} else if (cardInfo.getCard().getColor(null).isBlue()) {
colour = "blue";
} else if (cardInfo.getCard().getColor(null).isBlack()) {
colour = "black";
} else if (cardInfo.getCard().getColor(null).isRed()) {
colour = "red";
} else if (cardInfo.getCard().getColor(null).isGreen()) {
colour = "green";
}
messageToCheck = messageToCheck.replaceFirst("\\[" + cardName + "\\]", "card");
String displayCardName = "<font bgcolor=orange color=" + colour + ">" + cardName + "</font>";
message = message.replaceFirst("\\[" + cardName + "\\]", displayCardName);
}
}
userMessages.put(userName, message);
if (containsSwearing(messageToCheck)) {
String informUser = "Your message appears to contain profanity";
chatSessions.get(chatId).broadcastInfoToUser(user, informUser);
return;
}
}
if (messageType.equals(MessageType.TALK)) {
if (user != null) {
if (user.getChatLockedUntil() != null) {
if (user.getChatLockedUntil().compareTo(Calendar.getInstance().getTime()) > 0) {
chatSessions.get(chatId).broadcastInfoToUser(user, "Your chat is muted until " + SystemUtil.dateFormat.format(user.getChatLockedUntil()));
return;
} else {
user.setChatLockedUntil(null);
}
}
}
}
}
chatSession.broadcast(userName, message, color, withTime, messageType, soundToPlay);
}
}
private static final String COMMANDS_LIST
= "<br/>List of commands:"
+ "<br/>\\history or \\h [username] - shows the history of a player"
+ "<br/>\\me - shows the history of the current player"
+ "<br/>\\list or \\l - Show a list of commands"
+ "<br/>\\whisper or \\w [player name] [text] - whisper to the player with the given name"
+ "<br/>[Card Name] - Show a highlighted card name";
private boolean performUserCommand(User user, String message, UUID chatId, boolean doError) {
String command = message.substring(1).trim().toUpperCase(Locale.ENGLISH);
if (doError) {
message += new StringBuilder("<br/>Invalid User Command '" + message + "'.").append(COMMANDS_LIST).toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.startsWith("H ") || command.startsWith("HISTORY ")) {
message += "<br/>" + UserManager.getInstance().getUserHistory(message.substring(command.startsWith("H ") ? 3 : 9));
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.equals("ME")) {
message += "<br/>" + UserManager.getInstance().getUserHistory(user.getName());
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
if (command.startsWith("W ") || command.startsWith("WHISPER ")) {
String rest = message.substring(command.startsWith("W ") ? 3 : 9);
int first = rest.indexOf(" ");
if (first > 1) {
String userToName = rest.substring(0, first);
rest = rest.substring(first + 1).trim();
User userTo = UserManager.getInstance().getUserByName(userToName);
if (userTo != null) {
if (!chatSessions.get(chatId).broadcastWhisperToUser(user, userTo, rest)) {
message += new StringBuilder("<br/>User ").append(userToName).append(" not found").toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
}
} else {
message += new StringBuilder("<br/>User ").append(userToName).append(" not found").toString();
chatSessions.get(chatId).broadcastInfoToUser(user, message);
}
return true;
}
}
if (command.equals("L") || command.equals("LIST")) {
message += COMMANDS_LIST;
chatSessions.get(chatId).broadcastInfoToUser(user, message);
return true;
}
return false;
}
/**
*
* use mainly for announcing that a user connection was lost or that a user
* has reconnected
*
* @param userId
* @param message
* @param color
*/
public void broadcast(UUID userId, String message, MessageColor color) {
User user = UserManager.getInstance().getUser(userId);
if (user != null) {
for (ChatSession chat : chatSessions.values()) {
if (chat.hasUser(userId)) {
chat.broadcast(user.getName(), message, color, true, MessageType.TALK, null);
}
}
}
}
public void sendReconnectMessage(UUID userId) {
User user = UserManager.getInstance().getUser(userId);
if (user != null) {
for (ChatSession chat : chatSessions.values()) {
if (chat.hasUser(userId)) {
chat.broadcast(null, user.getName() + " has reconnected", MessageColor.BLUE, true, MessageType.STATUS, null);
}
}
}
}
public void removeUser(UUID userId, DisconnectReason reason) {
for (ChatSession chatSession : chatSessions.values()) {
if (chatSession.hasUser(userId)) {
chatSession.kill(userId, reason);
}
}
}
public ArrayList<ChatSession> getChatSessions() {
ArrayList<ChatSession> chatSessionList = new ArrayList<>();
chatSessionList.addAll(chatSessions.values());
return chatSessionList;
}
}
| pboyle17/mage | Mage.Server/src/main/java/mage/server/ChatManager.java |
213,480 | package org.hl7.fhir.dstu2016may.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0
import org.hl7.fhir.dstu2016may.model.EnumFactory;
public class V3OrderableDrugFormEnumFactory implements EnumFactory<V3OrderableDrugForm> {
public V3OrderableDrugForm fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_AdministrableDrugForm".equals(codeString))
return V3OrderableDrugForm._ADMINISTRABLEDRUGFORM;
if ("APPFUL".equals(codeString))
return V3OrderableDrugForm.APPFUL;
if ("DROP".equals(codeString))
return V3OrderableDrugForm.DROP;
if ("NDROP".equals(codeString))
return V3OrderableDrugForm.NDROP;
if ("OPDROP".equals(codeString))
return V3OrderableDrugForm.OPDROP;
if ("ORDROP".equals(codeString))
return V3OrderableDrugForm.ORDROP;
if ("OTDROP".equals(codeString))
return V3OrderableDrugForm.OTDROP;
if ("PUFF".equals(codeString))
return V3OrderableDrugForm.PUFF;
if ("SCOOP".equals(codeString))
return V3OrderableDrugForm.SCOOP;
if ("SPRY".equals(codeString))
return V3OrderableDrugForm.SPRY;
if ("_DispensableDrugForm".equals(codeString))
return V3OrderableDrugForm._DISPENSABLEDRUGFORM;
if ("_GasDrugForm".equals(codeString))
return V3OrderableDrugForm._GASDRUGFORM;
if ("GASINHL".equals(codeString))
return V3OrderableDrugForm.GASINHL;
if ("_GasLiquidMixture".equals(codeString))
return V3OrderableDrugForm._GASLIQUIDMIXTURE;
if ("AER".equals(codeString))
return V3OrderableDrugForm.AER;
if ("BAINHL".equals(codeString))
return V3OrderableDrugForm.BAINHL;
if ("INHLSOL".equals(codeString))
return V3OrderableDrugForm.INHLSOL;
if ("MDINHL".equals(codeString))
return V3OrderableDrugForm.MDINHL;
if ("NASSPRY".equals(codeString))
return V3OrderableDrugForm.NASSPRY;
if ("DERMSPRY".equals(codeString))
return V3OrderableDrugForm.DERMSPRY;
if ("FOAM".equals(codeString))
return V3OrderableDrugForm.FOAM;
if ("FOAMAPL".equals(codeString))
return V3OrderableDrugForm.FOAMAPL;
if ("RECFORM".equals(codeString))
return V3OrderableDrugForm.RECFORM;
if ("VAGFOAM".equals(codeString))
return V3OrderableDrugForm.VAGFOAM;
if ("VAGFOAMAPL".equals(codeString))
return V3OrderableDrugForm.VAGFOAMAPL;
if ("RECSPRY".equals(codeString))
return V3OrderableDrugForm.RECSPRY;
if ("VAGSPRY".equals(codeString))
return V3OrderableDrugForm.VAGSPRY;
if ("_GasSolidSpray".equals(codeString))
return V3OrderableDrugForm._GASSOLIDSPRAY;
if ("INHL".equals(codeString))
return V3OrderableDrugForm.INHL;
if ("BAINHLPWD".equals(codeString))
return V3OrderableDrugForm.BAINHLPWD;
if ("INHLPWD".equals(codeString))
return V3OrderableDrugForm.INHLPWD;
if ("MDINHLPWD".equals(codeString))
return V3OrderableDrugForm.MDINHLPWD;
if ("NASINHL".equals(codeString))
return V3OrderableDrugForm.NASINHL;
if ("ORINHL".equals(codeString))
return V3OrderableDrugForm.ORINHL;
if ("PWDSPRY".equals(codeString))
return V3OrderableDrugForm.PWDSPRY;
if ("SPRYADAPT".equals(codeString))
return V3OrderableDrugForm.SPRYADAPT;
if ("_Liquid".equals(codeString))
return V3OrderableDrugForm._LIQUID;
if ("LIQCLN".equals(codeString))
return V3OrderableDrugForm.LIQCLN;
if ("LIQSOAP".equals(codeString))
return V3OrderableDrugForm.LIQSOAP;
if ("SHMP".equals(codeString))
return V3OrderableDrugForm.SHMP;
if ("OIL".equals(codeString))
return V3OrderableDrugForm.OIL;
if ("TOPOIL".equals(codeString))
return V3OrderableDrugForm.TOPOIL;
if ("SOL".equals(codeString))
return V3OrderableDrugForm.SOL;
if ("IPSOL".equals(codeString))
return V3OrderableDrugForm.IPSOL;
if ("IRSOL".equals(codeString))
return V3OrderableDrugForm.IRSOL;
if ("DOUCHE".equals(codeString))
return V3OrderableDrugForm.DOUCHE;
if ("ENEMA".equals(codeString))
return V3OrderableDrugForm.ENEMA;
if ("OPIRSOL".equals(codeString))
return V3OrderableDrugForm.OPIRSOL;
if ("IVSOL".equals(codeString))
return V3OrderableDrugForm.IVSOL;
if ("ORALSOL".equals(codeString))
return V3OrderableDrugForm.ORALSOL;
if ("ELIXIR".equals(codeString))
return V3OrderableDrugForm.ELIXIR;
if ("RINSE".equals(codeString))
return V3OrderableDrugForm.RINSE;
if ("SYRUP".equals(codeString))
return V3OrderableDrugForm.SYRUP;
if ("RECSOL".equals(codeString))
return V3OrderableDrugForm.RECSOL;
if ("TOPSOL".equals(codeString))
return V3OrderableDrugForm.TOPSOL;
if ("LIN".equals(codeString))
return V3OrderableDrugForm.LIN;
if ("MUCTOPSOL".equals(codeString))
return V3OrderableDrugForm.MUCTOPSOL;
if ("TINC".equals(codeString))
return V3OrderableDrugForm.TINC;
if ("_LiquidLiquidEmulsion".equals(codeString))
return V3OrderableDrugForm._LIQUIDLIQUIDEMULSION;
if ("CRM".equals(codeString))
return V3OrderableDrugForm.CRM;
if ("NASCRM".equals(codeString))
return V3OrderableDrugForm.NASCRM;
if ("OPCRM".equals(codeString))
return V3OrderableDrugForm.OPCRM;
if ("ORCRM".equals(codeString))
return V3OrderableDrugForm.ORCRM;
if ("OTCRM".equals(codeString))
return V3OrderableDrugForm.OTCRM;
if ("RECCRM".equals(codeString))
return V3OrderableDrugForm.RECCRM;
if ("TOPCRM".equals(codeString))
return V3OrderableDrugForm.TOPCRM;
if ("VAGCRM".equals(codeString))
return V3OrderableDrugForm.VAGCRM;
if ("VAGCRMAPL".equals(codeString))
return V3OrderableDrugForm.VAGCRMAPL;
if ("LTN".equals(codeString))
return V3OrderableDrugForm.LTN;
if ("TOPLTN".equals(codeString))
return V3OrderableDrugForm.TOPLTN;
if ("OINT".equals(codeString))
return V3OrderableDrugForm.OINT;
if ("NASOINT".equals(codeString))
return V3OrderableDrugForm.NASOINT;
if ("OINTAPL".equals(codeString))
return V3OrderableDrugForm.OINTAPL;
if ("OPOINT".equals(codeString))
return V3OrderableDrugForm.OPOINT;
if ("OTOINT".equals(codeString))
return V3OrderableDrugForm.OTOINT;
if ("RECOINT".equals(codeString))
return V3OrderableDrugForm.RECOINT;
if ("TOPOINT".equals(codeString))
return V3OrderableDrugForm.TOPOINT;
if ("VAGOINT".equals(codeString))
return V3OrderableDrugForm.VAGOINT;
if ("VAGOINTAPL".equals(codeString))
return V3OrderableDrugForm.VAGOINTAPL;
if ("_LiquidSolidSuspension".equals(codeString))
return V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION;
if ("GEL".equals(codeString))
return V3OrderableDrugForm.GEL;
if ("GELAPL".equals(codeString))
return V3OrderableDrugForm.GELAPL;
if ("NASGEL".equals(codeString))
return V3OrderableDrugForm.NASGEL;
if ("OPGEL".equals(codeString))
return V3OrderableDrugForm.OPGEL;
if ("OTGEL".equals(codeString))
return V3OrderableDrugForm.OTGEL;
if ("TOPGEL".equals(codeString))
return V3OrderableDrugForm.TOPGEL;
if ("URETHGEL".equals(codeString))
return V3OrderableDrugForm.URETHGEL;
if ("VAGGEL".equals(codeString))
return V3OrderableDrugForm.VAGGEL;
if ("VGELAPL".equals(codeString))
return V3OrderableDrugForm.VGELAPL;
if ("PASTE".equals(codeString))
return V3OrderableDrugForm.PASTE;
if ("PUD".equals(codeString))
return V3OrderableDrugForm.PUD;
if ("TPASTE".equals(codeString))
return V3OrderableDrugForm.TPASTE;
if ("SUSP".equals(codeString))
return V3OrderableDrugForm.SUSP;
if ("ITSUSP".equals(codeString))
return V3OrderableDrugForm.ITSUSP;
if ("OPSUSP".equals(codeString))
return V3OrderableDrugForm.OPSUSP;
if ("ORSUSP".equals(codeString))
return V3OrderableDrugForm.ORSUSP;
if ("ERSUSP".equals(codeString))
return V3OrderableDrugForm.ERSUSP;
if ("ERSUSP12".equals(codeString))
return V3OrderableDrugForm.ERSUSP12;
if ("ERSUSP24".equals(codeString))
return V3OrderableDrugForm.ERSUSP24;
if ("OTSUSP".equals(codeString))
return V3OrderableDrugForm.OTSUSP;
if ("RECSUSP".equals(codeString))
return V3OrderableDrugForm.RECSUSP;
if ("_SolidDrugForm".equals(codeString))
return V3OrderableDrugForm._SOLIDDRUGFORM;
if ("BAR".equals(codeString))
return V3OrderableDrugForm.BAR;
if ("BARSOAP".equals(codeString))
return V3OrderableDrugForm.BARSOAP;
if ("MEDBAR".equals(codeString))
return V3OrderableDrugForm.MEDBAR;
if ("CHEWBAR".equals(codeString))
return V3OrderableDrugForm.CHEWBAR;
if ("BEAD".equals(codeString))
return V3OrderableDrugForm.BEAD;
if ("CAKE".equals(codeString))
return V3OrderableDrugForm.CAKE;
if ("CEMENT".equals(codeString))
return V3OrderableDrugForm.CEMENT;
if ("CRYS".equals(codeString))
return V3OrderableDrugForm.CRYS;
if ("DISK".equals(codeString))
return V3OrderableDrugForm.DISK;
if ("FLAKE".equals(codeString))
return V3OrderableDrugForm.FLAKE;
if ("GRAN".equals(codeString))
return V3OrderableDrugForm.GRAN;
if ("GUM".equals(codeString))
return V3OrderableDrugForm.GUM;
if ("PAD".equals(codeString))
return V3OrderableDrugForm.PAD;
if ("MEDPAD".equals(codeString))
return V3OrderableDrugForm.MEDPAD;
if ("PATCH".equals(codeString))
return V3OrderableDrugForm.PATCH;
if ("TPATCH".equals(codeString))
return V3OrderableDrugForm.TPATCH;
if ("TPATH16".equals(codeString))
return V3OrderableDrugForm.TPATH16;
if ("TPATH24".equals(codeString))
return V3OrderableDrugForm.TPATH24;
if ("TPATH2WK".equals(codeString))
return V3OrderableDrugForm.TPATH2WK;
if ("TPATH72".equals(codeString))
return V3OrderableDrugForm.TPATH72;
if ("TPATHWK".equals(codeString))
return V3OrderableDrugForm.TPATHWK;
if ("PELLET".equals(codeString))
return V3OrderableDrugForm.PELLET;
if ("PILL".equals(codeString))
return V3OrderableDrugForm.PILL;
if ("CAP".equals(codeString))
return V3OrderableDrugForm.CAP;
if ("ORCAP".equals(codeString))
return V3OrderableDrugForm.ORCAP;
if ("ENTCAP".equals(codeString))
return V3OrderableDrugForm.ENTCAP;
if ("ERENTCAP".equals(codeString))
return V3OrderableDrugForm.ERENTCAP;
if ("ERCAP".equals(codeString))
return V3OrderableDrugForm.ERCAP;
if ("ERCAP12".equals(codeString))
return V3OrderableDrugForm.ERCAP12;
if ("ERCAP24".equals(codeString))
return V3OrderableDrugForm.ERCAP24;
if ("ERECCAP".equals(codeString))
return V3OrderableDrugForm.ERECCAP;
if ("TAB".equals(codeString))
return V3OrderableDrugForm.TAB;
if ("ORTAB".equals(codeString))
return V3OrderableDrugForm.ORTAB;
if ("BUCTAB".equals(codeString))
return V3OrderableDrugForm.BUCTAB;
if ("SRBUCTAB".equals(codeString))
return V3OrderableDrugForm.SRBUCTAB;
if ("CAPLET".equals(codeString))
return V3OrderableDrugForm.CAPLET;
if ("CHEWTAB".equals(codeString))
return V3OrderableDrugForm.CHEWTAB;
if ("CPTAB".equals(codeString))
return V3OrderableDrugForm.CPTAB;
if ("DISINTAB".equals(codeString))
return V3OrderableDrugForm.DISINTAB;
if ("DRTAB".equals(codeString))
return V3OrderableDrugForm.DRTAB;
if ("ECTAB".equals(codeString))
return V3OrderableDrugForm.ECTAB;
if ("ERECTAB".equals(codeString))
return V3OrderableDrugForm.ERECTAB;
if ("ERTAB".equals(codeString))
return V3OrderableDrugForm.ERTAB;
if ("ERTAB12".equals(codeString))
return V3OrderableDrugForm.ERTAB12;
if ("ERTAB24".equals(codeString))
return V3OrderableDrugForm.ERTAB24;
if ("ORTROCHE".equals(codeString))
return V3OrderableDrugForm.ORTROCHE;
if ("SLTAB".equals(codeString))
return V3OrderableDrugForm.SLTAB;
if ("VAGTAB".equals(codeString))
return V3OrderableDrugForm.VAGTAB;
if ("POWD".equals(codeString))
return V3OrderableDrugForm.POWD;
if ("TOPPWD".equals(codeString))
return V3OrderableDrugForm.TOPPWD;
if ("RECPWD".equals(codeString))
return V3OrderableDrugForm.RECPWD;
if ("VAGPWD".equals(codeString))
return V3OrderableDrugForm.VAGPWD;
if ("SUPP".equals(codeString))
return V3OrderableDrugForm.SUPP;
if ("RECSUPP".equals(codeString))
return V3OrderableDrugForm.RECSUPP;
if ("URETHSUPP".equals(codeString))
return V3OrderableDrugForm.URETHSUPP;
if ("VAGSUPP".equals(codeString))
return V3OrderableDrugForm.VAGSUPP;
if ("SWAB".equals(codeString))
return V3OrderableDrugForm.SWAB;
if ("MEDSWAB".equals(codeString))
return V3OrderableDrugForm.MEDSWAB;
if ("WAFER".equals(codeString))
return V3OrderableDrugForm.WAFER;
throw new IllegalArgumentException("Unknown V3OrderableDrugForm code '"+codeString+"'");
}
public String toCode(V3OrderableDrugForm code) {
if (code == V3OrderableDrugForm._ADMINISTRABLEDRUGFORM)
return "_AdministrableDrugForm";
if (code == V3OrderableDrugForm.APPFUL)
return "APPFUL";
if (code == V3OrderableDrugForm.DROP)
return "DROP";
if (code == V3OrderableDrugForm.NDROP)
return "NDROP";
if (code == V3OrderableDrugForm.OPDROP)
return "OPDROP";
if (code == V3OrderableDrugForm.ORDROP)
return "ORDROP";
if (code == V3OrderableDrugForm.OTDROP)
return "OTDROP";
if (code == V3OrderableDrugForm.PUFF)
return "PUFF";
if (code == V3OrderableDrugForm.SCOOP)
return "SCOOP";
if (code == V3OrderableDrugForm.SPRY)
return "SPRY";
if (code == V3OrderableDrugForm._DISPENSABLEDRUGFORM)
return "_DispensableDrugForm";
if (code == V3OrderableDrugForm._GASDRUGFORM)
return "_GasDrugForm";
if (code == V3OrderableDrugForm.GASINHL)
return "GASINHL";
if (code == V3OrderableDrugForm._GASLIQUIDMIXTURE)
return "_GasLiquidMixture";
if (code == V3OrderableDrugForm.AER)
return "AER";
if (code == V3OrderableDrugForm.BAINHL)
return "BAINHL";
if (code == V3OrderableDrugForm.INHLSOL)
return "INHLSOL";
if (code == V3OrderableDrugForm.MDINHL)
return "MDINHL";
if (code == V3OrderableDrugForm.NASSPRY)
return "NASSPRY";
if (code == V3OrderableDrugForm.DERMSPRY)
return "DERMSPRY";
if (code == V3OrderableDrugForm.FOAM)
return "FOAM";
if (code == V3OrderableDrugForm.FOAMAPL)
return "FOAMAPL";
if (code == V3OrderableDrugForm.RECFORM)
return "RECFORM";
if (code == V3OrderableDrugForm.VAGFOAM)
return "VAGFOAM";
if (code == V3OrderableDrugForm.VAGFOAMAPL)
return "VAGFOAMAPL";
if (code == V3OrderableDrugForm.RECSPRY)
return "RECSPRY";
if (code == V3OrderableDrugForm.VAGSPRY)
return "VAGSPRY";
if (code == V3OrderableDrugForm._GASSOLIDSPRAY)
return "_GasSolidSpray";
if (code == V3OrderableDrugForm.INHL)
return "INHL";
if (code == V3OrderableDrugForm.BAINHLPWD)
return "BAINHLPWD";
if (code == V3OrderableDrugForm.INHLPWD)
return "INHLPWD";
if (code == V3OrderableDrugForm.MDINHLPWD)
return "MDINHLPWD";
if (code == V3OrderableDrugForm.NASINHL)
return "NASINHL";
if (code == V3OrderableDrugForm.ORINHL)
return "ORINHL";
if (code == V3OrderableDrugForm.PWDSPRY)
return "PWDSPRY";
if (code == V3OrderableDrugForm.SPRYADAPT)
return "SPRYADAPT";
if (code == V3OrderableDrugForm._LIQUID)
return "_Liquid";
if (code == V3OrderableDrugForm.LIQCLN)
return "LIQCLN";
if (code == V3OrderableDrugForm.LIQSOAP)
return "LIQSOAP";
if (code == V3OrderableDrugForm.SHMP)
return "SHMP";
if (code == V3OrderableDrugForm.OIL)
return "OIL";
if (code == V3OrderableDrugForm.TOPOIL)
return "TOPOIL";
if (code == V3OrderableDrugForm.SOL)
return "SOL";
if (code == V3OrderableDrugForm.IPSOL)
return "IPSOL";
if (code == V3OrderableDrugForm.IRSOL)
return "IRSOL";
if (code == V3OrderableDrugForm.DOUCHE)
return "DOUCHE";
if (code == V3OrderableDrugForm.ENEMA)
return "ENEMA";
if (code == V3OrderableDrugForm.OPIRSOL)
return "OPIRSOL";
if (code == V3OrderableDrugForm.IVSOL)
return "IVSOL";
if (code == V3OrderableDrugForm.ORALSOL)
return "ORALSOL";
if (code == V3OrderableDrugForm.ELIXIR)
return "ELIXIR";
if (code == V3OrderableDrugForm.RINSE)
return "RINSE";
if (code == V3OrderableDrugForm.SYRUP)
return "SYRUP";
if (code == V3OrderableDrugForm.RECSOL)
return "RECSOL";
if (code == V3OrderableDrugForm.TOPSOL)
return "TOPSOL";
if (code == V3OrderableDrugForm.LIN)
return "LIN";
if (code == V3OrderableDrugForm.MUCTOPSOL)
return "MUCTOPSOL";
if (code == V3OrderableDrugForm.TINC)
return "TINC";
if (code == V3OrderableDrugForm._LIQUIDLIQUIDEMULSION)
return "_LiquidLiquidEmulsion";
if (code == V3OrderableDrugForm.CRM)
return "CRM";
if (code == V3OrderableDrugForm.NASCRM)
return "NASCRM";
if (code == V3OrderableDrugForm.OPCRM)
return "OPCRM";
if (code == V3OrderableDrugForm.ORCRM)
return "ORCRM";
if (code == V3OrderableDrugForm.OTCRM)
return "OTCRM";
if (code == V3OrderableDrugForm.RECCRM)
return "RECCRM";
if (code == V3OrderableDrugForm.TOPCRM)
return "TOPCRM";
if (code == V3OrderableDrugForm.VAGCRM)
return "VAGCRM";
if (code == V3OrderableDrugForm.VAGCRMAPL)
return "VAGCRMAPL";
if (code == V3OrderableDrugForm.LTN)
return "LTN";
if (code == V3OrderableDrugForm.TOPLTN)
return "TOPLTN";
if (code == V3OrderableDrugForm.OINT)
return "OINT";
if (code == V3OrderableDrugForm.NASOINT)
return "NASOINT";
if (code == V3OrderableDrugForm.OINTAPL)
return "OINTAPL";
if (code == V3OrderableDrugForm.OPOINT)
return "OPOINT";
if (code == V3OrderableDrugForm.OTOINT)
return "OTOINT";
if (code == V3OrderableDrugForm.RECOINT)
return "RECOINT";
if (code == V3OrderableDrugForm.TOPOINT)
return "TOPOINT";
if (code == V3OrderableDrugForm.VAGOINT)
return "VAGOINT";
if (code == V3OrderableDrugForm.VAGOINTAPL)
return "VAGOINTAPL";
if (code == V3OrderableDrugForm._LIQUIDSOLIDSUSPENSION)
return "_LiquidSolidSuspension";
if (code == V3OrderableDrugForm.GEL)
return "GEL";
if (code == V3OrderableDrugForm.GELAPL)
return "GELAPL";
if (code == V3OrderableDrugForm.NASGEL)
return "NASGEL";
if (code == V3OrderableDrugForm.OPGEL)
return "OPGEL";
if (code == V3OrderableDrugForm.OTGEL)
return "OTGEL";
if (code == V3OrderableDrugForm.TOPGEL)
return "TOPGEL";
if (code == V3OrderableDrugForm.URETHGEL)
return "URETHGEL";
if (code == V3OrderableDrugForm.VAGGEL)
return "VAGGEL";
if (code == V3OrderableDrugForm.VGELAPL)
return "VGELAPL";
if (code == V3OrderableDrugForm.PASTE)
return "PASTE";
if (code == V3OrderableDrugForm.PUD)
return "PUD";
if (code == V3OrderableDrugForm.TPASTE)
return "TPASTE";
if (code == V3OrderableDrugForm.SUSP)
return "SUSP";
if (code == V3OrderableDrugForm.ITSUSP)
return "ITSUSP";
if (code == V3OrderableDrugForm.OPSUSP)
return "OPSUSP";
if (code == V3OrderableDrugForm.ORSUSP)
return "ORSUSP";
if (code == V3OrderableDrugForm.ERSUSP)
return "ERSUSP";
if (code == V3OrderableDrugForm.ERSUSP12)
return "ERSUSP12";
if (code == V3OrderableDrugForm.ERSUSP24)
return "ERSUSP24";
if (code == V3OrderableDrugForm.OTSUSP)
return "OTSUSP";
if (code == V3OrderableDrugForm.RECSUSP)
return "RECSUSP";
if (code == V3OrderableDrugForm._SOLIDDRUGFORM)
return "_SolidDrugForm";
if (code == V3OrderableDrugForm.BAR)
return "BAR";
if (code == V3OrderableDrugForm.BARSOAP)
return "BARSOAP";
if (code == V3OrderableDrugForm.MEDBAR)
return "MEDBAR";
if (code == V3OrderableDrugForm.CHEWBAR)
return "CHEWBAR";
if (code == V3OrderableDrugForm.BEAD)
return "BEAD";
if (code == V3OrderableDrugForm.CAKE)
return "CAKE";
if (code == V3OrderableDrugForm.CEMENT)
return "CEMENT";
if (code == V3OrderableDrugForm.CRYS)
return "CRYS";
if (code == V3OrderableDrugForm.DISK)
return "DISK";
if (code == V3OrderableDrugForm.FLAKE)
return "FLAKE";
if (code == V3OrderableDrugForm.GRAN)
return "GRAN";
if (code == V3OrderableDrugForm.GUM)
return "GUM";
if (code == V3OrderableDrugForm.PAD)
return "PAD";
if (code == V3OrderableDrugForm.MEDPAD)
return "MEDPAD";
if (code == V3OrderableDrugForm.PATCH)
return "PATCH";
if (code == V3OrderableDrugForm.TPATCH)
return "TPATCH";
if (code == V3OrderableDrugForm.TPATH16)
return "TPATH16";
if (code == V3OrderableDrugForm.TPATH24)
return "TPATH24";
if (code == V3OrderableDrugForm.TPATH2WK)
return "TPATH2WK";
if (code == V3OrderableDrugForm.TPATH72)
return "TPATH72";
if (code == V3OrderableDrugForm.TPATHWK)
return "TPATHWK";
if (code == V3OrderableDrugForm.PELLET)
return "PELLET";
if (code == V3OrderableDrugForm.PILL)
return "PILL";
if (code == V3OrderableDrugForm.CAP)
return "CAP";
if (code == V3OrderableDrugForm.ORCAP)
return "ORCAP";
if (code == V3OrderableDrugForm.ENTCAP)
return "ENTCAP";
if (code == V3OrderableDrugForm.ERENTCAP)
return "ERENTCAP";
if (code == V3OrderableDrugForm.ERCAP)
return "ERCAP";
if (code == V3OrderableDrugForm.ERCAP12)
return "ERCAP12";
if (code == V3OrderableDrugForm.ERCAP24)
return "ERCAP24";
if (code == V3OrderableDrugForm.ERECCAP)
return "ERECCAP";
if (code == V3OrderableDrugForm.TAB)
return "TAB";
if (code == V3OrderableDrugForm.ORTAB)
return "ORTAB";
if (code == V3OrderableDrugForm.BUCTAB)
return "BUCTAB";
if (code == V3OrderableDrugForm.SRBUCTAB)
return "SRBUCTAB";
if (code == V3OrderableDrugForm.CAPLET)
return "CAPLET";
if (code == V3OrderableDrugForm.CHEWTAB)
return "CHEWTAB";
if (code == V3OrderableDrugForm.CPTAB)
return "CPTAB";
if (code == V3OrderableDrugForm.DISINTAB)
return "DISINTAB";
if (code == V3OrderableDrugForm.DRTAB)
return "DRTAB";
if (code == V3OrderableDrugForm.ECTAB)
return "ECTAB";
if (code == V3OrderableDrugForm.ERECTAB)
return "ERECTAB";
if (code == V3OrderableDrugForm.ERTAB)
return "ERTAB";
if (code == V3OrderableDrugForm.ERTAB12)
return "ERTAB12";
if (code == V3OrderableDrugForm.ERTAB24)
return "ERTAB24";
if (code == V3OrderableDrugForm.ORTROCHE)
return "ORTROCHE";
if (code == V3OrderableDrugForm.SLTAB)
return "SLTAB";
if (code == V3OrderableDrugForm.VAGTAB)
return "VAGTAB";
if (code == V3OrderableDrugForm.POWD)
return "POWD";
if (code == V3OrderableDrugForm.TOPPWD)
return "TOPPWD";
if (code == V3OrderableDrugForm.RECPWD)
return "RECPWD";
if (code == V3OrderableDrugForm.VAGPWD)
return "VAGPWD";
if (code == V3OrderableDrugForm.SUPP)
return "SUPP";
if (code == V3OrderableDrugForm.RECSUPP)
return "RECSUPP";
if (code == V3OrderableDrugForm.URETHSUPP)
return "URETHSUPP";
if (code == V3OrderableDrugForm.VAGSUPP)
return "VAGSUPP";
if (code == V3OrderableDrugForm.SWAB)
return "SWAB";
if (code == V3OrderableDrugForm.MEDSWAB)
return "MEDSWAB";
if (code == V3OrderableDrugForm.WAFER)
return "WAFER";
return "?";
}
public String toSystem(V3OrderableDrugForm code) {
return code.getSystem();
}
}
| fhir-ru/fhir-ru | implementations/java/org.hl7.fhir.dstu2016may/src/org/hl7/fhir/dstu2016may/model/codesystems/V3OrderableDrugFormEnumFactory.java |
213,481 | package xt9.deepmoblearning.common.mobmetas;
import net.minecraft.world.World;
import net.minecraft.entity.monster.EntityCaveSpider;
import net.minecraft.entity.monster.EntitySpider;
import net.minecraft.item.Item;
/**
* Created by xt9 on 2017-06-12.
*/
public class SpiderMeta extends MobMetaData {
static String[] mobTrivia = {"Nocturnal douchebags, beware", "Drops strands of string for some reason.."};
SpiderMeta(String key, String name, String pluralName, int numberOfHearts, int interfaceScale, int interfaceOffsetX, int interfaceOffsetY, Item livingMatter, Item pristineMatter) {
super(key, name, pluralName, numberOfHearts, interfaceScale, interfaceOffsetX, interfaceOffsetY, livingMatter, pristineMatter, mobTrivia);
}
public EntitySpider getEntity(World world) {
return new EntitySpider(world);
}
public EntitySpider getExtraEntity(World world) {
return new EntityCaveSpider(world);
}
public int getExtraInterfaceOffsetX() {
return 5;
}
public int getExtraInterfaceOffsetY() {
return -25;
}
}
| xt9/DeepMobLearning | src/main/java/xt9/deepmoblearning/common/mobmetas/SpiderMeta.java |
213,482 | /**
* Program Development in Functional and Object-oriented languages.
*
* [email protected]
* [email protected]
*
* KTH 2013
*/
package com.douchedata.parallel;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveAction;
public class QuicksortAction extends RecursiveAction implements TestStrategy {
private static final long serialVersionUID = 1L;
private static int THRESHOLD = 60_000;
private float[] array;
private int left;
private int right;
private int pivotIndex;
public QuicksortAction(float[] array, int left, int right) {
super();
this.array = array;
this.left = left;
this.right = right;
this.pivotIndex = left + (right-left)/2;
}
public void execute(float[] array, int left, int right) {
ForkJoinPool pool = new ForkJoinPool();
QuicksortAction task = new QuicksortAction(array, 0, array.length-1);
pool.invoke(task);
}
public void compute() {
if (right - left < THRESHOLD) {
// Around and below this point, there's no point in forking anymore
Quicksort.sort(array, left, right);
} else if (left < right) {
int pivotNewIndex = partition(array, left, right, pivotIndex);
QuicksortAction worker1 = new QuicksortAction(array, left, pivotNewIndex - 1);
QuicksortAction worker2 = new QuicksortAction(array, pivotNewIndex + 1, right);
// fork 1, compute 2, join 1
invokeAll(worker1, worker2);
}
}
private int partition(float[] array, int left, int right, int pivotIndex) {
float pivotValue = array[pivotIndex];
swap(array, pivotIndex, right);
int storeIndex = left;
for (int i = left; i < right; i += 1) {
if (array[i] < pivotValue) {
swap(array, i, storeIndex);
storeIndex += 1;
}
}
swap(array, storeIndex, right);
return storeIndex;
}
private void swap(float[] array, final int a, final int b) {
final float tmp = array[a];
array[a] = array[b];
array[b] = tmp;
}
}
| pinne/parallel_sort | com/douchedata/parallel/QuicksortAction.java |
213,483 | package com.accenture.dal.entity.vehicules;
import com.accenture.dal.entity.Permis;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "CampingsCars")
public class CampingCar extends Vehicule {
@NotNull
private int nombrePlaces;
@NotNull
@Enumerated(EnumType.STRING)
private TypeEnergie typeEnergie;
@NotNull
@Enumerated(EnumType.STRING)
private TypeTransmission transmission;
private boolean climatisation;
@NotNull
private int poidsPATC;
@NotNull
private int hauteur;
@NotNull
private int nombreCouchages;
private boolean equipementCuisine;
private boolean lingeLit;
private boolean equipementRefregirateur;
private boolean equipementDouche;
@NotNull
@Enumerated(EnumType.STRING)
TypeCampingCar typeCampingCar;
@Enumerated(EnumType.STRING)
Permis permisNecessaire;
public CampingCar(String marque, String modele, String couleur, double tarifJournalier, int kilometrage, boolean actif, boolean retireDuParc, int nombrePlaces, TypeEnergie typeEnergie, TypeTransmission transmission, boolean climatisation, int poidsPATC, int hauteur, int nombreCouchages, boolean equipementCuisine, boolean lingeLit, boolean equipementRefregirateur, boolean equipementDouche, TypeCampingCar typeCampingCar) {
super(marque, modele, couleur, tarifJournalier, kilometrage, actif, retireDuParc);
this.nombrePlaces = nombrePlaces;
this.typeEnergie = typeEnergie;
this.transmission = transmission;
this.climatisation = climatisation;
this.poidsPATC = poidsPATC;
this.hauteur = hauteur;
this.nombreCouchages = nombreCouchages;
this.equipementCuisine = equipementCuisine;
this.lingeLit = lingeLit;
this.equipementRefregirateur = equipementRefregirateur;
this.equipementDouche = equipementDouche;
this.typeCampingCar = typeCampingCar;
}
}
| ClementCarpot/FullStack-Location-Voiture | Backend/src/main/java/com/accenture/dal/entity/vehicules/CampingCar.java |
213,484 | package ca.rcherara.services.vehicle;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import ca.rcherara.services.vehicle.model.EngineType;
import ca.rcherara.services.vehicle.model.Language;
import ca.rcherara.services.vehicle.model.Model;
import ca.rcherara.services.vehicle.model.TyreType;
import ca.rcherara.services.vehicle.model.Vehicle;
import ca.rcherara.services.vehicle.model.VehicleTranslation;
import ca.rcherara.services.vehicle.repository.LanguageRepository;
import ca.rcherara.services.vehicle.repository.VehicleRepository;
import ca.rcherara.services.vehicle.repository.VehicleTranslationRepository;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import org.springframework.context.annotation.PropertySource;
@EnableSwagger2
@SpringBootApplication
@PropertySource("classpath:build.yml")
@ComponentScan(basePackages = "ca.rcherara.services.vehicle")
public class VehicleApplication {
public static void main(String[] args) {
SpringApplication.run(VehicleApplication.class, args);
}
@Bean
public CommandLineRunner demo(VehicleRepository vehicleRepository, VehicleTranslationRepository vehicleTranslationRepository, LanguageRepository languageRepository) {
return (args) -> {
// save a few vehicles
// Vehicle(String name,String plate, int year, Model model, String vin, String position, String location, String tag, String type, String brand, double mileage, String color, EngineType engine, TyreType tyre, double price,int numOfWindows, Boolean AWD, Double cost, Boolean electric ) {
vehicleRepository.save(new Vehicle( "Mazda3", "SDE34422", 2017, Model.SPORTS,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 23333.00, false) );
vehicleRepository.save(new Vehicle( "Mazda CX5", "SDE34422", 2020, Model.SUV,"SAD23SD4DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 40000.00,6, true, 3500.00, false) );
vehicleRepository.save(new Vehicle( "Mazda6", "SDE34422", 2020, Model.SPORTS,"SAD233DSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 32000.00,6, true, 256300.00, false) );
vehicleRepository.save(new Vehicle( "Mazda CX-3" , "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 23333.00, false) );
vehicleRepository.save(new Vehicle( "Mazda CX-30", "SDE34422", 2018, Model.SPORTS,"SAD23SSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mazda3 Sport", "SDE34422", 2019, Model.SPORTS,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz GLA", "SDE34422", 2019, Model.SUV,"SAD13SDSHDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Mazda Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe C", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe G", "SDE34422", 2017, Model.SUV,"SAD27SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe E", "SDE34422", 2012, Model.SUV,"SAD23SD7SDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz GLC", "SDE34422", 2019, Model.SUV,"SAS23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Coupé GLE", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe A", "SDE34422", 2016, Model.SUV,"SAS23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe B", "SDE34422", 2013, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Classe S", "SDE34422", 2011, Model.SUV,"SAG23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz GLS", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz GLB", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 2383.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz CLS", "SDE34422", 2018, Model.SUV,"SAD23SD11DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz GLE", "SDE34422", 2015, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz SLC", "SDE34422", 2014, Model.SUV,"SAD23SD22DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz AMG GT", "SDE34422", 2019, Model.SUV,"SAD27SD66DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Coupé GLC", "SDE34422", 2019, Model.SUV,"SAD238DSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Metris Combi", "SDE34422", 2019, Model.SUV,"SAD23S77DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Mercedes-Benz Sprinter Équipage", "SDE34422", 2019, Model.SUV,"SAD23SD11DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Corolla", "SDE34422", 2019, Model.SUV,"SAD13SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Daimler AG",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota RAV4", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "sfasfa",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota C-HR", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Camry", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Prius", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota 86", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Tacoma", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Prius C", "SDE34422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Highlander", "SDE33322", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Sienna", "SDE31122", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Sequoia", "SDE00422", 2019, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Camry Hybride", "SDE35522", 2015, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota 4Runner", "SDE36622", 2015, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Mirai", "SDE37722", 2018, Model.SUV,"SAD234DLSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Tundra", "SDE38822", 2018, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Camry Hybride", "SDE39922", 2017, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota RAV4 Hybride", "SDE34411", 2020, Model.SUV,"SAD23S1SSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Highlander Hybride", "SDE34433", 2017, Model.SUV,"SAD23SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Corolla Hatchback", "SDE34444", 2016, Model.SUV,"SAD431D7SDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Yaris Berline", "SDE34455", 2014, Model.SUV,"SAD61SDSSDSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.save(new Vehicle( "Toyota Yaris", "SDE34466", 2016, Model.SUV,"SAD08SDS6DSS","Alger","Rue Didouche Mourad","WSDLKALK", "Type", "Toyota Motor Corp.",23434,"Red",EngineType.MEDIUM,TyreType.SUMMER, 23333.00,6, true, 12312312.00, false) );
vehicleRepository.findAll().forEach(System.out::println);
languageRepository.save(new Language("en","English" , "English", "date_format", "Algerian Dinard" ));
languageRepository.save(new Language("ar","Arabic" , "العربية", "date_format", "دينار جزائري" ));
languageRepository.save(new Language("fr","French" , "Français","date_format", "Dinard Algérien" ));
languageRepository.save(new Language("de", "German" ,"Deutsche","date_format", "Algerischer Dinar" ));
languageRepository.save(new Language("it", "Italian" ,"Italiano","date_format", "Dinaro Algerino" ));
languageRepository.save(new Language("es", "Spanish" ,"Hispana", "date_format", "Alĝeria dinaro" ));
languageRepository.findAll().forEach(System.out::println);
// VehicleTranslation(long vehicleId,String languageId,String name_translation,String plate_translation,String location_translation, String type_translation, String brand_translation, String color_translation ) {
vehicleTranslationRepository.save(new VehicleTranslation(1,"en","Mazda3","Alger", "type_translation", "Mazda Motor Corp.", "Red"));
vehicleTranslationRepository.save(new VehicleTranslation(1,"ar","مازدا 3","location_translation", "نوع السيارة", "مازدا موتور كورب", "أحمر"));
vehicleTranslationRepository.save(new VehicleTranslation(1,"fr","Mazda3","الجزائر", "type_translation", "Mazda Motor Corp.", "Rouge"));
vehicleTranslationRepository.save(new VehicleTranslation(2,"en","Mazda CX5","Alger", "type_translation", "Mazda Motor Corp.", "Red"));
vehicleTranslationRepository.save(new VehicleTranslation(2,"ar","مازدا سي اكس 5","location_translation", "نوع السيارة", "مازدا موتور كورب", "أحمر"));
vehicleTranslationRepository.save(new VehicleTranslation(3,"fr","Mazda CX5","الجزائر", "type_translation", "Mazda Motor Corp.", "Rouge"));
vehicleTranslationRepository.findAll().forEach(System.out::println);
};
}
} | rcherara/microservice-architecture | vehicle-service/src/main/java/ca/rcherara/services/vehicle/VehicleApplication.java |
213,485 | package com.songoda.epiclevels.listeners;
import com.songoda.core.utils.TextUtils;
import com.songoda.epiclevels.EpicLevels;
import com.songoda.epiclevels.killstreaks.Killstreak;
import com.songoda.epiclevels.players.EPlayer;
import com.songoda.epiclevels.settings.Settings;
import com.songoda.epiclevels.utils.Methods;
import com.songoda.epiclevels.utils.Rewards;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import java.util.stream.Collectors;
public class DeathListeners implements Listener {
private final EpicLevels plugin;
public DeathListeners(EpicLevels plugin) {
this.plugin = plugin;
}
@EventHandler
public void onAttack(EntityDamageByEntityEvent event) {
if (!(event.getDamager() instanceof Player) || !(event.getEntity() instanceof Player)) return;
EPlayer damaged = plugin.getPlayerManager().getPlayer(event.getEntity().getUniqueId()); // A very sensitive person with a troubling past.
EPlayer damager = plugin.getPlayerManager().getPlayer(event.getDamager().getUniqueId()); // The douche who ruined the guys life.
if (Settings.BLACKLISTED_WORLDS.getStringList().stream()
.anyMatch(worldStr -> worldStr.equalsIgnoreCase(event.getEntity().getWorld().getName())))
return;
if (damager.getLevel() < Settings.START_PVP_LEVEL.getInt()) {
plugin.getLocale().getMessage("event.pvp.deny").sendPrefixedMessage(damager.getPlayer().getPlayer());
event.setCancelled(true);
} else if (damaged.getLevel() < Settings.START_PVP_LEVEL.getInt()) {
plugin.getLocale().getMessage("event.pvp.denythem").sendPrefixedMessage(damager.getPlayer().getPlayer());
event.setCancelled(true);
}
}
@EventHandler
public void onDeath(EntityDeathEvent event) {
if (event.getEntity().getKiller() == null) return;
if (Settings.BLACKLISTED_WORLDS.getStringList().stream()
.anyMatch(worldStr -> worldStr.equalsIgnoreCase(event.getEntity().getWorld().getName())))
return;
double expPlayer = Settings.EXP_PLAYER.getDouble();
Player killer = event.getEntity().getKiller();
EPlayer eKiller = plugin.getPlayerManager().getPlayer(killer);
if (event.getEntity() instanceof Player) {
Player killed = (Player) event.getEntity();
EPlayer eKilled = plugin.getPlayerManager().getPlayer(killed);
if (killer == killed) return;
if (!eKiller.canGainExperience(killed.getUniqueId()) && Settings.ANTI_GRINDER.getBoolean()) {
if (Settings.GRINDER_ALERT.getBoolean())
plugin.getLocale().getMessage("event.antigrinder.trigger")
.processPlaceholder("killed", killed.getPlayer().getName())
.sendPrefixedMessage(killer);
return;
}
eKilled.addDeath();
double killedExpBefore = eKilled.getExperience();
double killedExpAfter = eKilled.addExperience(0L - Settings.EXP_DEATH.getDouble());
if (Settings.SEND_DEATH_MESSAGE.getBoolean())
plugin.getLocale().getMessage("event.player.death")
.processPlaceholder("name", ChatColor.stripColor(killer.getName()))
.processPlaceholder("hearts", (int) Math.floor(killer.getHealth()))
.processPlaceholder("exp", Methods.formatDecimal(-(killedExpAfter - killedExpBefore))).sendPrefixedMessage(killed);
if (Settings.SEND_BROADCAST_DEATH_MESSAGE.getBoolean())
for (Player pl : Bukkit.getOnlinePlayers().stream().filter(p -> p != killer && p != killed).collect(Collectors.toList()))
plugin.getLocale().getMessage("event.player.death.broadcast")
.processPlaceholder("killer", killer.getName())
.processPlaceholder("killed", killed.getName())
.processPlaceholder("hearts", (int) Math.floor(killer.getHealth()))
.processPlaceholder("exp", killer.getName())
.sendPrefixedMessage(pl);
if (Settings.SEND_KILLSTREAK_BROKEN_MESSAGE.getBoolean() && eKilled.getKillstreak() >= Settings.SEND_KILLSTREAK_ALERTS_AFTER.getInt()) {
plugin.getLocale().getMessage("event.killstreak.broken")
.processPlaceholder("streak", eKilled.getKillstreak())
.sendPrefixedMessage(killed);
plugin.getLocale().getMessage("event.killstreak.broke")
.processPlaceholder("killed", killed.getName())
.processPlaceholder("streak", eKilled.getKillstreak())
.sendPrefixedMessage(killer);
}
if (Settings.SEND_BROADCAST_BROKEN_KILLSTREAK.getBoolean() && eKilled.getKillstreak() >= Settings.SEND_KILLSTREAK_ALERTS_AFTER.getInt())
for (Player pl : Bukkit.getOnlinePlayers().stream().filter(p -> p != killer && p != killed).collect(Collectors.toList()))
plugin.getLocale().getMessage("event.killstreak.brokenannounce")
.processPlaceholder("player", killer.getName())
.processPlaceholder("killed", killed.getName())
.processPlaceholder("streak", eKilled.getKillstreak())
.sendPrefixedMessage(pl);
eKilled.resetKillstreak();
eKiller.increaseKillstreak();
eKiller.addPlayerKill(killed.getUniqueId());
plugin.getDataManager().updatePlayer(eKiller);
plugin.getDataManager().updatePlayer(eKilled);
double playerExpBefore = eKiller.getExperience();
double playerExpAfter = eKiller.addExperience(expPlayer);
if (Settings.SEND_PLAYER_KILL_MESSAGE.getBoolean())
plugin.getLocale().getMessage("event.player.killed")
.processPlaceholder("name", ChatColor.stripColor(killed.getDisplayName()))
.processPlaceholder("hearts", (int) Math.floor(killer.getHealth()))
.processPlaceholder("exp", Methods.formatDecimal(playerExpAfter - playerExpBefore))
.sendPrefixedMessage(killer);
int every = Settings.RUN_KILLSTREAK_EVERY.getInt();
if (every != 0 && eKiller.getKillstreak() % every == 0) {
Killstreak def = plugin.getKillstreakManager().getKillstreak(-1);
if (def != null)
Rewards.run(def.getRewards(), killer, eKiller.getKillstreak(), true);
if (plugin.getKillstreakManager().getKillstreak(eKiller.getKillstreak()) == null) return;
Rewards.run(plugin.getKillstreakManager().getKillstreak(eKiller.getKillstreak()).getRewards(), killer, eKiller.getKillstreak(), true);
}
} else {
eKiller.addMobKill();
double mobExperience = plugin.getEntityManager().getExperience(event.getEntityType());
double playerExpBefore = eKiller.getExperience();
double playerExpAfter = eKiller.addExperience(mobExperience);
plugin.getDataManager().updatePlayer(eKiller);
if (Settings.SEND_MOB_KILL_MESSAGE.getBoolean()) {
plugin.getLocale().getMessage("event.mob.killed")
.processPlaceholder("type", TextUtils.formatText(event.getEntity().getType().name(), true))
.processPlaceholder("exp", Methods.formatDecimal(playerExpAfter - playerExpBefore))
.sendPrefixedMessage(killer);
}
}
}
}
| CyberFlameGO/EpicLevels | src/main/java/com/songoda/epiclevels/listeners/DeathListeners.java |
213,486 | package org.hl7.fhir.instance.model.valuesets;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
import org.hl7.fhir.instance.model.EnumFactory;
public class V3RouteOfAdministrationEnumFactory implements EnumFactory<V3RouteOfAdministration> {
public V3RouteOfAdministration fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("_RouteByMethod".equals(codeString))
return V3RouteOfAdministration._ROUTEBYMETHOD;
if ("SOAK".equals(codeString))
return V3RouteOfAdministration.SOAK;
if ("SHAMPOO".equals(codeString))
return V3RouteOfAdministration.SHAMPOO;
if ("TRNSLING".equals(codeString))
return V3RouteOfAdministration.TRNSLING;
if ("PO".equals(codeString))
return V3RouteOfAdministration.PO;
if ("GARGLE".equals(codeString))
return V3RouteOfAdministration.GARGLE;
if ("SUCK".equals(codeString))
return V3RouteOfAdministration.SUCK;
if ("_Chew".equals(codeString))
return V3RouteOfAdministration._CHEW;
if ("CHEW".equals(codeString))
return V3RouteOfAdministration.CHEW;
if ("_Diffusion".equals(codeString))
return V3RouteOfAdministration._DIFFUSION;
if ("EXTCORPDIF".equals(codeString))
return V3RouteOfAdministration.EXTCORPDIF;
if ("HEMODIFF".equals(codeString))
return V3RouteOfAdministration.HEMODIFF;
if ("TRNSDERMD".equals(codeString))
return V3RouteOfAdministration.TRNSDERMD;
if ("_Dissolve".equals(codeString))
return V3RouteOfAdministration._DISSOLVE;
if ("DISSOLVE".equals(codeString))
return V3RouteOfAdministration.DISSOLVE;
if ("SL".equals(codeString))
return V3RouteOfAdministration.SL;
if ("_Douche".equals(codeString))
return V3RouteOfAdministration._DOUCHE;
if ("DOUCHE".equals(codeString))
return V3RouteOfAdministration.DOUCHE;
if ("_ElectroOsmosisRoute".equals(codeString))
return V3RouteOfAdministration._ELECTROOSMOSISROUTE;
if ("ELECTOSMOS".equals(codeString))
return V3RouteOfAdministration.ELECTOSMOS;
if ("_Enema".equals(codeString))
return V3RouteOfAdministration._ENEMA;
if ("ENEMA".equals(codeString))
return V3RouteOfAdministration.ENEMA;
if ("RETENEMA".equals(codeString))
return V3RouteOfAdministration.RETENEMA;
if ("_Flush".equals(codeString))
return V3RouteOfAdministration._FLUSH;
if ("IVFLUSH".equals(codeString))
return V3RouteOfAdministration.IVFLUSH;
if ("_Implantation".equals(codeString))
return V3RouteOfAdministration._IMPLANTATION;
if ("IDIMPLNT".equals(codeString))
return V3RouteOfAdministration.IDIMPLNT;
if ("IVITIMPLNT".equals(codeString))
return V3RouteOfAdministration.IVITIMPLNT;
if ("SQIMPLNT".equals(codeString))
return V3RouteOfAdministration.SQIMPLNT;
if ("_Infusion".equals(codeString))
return V3RouteOfAdministration._INFUSION;
if ("EPI".equals(codeString))
return V3RouteOfAdministration.EPI;
if ("IA".equals(codeString))
return V3RouteOfAdministration.IA;
if ("IC".equals(codeString))
return V3RouteOfAdministration.IC;
if ("ICOR".equals(codeString))
return V3RouteOfAdministration.ICOR;
if ("IOSSC".equals(codeString))
return V3RouteOfAdministration.IOSSC;
if ("IT".equals(codeString))
return V3RouteOfAdministration.IT;
if ("IV".equals(codeString))
return V3RouteOfAdministration.IV;
if ("IVC".equals(codeString))
return V3RouteOfAdministration.IVC;
if ("IVCC".equals(codeString))
return V3RouteOfAdministration.IVCC;
if ("IVCI".equals(codeString))
return V3RouteOfAdministration.IVCI;
if ("PCA".equals(codeString))
return V3RouteOfAdministration.PCA;
if ("IVASCINFUS".equals(codeString))
return V3RouteOfAdministration.IVASCINFUS;
if ("SQINFUS".equals(codeString))
return V3RouteOfAdministration.SQINFUS;
if ("_Inhalation".equals(codeString))
return V3RouteOfAdministration._INHALATION;
if ("IPINHL".equals(codeString))
return V3RouteOfAdministration.IPINHL;
if ("ORIFINHL".equals(codeString))
return V3RouteOfAdministration.ORIFINHL;
if ("REBREATH".equals(codeString))
return V3RouteOfAdministration.REBREATH;
if ("IPPB".equals(codeString))
return V3RouteOfAdministration.IPPB;
if ("NASINHL".equals(codeString))
return V3RouteOfAdministration.NASINHL;
if ("NASINHLC".equals(codeString))
return V3RouteOfAdministration.NASINHLC;
if ("NEB".equals(codeString))
return V3RouteOfAdministration.NEB;
if ("NASNEB".equals(codeString))
return V3RouteOfAdministration.NASNEB;
if ("ORNEB".equals(codeString))
return V3RouteOfAdministration.ORNEB;
if ("TRACH".equals(codeString))
return V3RouteOfAdministration.TRACH;
if ("VENT".equals(codeString))
return V3RouteOfAdministration.VENT;
if ("VENTMASK".equals(codeString))
return V3RouteOfAdministration.VENTMASK;
if ("_Injection".equals(codeString))
return V3RouteOfAdministration._INJECTION;
if ("AMNINJ".equals(codeString))
return V3RouteOfAdministration.AMNINJ;
if ("BILINJ".equals(codeString))
return V3RouteOfAdministration.BILINJ;
if ("CHOLINJ".equals(codeString))
return V3RouteOfAdministration.CHOLINJ;
if ("CERVINJ".equals(codeString))
return V3RouteOfAdministration.CERVINJ;
if ("EPIDURINJ".equals(codeString))
return V3RouteOfAdministration.EPIDURINJ;
if ("EPIINJ".equals(codeString))
return V3RouteOfAdministration.EPIINJ;
if ("EPINJSP".equals(codeString))
return V3RouteOfAdministration.EPINJSP;
if ("EXTRAMNINJ".equals(codeString))
return V3RouteOfAdministration.EXTRAMNINJ;
if ("EXTCORPINJ".equals(codeString))
return V3RouteOfAdministration.EXTCORPINJ;
if ("GBINJ".equals(codeString))
return V3RouteOfAdministration.GBINJ;
if ("GINGINJ".equals(codeString))
return V3RouteOfAdministration.GINGINJ;
if ("BLADINJ".equals(codeString))
return V3RouteOfAdministration.BLADINJ;
if ("ENDOSININJ".equals(codeString))
return V3RouteOfAdministration.ENDOSININJ;
if ("HEMOPORT".equals(codeString))
return V3RouteOfAdministration.HEMOPORT;
if ("IABDINJ".equals(codeString))
return V3RouteOfAdministration.IABDINJ;
if ("IAINJ".equals(codeString))
return V3RouteOfAdministration.IAINJ;
if ("IAINJP".equals(codeString))
return V3RouteOfAdministration.IAINJP;
if ("IAINJSP".equals(codeString))
return V3RouteOfAdministration.IAINJSP;
if ("IARTINJ".equals(codeString))
return V3RouteOfAdministration.IARTINJ;
if ("IBURSINJ".equals(codeString))
return V3RouteOfAdministration.IBURSINJ;
if ("ICARDINJ".equals(codeString))
return V3RouteOfAdministration.ICARDINJ;
if ("ICARDINJRP".equals(codeString))
return V3RouteOfAdministration.ICARDINJRP;
if ("ICARDINJSP".equals(codeString))
return V3RouteOfAdministration.ICARDINJSP;
if ("ICARINJP".equals(codeString))
return V3RouteOfAdministration.ICARINJP;
if ("ICARTINJ".equals(codeString))
return V3RouteOfAdministration.ICARTINJ;
if ("ICAUDINJ".equals(codeString))
return V3RouteOfAdministration.ICAUDINJ;
if ("ICAVINJ".equals(codeString))
return V3RouteOfAdministration.ICAVINJ;
if ("ICAVITINJ".equals(codeString))
return V3RouteOfAdministration.ICAVITINJ;
if ("ICEREBINJ".equals(codeString))
return V3RouteOfAdministration.ICEREBINJ;
if ("ICISTERNINJ".equals(codeString))
return V3RouteOfAdministration.ICISTERNINJ;
if ("ICORONINJ".equals(codeString))
return V3RouteOfAdministration.ICORONINJ;
if ("ICORONINJP".equals(codeString))
return V3RouteOfAdministration.ICORONINJP;
if ("ICORPCAVINJ".equals(codeString))
return V3RouteOfAdministration.ICORPCAVINJ;
if ("IDINJ".equals(codeString))
return V3RouteOfAdministration.IDINJ;
if ("IDISCINJ".equals(codeString))
return V3RouteOfAdministration.IDISCINJ;
if ("IDUCTINJ".equals(codeString))
return V3RouteOfAdministration.IDUCTINJ;
if ("IDURINJ".equals(codeString))
return V3RouteOfAdministration.IDURINJ;
if ("IEPIDINJ".equals(codeString))
return V3RouteOfAdministration.IEPIDINJ;
if ("IEPITHINJ".equals(codeString))
return V3RouteOfAdministration.IEPITHINJ;
if ("ILESINJ".equals(codeString))
return V3RouteOfAdministration.ILESINJ;
if ("ILUMINJ".equals(codeString))
return V3RouteOfAdministration.ILUMINJ;
if ("ILYMPJINJ".equals(codeString))
return V3RouteOfAdministration.ILYMPJINJ;
if ("IM".equals(codeString))
return V3RouteOfAdministration.IM;
if ("IMD".equals(codeString))
return V3RouteOfAdministration.IMD;
if ("IMZ".equals(codeString))
return V3RouteOfAdministration.IMZ;
if ("IMEDULINJ".equals(codeString))
return V3RouteOfAdministration.IMEDULINJ;
if ("INTERMENINJ".equals(codeString))
return V3RouteOfAdministration.INTERMENINJ;
if ("INTERSTITINJ".equals(codeString))
return V3RouteOfAdministration.INTERSTITINJ;
if ("IOINJ".equals(codeString))
return V3RouteOfAdministration.IOINJ;
if ("IOSSINJ".equals(codeString))
return V3RouteOfAdministration.IOSSINJ;
if ("IOVARINJ".equals(codeString))
return V3RouteOfAdministration.IOVARINJ;
if ("IPCARDINJ".equals(codeString))
return V3RouteOfAdministration.IPCARDINJ;
if ("IPERINJ".equals(codeString))
return V3RouteOfAdministration.IPERINJ;
if ("IPINJ".equals(codeString))
return V3RouteOfAdministration.IPINJ;
if ("IPLRINJ".equals(codeString))
return V3RouteOfAdministration.IPLRINJ;
if ("IPROSTINJ".equals(codeString))
return V3RouteOfAdministration.IPROSTINJ;
if ("IPUMPINJ".equals(codeString))
return V3RouteOfAdministration.IPUMPINJ;
if ("ISINJ".equals(codeString))
return V3RouteOfAdministration.ISINJ;
if ("ISTERINJ".equals(codeString))
return V3RouteOfAdministration.ISTERINJ;
if ("ISYNINJ".equals(codeString))
return V3RouteOfAdministration.ISYNINJ;
if ("ITENDINJ".equals(codeString))
return V3RouteOfAdministration.ITENDINJ;
if ("ITESTINJ".equals(codeString))
return V3RouteOfAdministration.ITESTINJ;
if ("ITHORINJ".equals(codeString))
return V3RouteOfAdministration.ITHORINJ;
if ("ITINJ".equals(codeString))
return V3RouteOfAdministration.ITINJ;
if ("ITUBINJ".equals(codeString))
return V3RouteOfAdministration.ITUBINJ;
if ("ITUMINJ".equals(codeString))
return V3RouteOfAdministration.ITUMINJ;
if ("ITYMPINJ".equals(codeString))
return V3RouteOfAdministration.ITYMPINJ;
if ("IUINJ".equals(codeString))
return V3RouteOfAdministration.IUINJ;
if ("IUINJC".equals(codeString))
return V3RouteOfAdministration.IUINJC;
if ("IURETINJ".equals(codeString))
return V3RouteOfAdministration.IURETINJ;
if ("IVASCINJ".equals(codeString))
return V3RouteOfAdministration.IVASCINJ;
if ("IVENTINJ".equals(codeString))
return V3RouteOfAdministration.IVENTINJ;
if ("IVESINJ".equals(codeString))
return V3RouteOfAdministration.IVESINJ;
if ("IVINJ".equals(codeString))
return V3RouteOfAdministration.IVINJ;
if ("IVINJBOL".equals(codeString))
return V3RouteOfAdministration.IVINJBOL;
if ("IVPUSH".equals(codeString))
return V3RouteOfAdministration.IVPUSH;
if ("IVRPUSH".equals(codeString))
return V3RouteOfAdministration.IVRPUSH;
if ("IVSPUSH".equals(codeString))
return V3RouteOfAdministration.IVSPUSH;
if ("IVITINJ".equals(codeString))
return V3RouteOfAdministration.IVITINJ;
if ("PAINJ".equals(codeString))
return V3RouteOfAdministration.PAINJ;
if ("PARENTINJ".equals(codeString))
return V3RouteOfAdministration.PARENTINJ;
if ("PDONTINJ".equals(codeString))
return V3RouteOfAdministration.PDONTINJ;
if ("PDPINJ".equals(codeString))
return V3RouteOfAdministration.PDPINJ;
if ("PDURINJ".equals(codeString))
return V3RouteOfAdministration.PDURINJ;
if ("PNINJ".equals(codeString))
return V3RouteOfAdministration.PNINJ;
if ("PNSINJ".equals(codeString))
return V3RouteOfAdministration.PNSINJ;
if ("RBINJ".equals(codeString))
return V3RouteOfAdministration.RBINJ;
if ("SCINJ".equals(codeString))
return V3RouteOfAdministration.SCINJ;
if ("SLESINJ".equals(codeString))
return V3RouteOfAdministration.SLESINJ;
if ("SOFTISINJ".equals(codeString))
return V3RouteOfAdministration.SOFTISINJ;
if ("SQ".equals(codeString))
return V3RouteOfAdministration.SQ;
if ("SUBARACHINJ".equals(codeString))
return V3RouteOfAdministration.SUBARACHINJ;
if ("SUBMUCINJ".equals(codeString))
return V3RouteOfAdministration.SUBMUCINJ;
if ("TRPLACINJ".equals(codeString))
return V3RouteOfAdministration.TRPLACINJ;
if ("TRTRACHINJ".equals(codeString))
return V3RouteOfAdministration.TRTRACHINJ;
if ("URETHINJ".equals(codeString))
return V3RouteOfAdministration.URETHINJ;
if ("URETINJ".equals(codeString))
return V3RouteOfAdministration.URETINJ;
if ("_Insertion".equals(codeString))
return V3RouteOfAdministration._INSERTION;
if ("CERVINS".equals(codeString))
return V3RouteOfAdministration.CERVINS;
if ("IOSURGINS".equals(codeString))
return V3RouteOfAdministration.IOSURGINS;
if ("IU".equals(codeString))
return V3RouteOfAdministration.IU;
if ("LPINS".equals(codeString))
return V3RouteOfAdministration.LPINS;
if ("PR".equals(codeString))
return V3RouteOfAdministration.PR;
if ("SQSURGINS".equals(codeString))
return V3RouteOfAdministration.SQSURGINS;
if ("URETHINS".equals(codeString))
return V3RouteOfAdministration.URETHINS;
if ("VAGINSI".equals(codeString))
return V3RouteOfAdministration.VAGINSI;
if ("_Instillation".equals(codeString))
return V3RouteOfAdministration._INSTILLATION;
if ("CECINSTL".equals(codeString))
return V3RouteOfAdministration.CECINSTL;
if ("EFT".equals(codeString))
return V3RouteOfAdministration.EFT;
if ("ENTINSTL".equals(codeString))
return V3RouteOfAdministration.ENTINSTL;
if ("GT".equals(codeString))
return V3RouteOfAdministration.GT;
if ("NGT".equals(codeString))
return V3RouteOfAdministration.NGT;
if ("OGT".equals(codeString))
return V3RouteOfAdministration.OGT;
if ("BLADINSTL".equals(codeString))
return V3RouteOfAdministration.BLADINSTL;
if ("CAPDINSTL".equals(codeString))
return V3RouteOfAdministration.CAPDINSTL;
if ("CTINSTL".equals(codeString))
return V3RouteOfAdministration.CTINSTL;
if ("ETINSTL".equals(codeString))
return V3RouteOfAdministration.ETINSTL;
if ("GJT".equals(codeString))
return V3RouteOfAdministration.GJT;
if ("IBRONCHINSTIL".equals(codeString))
return V3RouteOfAdministration.IBRONCHINSTIL;
if ("IDUODINSTIL".equals(codeString))
return V3RouteOfAdministration.IDUODINSTIL;
if ("IESOPHINSTIL".equals(codeString))
return V3RouteOfAdministration.IESOPHINSTIL;
if ("IGASTINSTIL".equals(codeString))
return V3RouteOfAdministration.IGASTINSTIL;
if ("IILEALINJ".equals(codeString))
return V3RouteOfAdministration.IILEALINJ;
if ("IOINSTL".equals(codeString))
return V3RouteOfAdministration.IOINSTL;
if ("ISININSTIL".equals(codeString))
return V3RouteOfAdministration.ISININSTIL;
if ("ITRACHINSTIL".equals(codeString))
return V3RouteOfAdministration.ITRACHINSTIL;
if ("IUINSTL".equals(codeString))
return V3RouteOfAdministration.IUINSTL;
if ("JJTINSTL".equals(codeString))
return V3RouteOfAdministration.JJTINSTL;
if ("LARYNGINSTIL".equals(codeString))
return V3RouteOfAdministration.LARYNGINSTIL;
if ("NASALINSTIL".equals(codeString))
return V3RouteOfAdministration.NASALINSTIL;
if ("NASOGASINSTIL".equals(codeString))
return V3RouteOfAdministration.NASOGASINSTIL;
if ("NTT".equals(codeString))
return V3RouteOfAdministration.NTT;
if ("OJJ".equals(codeString))
return V3RouteOfAdministration.OJJ;
if ("OT".equals(codeString))
return V3RouteOfAdministration.OT;
if ("PDPINSTL".equals(codeString))
return V3RouteOfAdministration.PDPINSTL;
if ("PNSINSTL".equals(codeString))
return V3RouteOfAdministration.PNSINSTL;
if ("RECINSTL".equals(codeString))
return V3RouteOfAdministration.RECINSTL;
if ("RECTINSTL".equals(codeString))
return V3RouteOfAdministration.RECTINSTL;
if ("SININSTIL".equals(codeString))
return V3RouteOfAdministration.SININSTIL;
if ("SOFTISINSTIL".equals(codeString))
return V3RouteOfAdministration.SOFTISINSTIL;
if ("TRACHINSTL".equals(codeString))
return V3RouteOfAdministration.TRACHINSTL;
if ("TRTYMPINSTIL".equals(codeString))
return V3RouteOfAdministration.TRTYMPINSTIL;
if ("URETHINSTL".equals(codeString))
return V3RouteOfAdministration.URETHINSTL;
if ("_IontophoresisRoute".equals(codeString))
return V3RouteOfAdministration._IONTOPHORESISROUTE;
if ("IONTO".equals(codeString))
return V3RouteOfAdministration.IONTO;
if ("_Irrigation".equals(codeString))
return V3RouteOfAdministration._IRRIGATION;
if ("GUIRR".equals(codeString))
return V3RouteOfAdministration.GUIRR;
if ("IGASTIRR".equals(codeString))
return V3RouteOfAdministration.IGASTIRR;
if ("ILESIRR".equals(codeString))
return V3RouteOfAdministration.ILESIRR;
if ("IOIRR".equals(codeString))
return V3RouteOfAdministration.IOIRR;
if ("BLADIRR".equals(codeString))
return V3RouteOfAdministration.BLADIRR;
if ("BLADIRRC".equals(codeString))
return V3RouteOfAdministration.BLADIRRC;
if ("BLADIRRT".equals(codeString))
return V3RouteOfAdministration.BLADIRRT;
if ("RECIRR".equals(codeString))
return V3RouteOfAdministration.RECIRR;
if ("_LavageRoute".equals(codeString))
return V3RouteOfAdministration._LAVAGEROUTE;
if ("IGASTLAV".equals(codeString))
return V3RouteOfAdministration.IGASTLAV;
if ("_MucosalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._MUCOSALABSORPTIONROUTE;
if ("IDOUDMAB".equals(codeString))
return V3RouteOfAdministration.IDOUDMAB;
if ("ITRACHMAB".equals(codeString))
return V3RouteOfAdministration.ITRACHMAB;
if ("SMUCMAB".equals(codeString))
return V3RouteOfAdministration.SMUCMAB;
if ("_Nebulization".equals(codeString))
return V3RouteOfAdministration._NEBULIZATION;
if ("ETNEB".equals(codeString))
return V3RouteOfAdministration.ETNEB;
if ("_Rinse".equals(codeString))
return V3RouteOfAdministration._RINSE;
if ("DENRINSE".equals(codeString))
return V3RouteOfAdministration.DENRINSE;
if ("ORRINSE".equals(codeString))
return V3RouteOfAdministration.ORRINSE;
if ("_SuppositoryRoute".equals(codeString))
return V3RouteOfAdministration._SUPPOSITORYROUTE;
if ("URETHSUP".equals(codeString))
return V3RouteOfAdministration.URETHSUP;
if ("_Swish".equals(codeString))
return V3RouteOfAdministration._SWISH;
if ("SWISHSPIT".equals(codeString))
return V3RouteOfAdministration.SWISHSPIT;
if ("SWISHSWAL".equals(codeString))
return V3RouteOfAdministration.SWISHSWAL;
if ("_TopicalAbsorptionRoute".equals(codeString))
return V3RouteOfAdministration._TOPICALABSORPTIONROUTE;
if ("TTYMPTABSORP".equals(codeString))
return V3RouteOfAdministration.TTYMPTABSORP;
if ("_TopicalApplication".equals(codeString))
return V3RouteOfAdministration._TOPICALAPPLICATION;
if ("DRESS".equals(codeString))
return V3RouteOfAdministration.DRESS;
if ("SWAB".equals(codeString))
return V3RouteOfAdministration.SWAB;
if ("TOPICAL".equals(codeString))
return V3RouteOfAdministration.TOPICAL;
if ("BUC".equals(codeString))
return V3RouteOfAdministration.BUC;
if ("CERV".equals(codeString))
return V3RouteOfAdministration.CERV;
if ("DEN".equals(codeString))
return V3RouteOfAdministration.DEN;
if ("GIN".equals(codeString))
return V3RouteOfAdministration.GIN;
if ("HAIR".equals(codeString))
return V3RouteOfAdministration.HAIR;
if ("ICORNTA".equals(codeString))
return V3RouteOfAdministration.ICORNTA;
if ("ICORONTA".equals(codeString))
return V3RouteOfAdministration.ICORONTA;
if ("IESOPHTA".equals(codeString))
return V3RouteOfAdministration.IESOPHTA;
if ("IILEALTA".equals(codeString))
return V3RouteOfAdministration.IILEALTA;
if ("ILTOP".equals(codeString))
return V3RouteOfAdministration.ILTOP;
if ("ILUMTA".equals(codeString))
return V3RouteOfAdministration.ILUMTA;
if ("IOTOP".equals(codeString))
return V3RouteOfAdministration.IOTOP;
if ("LARYNGTA".equals(codeString))
return V3RouteOfAdministration.LARYNGTA;
if ("MUC".equals(codeString))
return V3RouteOfAdministration.MUC;
if ("NAIL".equals(codeString))
return V3RouteOfAdministration.NAIL;
if ("NASAL".equals(codeString))
return V3RouteOfAdministration.NASAL;
if ("OPTHALTA".equals(codeString))
return V3RouteOfAdministration.OPTHALTA;
if ("ORALTA".equals(codeString))
return V3RouteOfAdministration.ORALTA;
if ("ORMUC".equals(codeString))
return V3RouteOfAdministration.ORMUC;
if ("OROPHARTA".equals(codeString))
return V3RouteOfAdministration.OROPHARTA;
if ("PERIANAL".equals(codeString))
return V3RouteOfAdministration.PERIANAL;
if ("PERINEAL".equals(codeString))
return V3RouteOfAdministration.PERINEAL;
if ("PDONTTA".equals(codeString))
return V3RouteOfAdministration.PDONTTA;
if ("RECTAL".equals(codeString))
return V3RouteOfAdministration.RECTAL;
if ("SCALP".equals(codeString))
return V3RouteOfAdministration.SCALP;
if ("OCDRESTA".equals(codeString))
return V3RouteOfAdministration.OCDRESTA;
if ("SKIN".equals(codeString))
return V3RouteOfAdministration.SKIN;
if ("SUBCONJTA".equals(codeString))
return V3RouteOfAdministration.SUBCONJTA;
if ("TMUCTA".equals(codeString))
return V3RouteOfAdministration.TMUCTA;
if ("VAGINS".equals(codeString))
return V3RouteOfAdministration.VAGINS;
if ("INSUF".equals(codeString))
return V3RouteOfAdministration.INSUF;
if ("TRNSDERM".equals(codeString))
return V3RouteOfAdministration.TRNSDERM;
if ("_RouteBySite".equals(codeString))
return V3RouteOfAdministration._ROUTEBYSITE;
if ("_AmnioticFluidSacRoute".equals(codeString))
return V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE;
if ("_BiliaryRoute".equals(codeString))
return V3RouteOfAdministration._BILIARYROUTE;
if ("_BodySurfaceRoute".equals(codeString))
return V3RouteOfAdministration._BODYSURFACEROUTE;
if ("_BuccalMucosaRoute".equals(codeString))
return V3RouteOfAdministration._BUCCALMUCOSAROUTE;
if ("_CecostomyRoute".equals(codeString))
return V3RouteOfAdministration._CECOSTOMYROUTE;
if ("_CervicalRoute".equals(codeString))
return V3RouteOfAdministration._CERVICALROUTE;
if ("_EndocervicalRoute".equals(codeString))
return V3RouteOfAdministration._ENDOCERVICALROUTE;
if ("_EnteralRoute".equals(codeString))
return V3RouteOfAdministration._ENTERALROUTE;
if ("_EpiduralRoute".equals(codeString))
return V3RouteOfAdministration._EPIDURALROUTE;
if ("_ExtraAmnioticRoute".equals(codeString))
return V3RouteOfAdministration._EXTRAAMNIOTICROUTE;
if ("_ExtracorporealCirculationRoute".equals(codeString))
return V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE;
if ("_GastricRoute".equals(codeString))
return V3RouteOfAdministration._GASTRICROUTE;
if ("_GenitourinaryRoute".equals(codeString))
return V3RouteOfAdministration._GENITOURINARYROUTE;
if ("_GingivalRoute".equals(codeString))
return V3RouteOfAdministration._GINGIVALROUTE;
if ("_HairRoute".equals(codeString))
return V3RouteOfAdministration._HAIRROUTE;
if ("_InterameningealRoute".equals(codeString))
return V3RouteOfAdministration._INTERAMENINGEALROUTE;
if ("_InterstitialRoute".equals(codeString))
return V3RouteOfAdministration._INTERSTITIALROUTE;
if ("_IntraabdominalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAABDOMINALROUTE;
if ("_IntraarterialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTERIALROUTE;
if ("_IntraarticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAARTICULARROUTE;
if ("_IntrabronchialRoute".equals(codeString))
return V3RouteOfAdministration._INTRABRONCHIALROUTE;
if ("_IntrabursalRoute".equals(codeString))
return V3RouteOfAdministration._INTRABURSALROUTE;
if ("_IntracardiacRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARDIACROUTE;
if ("_IntracartilaginousRoute".equals(codeString))
return V3RouteOfAdministration._INTRACARTILAGINOUSROUTE;
if ("_IntracaudalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAUDALROUTE;
if ("_IntracavernosalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVERNOSALROUTE;
if ("_IntracavitaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACAVITARYROUTE;
if ("_IntracerebralRoute".equals(codeString))
return V3RouteOfAdministration._INTRACEREBRALROUTE;
if ("_IntracervicalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACERVICALROUTE;
if ("_IntracisternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACISTERNALROUTE;
if ("_IntracornealRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORNEALROUTE;
if ("_IntracoronalRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONALROUTE;
if ("_IntracoronaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORONARYROUTE;
if ("_IntracorpusCavernosumRoute".equals(codeString))
return V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE;
if ("_IntradermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADERMALROUTE;
if ("_IntradiscalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADISCALROUTE;
if ("_IntraductalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUCTALROUTE;
if ("_IntraduodenalRoute".equals(codeString))
return V3RouteOfAdministration._INTRADUODENALROUTE;
if ("_IntraduralRoute".equals(codeString))
return V3RouteOfAdministration._INTRADURALROUTE;
if ("_IntraepidermalRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPIDERMALROUTE;
if ("_IntraepithelialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAEPITHELIALROUTE;
if ("_IntraesophagealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAESOPHAGEALROUTE;
if ("_IntragastricRoute".equals(codeString))
return V3RouteOfAdministration._INTRAGASTRICROUTE;
if ("_IntrailealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAILEALROUTE;
if ("_IntralesionalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALESIONALROUTE;
if ("_IntraluminalRoute".equals(codeString))
return V3RouteOfAdministration._INTRALUMINALROUTE;
if ("_IntralymphaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRALYMPHATICROUTE;
if ("_IntramedullaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMEDULLARYROUTE;
if ("_IntramuscularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAMUSCULARROUTE;
if ("_IntraocularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOCULARROUTE;
if ("_IntraosseousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOSSEOUSROUTE;
if ("_IntraovarianRoute".equals(codeString))
return V3RouteOfAdministration._INTRAOVARIANROUTE;
if ("_IntrapericardialRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERICARDIALROUTE;
if ("_IntraperitonealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPERITONEALROUTE;
if ("_IntrapleuralRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPLEURALROUTE;
if ("_IntraprostaticRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPROSTATICROUTE;
if ("_IntrapulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._INTRAPULMONARYROUTE;
if ("_IntrasinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASINALROUTE;
if ("_IntraspinalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASPINALROUTE;
if ("_IntrasternalRoute".equals(codeString))
return V3RouteOfAdministration._INTRASTERNALROUTE;
if ("_IntrasynovialRoute".equals(codeString))
return V3RouteOfAdministration._INTRASYNOVIALROUTE;
if ("_IntratendinousRoute".equals(codeString))
return V3RouteOfAdministration._INTRATENDINOUSROUTE;
if ("_IntratesticularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATESTICULARROUTE;
if ("_IntrathecalRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHECALROUTE;
if ("_IntrathoracicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATHORACICROUTE;
if ("_IntratrachealRoute".equals(codeString))
return V3RouteOfAdministration._INTRATRACHEALROUTE;
if ("_IntratubularRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUBULARROUTE;
if ("_IntratumorRoute".equals(codeString))
return V3RouteOfAdministration._INTRATUMORROUTE;
if ("_IntratympanicRoute".equals(codeString))
return V3RouteOfAdministration._INTRATYMPANICROUTE;
if ("_IntrauterineRoute".equals(codeString))
return V3RouteOfAdministration._INTRAUTERINEROUTE;
if ("_IntravascularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVASCULARROUTE;
if ("_IntravenousRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENOUSROUTE;
if ("_IntraventricularRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVENTRICULARROUTE;
if ("_IntravesicleRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVESICLEROUTE;
if ("_IntravitrealRoute".equals(codeString))
return V3RouteOfAdministration._INTRAVITREALROUTE;
if ("_JejunumRoute".equals(codeString))
return V3RouteOfAdministration._JEJUNUMROUTE;
if ("_LacrimalPunctaRoute".equals(codeString))
return V3RouteOfAdministration._LACRIMALPUNCTAROUTE;
if ("_LaryngealRoute".equals(codeString))
return V3RouteOfAdministration._LARYNGEALROUTE;
if ("_LingualRoute".equals(codeString))
return V3RouteOfAdministration._LINGUALROUTE;
if ("_MucousMembraneRoute".equals(codeString))
return V3RouteOfAdministration._MUCOUSMEMBRANEROUTE;
if ("_NailRoute".equals(codeString))
return V3RouteOfAdministration._NAILROUTE;
if ("_NasalRoute".equals(codeString))
return V3RouteOfAdministration._NASALROUTE;
if ("_OphthalmicRoute".equals(codeString))
return V3RouteOfAdministration._OPHTHALMICROUTE;
if ("_OralRoute".equals(codeString))
return V3RouteOfAdministration._ORALROUTE;
if ("_OromucosalRoute".equals(codeString))
return V3RouteOfAdministration._OROMUCOSALROUTE;
if ("_OropharyngealRoute".equals(codeString))
return V3RouteOfAdministration._OROPHARYNGEALROUTE;
if ("_OticRoute".equals(codeString))
return V3RouteOfAdministration._OTICROUTE;
if ("_ParanasalSinusesRoute".equals(codeString))
return V3RouteOfAdministration._PARANASALSINUSESROUTE;
if ("_ParenteralRoute".equals(codeString))
return V3RouteOfAdministration._PARENTERALROUTE;
if ("_PerianalRoute".equals(codeString))
return V3RouteOfAdministration._PERIANALROUTE;
if ("_PeriarticularRoute".equals(codeString))
return V3RouteOfAdministration._PERIARTICULARROUTE;
if ("_PeriduralRoute".equals(codeString))
return V3RouteOfAdministration._PERIDURALROUTE;
if ("_PerinealRoute".equals(codeString))
return V3RouteOfAdministration._PERINEALROUTE;
if ("_PerineuralRoute".equals(codeString))
return V3RouteOfAdministration._PERINEURALROUTE;
if ("_PeriodontalRoute".equals(codeString))
return V3RouteOfAdministration._PERIODONTALROUTE;
if ("_PulmonaryRoute".equals(codeString))
return V3RouteOfAdministration._PULMONARYROUTE;
if ("_RectalRoute".equals(codeString))
return V3RouteOfAdministration._RECTALROUTE;
if ("_RespiratoryTractRoute".equals(codeString))
return V3RouteOfAdministration._RESPIRATORYTRACTROUTE;
if ("_RetrobulbarRoute".equals(codeString))
return V3RouteOfAdministration._RETROBULBARROUTE;
if ("_ScalpRoute".equals(codeString))
return V3RouteOfAdministration._SCALPROUTE;
if ("_SinusUnspecifiedRoute".equals(codeString))
return V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE;
if ("_SkinRoute".equals(codeString))
return V3RouteOfAdministration._SKINROUTE;
if ("_SoftTissueRoute".equals(codeString))
return V3RouteOfAdministration._SOFTTISSUEROUTE;
if ("_SubarachnoidRoute".equals(codeString))
return V3RouteOfAdministration._SUBARACHNOIDROUTE;
if ("_SubconjunctivalRoute".equals(codeString))
return V3RouteOfAdministration._SUBCONJUNCTIVALROUTE;
if ("_SubcutaneousRoute".equals(codeString))
return V3RouteOfAdministration._SUBCUTANEOUSROUTE;
if ("_SublesionalRoute".equals(codeString))
return V3RouteOfAdministration._SUBLESIONALROUTE;
if ("_SublingualRoute".equals(codeString))
return V3RouteOfAdministration._SUBLINGUALROUTE;
if ("_SubmucosalRoute".equals(codeString))
return V3RouteOfAdministration._SUBMUCOSALROUTE;
if ("_TracheostomyRoute".equals(codeString))
return V3RouteOfAdministration._TRACHEOSTOMYROUTE;
if ("_TransmucosalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSMUCOSALROUTE;
if ("_TransplacentalRoute".equals(codeString))
return V3RouteOfAdministration._TRANSPLACENTALROUTE;
if ("_TranstrachealRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTRACHEALROUTE;
if ("_TranstympanicRoute".equals(codeString))
return V3RouteOfAdministration._TRANSTYMPANICROUTE;
if ("_UreteralRoute".equals(codeString))
return V3RouteOfAdministration._URETERALROUTE;
if ("_UrethralRoute".equals(codeString))
return V3RouteOfAdministration._URETHRALROUTE;
if ("_UrinaryBladderRoute".equals(codeString))
return V3RouteOfAdministration._URINARYBLADDERROUTE;
if ("_UrinaryTractRoute".equals(codeString))
return V3RouteOfAdministration._URINARYTRACTROUTE;
if ("_VaginalRoute".equals(codeString))
return V3RouteOfAdministration._VAGINALROUTE;
if ("_VitreousHumourRoute".equals(codeString))
return V3RouteOfAdministration._VITREOUSHUMOURROUTE;
throw new IllegalArgumentException("Unknown V3RouteOfAdministration code '"+codeString+"'");
}
public String toCode(V3RouteOfAdministration code) {
if (code == V3RouteOfAdministration._ROUTEBYMETHOD)
return "_RouteByMethod";
if (code == V3RouteOfAdministration.SOAK)
return "SOAK";
if (code == V3RouteOfAdministration.SHAMPOO)
return "SHAMPOO";
if (code == V3RouteOfAdministration.TRNSLING)
return "TRNSLING";
if (code == V3RouteOfAdministration.PO)
return "PO";
if (code == V3RouteOfAdministration.GARGLE)
return "GARGLE";
if (code == V3RouteOfAdministration.SUCK)
return "SUCK";
if (code == V3RouteOfAdministration._CHEW)
return "_Chew";
if (code == V3RouteOfAdministration.CHEW)
return "CHEW";
if (code == V3RouteOfAdministration._DIFFUSION)
return "_Diffusion";
if (code == V3RouteOfAdministration.EXTCORPDIF)
return "EXTCORPDIF";
if (code == V3RouteOfAdministration.HEMODIFF)
return "HEMODIFF";
if (code == V3RouteOfAdministration.TRNSDERMD)
return "TRNSDERMD";
if (code == V3RouteOfAdministration._DISSOLVE)
return "_Dissolve";
if (code == V3RouteOfAdministration.DISSOLVE)
return "DISSOLVE";
if (code == V3RouteOfAdministration.SL)
return "SL";
if (code == V3RouteOfAdministration._DOUCHE)
return "_Douche";
if (code == V3RouteOfAdministration.DOUCHE)
return "DOUCHE";
if (code == V3RouteOfAdministration._ELECTROOSMOSISROUTE)
return "_ElectroOsmosisRoute";
if (code == V3RouteOfAdministration.ELECTOSMOS)
return "ELECTOSMOS";
if (code == V3RouteOfAdministration._ENEMA)
return "_Enema";
if (code == V3RouteOfAdministration.ENEMA)
return "ENEMA";
if (code == V3RouteOfAdministration.RETENEMA)
return "RETENEMA";
if (code == V3RouteOfAdministration._FLUSH)
return "_Flush";
if (code == V3RouteOfAdministration.IVFLUSH)
return "IVFLUSH";
if (code == V3RouteOfAdministration._IMPLANTATION)
return "_Implantation";
if (code == V3RouteOfAdministration.IDIMPLNT)
return "IDIMPLNT";
if (code == V3RouteOfAdministration.IVITIMPLNT)
return "IVITIMPLNT";
if (code == V3RouteOfAdministration.SQIMPLNT)
return "SQIMPLNT";
if (code == V3RouteOfAdministration._INFUSION)
return "_Infusion";
if (code == V3RouteOfAdministration.EPI)
return "EPI";
if (code == V3RouteOfAdministration.IA)
return "IA";
if (code == V3RouteOfAdministration.IC)
return "IC";
if (code == V3RouteOfAdministration.ICOR)
return "ICOR";
if (code == V3RouteOfAdministration.IOSSC)
return "IOSSC";
if (code == V3RouteOfAdministration.IT)
return "IT";
if (code == V3RouteOfAdministration.IV)
return "IV";
if (code == V3RouteOfAdministration.IVC)
return "IVC";
if (code == V3RouteOfAdministration.IVCC)
return "IVCC";
if (code == V3RouteOfAdministration.IVCI)
return "IVCI";
if (code == V3RouteOfAdministration.PCA)
return "PCA";
if (code == V3RouteOfAdministration.IVASCINFUS)
return "IVASCINFUS";
if (code == V3RouteOfAdministration.SQINFUS)
return "SQINFUS";
if (code == V3RouteOfAdministration._INHALATION)
return "_Inhalation";
if (code == V3RouteOfAdministration.IPINHL)
return "IPINHL";
if (code == V3RouteOfAdministration.ORIFINHL)
return "ORIFINHL";
if (code == V3RouteOfAdministration.REBREATH)
return "REBREATH";
if (code == V3RouteOfAdministration.IPPB)
return "IPPB";
if (code == V3RouteOfAdministration.NASINHL)
return "NASINHL";
if (code == V3RouteOfAdministration.NASINHLC)
return "NASINHLC";
if (code == V3RouteOfAdministration.NEB)
return "NEB";
if (code == V3RouteOfAdministration.NASNEB)
return "NASNEB";
if (code == V3RouteOfAdministration.ORNEB)
return "ORNEB";
if (code == V3RouteOfAdministration.TRACH)
return "TRACH";
if (code == V3RouteOfAdministration.VENT)
return "VENT";
if (code == V3RouteOfAdministration.VENTMASK)
return "VENTMASK";
if (code == V3RouteOfAdministration._INJECTION)
return "_Injection";
if (code == V3RouteOfAdministration.AMNINJ)
return "AMNINJ";
if (code == V3RouteOfAdministration.BILINJ)
return "BILINJ";
if (code == V3RouteOfAdministration.CHOLINJ)
return "CHOLINJ";
if (code == V3RouteOfAdministration.CERVINJ)
return "CERVINJ";
if (code == V3RouteOfAdministration.EPIDURINJ)
return "EPIDURINJ";
if (code == V3RouteOfAdministration.EPIINJ)
return "EPIINJ";
if (code == V3RouteOfAdministration.EPINJSP)
return "EPINJSP";
if (code == V3RouteOfAdministration.EXTRAMNINJ)
return "EXTRAMNINJ";
if (code == V3RouteOfAdministration.EXTCORPINJ)
return "EXTCORPINJ";
if (code == V3RouteOfAdministration.GBINJ)
return "GBINJ";
if (code == V3RouteOfAdministration.GINGINJ)
return "GINGINJ";
if (code == V3RouteOfAdministration.BLADINJ)
return "BLADINJ";
if (code == V3RouteOfAdministration.ENDOSININJ)
return "ENDOSININJ";
if (code == V3RouteOfAdministration.HEMOPORT)
return "HEMOPORT";
if (code == V3RouteOfAdministration.IABDINJ)
return "IABDINJ";
if (code == V3RouteOfAdministration.IAINJ)
return "IAINJ";
if (code == V3RouteOfAdministration.IAINJP)
return "IAINJP";
if (code == V3RouteOfAdministration.IAINJSP)
return "IAINJSP";
if (code == V3RouteOfAdministration.IARTINJ)
return "IARTINJ";
if (code == V3RouteOfAdministration.IBURSINJ)
return "IBURSINJ";
if (code == V3RouteOfAdministration.ICARDINJ)
return "ICARDINJ";
if (code == V3RouteOfAdministration.ICARDINJRP)
return "ICARDINJRP";
if (code == V3RouteOfAdministration.ICARDINJSP)
return "ICARDINJSP";
if (code == V3RouteOfAdministration.ICARINJP)
return "ICARINJP";
if (code == V3RouteOfAdministration.ICARTINJ)
return "ICARTINJ";
if (code == V3RouteOfAdministration.ICAUDINJ)
return "ICAUDINJ";
if (code == V3RouteOfAdministration.ICAVINJ)
return "ICAVINJ";
if (code == V3RouteOfAdministration.ICAVITINJ)
return "ICAVITINJ";
if (code == V3RouteOfAdministration.ICEREBINJ)
return "ICEREBINJ";
if (code == V3RouteOfAdministration.ICISTERNINJ)
return "ICISTERNINJ";
if (code == V3RouteOfAdministration.ICORONINJ)
return "ICORONINJ";
if (code == V3RouteOfAdministration.ICORONINJP)
return "ICORONINJP";
if (code == V3RouteOfAdministration.ICORPCAVINJ)
return "ICORPCAVINJ";
if (code == V3RouteOfAdministration.IDINJ)
return "IDINJ";
if (code == V3RouteOfAdministration.IDISCINJ)
return "IDISCINJ";
if (code == V3RouteOfAdministration.IDUCTINJ)
return "IDUCTINJ";
if (code == V3RouteOfAdministration.IDURINJ)
return "IDURINJ";
if (code == V3RouteOfAdministration.IEPIDINJ)
return "IEPIDINJ";
if (code == V3RouteOfAdministration.IEPITHINJ)
return "IEPITHINJ";
if (code == V3RouteOfAdministration.ILESINJ)
return "ILESINJ";
if (code == V3RouteOfAdministration.ILUMINJ)
return "ILUMINJ";
if (code == V3RouteOfAdministration.ILYMPJINJ)
return "ILYMPJINJ";
if (code == V3RouteOfAdministration.IM)
return "IM";
if (code == V3RouteOfAdministration.IMD)
return "IMD";
if (code == V3RouteOfAdministration.IMZ)
return "IMZ";
if (code == V3RouteOfAdministration.IMEDULINJ)
return "IMEDULINJ";
if (code == V3RouteOfAdministration.INTERMENINJ)
return "INTERMENINJ";
if (code == V3RouteOfAdministration.INTERSTITINJ)
return "INTERSTITINJ";
if (code == V3RouteOfAdministration.IOINJ)
return "IOINJ";
if (code == V3RouteOfAdministration.IOSSINJ)
return "IOSSINJ";
if (code == V3RouteOfAdministration.IOVARINJ)
return "IOVARINJ";
if (code == V3RouteOfAdministration.IPCARDINJ)
return "IPCARDINJ";
if (code == V3RouteOfAdministration.IPERINJ)
return "IPERINJ";
if (code == V3RouteOfAdministration.IPINJ)
return "IPINJ";
if (code == V3RouteOfAdministration.IPLRINJ)
return "IPLRINJ";
if (code == V3RouteOfAdministration.IPROSTINJ)
return "IPROSTINJ";
if (code == V3RouteOfAdministration.IPUMPINJ)
return "IPUMPINJ";
if (code == V3RouteOfAdministration.ISINJ)
return "ISINJ";
if (code == V3RouteOfAdministration.ISTERINJ)
return "ISTERINJ";
if (code == V3RouteOfAdministration.ISYNINJ)
return "ISYNINJ";
if (code == V3RouteOfAdministration.ITENDINJ)
return "ITENDINJ";
if (code == V3RouteOfAdministration.ITESTINJ)
return "ITESTINJ";
if (code == V3RouteOfAdministration.ITHORINJ)
return "ITHORINJ";
if (code == V3RouteOfAdministration.ITINJ)
return "ITINJ";
if (code == V3RouteOfAdministration.ITUBINJ)
return "ITUBINJ";
if (code == V3RouteOfAdministration.ITUMINJ)
return "ITUMINJ";
if (code == V3RouteOfAdministration.ITYMPINJ)
return "ITYMPINJ";
if (code == V3RouteOfAdministration.IUINJ)
return "IUINJ";
if (code == V3RouteOfAdministration.IUINJC)
return "IUINJC";
if (code == V3RouteOfAdministration.IURETINJ)
return "IURETINJ";
if (code == V3RouteOfAdministration.IVASCINJ)
return "IVASCINJ";
if (code == V3RouteOfAdministration.IVENTINJ)
return "IVENTINJ";
if (code == V3RouteOfAdministration.IVESINJ)
return "IVESINJ";
if (code == V3RouteOfAdministration.IVINJ)
return "IVINJ";
if (code == V3RouteOfAdministration.IVINJBOL)
return "IVINJBOL";
if (code == V3RouteOfAdministration.IVPUSH)
return "IVPUSH";
if (code == V3RouteOfAdministration.IVRPUSH)
return "IVRPUSH";
if (code == V3RouteOfAdministration.IVSPUSH)
return "IVSPUSH";
if (code == V3RouteOfAdministration.IVITINJ)
return "IVITINJ";
if (code == V3RouteOfAdministration.PAINJ)
return "PAINJ";
if (code == V3RouteOfAdministration.PARENTINJ)
return "PARENTINJ";
if (code == V3RouteOfAdministration.PDONTINJ)
return "PDONTINJ";
if (code == V3RouteOfAdministration.PDPINJ)
return "PDPINJ";
if (code == V3RouteOfAdministration.PDURINJ)
return "PDURINJ";
if (code == V3RouteOfAdministration.PNINJ)
return "PNINJ";
if (code == V3RouteOfAdministration.PNSINJ)
return "PNSINJ";
if (code == V3RouteOfAdministration.RBINJ)
return "RBINJ";
if (code == V3RouteOfAdministration.SCINJ)
return "SCINJ";
if (code == V3RouteOfAdministration.SLESINJ)
return "SLESINJ";
if (code == V3RouteOfAdministration.SOFTISINJ)
return "SOFTISINJ";
if (code == V3RouteOfAdministration.SQ)
return "SQ";
if (code == V3RouteOfAdministration.SUBARACHINJ)
return "SUBARACHINJ";
if (code == V3RouteOfAdministration.SUBMUCINJ)
return "SUBMUCINJ";
if (code == V3RouteOfAdministration.TRPLACINJ)
return "TRPLACINJ";
if (code == V3RouteOfAdministration.TRTRACHINJ)
return "TRTRACHINJ";
if (code == V3RouteOfAdministration.URETHINJ)
return "URETHINJ";
if (code == V3RouteOfAdministration.URETINJ)
return "URETINJ";
if (code == V3RouteOfAdministration._INSERTION)
return "_Insertion";
if (code == V3RouteOfAdministration.CERVINS)
return "CERVINS";
if (code == V3RouteOfAdministration.IOSURGINS)
return "IOSURGINS";
if (code == V3RouteOfAdministration.IU)
return "IU";
if (code == V3RouteOfAdministration.LPINS)
return "LPINS";
if (code == V3RouteOfAdministration.PR)
return "PR";
if (code == V3RouteOfAdministration.SQSURGINS)
return "SQSURGINS";
if (code == V3RouteOfAdministration.URETHINS)
return "URETHINS";
if (code == V3RouteOfAdministration.VAGINSI)
return "VAGINSI";
if (code == V3RouteOfAdministration._INSTILLATION)
return "_Instillation";
if (code == V3RouteOfAdministration.CECINSTL)
return "CECINSTL";
if (code == V3RouteOfAdministration.EFT)
return "EFT";
if (code == V3RouteOfAdministration.ENTINSTL)
return "ENTINSTL";
if (code == V3RouteOfAdministration.GT)
return "GT";
if (code == V3RouteOfAdministration.NGT)
return "NGT";
if (code == V3RouteOfAdministration.OGT)
return "OGT";
if (code == V3RouteOfAdministration.BLADINSTL)
return "BLADINSTL";
if (code == V3RouteOfAdministration.CAPDINSTL)
return "CAPDINSTL";
if (code == V3RouteOfAdministration.CTINSTL)
return "CTINSTL";
if (code == V3RouteOfAdministration.ETINSTL)
return "ETINSTL";
if (code == V3RouteOfAdministration.GJT)
return "GJT";
if (code == V3RouteOfAdministration.IBRONCHINSTIL)
return "IBRONCHINSTIL";
if (code == V3RouteOfAdministration.IDUODINSTIL)
return "IDUODINSTIL";
if (code == V3RouteOfAdministration.IESOPHINSTIL)
return "IESOPHINSTIL";
if (code == V3RouteOfAdministration.IGASTINSTIL)
return "IGASTINSTIL";
if (code == V3RouteOfAdministration.IILEALINJ)
return "IILEALINJ";
if (code == V3RouteOfAdministration.IOINSTL)
return "IOINSTL";
if (code == V3RouteOfAdministration.ISININSTIL)
return "ISININSTIL";
if (code == V3RouteOfAdministration.ITRACHINSTIL)
return "ITRACHINSTIL";
if (code == V3RouteOfAdministration.IUINSTL)
return "IUINSTL";
if (code == V3RouteOfAdministration.JJTINSTL)
return "JJTINSTL";
if (code == V3RouteOfAdministration.LARYNGINSTIL)
return "LARYNGINSTIL";
if (code == V3RouteOfAdministration.NASALINSTIL)
return "NASALINSTIL";
if (code == V3RouteOfAdministration.NASOGASINSTIL)
return "NASOGASINSTIL";
if (code == V3RouteOfAdministration.NTT)
return "NTT";
if (code == V3RouteOfAdministration.OJJ)
return "OJJ";
if (code == V3RouteOfAdministration.OT)
return "OT";
if (code == V3RouteOfAdministration.PDPINSTL)
return "PDPINSTL";
if (code == V3RouteOfAdministration.PNSINSTL)
return "PNSINSTL";
if (code == V3RouteOfAdministration.RECINSTL)
return "RECINSTL";
if (code == V3RouteOfAdministration.RECTINSTL)
return "RECTINSTL";
if (code == V3RouteOfAdministration.SININSTIL)
return "SININSTIL";
if (code == V3RouteOfAdministration.SOFTISINSTIL)
return "SOFTISINSTIL";
if (code == V3RouteOfAdministration.TRACHINSTL)
return "TRACHINSTL";
if (code == V3RouteOfAdministration.TRTYMPINSTIL)
return "TRTYMPINSTIL";
if (code == V3RouteOfAdministration.URETHINSTL)
return "URETHINSTL";
if (code == V3RouteOfAdministration._IONTOPHORESISROUTE)
return "_IontophoresisRoute";
if (code == V3RouteOfAdministration.IONTO)
return "IONTO";
if (code == V3RouteOfAdministration._IRRIGATION)
return "_Irrigation";
if (code == V3RouteOfAdministration.GUIRR)
return "GUIRR";
if (code == V3RouteOfAdministration.IGASTIRR)
return "IGASTIRR";
if (code == V3RouteOfAdministration.ILESIRR)
return "ILESIRR";
if (code == V3RouteOfAdministration.IOIRR)
return "IOIRR";
if (code == V3RouteOfAdministration.BLADIRR)
return "BLADIRR";
if (code == V3RouteOfAdministration.BLADIRRC)
return "BLADIRRC";
if (code == V3RouteOfAdministration.BLADIRRT)
return "BLADIRRT";
if (code == V3RouteOfAdministration.RECIRR)
return "RECIRR";
if (code == V3RouteOfAdministration._LAVAGEROUTE)
return "_LavageRoute";
if (code == V3RouteOfAdministration.IGASTLAV)
return "IGASTLAV";
if (code == V3RouteOfAdministration._MUCOSALABSORPTIONROUTE)
return "_MucosalAbsorptionRoute";
if (code == V3RouteOfAdministration.IDOUDMAB)
return "IDOUDMAB";
if (code == V3RouteOfAdministration.ITRACHMAB)
return "ITRACHMAB";
if (code == V3RouteOfAdministration.SMUCMAB)
return "SMUCMAB";
if (code == V3RouteOfAdministration._NEBULIZATION)
return "_Nebulization";
if (code == V3RouteOfAdministration.ETNEB)
return "ETNEB";
if (code == V3RouteOfAdministration._RINSE)
return "_Rinse";
if (code == V3RouteOfAdministration.DENRINSE)
return "DENRINSE";
if (code == V3RouteOfAdministration.ORRINSE)
return "ORRINSE";
if (code == V3RouteOfAdministration._SUPPOSITORYROUTE)
return "_SuppositoryRoute";
if (code == V3RouteOfAdministration.URETHSUP)
return "URETHSUP";
if (code == V3RouteOfAdministration._SWISH)
return "_Swish";
if (code == V3RouteOfAdministration.SWISHSPIT)
return "SWISHSPIT";
if (code == V3RouteOfAdministration.SWISHSWAL)
return "SWISHSWAL";
if (code == V3RouteOfAdministration._TOPICALABSORPTIONROUTE)
return "_TopicalAbsorptionRoute";
if (code == V3RouteOfAdministration.TTYMPTABSORP)
return "TTYMPTABSORP";
if (code == V3RouteOfAdministration._TOPICALAPPLICATION)
return "_TopicalApplication";
if (code == V3RouteOfAdministration.DRESS)
return "DRESS";
if (code == V3RouteOfAdministration.SWAB)
return "SWAB";
if (code == V3RouteOfAdministration.TOPICAL)
return "TOPICAL";
if (code == V3RouteOfAdministration.BUC)
return "BUC";
if (code == V3RouteOfAdministration.CERV)
return "CERV";
if (code == V3RouteOfAdministration.DEN)
return "DEN";
if (code == V3RouteOfAdministration.GIN)
return "GIN";
if (code == V3RouteOfAdministration.HAIR)
return "HAIR";
if (code == V3RouteOfAdministration.ICORNTA)
return "ICORNTA";
if (code == V3RouteOfAdministration.ICORONTA)
return "ICORONTA";
if (code == V3RouteOfAdministration.IESOPHTA)
return "IESOPHTA";
if (code == V3RouteOfAdministration.IILEALTA)
return "IILEALTA";
if (code == V3RouteOfAdministration.ILTOP)
return "ILTOP";
if (code == V3RouteOfAdministration.ILUMTA)
return "ILUMTA";
if (code == V3RouteOfAdministration.IOTOP)
return "IOTOP";
if (code == V3RouteOfAdministration.LARYNGTA)
return "LARYNGTA";
if (code == V3RouteOfAdministration.MUC)
return "MUC";
if (code == V3RouteOfAdministration.NAIL)
return "NAIL";
if (code == V3RouteOfAdministration.NASAL)
return "NASAL";
if (code == V3RouteOfAdministration.OPTHALTA)
return "OPTHALTA";
if (code == V3RouteOfAdministration.ORALTA)
return "ORALTA";
if (code == V3RouteOfAdministration.ORMUC)
return "ORMUC";
if (code == V3RouteOfAdministration.OROPHARTA)
return "OROPHARTA";
if (code == V3RouteOfAdministration.PERIANAL)
return "PERIANAL";
if (code == V3RouteOfAdministration.PERINEAL)
return "PERINEAL";
if (code == V3RouteOfAdministration.PDONTTA)
return "PDONTTA";
if (code == V3RouteOfAdministration.RECTAL)
return "RECTAL";
if (code == V3RouteOfAdministration.SCALP)
return "SCALP";
if (code == V3RouteOfAdministration.OCDRESTA)
return "OCDRESTA";
if (code == V3RouteOfAdministration.SKIN)
return "SKIN";
if (code == V3RouteOfAdministration.SUBCONJTA)
return "SUBCONJTA";
if (code == V3RouteOfAdministration.TMUCTA)
return "TMUCTA";
if (code == V3RouteOfAdministration.VAGINS)
return "VAGINS";
if (code == V3RouteOfAdministration.INSUF)
return "INSUF";
if (code == V3RouteOfAdministration.TRNSDERM)
return "TRNSDERM";
if (code == V3RouteOfAdministration._ROUTEBYSITE)
return "_RouteBySite";
if (code == V3RouteOfAdministration._AMNIOTICFLUIDSACROUTE)
return "_AmnioticFluidSacRoute";
if (code == V3RouteOfAdministration._BILIARYROUTE)
return "_BiliaryRoute";
if (code == V3RouteOfAdministration._BODYSURFACEROUTE)
return "_BodySurfaceRoute";
if (code == V3RouteOfAdministration._BUCCALMUCOSAROUTE)
return "_BuccalMucosaRoute";
if (code == V3RouteOfAdministration._CECOSTOMYROUTE)
return "_CecostomyRoute";
if (code == V3RouteOfAdministration._CERVICALROUTE)
return "_CervicalRoute";
if (code == V3RouteOfAdministration._ENDOCERVICALROUTE)
return "_EndocervicalRoute";
if (code == V3RouteOfAdministration._ENTERALROUTE)
return "_EnteralRoute";
if (code == V3RouteOfAdministration._EPIDURALROUTE)
return "_EpiduralRoute";
if (code == V3RouteOfAdministration._EXTRAAMNIOTICROUTE)
return "_ExtraAmnioticRoute";
if (code == V3RouteOfAdministration._EXTRACORPOREALCIRCULATIONROUTE)
return "_ExtracorporealCirculationRoute";
if (code == V3RouteOfAdministration._GASTRICROUTE)
return "_GastricRoute";
if (code == V3RouteOfAdministration._GENITOURINARYROUTE)
return "_GenitourinaryRoute";
if (code == V3RouteOfAdministration._GINGIVALROUTE)
return "_GingivalRoute";
if (code == V3RouteOfAdministration._HAIRROUTE)
return "_HairRoute";
if (code == V3RouteOfAdministration._INTERAMENINGEALROUTE)
return "_InterameningealRoute";
if (code == V3RouteOfAdministration._INTERSTITIALROUTE)
return "_InterstitialRoute";
if (code == V3RouteOfAdministration._INTRAABDOMINALROUTE)
return "_IntraabdominalRoute";
if (code == V3RouteOfAdministration._INTRAARTERIALROUTE)
return "_IntraarterialRoute";
if (code == V3RouteOfAdministration._INTRAARTICULARROUTE)
return "_IntraarticularRoute";
if (code == V3RouteOfAdministration._INTRABRONCHIALROUTE)
return "_IntrabronchialRoute";
if (code == V3RouteOfAdministration._INTRABURSALROUTE)
return "_IntrabursalRoute";
if (code == V3RouteOfAdministration._INTRACARDIACROUTE)
return "_IntracardiacRoute";
if (code == V3RouteOfAdministration._INTRACARTILAGINOUSROUTE)
return "_IntracartilaginousRoute";
if (code == V3RouteOfAdministration._INTRACAUDALROUTE)
return "_IntracaudalRoute";
if (code == V3RouteOfAdministration._INTRACAVERNOSALROUTE)
return "_IntracavernosalRoute";
if (code == V3RouteOfAdministration._INTRACAVITARYROUTE)
return "_IntracavitaryRoute";
if (code == V3RouteOfAdministration._INTRACEREBRALROUTE)
return "_IntracerebralRoute";
if (code == V3RouteOfAdministration._INTRACERVICALROUTE)
return "_IntracervicalRoute";
if (code == V3RouteOfAdministration._INTRACISTERNALROUTE)
return "_IntracisternalRoute";
if (code == V3RouteOfAdministration._INTRACORNEALROUTE)
return "_IntracornealRoute";
if (code == V3RouteOfAdministration._INTRACORONALROUTE)
return "_IntracoronalRoute";
if (code == V3RouteOfAdministration._INTRACORONARYROUTE)
return "_IntracoronaryRoute";
if (code == V3RouteOfAdministration._INTRACORPUSCAVERNOSUMROUTE)
return "_IntracorpusCavernosumRoute";
if (code == V3RouteOfAdministration._INTRADERMALROUTE)
return "_IntradermalRoute";
if (code == V3RouteOfAdministration._INTRADISCALROUTE)
return "_IntradiscalRoute";
if (code == V3RouteOfAdministration._INTRADUCTALROUTE)
return "_IntraductalRoute";
if (code == V3RouteOfAdministration._INTRADUODENALROUTE)
return "_IntraduodenalRoute";
if (code == V3RouteOfAdministration._INTRADURALROUTE)
return "_IntraduralRoute";
if (code == V3RouteOfAdministration._INTRAEPIDERMALROUTE)
return "_IntraepidermalRoute";
if (code == V3RouteOfAdministration._INTRAEPITHELIALROUTE)
return "_IntraepithelialRoute";
if (code == V3RouteOfAdministration._INTRAESOPHAGEALROUTE)
return "_IntraesophagealRoute";
if (code == V3RouteOfAdministration._INTRAGASTRICROUTE)
return "_IntragastricRoute";
if (code == V3RouteOfAdministration._INTRAILEALROUTE)
return "_IntrailealRoute";
if (code == V3RouteOfAdministration._INTRALESIONALROUTE)
return "_IntralesionalRoute";
if (code == V3RouteOfAdministration._INTRALUMINALROUTE)
return "_IntraluminalRoute";
if (code == V3RouteOfAdministration._INTRALYMPHATICROUTE)
return "_IntralymphaticRoute";
if (code == V3RouteOfAdministration._INTRAMEDULLARYROUTE)
return "_IntramedullaryRoute";
if (code == V3RouteOfAdministration._INTRAMUSCULARROUTE)
return "_IntramuscularRoute";
if (code == V3RouteOfAdministration._INTRAOCULARROUTE)
return "_IntraocularRoute";
if (code == V3RouteOfAdministration._INTRAOSSEOUSROUTE)
return "_IntraosseousRoute";
if (code == V3RouteOfAdministration._INTRAOVARIANROUTE)
return "_IntraovarianRoute";
if (code == V3RouteOfAdministration._INTRAPERICARDIALROUTE)
return "_IntrapericardialRoute";
if (code == V3RouteOfAdministration._INTRAPERITONEALROUTE)
return "_IntraperitonealRoute";
if (code == V3RouteOfAdministration._INTRAPLEURALROUTE)
return "_IntrapleuralRoute";
if (code == V3RouteOfAdministration._INTRAPROSTATICROUTE)
return "_IntraprostaticRoute";
if (code == V3RouteOfAdministration._INTRAPULMONARYROUTE)
return "_IntrapulmonaryRoute";
if (code == V3RouteOfAdministration._INTRASINALROUTE)
return "_IntrasinalRoute";
if (code == V3RouteOfAdministration._INTRASPINALROUTE)
return "_IntraspinalRoute";
if (code == V3RouteOfAdministration._INTRASTERNALROUTE)
return "_IntrasternalRoute";
if (code == V3RouteOfAdministration._INTRASYNOVIALROUTE)
return "_IntrasynovialRoute";
if (code == V3RouteOfAdministration._INTRATENDINOUSROUTE)
return "_IntratendinousRoute";
if (code == V3RouteOfAdministration._INTRATESTICULARROUTE)
return "_IntratesticularRoute";
if (code == V3RouteOfAdministration._INTRATHECALROUTE)
return "_IntrathecalRoute";
if (code == V3RouteOfAdministration._INTRATHORACICROUTE)
return "_IntrathoracicRoute";
if (code == V3RouteOfAdministration._INTRATRACHEALROUTE)
return "_IntratrachealRoute";
if (code == V3RouteOfAdministration._INTRATUBULARROUTE)
return "_IntratubularRoute";
if (code == V3RouteOfAdministration._INTRATUMORROUTE)
return "_IntratumorRoute";
if (code == V3RouteOfAdministration._INTRATYMPANICROUTE)
return "_IntratympanicRoute";
if (code == V3RouteOfAdministration._INTRAUTERINEROUTE)
return "_IntrauterineRoute";
if (code == V3RouteOfAdministration._INTRAVASCULARROUTE)
return "_IntravascularRoute";
if (code == V3RouteOfAdministration._INTRAVENOUSROUTE)
return "_IntravenousRoute";
if (code == V3RouteOfAdministration._INTRAVENTRICULARROUTE)
return "_IntraventricularRoute";
if (code == V3RouteOfAdministration._INTRAVESICLEROUTE)
return "_IntravesicleRoute";
if (code == V3RouteOfAdministration._INTRAVITREALROUTE)
return "_IntravitrealRoute";
if (code == V3RouteOfAdministration._JEJUNUMROUTE)
return "_JejunumRoute";
if (code == V3RouteOfAdministration._LACRIMALPUNCTAROUTE)
return "_LacrimalPunctaRoute";
if (code == V3RouteOfAdministration._LARYNGEALROUTE)
return "_LaryngealRoute";
if (code == V3RouteOfAdministration._LINGUALROUTE)
return "_LingualRoute";
if (code == V3RouteOfAdministration._MUCOUSMEMBRANEROUTE)
return "_MucousMembraneRoute";
if (code == V3RouteOfAdministration._NAILROUTE)
return "_NailRoute";
if (code == V3RouteOfAdministration._NASALROUTE)
return "_NasalRoute";
if (code == V3RouteOfAdministration._OPHTHALMICROUTE)
return "_OphthalmicRoute";
if (code == V3RouteOfAdministration._ORALROUTE)
return "_OralRoute";
if (code == V3RouteOfAdministration._OROMUCOSALROUTE)
return "_OromucosalRoute";
if (code == V3RouteOfAdministration._OROPHARYNGEALROUTE)
return "_OropharyngealRoute";
if (code == V3RouteOfAdministration._OTICROUTE)
return "_OticRoute";
if (code == V3RouteOfAdministration._PARANASALSINUSESROUTE)
return "_ParanasalSinusesRoute";
if (code == V3RouteOfAdministration._PARENTERALROUTE)
return "_ParenteralRoute";
if (code == V3RouteOfAdministration._PERIANALROUTE)
return "_PerianalRoute";
if (code == V3RouteOfAdministration._PERIARTICULARROUTE)
return "_PeriarticularRoute";
if (code == V3RouteOfAdministration._PERIDURALROUTE)
return "_PeriduralRoute";
if (code == V3RouteOfAdministration._PERINEALROUTE)
return "_PerinealRoute";
if (code == V3RouteOfAdministration._PERINEURALROUTE)
return "_PerineuralRoute";
if (code == V3RouteOfAdministration._PERIODONTALROUTE)
return "_PeriodontalRoute";
if (code == V3RouteOfAdministration._PULMONARYROUTE)
return "_PulmonaryRoute";
if (code == V3RouteOfAdministration._RECTALROUTE)
return "_RectalRoute";
if (code == V3RouteOfAdministration._RESPIRATORYTRACTROUTE)
return "_RespiratoryTractRoute";
if (code == V3RouteOfAdministration._RETROBULBARROUTE)
return "_RetrobulbarRoute";
if (code == V3RouteOfAdministration._SCALPROUTE)
return "_ScalpRoute";
if (code == V3RouteOfAdministration._SINUSUNSPECIFIEDROUTE)
return "_SinusUnspecifiedRoute";
if (code == V3RouteOfAdministration._SKINROUTE)
return "_SkinRoute";
if (code == V3RouteOfAdministration._SOFTTISSUEROUTE)
return "_SoftTissueRoute";
if (code == V3RouteOfAdministration._SUBARACHNOIDROUTE)
return "_SubarachnoidRoute";
if (code == V3RouteOfAdministration._SUBCONJUNCTIVALROUTE)
return "_SubconjunctivalRoute";
if (code == V3RouteOfAdministration._SUBCUTANEOUSROUTE)
return "_SubcutaneousRoute";
if (code == V3RouteOfAdministration._SUBLESIONALROUTE)
return "_SublesionalRoute";
if (code == V3RouteOfAdministration._SUBLINGUALROUTE)
return "_SublingualRoute";
if (code == V3RouteOfAdministration._SUBMUCOSALROUTE)
return "_SubmucosalRoute";
if (code == V3RouteOfAdministration._TRACHEOSTOMYROUTE)
return "_TracheostomyRoute";
if (code == V3RouteOfAdministration._TRANSMUCOSALROUTE)
return "_TransmucosalRoute";
if (code == V3RouteOfAdministration._TRANSPLACENTALROUTE)
return "_TransplacentalRoute";
if (code == V3RouteOfAdministration._TRANSTRACHEALROUTE)
return "_TranstrachealRoute";
if (code == V3RouteOfAdministration._TRANSTYMPANICROUTE)
return "_TranstympanicRoute";
if (code == V3RouteOfAdministration._URETERALROUTE)
return "_UreteralRoute";
if (code == V3RouteOfAdministration._URETHRALROUTE)
return "_UrethralRoute";
if (code == V3RouteOfAdministration._URINARYBLADDERROUTE)
return "_UrinaryBladderRoute";
if (code == V3RouteOfAdministration._URINARYTRACTROUTE)
return "_UrinaryTractRoute";
if (code == V3RouteOfAdministration._VAGINALROUTE)
return "_VaginalRoute";
if (code == V3RouteOfAdministration._VITREOUSHUMOURROUTE)
return "_VitreousHumourRoute";
return "?";
}
}
| bhits/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/V3RouteOfAdministrationEnumFactory.java |
213,487 | package com.oregonscientific.meep.global;
public class DefaultBadwords {
public static String[] badwords = {
"3P",
"Abietto",
"Abtreibung",
"Abtreibungen",
"Alk",
"Alkohol",
"Allupato",
"Ameba",
"Ammucchiata",
"Analsex",
"Anarchismus",
"Anarchist",
"Antichrist",
"Anus",
"Arsch",
"Arschloch",
"Asch",
"Asexualität",
"Assatanato",
"B.S.",
"Babbeo",
"Bagascia",
"Barbie",
"Barbone",
"Bastard",
"Beschneidung",
"Bestialität",
"Bidet",
"Bisexualität",
"Bisexuelle",
"Blanco",
"Blow-job",
"Blowjob",
"Bocchinara",
"Bocchino",
"Boiata",
"Bondage",
"Bong",
"Bordell",
"Bordelle",
"Botta",
"Brinca",
"Brust",
"Brustwarze",
"Brustwarzen",
"Brüste",
"Bucaiolo",
"Busen",
"Cacchio",
"Caciocappella",
"Cadavere",
"Cagare",
"Cagna",
"Cappella",
"Cavolo!",
"Cesso",
"Citrullo",
"Ciucciami il cazzo",
"Cockring",
"Crucco",
"Culattone",
"Cunnilingus",
"Dildo",
"Dildos",
"Ditalino",
"Domina",
"Dope",
"Dyspareunia",
"Ehe vollziehen",
"Ehebett",
"Ehebrecher",
"Ehebrecherin",
"Ehebruch",
"Eier jucken",
"Eier",
"Einlauf",
"Einläufe",
"Ejakulation",
"Ekstase",
"Enfermedades de transmisión sexual",
"Erektion",
"Erektionen",
"Erotika",
"Erotomanie",
"Eunuchen ",
"Exhibitionismus",
"F.O.A.D",
"Farabutto",
"Faschist",
"Felatio",
"Fellatio",
"Fetisch",
"Fetische",
"Fick",
"Ficker",
"Ficks",
"Figlio di buona donna",
"Figone",
"Fokker",
"Fotze",
"Fotzen",
"Fregare",
"Fregna",
"Freier",
"Freudenhaus",
"Fricchettone",
"Frigidität",
"Frottage",
"Fuori come un balcone",
"Furz",
"Furzer",
"Fürze",
"Geilheit",
"Genital",
"Genitalien",
"Geschlechtsverkehr",
"Gleitmittel",
"Gnocca",
"Goldone",
"Grilletto",
"HH",
"Halbwelt",
"Heil Hitler",
"Hermafrodita",
"Hermaphrodit",
"Hermaphroditen",
"Hermaphroditic",
"Hermaphroditismus",
"Heroin",
"Herpes",
"Heterosexualität",
"Homo",
"Homos",
"Homosexualität",
"Homosexuelle",
"Homosexueller",
"Hure",
"Hämorrhoiden",
"Höhepunkt",
"Höhepunkte",
"I want sex",
"IV drugs",
"Ich will Sex",
"Idiot",
"Impotenz",
"Impregna",
"Impregnates",
"Inculare",
"Inzest",
"Iwantsex",
"Joint",
"Jungfernhäutchen",
"Junkie",
"Junkies",
"Kastration",
"Keuschheit",
"Klitoris",
"Koitus",
"Kokain",
"Koks",
"Kondom",
"Kondome",
"Konkubine",
"Konkubinen",
"Kontinenz",
"Kopulation",
"Kopulierende",
"Kotze",
"Ku Klux Klan",
"Kuomintang",
"LSD",
"Lecchino",
"Leck meine Möse",
"Leck meinen Penis",
"Leck meinen Schwanz",
"Leck mir die Fotze",
"Leck mir die Muschi",
"Lesbe",
"Lesben",
"Lesbianismus",
"Lesbos",
"Libido",
"Libidos",
"Loffa",
"Loffare",
"Lover",
"Lucifer",
"Lust",
"Luzifer",
"Lúcifer",
"Madonna!",
"Maldita sea",
"Maldita seja",
"Mannaggia",
"Marpione",
"Masturbation",
"Me ne frego",
"Menstruation",
"Menstruations",
"Mignotta",
"Militarismus",
"Minchia",
"Minchione",
"Monta",
"Montare",
"Nackte",
"Nacktheit",
"Nazi",
"Nazis",
"Necromania",
"Neger",
"Negerin",
"Nekrophile",
"Nekrophiler",
"Nekrophilie",
"Neo-Nazi",
"Nigga",
"Niggas",
"Nigger",
"Niggers",
"No judía",
"Nudismus",
"Nymphe",
"Pacco",
"Palloso",
"Patacca",
"Patatina",
"Patonza",
"Per carità!",
"Pera",
"Pippa",
"Pipì",
"Pistolotto",
"Pomiciare",
"Porca madonna",
"Porca miseria",
"Porca puttana",
"Porco",
"Puff",
"Puffs",
"Quero sexo",
"Quiero sexo",
"Reich",
"Reizwäsche",
"Ricchione",
"Rimorchiare",
"Rincoglionire",
"Rincoglionito",
"S&M",
"S.O.B",
"SM",
"SNAFU",
"STD",
"Sadomaso",
"Sadomasochisme",
"Satanás",
"Sbattere",
"Sbattersi",
"Sborrone",
"Scatole",
"Schwanz gelutscht",
"Schwanz lutschen",
"Schwanz lutschend",
"Schwanz",
"Schwanzlutscher",
"Schwanzring",
"Schwule",
"Sega",
"Sex Machine",
"Sfiga",
"Slinguare",
"Slinguata",
"Sodoma",
"Spermafleck",
"Ständer",
"Sveltina",
"Sverginare",
"Terrone",
"Terror Blanco",
"Titte",
"Titten",
"Tittenfick",
"Titties",
"Tryst",
"Vacca",
"Vaffanculo",
"Venire",
"Vorhaut",
"Vorhäute",
"White Terror",
"Zinne",
"Zuhälter",
"Zölibat",
"Zölibatäre",
"a flagelação",
"a maldição de deus",
"a-hole",
"abgetrieben",
"abortado",
"abortar",
"aborted",
"aborti",
"aborting",
"abortion",
"abortions",
"abortito",
"abortive",
"abortivo",
"aborto",
"abortos",
"abspritzen",
"abtreiben",
"abtreibend",
"accidenti!",
"accoppiarsi",
"accoppiato",
"accro",
"acide",
"acto sexual",
"actos sexuales",
"addict",
"addictif",
"addictive",
"adicto",
"adictos",
"adultera",
"adulterer",
"adulterers",
"adulteress",
"adulteri",
"adulteries",
"adulterio",
"adulterios",
"adultero",
"adulterous",
"adultery",
"adultère",
"adultères",
"adultério",
"adultérios",
"adúltera",
"adúltero",
"adúlteros",
"afeminado",
"aguafiestas",
"agujero del amor",
"agujero del culo",
"alcohol",
"alcoholic",
"alcohólico",
"alcol",
"alcolici",
"alcolico",
"alcool",
"alcoolique",
"alcoólico",
"alkoholisch",
"alla pecorina",
"alucinógeno",
"amante",
"amateur",
"amateurisme",
"anal sex",
"anal",
"anale",
"analer Sex",
"analsex",
"anarchia",
"anarchico",
"anarchism",
"anarchisme",
"anarchist",
"anarchiste",
"anarquismo",
"anarquista",
"anello del cazzo",
"ani",
"anillo de la polla",
"anillo para la polla",
"ano",
"anorgasmia",
"anorgasmisch",
"anos",
"antichrist",
"antichrists",
"anticonceptivo intrauterino",
"anticonceptivo vaginal",
"anticristi",
"anticristo",
"anticristos",
"antifrition",
"antéchrist",
"antéchrists",
"anus",
"anuses",
"anão",
"anões",
"apesta",
"arrapante",
"arrapatissimo",
"arrotar",
"arsc",
"arse hole",
"arse",
"arsehole",
"arses",
"asesinato",
"asesinatos",
"asessuale",
"asessualità",
"asexual",
"asexualidad",
"asexualitand",
"asexuality",
"asexualité",
"asexually",
"asexualmente",
"asexuell",
"asexué",
"asiático con la cabeza grande",
"asiáticos con la cabeza grande",
"ass munch",
"ass wipes",
"ass",
"assassin",
"assassine",
"asses",
"assexual",
"asshole",
"assmunch",
"asswipe",
"asswipes",
"ato sexual",
"atontado",
"atos sexuais",
"atracción",
"attracción sexual",
"außerehelich",
"avortement",
"avortements",
"avorter",
"avorté",
"azotado",
"azotaina",
"azotar",
"azotes",
"baciami il culo",
"badass",
"baldoria",
"balle",
"balled",
"balling",
"ballocks",
"balls",
"ballsy",
"bambole",
"bande",
"bander",
"bar de gente de color",
"bar de gente de cor",
"barf",
"bastard",
"bastarda",
"bastardaggine",
"bastardamente",
"bastardi",
"bastardise",
"bastardises",
"bastardize",
"bastardizes",
"bastardly",
"bastardo",
"bastards",
"bastardy",
"bastardía",
"basura blanca",
"batacchi",
"batacchio",
"battona",
"battone",
"bazoom",
"beaner",
"beaners",
"beano",
"beastial",
"beastiality",
"beaver floss",
"beaver",
"beaverfloss",
"beavers",
"beber hasta el fondo",
"bebida alcohólica",
"bebida alcoólica",
"bebidas alcohólicas",
"bebidas alcoólicas",
"beebies",
"beijo com língua",
"beone",
"besarle el culo",
"beschneiden",
"beschnitten",
"beso con lengua",
"besta",
"bestial",
"bestialidad",
"bestialidade",
"bestialisch",
"bestialismo",
"bestiality",
"bestialité",
"bi-sexual",
"bi-sexuals",
"bi-sexuel",
"bianco",
"bidet",
"bidets",
"bidè",
"bidé",
"bidés",
"bimbos",
"biopsias",
"biopsie",
"biopsies",
"bisessuale",
"bisessuali",
"bisessualità",
"bisexual",
"bisexuales",
"bisexualidad",
"bisexuality",
"bisexualité",
"bisexuals",
"bisexuel",
"bisexuell",
"bisexuels",
"bissexual",
"bissexualidade",
"bitch",
"bitched",
"bitches",
"bitchin",
"bitching",
"bite",
"bière",
"blackie",
"blackies",
"blanco",
"blancos",
"blasphème",
"blasphématoire",
"blasphémer",
"blojob",
"blowjob",
"boff",
"boffing",
"boffs",
"boink",
"boinking",
"boinks",
"bola de grasa",
"bolas de grasa",
"bolas",
"bollera",
"bolleras",
"bollocks",
"bondage",
"boner",
"boners",
"bong",
"bonk",
"bonking",
"bonks",
"boob",
"boobies",
"boobs",
"booby",
"booger",
"booze",
"boozed",
"boozer",
"boozes",
"boozy",
"bordel",
"bordelli",
"bordello",
"bordéis",
"borracho",
"bosom",
"bosomy",
"bottomless",
"bottoms",
"bowel",
"bowels",
"boy 2 boy",
"boy 4 boy",
"boy for boy",
"boy on boy",
"boy s2 boys",
"boy to boy",
"boy2boy",
"boy4boy",
"boyforboy",
"boyonboy",
"boys 2 boys",
"boys 4 boys",
"boys for boys",
"boys on boys",
"boys2boys",
"boys4boys",
"boysforboys",
"boysonboys",
"boytoboy",
"bragas",
"branleur",
"branleuse",
"breast",
"breasts",
"breechless",
"brothel",
"brothels",
"brutal",
"buco del culo",
"budella",
"bugger",
"buggers",
"buggery",
"bull shit",
"bull shits",
"bull shitted",
"bull shitter",
"bull shitting",
"bullshit",
"bullshits",
"bullshitted",
"bullshitter",
"bullshitting",
"bum hole",
"bum",
"bum-hole",
"bumhole",
"bums",
"bumsen",
"bunda",
"bundas",
"bung hole",
"bung",
"bunghole",
"burdel",
"burdeles",
"burp",
"burro",
"burros",
"bust",
"bustier",
"busto",
"bustos",
"busts",
"busty",
"butt hole",
"butt munch",
"butt weed",
"butt",
"butthole",
"buttmunch",
"buttock",
"buttocks",
"buttplug",
"butts",
"buttweed",
"buxom",
"bâtard",
"bâtarde",
"bâtardes",
"bâtardise",
"bâtardises",
"bâtards",
"bésame el culo",
"böses Mädchen",
"cabina privada para ver porno",
"cabinas privadas para ver porno",
"cabrones",
"cabrón",
"caca",
"cacca",
"cachonda",
"cagadero",
"cagando",
"calentura",
"caliente",
"camel toe",
"cameltoe",
"camisinha",
"camisinhas",
"canna",
"canuck",
"capezzoli",
"capezzolo",
"cara de merda",
"cara de mierda",
"caras de merda",
"caras de mierda",
"carnal",
"carnale",
"casino",
"castidad",
"castità",
"casto",
"castración",
"castrado",
"castrados",
"castrar",
"castrare",
"castrate",
"castrated",
"castrates",
"castration",
"castrato",
"castrazione",
"castré",
"castrés",
"cavolate",
"cazzata",
"cazzate",
"cazzi",
"cazziata",
"cazzo",
"cazzone",
"cazzoni",
"cazzuto",
"celibacy",
"celibate",
"celibates",
"celibato",
"celibe",
"celibi",
"centerfold",
"centrefold",
"centro de atención",
"cerdos",
"cervical",
"cervicale",
"cervice",
"cervix cap",
"cervix",
"chaste",
"chasteté",
"chastity",
"chatte",
"chaval con chaval",
"chavales con chavales",
"checca",
"chiappa",
"chiappe",
"chiavata",
"chiavate",
"chica com chica",
"chica con chica",
"chica mala",
"chica má",
"chicas com chicas",
"chicas con chicas",
"chick 2 chick",
"chick 4 chick",
"chick for chick",
"chick on chick",
"chick to chick",
"chick2chick",
"chick4chick",
"chicken shit",
"chickforchick",
"chickonchick",
"chicks 2 chicks",
"chicks 4 chicks",
"chicks for chicks",
"chicks on chicks",
"chicks to chicks",
"chicks2chicks",
"chicks4chicks",
"chicksforchicks",
"chicksonchicks",
"chickstochicks",
"chicktochick",
"chico com chico",
"chico con chico",
"chicos com chicos",
"chicos con chicos",
"chier",
"chieur",
"chieuse",
"chiez",
"chink",
"chinks",
"chinorro",
"chinorros",
"choad",
"choads",
"chocho",
"chochos",
"chordee",
"chulo",
"chupa ano",
"chupa",
"chupada",
"chupadas",
"chupador",
"chupapolla",
"chupapollas",
"chupar la polla",
"chupar",
"chutarse",
"chute de mezcla de heroína y cocaína",
"chúpamela",
"ciccioni",
"cigarette",
"cigarettes",
"cigarrillo",
"circoncidere",
"circoncis",
"circoncision",
"circoncisione",
"circonciso",
"circumcise",
"circumcised",
"circumcises",
"circumcision",
"circuncida",
"circuncidar",
"circuncisión",
"circunciso",
"civetta",
"climax",
"climaxes",
"clistere",
"clisteri",
"clit",
"clitoride",
"clitoridi",
"clitoris",
"clits",
"clitty",
"clímax",
"clítoris",
"coca",
"cocaina",
"cocaine",
"cocaína",
"cocaïne",
"cocaïnomane",
"cocchiume",
"cock ring",
"cock sucked",
"cock sucker",
"cock sucking",
"cock sucks",
"cock",
"cocked",
"cocking",
"cockring",
"cocks",
"cocksucked",
"cocksucker",
"cocksucking",
"cocksucks",
"cocos",
"codiciaron",
"coglione",
"coition",
"coito",
"coitus",
"cojones",
"coke",
"colocarse con setas",
"colonist",
"colono",
"colored",
"colour bar",
"coloured",
"come mi carne",
"come-me",
"comechocho",
"comecoño",
"comemierda",
"comer el coño",
"comer la polla",
"comestain",
"comunista",
"con cojones",
"con",
"conato di vomito",
"concubina",
"concubinas",
"concubine",
"concubines",
"concupiscent",
"concupiscente",
"condenatoria",
"condenatória",
"condom",
"condoms",
"condones",
"condón",
"conjugal bed",
"conjugal rite",
"connard",
"connards",
"connasse",
"connasses",
"conne",
"consolador",
"consoladores",
"contaballe",
"continence",
"continencia",
"continenza",
"continência",
"coolie",
"coon",
"coons",
"cooter",
"copula",
"copulando",
"copular",
"copularon",
"copulate",
"copulated",
"copulates",
"copulating",
"copulation",
"copulazione",
"copule",
"copuler",
"coquetear",
"coquette",
"corn hole",
"corn holes",
"cornhole",
"cornholes",
"cornudo",
"cornudos",
"cornuti",
"cornuto",
"corrompido",
"cotius intermammas",
"couilles",
"coït",
"coño caliente",
"coño",
"coños",
"crack whore",
"crack",
"crackwhore",
"crap",
"crapping",
"craps",
"creep joint",
"creeper",
"cretino",
"cripple",
"croix gammée",
"crotch",
"crotches",
"crémation",
"crématoire",
"crétin",
"crétine",
"cu trazer",
"cu",
"cuckold",
"cuckolds",
"cuello uterino",
"cuite",
"cuition",
"cul",
"culi",
"culo sucio",
"culo",
"culos",
"culí",
"cum stain",
"cum",
"cumming",
"cums",
"cumstain",
"cunnilingio",
"cunnilingus",
"cunt",
"cunts",
"cus",
"cutre",
"célibat",
"célibataire",
"célibataires",
"célibe",
"célibes",
"cómeme",
"cópula",
"cú",
"da finocchio",
"da sballo",
"dago",
"dagos",
"dalkon shield",
"dammit",
"damn",
"damnation",
"damned",
"damning",
"damnit",
"damns",
"damné",
"dans ton cul",
"darkey",
"darkie",
"darkies",
"darky",
"de color",
"de cor",
"de mierda",
"debauch",
"debauched",
"debauchery",
"defeca",
"defecación",
"defecado",
"defecar",
"defecare",
"defecate",
"defecated",
"defecates",
"defecating",
"defecation",
"defecato",
"defecazione",
"defecação",
"deflorada",
"deflorar",
"deflorare",
"deflorata",
"defloration",
"deflorazione",
"defloração",
"deflower",
"deflowered",
"deflowering",
"deflowers",
"degenerar",
"del pene",
"demimonde",
"demimondes",
"depravato",
"depucelate",
"depucelation",
"derriere",
"derrieres",
"desfloración",
"desflorada",
"desflorar",
"desnudarse",
"desnudez",
"desnudo",
"desnudos",
"destrozar el agujero",
"desvergonzada",
"desvirga",
"desvirgación",
"desvirgar",
"di colore",
"diamine",
"diarrea",
"diarreas",
"diarree",
"diarreia",
"diarreias",
"diarrhea",
"diarrhoea",
"diarrhoeas",
"diavolo!",
"dick head",
"dick ring",
"dick sucker",
"dick suckers",
"dick sucking",
"dick sucks",
"dick weed",
"dicke Titten",
"dickhead",
"dickring",
"dicks",
"dicksucker",
"dicksuckers",
"dicksucking",
"dicksucks",
"dickweed",
"dike",
"dikes",
"dilatador anal",
"dildo",
"dildoe",
"dildoes",
"dildos",
"dink",
"dirty ass",
"dirty bitch",
"dirty fucker",
"dirty girl",
"dirty sex",
"dirtyass",
"dirtybitch",
"dirtyfucker",
"dirtygirl",
"dirtysex",
"dissoluto",
"do me",
"dog shit",
"doggy style",
"doggystyle",
"dogshit",
"dominación",
"dominateur",
"domination",
"dominatrice",
"dominatrix",
"dominazione",
"dominação",
"dong",
"donnacce",
"donnaccia",
"donnicciola",
"dope",
"dopes",
"dopey",
"dork",
"dorks",
"double pénétration",
"douche bag",
"douche bags",
"douche job",
"douche jobs",
"douche",
"douchebag",
"douchebags",
"douchejob",
"douchejobs",
"douches",
"downers",
"droga",
"drogadicto",
"drogado",
"drogar-se",
"drogarse",
"drogas",
"drogue",
"drogues",
"drogué",
"drop acid",
"dung",
"duro",
"dwarf",
"dwarfing",
"dwarfish",
"dwarfism",
"dwarfisms",
"dwarfness",
"dwarfs",
"dyke",
"dykes",
"dysparcunia",
"débauchage",
"débauche",
"débil",
"débiles",
"défleurage",
"défleurer",
"déflorer",
"déflorée",
"défonce",
"défoncé",
"défécation",
"déféquer",
"dépucelage",
"dépuceler",
"eat me",
"eat my meat",
"eatcunt",
"eatpussy",
"eatshit",
"echar un polvo",
"ecstasy",
"ehebreherisch",
"eiacula",
"eiaculare",
"eiaculato",
"eiaculazione",
"eight ball",
"eightball",
"ejacula",
"ejaculado",
"ejacular",
"ejaculate",
"ejaculated",
"ejaculates",
"ejaculation",
"ejaculação",
"ejakulieren",
"ejakuliert",
"ejakulierte",
"el exceso de lujuria",
"el más jorobado",
"el sexo Rey",
"el sexo de lupino",
"el sexo reina",
"emorroide",
"empujar por el culo",
"enanismo",
"enano",
"enanos",
"encuentro sexual",
"enculé",
"enculée",
"enculées",
"enculés",
"endogamia",
"enema",
"enemas",
"enfer",
"enima",
"enimas",
"entrepierna",
"entrepiernas",
"erba",
"erecciones",
"erección",
"erection",
"erections",
"eretto",
"erezione",
"erezioni",
"ereção",
"ereções",
"ermafrodita",
"ermafroditi",
"ermafroditismo",
"ermafrodito",
"eroina",
"erotic",
"erotica",
"eroticism",
"erotico",
"erotisch",
"erotism",
"erotismo",
"erotomania",
"erotomanía",
"eructar",
"erótica",
"erótico",
"escatológico",
"esclavage",
"esclavagisme",
"esclavo",
"esclavos",
"escoria",
"escorias",
"escravidão sexual",
"escroto",
"escrotos",
"esfínter",
"esibizionismo",
"esperma",
"espermatozoides",
"espermicida",
"espástico",
"essere eccitato",
"estasi",
"esterol",
"estilo perrito",
"estimulación del clítoris",
"estimulação do clitóris",
"estiércol",
"estúpido",
"estúpidos",
"eterosessualità",
"exclavitud sexual",
"exhibicionismo",
"exhibitionism",
"exhibitionnisme",
"exhibitionniste",
"exibicionismo",
"exploiter",
"explorador",
"explotador",
"extasis",
"extraconiugale",
"extramarital",
"extramatrimonial",
"eyacula",
"eyaculación",
"eyaculado",
"eyacular",
"facce da cazzo",
"faccia da cazzo",
"faccia di merda",
"fag",
"faggot",
"faggots",
"faggy",
"fagot",
"fagoted",
"fagots",
"fags",
"fallico",
"fallo",
"falo",
"fanner",
"fannies",
"fanny",
"fare il cascamorto",
"fare pompini",
"fart",
"farted",
"farter",
"farting",
"farts",
"fascino",
"fascist",
"fascista",
"fasciste",
"fatties",
"fattiest",
"fatto",
"fck",
"fcker",
"fckers",
"fcking",
"fcks",
"feccia",
"feel-up",
"felaciones",
"felación",
"felador",
"felar",
"felatio",
"felação",
"felch",
"felcher",
"felches",
"felching",
"fellate",
"fellatio ",
"fellatio",
"fellation",
"fellations",
"feltch",
"feltcher",
"feltches",
"feltching",
"fesses",
"fesso",
"fetiche",
"fetiches",
"fetish",
"fetishes",
"fica",
"fiche",
"fickend",
"figli di puttana",
"figlio di puttana",
"filho de puta",
"filhos de puta",
"filia",
"film X",
"film de cul",
"film porno",
"film pornographique",
"film snuff",
"fils de pute",
"fimosi",
"fimosis",
"finger bang",
"finger banger",
"fingerbang",
"fingerbanger",
"finocchi",
"finocchio",
"fisten",
"fisting",
"flagelaciones",
"flagelación",
"flagelações",
"flirtear",
"flog",
"flogging",
"flogs",
"flujo vaginal",
"foder",
"folar",
"folla",
"follada",
"follador",
"follar por el culo",
"follar",
"fore skin",
"foreskin",
"foreskins",
"fornica",
"fornicación",
"fornicado",
"fornicador",
"fornicando",
"fornicar",
"fornicare",
"fornicate",
"fornicated",
"fornicates",
"fornicateur",
"fornicating",
"fornication",
"fornicato",
"fornicator",
"fornicatore",
"fornicazione",
"fornicação",
"forniquer",
"foto di pin-up",
"fottuta",
"fottutissimo",
"fottuto",
"fouille merde",
"french cap",
"frenchie",
"frenchy",
"frig",
"frigide",
"frigidez",
"frigidity",
"frigidità",
"frigidité",
"friqui",
"froci",
"frocio",
"frotación",
"frottage",
"fuck face",
"fuck faces",
"fuck",
"fucka",
"fuckas",
"fucked",
"fucker",
"fuckers",
"fuckface",
"fuckfaces",
"fucking",
"fucks",
"fudge packer",
"fudge packing",
"fudgepacker",
"fudgepacking",
"fumador",
"fumatore di erba",
"fumatore di marijuana",
"fumatore",
"fuq",
"fuqed",
"fuqing",
"fuqs",
"furzend",
"fustigare",
"fustigazione",
"fálico",
"fétiche",
"fétichisme",
"gallina",
"gang bang",
"gang banger",
"gang bangers",
"gang banging",
"gang bangs",
"gangbang",
"gangbanger",
"gangbangers",
"gangbanging",
"gangbangs",
"gatillazo",
"gatita sexual",
"gay",
"gays",
"gefurzt",
"geil",
"geisha",
"geishas",
"geishe",
"genital",
"genitale",
"genitales femeninos",
"genitales",
"genitali",
"genitalia",
"genitals",
"genitálias",
"gerbiling",
"get high",
"get laid",
"get some ass",
"get some dick",
"get some pussy",
"get some",
"getsomeass",
"getsomedick",
"getsomepussy",
"gilipollas",
"gimp",
"girl 2 girl",
"girl 4 girl",
"girl for girl",
"girl on girl",
"girl to girl",
"girl2girl",
"girl4girl",
"girlforgirl",
"girlongirl",
"girls 2 girls",
"girls 4 girls",
"girls for girls",
"girls on girls",
"girls to girls",
"girls2girls",
"girls4girls",
"girlsforgirls",
"girlsongirls",
"girlstogirls",
"girltogirl",
"give me head",
"givemehead",
"go downonme",
"god dammit",
"god damn",
"god damned",
"goddammit",
"goddamn",
"goddamned",
"gode",
"godemichet",
"godownonme",
"gonad",
"gonade",
"gonadi",
"gonads",
"gonorrea",
"gonorreia",
"gonorreico",
"gonorrhea",
"gonorrhoea",
"gonorrhoeal",
"gonorrico",
"gonorréico",
"gonzo",
"gook",
"gooks",
"gordos",
"grapschen",
"grassoccio",
"gravida",
"gravide",
"greaseball",
"greaseballs",
"greaser",
"greasers",
"groin",
"groins",
"guanto",
"guardone",
"guardoni",
"guarra",
"gueule",
"guy 2 guy",
"guy 4 guy",
"guy for guy",
"guy on guy",
"guy to guy",
"guy2guy",
"guy4guy",
"guyforguy",
"guyonguy",
"guys 2 guys",
"guys 4 guys",
"guys for guys",
"guys on guys",
"guys to guys",
"guys2guys",
"guys4guys",
"guysforguys",
"guysonguys",
"guystoguys",
"guytoguy",
"génital",
"génitale",
"gónada",
"gónadas",
"hacer un sesenta y nueve",
"hacerlo",
"hacerse una paja",
"hachís",
"hair circle",
"hair pie",
"hair pies",
"hairpie",
"hairpies",
"hand job",
"handicapé",
"hard on",
"hard ons",
"hardon",
"hardons",
"hascisc",
"hash",
"hashish",
"hebe",
"hebes",
"heebie",
"heißer Sex",
"hell ",
"hemorrhoid",
"hemorroidas",
"hemorroides",
"hermafrodita",
"hermafroditas",
"hermafroditismo",
"hermaphrodite",
"hermaphrodites",
"hermaphroditisch",
"hermaphroditism",
"heroin",
"heroína",
"herpes",
"heterosexualidad",
"heterosexuality",
"heterossexualidade",
"hijo de puta",
"hijos de puta",
"himen",
"histerectomía",
"histerectomías",
"hoar",
"hombre com hombre",
"hombre con hombre",
"hombres con hombres",
"homem com homem",
"homens com homens",
"homo sexual",
"homo sexuals",
"homo",
"homos",
"homosexual",
"homosexuales",
"homosexualidad",
"homosexuality",
"homosexuals",
"homosexuel",
"homosexuell",
"homossexual",
"homossexualidade",
"honkey",
"honkie",
"honkies",
"honky",
"hooker",
"hookers",
"hooter",
"hooters",
"hornie",
"horniness",
"horny",
"horse shit",
"horseshit",
"hot asspussy",
"hot sex",
"huff",
"huffiest",
"huffing",
"hummer",
"hump",
"humped",
"humpiest",
"humping",
"humps",
"hussies",
"hussy",
"hymen",
"hymens",
"hysterectomies",
"hysterectomy",
"hédonisme",
"hédoniste",
"hétéro",
"hétérosexualité",
"hétérosexuel",
"hímenes",
"idea lasciva",
"idea lewd",
"ideia lasciva",
"idiot",
"idiota",
"idiotas",
"idiote",
"idiotez",
"idiotia",
"illecito",
"illicit",
"illicite",
"ilícito",
"imbastardire",
"imbecil",
"imbecille",
"imbecilli",
"imbranato",
"imbécil",
"imbécile",
"imene",
"imeni",
"impotence",
"impotencia",
"impotent",
"impotente",
"impotenza",
"impotência",
"impregnación",
"impregnado",
"impregnar",
"impregnate",
"impregnated",
"impregnation",
"impregnator",
"impregnação",
"inadeguatezza sessuale",
"inbred",
"inbreed",
"inbreeding",
"inbreeds",
"incapace",
"incasinato",
"incazzato",
"incest",
"incesto",
"incestuoso",
"incestuous",
"incher",
"indecent",
"indecente",
"inferno",
"infierno",
"inforcatura",
"inforcature",
"ingravidamento",
"inguine",
"inguini",
"innato",
"insuficiencia sexual",
"intercourse",
"intercurso",
"inzestuös",
"inútil",
"irrumare",
"isterectomia",
"isterectomie",
"itiotas",
"jack ass",
"jack off",
"jackass",
"jackasses",
"jackoff",
"jag off",
"jap",
"japs",
"jerk off",
"jerk",
"jerkoff",
"jerks",
"jew boy",
"jewboy",
"jewess",
"jig",
"jism",
"jizm",
"jizz",
"joder",
"joderse y morir",
"jodido",
"joint",
"joroba",
"jorobas",
"judio",
"judía",
"judío",
"judíos",
"jugo de esperma",
"jugs",
"junked",
"junkie",
"junkies",
"junky",
"kastrieren",
"kastriert",
"keusch",
"kike",
"kikes",
"killer",
"kinky",
"kiss ass",
"kiss my ass",
"kissass",
"kissherass",
"kisshisass",
"kissmyass",
"kkk",
"knee-chest position",
"knickers",
"knob",
"knobs",
"knocker",
"knockers",
"koolie licker",
"koolie",
"koolielicker",
"koolies",
"kopulieren",
"kopulierend",
"kopulierten",
"ku klux klan",
"la flagelación",
"la maldición del dios",
"labbra",
"labia",
"labial",
"labiale",
"labio",
"labios vaginales",
"lamecoños",
"lamer el coño",
"lamer el esfinter",
"lamer mi coño",
"lamer mi pene",
"lamer mi polla",
"lamerme el coño",
"lascivia",
"lascivious",
"lascivo",
"lasziv",
"lavaggi",
"lavaggio",
"lebbroso",
"leccaculi",
"leccaculo",
"leccami la fica",
"leccapiedi",
"lecher",
"lecho conyugal",
"leito conjugal",
"lencería",
"leper",
"leproso",
"lesbian",
"lesbiana",
"lesbianas",
"lesbianism",
"lesbianismo",
"lesbians",
"lesbica",
"lesbiche",
"lesbienne",
"lesbisch",
"lesbo",
"lesbos",
"letch",
"letteratura erotica",
"letto coniugale",
"lez",
"libertinagem",
"libertinaje",
"libertino",
"libidinoso",
"libido",
"libidos",
"lick my cunt",
"lick my dick",
"lick my penis",
"lick my pussy",
"lick my twat",
"limpiaculos",
"lingerie",
"lisiado",
"lista de mierdas",
"lit conjugal",
"loches",
"los testículos",
"love hole",
"lovehole",
"lover",
"lsd",
"lubricador",
"lubricar",
"lubricate",
"lubricator",
"lucifer",
"luciferes",
"luciferi",
"lucifero",
"lucifers",
"lucíferes",
"lujuria",
"lussuria",
"lussurioso",
"lust",
"lusted",
"luster",
"lustful excess",
"lustful",
"lustierl",
"lustiest",
"lustily",
"lusting",
"lustre",
"lustrier",
"lusts",
"lusty",
"luxúria",
"lábio",
"látigo",
"látigos",
"lüstern",
"magnaccia",
"maior idiota",
"maldita sea",
"maldita seja",
"maldito deus",
"maldito dios",
"maldito",
"maledetti",
"maledetto",
"mamada",
"mamadas",
"mammaries",
"mammella",
"mammelle",
"mammy",
"man 2 man",
"man 4 man",
"man for man",
"man on man",
"man to man",
"man2man",
"man4man",
"mancha de semen",
"manforman",
"mangiamerda",
"mangiami",
"mania",
"maniaque",
"manie",
"mano morta",
"manonman",
"mantenuta",
"mantoman",
"marica",
"maricas",
"maricones",
"maricón",
"marihuana",
"marijuana",
"marijuanas",
"mariquita",
"maryjane",
"masochism",
"masochismo",
"masochist",
"masochista",
"masochistic",
"masochistico",
"masoquismo",
"masoquista",
"masterbate",
"masterbates",
"masterbating",
"masterbation",
"masturba",
"masturbaba",
"masturbación",
"masturbado",
"masturbador",
"masturbando-se",
"masturbar",
"masturbar-se",
"masturbarse",
"masturbarsi",
"masturbate",
"masturbated",
"masturbates",
"masturbating",
"masturbation",
"masturbato",
"masturbatoire",
"masturbator",
"masturbatore",
"masturbava",
"masturbazione",
"masturbação",
"masturbieren",
"masturbierend",
"masturbiert",
"masturbierte",
"masturbándose",
"maturbaciones",
"mayor idiota",
"mea",
"meando",
"mear",
"men 2 men",
"men 4 men",
"men on men",
"men to men",
"men2men",
"men4men",
"menformen",
"menonmen",
"menstrua",
"menstruación",
"menstrual",
"menstruar",
"menstruate",
"menstruates",
"menstruation",
"menstruação",
"menstruieren",
"menstrúa",
"mensturiert",
"mentomen",
"merda",
"merde",
"merdone",
"merdoso",
"meschino",
"mestruale",
"mestruare",
"mestruazione",
"metamfetamina",
"metanfetamina",
"metedor del dedo",
"meter el dedo",
"meter el puño",
"meter o dedo",
"meth",
"meurtre",
"mezzasega",
"meón",
"micción",
"micks",
"micromastia",
"midge",
"midges",
"midget",
"midgets",
"mierda de perro",
"mierda",
"mierdas",
"mierdoso",
"militarism",
"militarismo",
"minge",
"mistress",
"mit Gleitmittel einschmieren",
"mocos",
"molest",
"molestar",
"molestare",
"molesto",
"mondi equivoci",
"mondo equivoco",
"mongole",
"mosca cojonera",
"mother fuck",
"mother fucka",
"mother fuckas",
"mother fucked",
"mother fucker",
"mother fuckers",
"mother fucking",
"motherfuck",
"motherfucka",
"motherfuckas",
"motherfucked",
"motherfucker",
"motherfuckers",
"motherfucking",
"mst",
"muff diving",
"muff",
"muffdiver",
"muffdivers",
"muffdiving",
"mujer con curvas",
"mujer con mujer",
"mujer fácil",
"mujeres con mujeres",
"mujeres fáciles",
"munchbutt",
"mutandine",
"mutilé",
"muy caliente",
"máquina sexual (femenino)",
"máquina sexual",
"más gordos",
"nackt",
"naked",
"nalga",
"nalgas",
"nani",
"nanismi",
"nanismo",
"nano",
"natica",
"nazi",
"nazies",
"nazis",
"nazisme",
"necrofili",
"necrofilia",
"necrofilo",
"necromancer",
"necromancy",
"necromania",
"necrophile",
"necrophiles",
"necrophilia",
"necrophiliac",
"necrófilo",
"necrófilos",
"negra",
"negrata",
"negratas",
"negress",
"negretti",
"negretto",
"negri",
"negro",
"negromante",
"negromanzia",
"negros",
"nekrophil",
"nen Harten",
"neo-Nazi",
"neonazi",
"nigga",
"niggas",
"nigger",
"niggers",
"nigromancia",
"nigromante",
"ninfa",
"ninfas",
"ninfe",
"ninfetta",
"ninfomane",
"ninfomani",
"ninfomania",
"ninfomanía",
"ninfos",
"ninfómana loco",
"ninfómana manía",
"ninfómana maníacos",
"ninfómana",
"ninfómanas",
"ningómana",
"nipple",
"nipples",
"nique ta mère",
"nique",
"niquer",
"nookie",
"nude",
"nudes",
"nudi",
"nudism",
"nudismo",
"nudity",
"nudità",
"nudo",
"nymph",
"nymphet",
"nymphette",
"nympho mania",
"nympho maniac",
"nympho maniacs",
"nympho",
"nympholept",
"nymphomane",
"nymphomania",
"nymphomaniac",
"nymphomaniacs",
"nymphos",
"nymphs",
"nègre",
"nínfula",
"o excesso de luxúria",
"obsceno",
"oferecer sexo oral",
"ofrecer sexo oral",
"ojos achinados",
"ojos rasgados",
"olisbos",
"omo",
"omosessuale",
"omosessuali",
"omosessualità",
"onanism",
"onanismo",
"oral sex",
"oral",
"orale",
"ordure",
"orgasm",
"orgasme",
"orgasmi",
"orgasmic",
"orgasmico",
"orgasmique",
"orgasmo",
"orgasmos",
"orgasms",
"orge",
"orgi",
"orgia",
"orgias",
"orgiastic",
"orgiastico",
"orgies",
"orgiástico",
"orgy",
"orgásmico",
"orgía",
"orgías",
"orificio trasero",
"orina",
"orinado",
"orinar",
"oscenità",
"osceno",
"ovaia",
"ovaie",
"ovaries",
"ovario",
"ovarios",
"ovary",
"paedophile",
"pajear",
"paki",
"pakis",
"pakistaní",
"pakistaníes",
"pala",
"palle",
"pandillero",
"pandilleros",
"pansy",
"pantalones de sordomudos",
"pantalones para sordomudos",
"panties",
"panty",
"pappone",
"passera",
"passere",
"pecho",
"pechos",
"pechugona",
"pecker",
"peckers",
"pede",
"pedo",
"pedofili",
"pedofilia",
"pedofilo",
"pedophile",
"pedophiles",
"pedophilia",
"pedorro",
"pedos",
"pedófilo",
"pedófilos",
"pee",
"peep show",
"peep shows",
"peepshow",
"peepshows",
"peido",
"peitos",
"pelanduscas",
"pelo de coño",
"pelos de coño",
"pelusa",
"pelvic area",
"pen15",
"pene",
"penes",
"peni",
"penii",
"penile",
"penis",
"penises",
"peotillomania",
"perra sucia",
"perra",
"perras sexy",
"perras",
"perro de mierda",
"perv",
"perversion",
"perversione sessuale",
"perversione",
"perversión sexual",
"perversión",
"pervert",
"perverted",
"pervertido",
"pervertidos",
"pervertir",
"pervertiti",
"pervertito",
"perverts",
"pessary",
"pettoruta",
"pezones",
"pezón",
"phallic",
"phallus",
"philander",
"phile",
"philes",
"philia",
"phimosis",
"phuck",
"phucker",
"phuckers",
"phucking",
"phucks",
"phuk",
"phuker",
"phukers",
"phuking",
"phuks",
"phuq",
"phuqer",
"phuqers",
"phuqing",
"phuqs",
"picaninnies",
"picaninny",
"picha",
"pichas",
"pickaninnies",
"pickaninny",
"piel roja",
"pieles rojas",
"pimp",
"pimped",
"pimping",
"pimps",
"pinko",
"pipe",
"pipi",
"pirla",
"pisciata",
"pisciate",
"piscio",
"pisellino",
"piss",
"pisse",
"pissed",
"pisser",
"pisses",
"pissing",
"pissoff",
"pito",
"playboy",
"plumpie",
"poder blanco",
"poitrine",
"poitrines",
"polla chupada",
"polla pequeña",
"polla",
"pollas",
"pollones",
"pollón",
"polvo anal",
"pompino",
"ponce",
"poof",
"poon anny",
"poon tang",
"poonanny",
"poontang",
"poop chute",
"poop",
"poopchute",
"pooped",
"pooper",
"pooping",
"popotin",
"porcheria",
"porking",
"porks",
"porn",
"porno",
"pornografi",
"pornografia",
"pornografico",
"pornografo",
"pornografía",
"pornographer",
"pornographers",
"pornographic",
"pornographie",
"pornographique",
"pornography",
"pornográfico",
"porns",
"pornógrafo",
"pornógrafos",
"porro",
"porros",
"posición con las rodillas en el pecho",
"pot smoker",
"pot",
"pothead",
"potsmoker",
"pouf",
"pouffe",
"pouffiasse",
"prepucio",
"prepucios",
"prepuzi",
"prepuzio",
"prepúcio",
"prepúcios",
"preservativi",
"preservativo",
"preso per il culo",
"prick",
"pricked",
"pricks",
"primacía blanca",
"procurer",
"profanation",
"profaner",
"profilattico",
"profiláctico",
"promiscua",
"promiscuidad",
"promiscuity",
"promiscuità",
"pronography",
"prophylactic",
"prosperosa",
"prostate",
"prostitución",
"prostituidas",
"prostituito",
"prostituta",
"prostitutas",
"prostitute",
"prostituted",
"prostitutes",
"prostituting",
"prostitution",
"prostituyendo",
"prostituzione",
"prostitués",
"prostíbulo",
"provocante",
"proxeneta",
"proxenetas",
"proxenetismo",
"prurience",
"prédateur",
"préservatif",
"préservatifs",
"pubbie",
"pube",
"pubere",
"pubertad",
"puberty",
"pubertà",
"pubes",
"pubescent",
"pubescente",
"pubic",
"pubico",
"pubis",
"puceau",
"pucelle",
"pud",
"pudd",
"puds",
"puke",
"puked",
"pukes",
"pun anni",
"pun anny",
"pun tang",
"punanni",
"punanny",
"puntang",
"puny",
"pusses",
"pussi",
"pussie",
"pussies",
"pussy",
"puta por crack",
"puta sexy",
"puta",
"putain",
"putas",
// "pute",
"putear",
"putes",
"puticlub",
"puttana",
"puttane",
"pédophile",
"pédophilie",
"pédé",
"pédéraste",
"pédérastie",
"pénétration",
"péter",
"péteur",
"púbico",
"que se foda",
"que te jodan",
"que tiene filia",
"que tienen filias",
"queer",
"queers",
"queimar a rosca",
"quem pratica sexo anal",
"quente",
"quien practica sexo anal",
"quim",
"rabia",
"rabies",
"racchia",
"race",
"racial",
"racism",
"racisme",
"racismo blanco",
"racismo",
"racist",
"racista",
"racistas",
"raciste",
"racists",
"rape",
"raped",
"rapes",
"raping",
"rapist",
"rapporto",
"rapto",
"rapture",
"razziale",
"razzismo",
"razzista",
"razzisti",
"recto",
"rectum",
"red raf",
"red rag",
"red-bait",
"redman",
"reds",
"redskin",
"redskins",
"reina del sexo",
"relaciones sexuales fuertes",
"retard",
"retardado",
"retarsados",
"retrasado",
"retto",
"rey del sexo",
"rhum",
"rim job",
"rim jobs",
"rimjob",
"rimjobs",
"ritardato",
"rito coniugale",
"rito conjugal",
"rito conyugal",
"rompicoglioni",
"rubber",
"rubbering",
"rubbers",
"ruffiani",
"ruffiano",
"rum pranger",
"rum prider",
"rump",
"rumpranger",
"rumprider",
"rumps",
"ruso",
"rusos",
"russki",
"russkis",
"rutto",
"rápido",
"rülpsen",
"s&m",
"sac à merde",
"sadici",
"sadico",
"sadisctic",
"sadism",
"sadisme",
"sadismo",
"sadist",
"sadistic",
"sadists",
"sado masochism",
"sadomasochism",
"sadomasochismo",
"sadomasoquismo",
"sadomasoquista",
"saffico",
"saffismo",
"saffo",
"safismo",
"salaud",
"salauds",
"saligaud",
"salope",
"saloperie",
"saloperies",
"salopes",
"sang",
"sanglant",
"sapphic",
"sapphism",
"sappho",
"sapphos",
"satan",
"satana",
"satanic",
"satanico",
"satiro",
"satyr",
"satánica",
"sballare",
"sborra",
"sborre",
"sbracato",
"sbronzo",
"scambista",
"scambisti",
"scatological",
"scatologico",
"scemi",
"scemo",
"scheiss",
"scheisse",
"schiavi",
"schiavo",
"schifo",
"schlong",
"schlonging",
"schlongs",
"schmima",
"schmuck",
"schmutziger Sex",
"schtup",
"schtupping",
"schtups",
"schwanzgelutscht",
"schwanzlutschen",
"schwanzlutschend",
"schwul",
"schwängern",
"sciacquetta",
"sciocco",
"sconcezze",
"sconcio",
"scopare",
"scopata",
"scopate",
"scopato",
"scoregge",
"scoreggia",
"screw",
"screwed",
"screwing",
"screws",
"scroti",
"scroto",
"scrotum",
"scrotums",
"sculacciata",
"sculacciate",
"scum",
"se masturba",
"sedere",
"sederi",
"sedotto",
"seducción",
"seduce",
"seduced",
"seducente",
"seducer",
"seducir",
"seduction",
"seductive",
"seductor",
"sedurre",
"seduttore",
"seduzione",
"sega",
"segaiolo",
"sein",
"seins",
"seme",
"semen",
"semental",
"sementales",
"seni",
"seno",
"sesenta y nueve",
"sessantanove",
"sesso anale",
"sesso orale",
"sesso",
"sessuale",
"sessualità",
"sessuato",
"sex appeal",
"sex king",
"sex kitten",
"sex lupine",
"sex machine",
"sex queen",
"sex",
"sex-appeal",
"sexe anal",
"sexe",
"sexeanal",
"sexed",
"sexiness",
"sexisme",
"sexiste",
"sexking",
"sexkitten",
"sexmachine",
"sexo anal",
"sexo caliente",
"sexo con la ropa puesta",
"sexo oral",
"sexo sucio",
"sexo sujo",
"sexo",
"sexologie",
"sexologue",
"sexqueen",
"sexuado",
"sexual inadquacy",
"sexual perversion",
"sexual",
"sexualidad",
"sexualidade",
"sexuality",
"sexualité",
"sexy bitch",
"sexy bitches",
"sexy",
"sexybitch",
"sexybitches",
"sfintere",
"sfruttatore",
"sgualdrina",
"sgualdrine",
"shag",
"shagged",
"shagging",
"shags",
"shiksa",
"shit face",
"shit head",
"shit list",
"shit",
"shit-faced",
"shited",
"shitface",
"shithead",
"shitlist",
"shits",
"shitt",
"shitted",
"shitter",
"shitting",
"shitts",
"shitty",
"shoot up",
"shrooming",
"shrooms",
"sifilide",
"sifilitico",
"sifilítico",
"sigaretta",
"sin culo",
"sin papeles",
"sissy",
"sixty nine",
"sixty nining",
"sixtynine",
"sixtynining",
"skank",
"skrew",
"skrewing",
"skrews",
"slag",
"slags",
"slant eyes",
"slanteyes",
"slattern",
"slave",
"slaves",
"sleaze",
"sleazy",
"sleezy",
"slope head",
"slope heads",
"slopehead",
"slopeheads",
"slut",
"sluts",
"slutty",
"smack",
"smidollati",
"smidollato",
"smoker",
"smut",
"smuts",
"smutted",
"smutty",
"snatch",
"snatches",
"snuff",
"snuffs",
"sod",
"soddom",
"sodom",
"sodoma",
"sodomia",
"sodomie",
"sodomies",
"sodomist",
"sodomists",
"sodomita",
"sodomitas",
"sodomitic",
"sodomizado",
"sodomizar",
"sodomize",
"sodomized",
"sodomizing",
"sodomizzare",
"sodomizzato",
"sodomy",
"sodomía",
"sodomías",
"sodomítica",
"sods",
"son of a bitch",
"sonn of a bitch",
"sonn ov a bitch",
"sonn uv a bitch",
"sonnofabitch",
"sonnovabitch",
"sonnuvabitch",
"sonofabitch",
"sordido",
"sottomessi",
"sottomesso",
"spade",
"spank",
"spanked",
"spanking",
"spanks",
"spastico",
"spaz",
"spear chucker",
"spear chuckers",
"spearchucker",
"spearchuckers",
"speed ball",
"sperm juice",
"sperm",
"sperma",
"spermatozoo",
"sperme",
"spermicida",
"spermicidal",
"spermjuice",
"sperms",
"sphincter",
"spic",
"spick",
"spicks",
"spics",
"spik",
"spiks",
"spinello",
"spliff",
"spooge",
"spook",
"spunk",
"stallone",
"stalloni",
"sterco",
"stiffie",
"stiffy",
"stronzata",
"stronzate",
"stronzi",
"stronzo",
"stud",
"studs",
"stupid",
"stupidi",
"stupido",
"stuprare in gruppo",
"stuprato",
"stupratore di gruppo",
"stupratori di gruppo",
"stupri",
"stupro",
"submissive",
"submissives",
"suc me off",
"suc me",
"suc",
"succhiacazzi",
"succhiata",
"succhiate",
"succiona",
"succube",
"succubus",
"suce",
"suceur",
"suceurs",
"suceuse",
"sucio hijo de puta",
"suck",
"sucked",
"sucker",
"suckled",
"suckles",
"sucks",
"sucme",
"sucmeoff",
"sudaca",
"sudacas",
"suicide",
"suicidio",
"sumiso",
"sumisos",
"supremacía blanca",
"supremazia bianca",
"swallow",
"swinger",
"swingers",
"swish",
"swishy",
"syphilis",
"syphilitic",
"sádico",
"sádicos",
"sáfico",
"sátiro",
"sêmen",
"sífilis",
"sórdido",
"súcubo",
"tampon",
"tampone",
"tampones",
"tamponi",
"tampons",
"tampón",
"tap that ass",
"tap that",
"tapa de cuello uterino",
"tar baby",
"tarbaby",
"tart",
"tarts",
"teat",
"teats",
"teen 2 teen",
"teen 4 teen",
"teen for teen",
"teen on teen",
"teen to teen",
"teen2teen",
"teen4teen",
"teenforteen",
"teenonteen",
"teens 2 teens",
"teens 4 teens",
"teens for teens",
"teens on teens",
"teens to teens",
"teens2teens",
"teens4teens",
"teensforteens",
"teensonteens",
"teenstoteens",
"teentoteen",
"tener sexo",
"ter sexo",
"testa di cazzo",
"testes",
"testical",
"testicals",
"testicle",
"testicles",
"testicoli",
"testicolo",
"testicule",
"testicules",
"testis",
"testículo",
"testículos",
"teta",
"tetas",
"tetona",
"tetta",
"tette sode",
"tette",
"tit",
"tits",
"titt",
"titties",
"titts",
"titty",
"toca el culo",
"tocapelotas",
"topa",
"tope",
"toquetear",
"tortazo",
"tortionaire",
"torture",
"toss off",
"tossed",
"tosser",
"tossers",
"tosses",
"tossici",
"tossico",
"tragar",
"tramp",
"tramps",
"tran sexual",
"tran sexuals",
"tranquilizantes",
"tranquillanti",
"trans vestite",
"trans vestites",
"transessuale",
"transessuali",
"transexual",
"transexuales",
"transexuals",
"transsexual",
"transsexuals",
"transverstism",
"transvestism",
"transvestite",
"transvestites",
"trasero",
"traseros",
"travelo",
"travestido",
"travestidos",
"travestie",
"travestis",
"travestismo",
"travestiti",
"travestitismo",
"travestito",
"triolisme",
"trip",
"trisomique",
"trisomisme",
"troia",
"troie",
"trombata",
"trombate",
"trou du cul",
"trysting",
"tuer",
"tueur",
"tueuse",
"turd",
"turtlutte",
"tush",
"tushies",
"tushy",
"twat",
"twats",
"téquila",
"uccelli",
"uccello",
"un rapidito",
"una palmada",
"undress",
"unten ohne",
"urinare",
"urinate",
"urinated",
"urinates",
"urinating",
"urination",
"urinazione",
"urine",
"uriner",
"urinoir",
"uriné",
"vagin",
"vagina",
"vaginal",
"vaginale",
"vaginas",
"vagine",
"vasectomia",
"vasectomie",
"vasectomies",
"vasectomy",
"vasectomía",
"vasectomías",
"venereal",
"venereo",
"venéreo",
"verginale",
"vergini",
"verginità",
"very horny",
"veryhorny",
"vibrador",
"vibradores",
"vibrar",
"vibrare",
"vibrate",
"vibrator",
"vibratore",
"vibratori",
"vibrators",
"vin",
"viol",
"violaciones",
"violación",
"violada",
"violador",
"violar",
"violare",
"violate",
"violentatore",
"violeur",
"violé",
"virginal",
"virginale",
"virginales",
"virginals",
"virginidad",
"virginity",
"virgins",
"viscere",
"vodka",
"vollbusig",
"vomir",
"vomissure",
"vomit",
"vomitar",
"vomitó",
"voyeur",
"voyeurism",
"voyeurisme",
"voyeurismo",
"voyeurs",
"vulva",
"vulve",
"vírgenes",
"vómito",
"vómitos",
"wank",
"wanker",
"wanking",
"weed",
"weenie",
"wet backs",
"wetback",
"wetbacks",
"whip",
"whipped",
"whipping",
"whips",
"whisky",
"white power",
"white primary",
"white racism",
"white supremacism",
"white supremacist",
"white supremacy",
"white trash",
"whitey",
"whitie",
"whities",
"whity",
"whore house",
"whore",
"whored",
"whorehouse",
"whores",
"whoring",
"wog",
"wogs",
"woman 2 woman",
"woman 4 woman",
"woman for woman",
"woman on woman",
"woman to woman",
"woman2woman",
"woman4woman",
"womanforwoman",
"womanonwoman",
"womantowoman",
"women 2 women",
"women 4 women",
"women for women",
"women on women",
"women to women",
"women2women",
"women4women",
"womenforwomen",
"womenonwomen",
"womentowomen",
"woody",
"wop",
"wops",
"wuss",
"wussies",
"wussy",
"xx",
"xxx",
"yid",
"yids",
"zipper dick",
"zipper dinner",
"zipper erection",
"zipper head",
"zipper heads",
"zipper muffin",
"zipper pickle",
"zipper sex",
"zipperdick",
"zipperdinner",
"zippererection",
"zipperhead",
"zipperheads",
"zippermuffin",
"zipperpickle",
"zippersex",
"zizi",
"zoccola",
"zona pelvica",
"zoophile",
"zoophilie",
"zoppo",
"zézette",
"zölibatär",
"¡Vete a la mierda!",
"Ärsche",
"álcool",
"área de la pelvis",
"éjaculation",
"éjaculer",
"éjaculeur",
"érotique",
"érotisme",
"éxtasis",
"êxtases",
"いざり",
"いまいましい",
"いやらしい",
"うすのろ",
"うんこ",
"うんち",
"おしっこ",
"おちんちん",
"おなら",
"お尻",
"お尻の穴",
"お股",
"がちゃ目",
"きちがい",
"ぎっちょ",
"くそったれ",
"くそみそ",
"げっぷ",
"こじき",
"ごっくん娘",
"させ子",
"しょうべん",
"しょんべん",
"しらっこ",
"すきもの",
"すけこまし",
"すけべ",
"ちんば",
"のぞき部屋",
"はらませる",
"はらむ",
"ばかちょん",
"ばか面",
"ふしだらな",
"ぶおとこ",
"みだら",
"めくら",
"めっかち",
"もっこり",
"やりチン",
"ろくでなし",
"アスホール",
"アナル",
"アナーキスト",
"アナーキズム",
"アヌス",
"アメ公",
"アルコール中毒",
"アルコール依存症",
"アル中",
"イタ公",
"インポ",
"インポテンス",
"エクスタシー",
"エッチ",
"エロ",
"エロチカ",
"エロチック",
"エロティシズム",
"エロ妄想",
"エロ本",
"オカマ",
"オッパイ",
"オナニー",
"オナホール",
"オネエ",
"オマンコ",
"オメコ",
"オルガスム",
"オーガスム",
"オーラルセックス",
"ガキ",
"ガサいれ",
"キンタマ",
"ギャングバング",
"クズ",
"クズ野郎",
"クソ",
"クソ喰らえ",
"クソ野郎",
"クラック",
"クリトリス",
"クンニリングス",
"クー·クラックス·クラン",
"ケツ",
"ケツの穴",
"ケツメド",
"ケツ毛",
"ゲイ",
"ゲス",
"ゲス野郎",
"ゲロ",
"コカイン",
"コカイン吸引器",
"コック",
"コックサッカー",
"コックサック",
"コックリング",
"コンドーム",
"サタン",
"サディスティック",
"サディスト",
"サディズム",
"サドマゾ",
"サフィズム",
"シックスティーナイン",
"ジャップ",
"ジャンキー",
"スカトロ",
"スパンキング",
"スパーム",
"スワッピング",
"スワップ",
"セクシー",
"セックス",
"セックスフレンド",
"セックスマシーン",
"セックス中毒",
"センズリ",
"ソープランド",
"ソープ嬢",
"タンポン",
"チビ",
"チャンコロ",
"チョン",
"チンカス",
"チンコ",
"チンコ野郎",
"チンタマ",
"チンチン",
"チンポ",
"チンポコ",
"チン毛",
"ディック",
"ディックサッカー",
"ディルド",
"デカチン",
"デブ専",
"デリヘル",
"トルコ嬢",
"ドギースタイル",
"ドスケベ",
"ドブス",
"ドラッグ",
"ナイスバディー",
"ナイスボディー",
"ナオン",
"ナチス",
"ナメナメ",
"ニガー",
"ニグロ",
"ニップル",
"ヌーディズム",
"ヌード",
"ネオナチ",
"ネクロフィリア",
"ハシシ",
"ハメっこ",
"ハンプ",
"バイ",
"バイセクシュアル",
"バイブ",
"バイブレーター",
"バカ",
"バカちん",
"バカ野郎",
"バキュームフェラ",
"バッドアス",
"パイプカット",
"パクる",
"パンティー",
"ビッチ",
"ビデ",
"ビーチク",
"ピーピング",
"ピープ",
"ファッカー",
"ファッカーズ",
"ファッキング",
"ファック",
"ファックフェイス",
"ファックユー",
"フィスティング",
"フィストファック",
"フェチ",
"フェティッシュ",
"フェラチオ",
"ブス",
"ブタ箱",
"ブルシット",
"プッシー",
"プレイボーイ",
"ヘルペス",
"ヘロイン",
"ペッサリー",
"ペニス",
"ペニスリング",
"ホモ",
"ホモセクシャル",
"ホモセックス",
"ホモ達",
"ボイン",
"ボンテージ",
"ポルノ",
"ポン引き",
"マザーファッカー",
"マスかき",
"マスターベーション",
"マゾ",
"マゾヒズム",
"マリファナ",
"マリファナ中毒",
"マリファナ吸入器",
"マンコ",
"マン毛",
"モーホー",
"ヤクザ",
"ヤク中",
"ヤバい",
"ヤリマン",
"ヤリ友",
"ヤンキー",
"ヤー様",
"ラブローション",
"ランジェリー",
"ルンペン",
"レイプ",
"レズ",
"レズセックス",
"レズビアン",
"レズビアンセックス",
"レッドヘッド",
"ロリコン",
"ロンパリ",
"ワギナ",
"ヴァギナ",
"三助",
"下品な",
"下痢",
"不倫",
"不具",
"不感症",
"不法入国者",
"両性具有",
"両性愛",
"中絶",
"乞食",
"乱交",
"乱行",
"乳房",
"乳頭",
"乳首",
"亀頭",
"二号さん",
"人種差別",
"倒錯",
"処女",
"処女膜",
"割礼",
"勃起",
"包茎",
"卑劣",
"去勢",
"口マン",
"同性愛",
"吐瀉",
"呪い",
"唖",
"嘔吐",
"土人",
"地獄",
"堕天使",
"売女",
"売春",
"売春婦",
"売春宿",
"変態",
"変質者",
"外陰",
"夜這い",
"大酒飲み",
"大麻",
"奇形",
"奇形児",
"女同志のセックス",
"女性器",
"奴隷",
"好色",
"妾",
"姦夫",
"姦婦",
"姦淫",
"姦通",
"娼婦",
"射精",
"小人症",
"小児性愛",
"小娘",
"少女趣味",
"少年愛",
"尻",
"尻の穴",
"尻穴",
"尻軽",
"尻軽女",
"屁",
"屍姦",
"巨乳",
"巨根",
"廃人",
"強姦",
"当て馬",
"後背位",
"快感",
"性交",
"性交渉",
"性交痛",
"性倒錯",
"性器",
"性奴隷",
"性欲",
"性病",
"性的",
"性行為",
"性転換",
"性関係",
"恥骨",
"悪魔",
"悶々",
"情夫",
"情婦",
"愛人",
"手コキ",
"手技",
"指ファッカー",
"指ファック",
"按摩",
"排便",
"支那人",
"放尿",
"放屁",
"日陰の女",
"月経",
"梅毒",
"欲望",
"正常位",
"死ね",
"毛じらみ",
"泥酔",
"流産",
"浣腸",
"浮気",
"淋病",
"淫乱",
"淫売",
"淫行",
"煩悩",
"片端",
"狂人",
"獣姦",
"玉袋",
"玉金",
"生娘",
"生理",
"男たらし",
"男同士のセックス",
"男娼",
"男性器",
"男根",
"畜生",
"痔",
"痴漢",
"発展場",
"発狂",
"白痴",
"皮被り",
"盗撮",
"睾丸",
"知恵遅れ",
"禁欲",
"租チン",
"種牡馬",
"穢多",
"穴兄弟",
"童貞",
"端女",
"精子",
"精液",
"精管",
"絶倫",
"聾",
"肉壺",
"肉棒",
"肉欲",
"肛門",
"肛門性交",
"股間",
"背徳",
"脱糞",
"膣",
"自慰",
"自殺",
"自虐",
"色っぽい",
"色キチ",
"色情狂",
"色気違い",
"色魔",
"艶っぽい",
"荒い吐息",
"落とし前",
"蟻の門渡り",
"裸体",
"見世物小屋",
"覗き部屋",
"誘惑",
"賭博",
"赤チンポ",
"赤亀頭",
"輪姦",
"近親相姦",
"逢い引き",
"避妊",
"避妊ゴム",
"避妊具",
"避妊薬",
"酒浸り",
"酒漬け",
"酔っぱらい",
"酔っ払い",
"野蛮",
"金玉",
"間抜け",
"降霊術",
"陰唇",
"陰嚢",
"陰毛",
"陰茎",
"陰部",
"雌雄同体",
"露出狂",
"露出症",
"露助",
"青姦",
"頭にくる",
"風俗嬢",
"風俗店",
"馬のクソ",
"騎乗位",
"魅惑",
"麻薬",
"黒んぼ",
"黒人女",
"鼻くそ",
"SM女王",
"¡Vete a la mierda!",
"Ärsche",
"álcool",
"área de la pelvis",
"éjaculation",
"éjaculer",
"éjaculeur",
"érotique",
"érotisme",
"éxtasis",
"êxtases",
"いざり",
"いまいましい",
"いやらしい",
"うすのろ",
"うんこ",
"うんち",
"おしっこ",
"おちんちん",
"おなら",
"お尻",
"お尻の穴",
"お股",
"がちゃ目",
"きちがい",
"ぎっちょ",
"くそったれ",
"くそみそ",
"げっぷ",
"こじき",
"ごっくん娘",
"させ子",
"しょうべん",
"しょんべん",
"しらっこ",
"すきもの",
"すけこまし",
"すけべ",
"ちんば",
"のぞき部屋",
"はらませる",
"はらむ",
"ばかちょん",
"ばか面",
"ふしだらな",
"ぶおとこ",
"みだら",
"めくら",
"めっかち",
"もっこり",
"やりチン",
"ろくでなし",
"アスホール",
"アナル",
"アナーキスト",
"アナーキズム",
"アヌス",
"アメ公",
"アルコール中毒",
"アルコール依存症",
"アル中",
"イタ公",
"インポ",
"インポテンス",
"エクスタシー",
"エッチ",
"エロ",
"エロチカ",
"エロチック",
"エロティシズム",
"エロ妄想",
"エロ本",
"オカマ",
"オッパイ",
"オナニー",
"オナホール",
"オネエ",
"オマンコ",
"オメコ",
"オルガスム",
"オーガスム",
"オーラルセックス",
"ガキ",
"ガサいれ",
"キンタマ",
"ギャングバング",
"クズ",
"クズ野郎",
"クソ",
"クソ喰らえ",
"クソ野郎",
"クラック",
"クリトリス",
"クンニリングス",
"クー·クラックス·クラン",
"ケツ",
"ケツの穴",
"ケツメド",
"ケツ毛",
"ゲイ",
"ゲス",
"ゲス野郎",
"ゲロ",
"コカイン",
"コカイン吸引器",
"コック",
"コックサッカー",
"コックサック",
"コックリング",
"コンドーム",
"サタン",
"サディスティック",
"サディスト",
"サディズム",
"サドマゾ",
"サフィズム",
"シックスティーナイン",
"ジャップ",
"ジャンキー",
"スカトロ",
"スパンキング",
"スパーム",
"スワッピング",
"スワップ",
"セクシー",
"セックス",
"セックスフレンド",
"セックスマシーン",
"セックス中毒",
"センズリ",
"ソープランド",
"ソープ嬢",
"タンポン",
"チビ",
"チャンコロ",
"チョン",
"チンカス",
"チンコ",
"チンコ野郎",
"チンタマ",
"チンチン",
"チンポ",
"チンポコ",
"チン毛",
"ディック",
"ディックサッカー",
"ディルド",
"デカチン",
"デブ専",
"デリヘル",
"トルコ嬢",
"ドギースタイル",
"ドスケベ",
"ドブス",
"ドラッグ",
"ナイスバディー",
"ナイスボディー",
"ナオン",
"ナチス",
"ナメナメ",
"ニガー",
"ニグロ",
"ニップル",
"ヌーディズム",
"ヌード",
"ネオナチ",
"ネクロフィリア",
"ハシシ",
"ハメっこ",
"ハンプ",
"バイ",
"バイセクシュアル",
"バイブ",
"バイブレーター",
"バカ",
"バカちん",
"バカ野郎",
"バキュームフェラ",
"バッドアス",
"パイプカット",
"パクる",
"パンティー",
"ビッチ",
"ビデ",
"ビーチク",
"ピーピング",
"ピープ",
"ファッカー",
"ファッカーズ",
"ファッキング",
"ファック",
"ファックフェイス",
"ファックユー",
"フィスティング",
"フィストファック",
"フェチ",
"フェティッシュ",
"フェラチオ",
"ブス",
"ブタ箱",
"ブルシット",
"プッシー",
"プレイボーイ",
"ヘルペス",
"ヘロイン",
"ペッサリー",
"ペニス",
"ペニスリング",
"ホモ",
"ホモセクシャル",
"ホモセックス",
"ホモ達",
"ボイン",
"ボンテージ",
"ポルノ",
"ポン引き",
"マザーファッカー",
"マスかき",
"マスターベーション",
"マゾ",
"マゾヒズム",
"マリファナ",
"マリファナ中毒",
"マリファナ吸入器",
"マンコ",
"マン毛",
"モーホー",
"ヤクザ",
"ヤク中",
"ヤバい",
"ヤリマン",
"ヤリ友",
"ヤンキー",
"ヤー様",
"ラブローション",
"ランジェリー",
"ルンペン",
"レイプ",
"レズ",
"レズセックス",
"レズビアン",
"レズビアンセックス",
"レッドヘッド",
"ロリコン",
"ロンパリ",
"ワギナ",
"ヴァギナ",
"三助",
"下品な",
"下痢",
"不倫",
"不具",
"不感症",
"不法入国者",
"両性具有",
"両性愛",
"中絶",
"乞食",
"乱交",
"乱行",
"乳房",
"乳頭",
"乳首",
"亀頭",
"二号さん",
"人種差別",
"倒錯",
"処女",
"処女膜",
"割礼",
"勃起",
"包茎",
"卑劣",
"去勢",
"口マン",
"同性愛",
"吐瀉",
"呪い",
"唖",
"嘔吐",
"土人",
"地獄",
"堕天使",
"売女",
"売春",
"売春婦",
"売春宿",
"変態",
"変質者",
"外陰",
"夜這い",
"大酒飲み",
"大麻",
"奇形",
"奇形児",
"女同志のセックス",
"女性器",
"奴隷",
"好色",
"妾",
"姦夫",
"姦婦",
"姦淫",
"姦通",
"娼婦",
"射精",
"小人症",
"小児性愛",
"小娘",
"少女趣味",
"少年愛",
"尻",
"尻の穴",
"尻穴",
"尻軽",
"尻軽女",
"屁",
"屍姦",
"巨乳",
"巨根",
"廃人",
"強姦",
"当て馬",
"後背位",
"快感",
"性交",
"性交渉",
"性交痛",
"性倒錯",
"性器",
"性奴隷",
"性欲",
"性病",
"性的",
"性行為",
"性転換",
"性関係",
"恥骨",
"悪魔",
"悶々",
"情夫",
"情婦",
"愛人",
"手コキ",
"手技",
"指ファッカー",
"指ファック",
"按摩",
"排便",
"支那人",
"放尿",
"放屁",
"日陰の女",
"月経",
"梅毒",
"欲望",
"正常位",
"死ね",
"毛じらみ",
"泥酔",
"流産",
"浣腸",
"浮気",
"淋病",
"淫乱",
"淫売",
"淫行",
"煩悩",
"片端",
"狂人",
"獣姦",
"玉袋",
"玉金",
"生娘",
"生理",
"男たらし",
"男同士のセックス",
"男娼",
"男性器",
"男根",
"畜生",
"痔",
"痴漢",
"発展場",
"発狂",
"白痴",
"皮被り",
"盗撮",
"睾丸",
"知恵遅れ",
"禁欲",
"租チン",
"種牡馬",
"穢多",
"穴兄弟",
"童貞",
"端女",
"精子",
"精液",
"精管",
"絶倫",
"聾",
"肉壺",
"肉棒",
"肉欲",
"肛門",
"肛門性交",
"股間",
"背徳",
"脱糞",
"膣",
"自慰",
"自殺",
"自虐",
"色っぽい",
"色キチ",
"色情狂",
"色気違い",
"色魔",
"艶っぽい",
"荒い吐息",
"落とし前",
"蟻の門渡り",
"裸体",
"見世物小屋",
"覗き部屋",
"誘惑",
"賭博",
"赤チンポ",
"赤亀頭",
"輪姦",
"近親相姦",
"逢い引き",
"避妊",
"避妊ゴム",
"避妊具",
"避妊薬",
"酒浸り",
"酒漬け",
"酔っぱらい",
"酔っ払い",
"野蛮",
"金玉",
"間抜け",
"降霊術",
"陰唇",
"陰嚢",
"陰毛",
"陰茎",
"陰部",
"雌雄同体",
"露出狂",
"露出症",
"露助",
"青姦",
"頭にくる",
"風俗嬢",
"風俗店",
"馬のクソ",
"騎乗位",
"魅惑",
"麻薬",
"黒んぼ",
"黒人女",
"鼻くそ",
"3P",
"Abietto",
"Abtreibung",
"Abtreibungen",
"Alk",
"Alkohol",
"Allupato",
"Ameba",
"Ammucchiata",
"Analsex",
"Anarchismus",
"Anarchist",
"Antichrist",
"Anus",
"Arsch",
"Arschloch",
"Asch",
"Asexualität",
"Assatanato",
"B.S.",
"Babbeo",
"Bagascia",
"Barbie",
"Barbone",
"Bastard",
"Beschneidung",
"Bestialität",
"Bidet",
"Bisexualität",
"Bisexuelle",
"Blanco",
"Blow-job",
"Blowjob",
"Bocchinara",
"Bocchino",
"Boiata",
"Bondage",
"Bong",
"Bordell",
"Bordelle",
"Botta",
"Brüste",
"Brinca",
"Brust",
"Brustwarze",
"Brustwarzen",
"Bucaiolo",
"Busen",
"Cacchio",
"Caciocappella",
"Cadavere",
"Cagare",
"Cagna",
"Cappella",
"Cavolo!",
"Cesso",
"Citrullo",
"Ciucciami il cazzo",
"Cockring",
"Crucco",
"Culattone",
"Cunnilingus",
"Dildo",
"Dildos",
"Ditalino",
"Domina",
"Dope",
"Dyspareunia",
"Ehe vollziehen",
"Ehebett",
"Ehebrecher",
"Ehebrecherin",
"Ehebruch",
"Eier jucken",
"Eier",
"Einläufe",
"Einlauf",
"Ejakulation",
"Ekstase",
"Enfermedades de transmisión sexual",
"Erektion",
"Erektionen",
"Erotika",
"Erotomanie",
"Eunuchen ",
"Exhibitionismus",
"F.O.A.D",
"Fürze",
"Farabutto",
"Faschist",
"Felatio",
"Fellatio",
"Fetisch",
"Fetische",
"Fick",
"Ficker",
"Ficks",
"Figlio di buona donna",
"Figone",
"Fokker",
"Fotze",
"Fotzen",
"Fregare",
"Fregna",
"Freier",
"Freudenhaus",
"Fricchettone",
"Frigidität",
"Frottage",
"Fuori come un balcone",
"Furz",
"Furzer",
"Geilheit",
"Genital",
"Genitalien",
"Geschlechtsverkehr",
"Gleitmittel",
"Gnocca",
"Goldone",
"Grilletto",
"Hämorrhoiden",
"Höhepunkt",
"Höhepunkte",
"HH",
"Halbwelt",
"Heil Hitler",
"Hermafrodita",
"Hermaphrodit",
"Hermaphroditen",
"Hermaphroditic",
"Hermaphroditismus",
"Heroin",
"Herpes",
"Heterosexualität",
"Homo",
"Homos",
"Homosexualität",
"Homosexuelle",
"Homosexueller",
"Hure",
"I want sex",
"IV drugs",
"Ich will Sex",
"Idiot",
"Impotenz",
"Impregna",
"Impregnates",
"Inculare",
"Inzest",
"Iwantsex",
"Joint",
"Jungfernhäutchen",
"Junkie",
"Junkies",
"Kastration",
"Keuschheit",
"Klitoris",
"Koitus",
"Kokain",
"Koks",
"Kondom",
"Kondome",
"Konkubine",
"Konkubinen",
"Kontinenz",
"Kopulation",
"Kopulierende",
"Kotze",
"Ku Klux Klan",
"Kuomintang",
"Lúcifer",
"LSD",
"Lecchino",
"Leck meine Möse",
"Leck meinen Penis",
"Leck meinen Schwanz",
"Leck mir die Fotze",
"Leck mir die Muschi",
"Lesbe",
"Lesben",
"Lesbianismus",
"Lesbos",
"Libido",
"Libidos",
"Loffa",
"Loffare",
"Lover",
"Lucifer",
"Lust",
"Luzifer",
"Madonna!",
"Maldita sea",
"Maldita seja",
"Mannaggia",
"Marpione",
"Masturbation",
"Me ne frego",
"Menstruation",
"Menstruations",
"Mignotta",
"Militarismus",
"Minchia",
"Minchione",
"Monta",
"Montare",
"Nackte",
"Nacktheit",
"Nazi",
"Nazis",
"Necromania",
"Neger",
"Negerin",
"Nekrophile",
"Nekrophiler",
"Nekrophilie",
"Neo-Nazi",
"Nigga",
"Niggas",
"Nigger",
"Niggers",
"No judía",
"Nudismus",
"Nymphe",
"Pacco",
"Palloso",
"Patacca",
"Patatina",
"Patonza",
"Per carità!",
"Pera",
"Pipì",
"Pippa",
"Pistolotto",
"Pomiciare",
"Porca madonna",
"Porca miseria",
"Porca puttana",
"Porco",
"Puff",
"Puffs",
"Quero sexo",
"Quiero sexo",
"Reich",
"Reizwäsche",
"Ricchione",
"Rimorchiare",
"Rincoglionire",
"Rincoglionito",
"S&M",
"S.O.B",
"SM",
"SM女王",
"SNAFU",
"STD",
"Sadomaso",
"Sadomasochisme",
"Satanás",
"Sbattere",
"Sbattersi",
"Sborrone",
"Scatole",
"Schwanz gelutscht",
"Schwanz lutschen",
"Schwanz lutschend",
"Schwanz",
"Schwanzlutscher",
"Schwanzring",
"Schwule",
"Sega",
"Sex Machine",
"Sfiga",
"Slinguare",
"Slinguata",
"Sodoma",
"Spermafleck",
"Ständer",
"Sveltina",
"Sverginare",
"Terrone",
"Terror Blanco",
"Titte",
"Titten",
"Tittenfick",
"Titties",
"Tryst",
"Vacca",
"Vaffanculo",
"Venire",
"Vorhäute",
"Vorhaut",
"White Terror",
"Zölibat",
"Zölibatäre",
"Zinne",
"Zuhälter",
"a flagelação",
"a maldição de deus",
"a-hole",
"abgetrieben",
"abortado",
"abortar",
"aborted",
"aborti",
"aborting",
"abortion",
"abortions",
"abortito",
"abortive",
"abortivo",
"aborto",
"abortos",
"abspritzen",
"abtreiben",
"abtreibend",
"accidenti!",
"accoppiarsi",
"accoppiato",
"accro",
"acide",
"acto sexual",
"actos sexuales",
"adúltera",
"adúltero",
"adúlteros",
"addict",
"addictif",
"addictive",
"adicto",
"adictos",
"adultère",
"adultères",
"adultério",
"adultérios",
"adultera",
"adulterer",
"adulterers",
"adulteress",
"adulteri",
"adulteries",
"adulterio",
"adulterios",
"adultero",
"adulterous",
"adultery",
"afeminado",
"aguafiestas",
"agujero del amor",
"agujero del culo",
"alcoólico",
"alcohólico",
"alcohol",
"alcoholic",
"alcol",
"alcolici",
"alcolico",
"alcool",
"alcoolique",
"alkoholisch",
"alla pecorina",
"alucinógeno",
"amante",
"amateur",
"amateurisme",
"anão",
"anões",
"anal sex",
"anal",
"anale",
"analer Sex",
"analsex",
"anarchia",
"anarchico",
"anarchism",
"anarchisme",
"anarchist",
"anarchiste",
"anarquismo",
"anarquista",
"anello del cazzo",
"ani",
"anillo de la polla",
"anillo para la polla",
"ano",
"anorgasmia",
"anorgasmisch",
"anos",
"antéchrist",
"antéchrists",
"antichrist",
"antichrists",
"anticonceptivo intrauterino",
"anticonceptivo vaginal",
"anticristi",
"anticristo",
"anticristos",
"antifrition",
"anus",
"anuses",
"apesta",
"arrapante",
"arrapatissimo",
"arrotar",
"arsc",
"arse hole",
"arse",
"arsehole",
"arses",
"asesinato",
"asesinatos",
"asessuale",
"asessualità",
"asexué",
"asexual",
"asexualidad",
"asexualité",
"asexualitand",
"asexuality",
"asexually",
"asexualmente",
"asexuell",
"asiático con la cabeza grande",
"asiáticos con la cabeza grande",
"ass munch",
"ass wipes",
"ass",
"assassin",
"assassine",
"asses",
"assexual",
"asshole",
"assmunch",
"asswipe",
"asswipes",
"ato sexual",
"atontado",
"atos sexuais",
"atracción",
"attracción sexual",
"außerehelich",
"avorté",
"avortement",
"avortements",
"avorter",
"azotado",
"azotaina",
"azotar",
"azotes",
"bâtard",
"bâtarde",
"bâtardes",
"bâtardise",
"bâtardises",
"bâtards",
"bésame el culo",
"böses Mädchen",
"baciami il culo",
"badass",
"baldoria",
"balle",
"balled",
"balling",
"ballocks",
"balls",
"ballsy",
"bambole",
"bande",
"bander",
"bar de gente de color",
"bar de gente de cor",
"barf",
"bastard",
"bastardía",
"bastarda",
"bastardaggine",
"bastardamente",
"bastardi",
"bastardise",
"bastardises",
"bastardize",
"bastardizes",
"bastardly",
"bastardo",
"bastards",
"bastardy",
"basura blanca",
"batacchi",
"batacchio",
"battona",
"battone",
"bazoom",
"beaner",
"beaners",
"beano",
"beastial",
"beastiality",
"beaver floss",
"beaver",
"beaverfloss",
"beavers",
"beber hasta el fondo",
"bebida alcoólica",
"bebida alcohólica",
"bebidas alcoólicas",
"bebidas alcohólicas",
"beebies",
"beijo com língua",
"beone",
"besarle el culo",
"beschneiden",
"beschnitten",
"beso con lengua",
"besta",
"bestial",
"bestialidad",
"bestialidade",
"bestialisch",
"bestialismo",
"bestialité",
"bestiality",
"bi-sexual",
"bi-sexuals",
"bi-sexuel",
"bière",
"bianco",
"bidè",
"bidé",
"bidés",
"bidet",
"bidets",
"bimbos",
"biopsias",
"biopsie",
"biopsies",
"bisessuale",
"bisessuali",
"bisessualità",
"bisexual",
"bisexuales",
"bisexualidad",
"bisexualité",
"bisexuality",
"bisexuals",
"bisexuel",
"bisexuell",
"bisexuels",
"bissexual",
"bissexualidade",
"bitch",
"bitched",
"bitches",
"bitchin",
"bitching",
"bite",
"blackie",
"blackies",
"blanco",
"blancos",
"blasphème",
"blasphématoire",
"blasphémer",
"blojob",
"blowjob",
"boff",
"boffing",
"boffs",
"boink",
"boinking",
"boinks",
"bola de grasa",
"bolas de grasa",
"bolas",
"bollera",
"bolleras",
"bollocks",
"bondage",
"boner",
"boners",
"bong",
"bonk",
"bonking",
"bonks",
"boob",
"boobies",
"boobs",
"booby",
"booger",
"booze",
"boozed",
"boozer",
"boozes",
"boozy",
"bordéis",
"bordel",
"bordelli",
"bordello",
"borracho",
"bosom",
"bosomy",
"bottomless",
"bottoms",
"bowel",
"bowels",
"boy 2 boy",
"boy 4 boy",
"boy for boy",
"boy on boy",
"boy s2 boys",
"boy to boy",
"boy2boy",
"boy4boy",
"boyforboy",
"boyonboy",
"boys 2 boys",
"boys 4 boys",
"boys for boys",
"boys on boys",
"boys2boys",
"boys4boys",
"boysforboys",
"boysonboys",
"boytoboy",
"bragas",
"branleur",
"branleuse",
"breast",
"breasts",
"breechless",
"brothel",
"brothels",
"brutal",
"buco del culo",
"budella",
"bugger",
"buggers",
"buggery",
"bull shit",
"bull shits",
"bull shitted",
"bull shitter",
"bull shitting",
"bullshit",
"bullshits",
"bullshitted",
"bullshitter",
"bullshitting",
"bum hole",
"bum",
"bum-hole",
"bumhole",
"bums",
"bumsen",
"bunda",
"bundas",
"bung hole",
"bung",
"bunghole",
"burdel",
"burdeles",
"burp",
"burro",
"burros",
"bust",
"bustier",
"busto",
"bustos",
"busts",
"busty",
"butt hole",
"butt munch",
"butt weed",
"butt",
"butthole",
"buttmunch",
"buttock",
"buttocks",
"buttplug",
"butts",
"buttweed",
"buxom",
"célibat",
"célibataire",
"célibataires",
"célibe",
"célibes",
"cómeme",
"cópula",
"cú",
"cabina privada para ver porno",
"cabinas privadas para ver porno",
"cabrón",
"cabrones",
"caca",
"cacca",
"cachonda",
"cagadero",
"cagando",
"calentura",
"caliente",
"camel toe",
"cameltoe",
"camisinha",
"camisinhas",
"canna",
"canuck",
"capezzoli",
"capezzolo",
"cara de merda",
"cara de mierda",
"caras de merda",
"caras de mierda",
"carnal",
"carnale",
"casino",
"castidad",
"castità",
"casto",
"castré",
"castrés",
"castración",
"castrado",
"castrados",
"castrar",
"castrare",
"castrate",
"castrated",
"castrates",
"castration",
"castrato",
"castrazione",
"cavolate",
"cazzata",
"cazzate",
"cazzi",
"cazziata",
"cazzo",
"cazzone",
"cazzoni",
"cazzuto",
"celibacy",
"celibate",
"celibates",
"celibato",
"celibe",
"celibi",
"centerfold",
"centrefold",
"centro de atención",
"cerdos",
"cervical",
"cervicale",
"cervice",
"cervix cap",
"cervix",
"chúpamela",
"chaste",
"chasteté",
"chastity",
"chatte",
"chaval con chaval",
"chavales con chavales",
"checca",
"chiappa",
"chiappe",
"chiavata",
"chiavate",
"chica com chica",
"chica con chica",
"chica má",
"chica mala",
"chicas com chicas",
"chicas con chicas",
"chick 2 chick",
"chick 4 chick",
"chick for chick",
"chick on chick",
"chick to chick",
"chick2chick",
"chick4chick",
"chicken shit",
"chickforchick",
"chickonchick",
"chicks 2 chicks",
"chicks 4 chicks",
"chicks for chicks",
"chicks on chicks",
"chicks to chicks",
"chicks2chicks",
"chicks4chicks",
"chicksforchicks",
"chicksonchicks",
"chickstochicks",
"chicktochick",
"chico com chico",
"chico con chico",
"chicos com chicos",
"chicos con chicos",
"chier",
"chieur",
"chieuse",
"chiez",
"chink",
"chinks",
"chinorro",
"chinorros",
"choad",
"choads",
"chocho",
"chochos",
"chordee",
"chulo",
"chupa ano",
"chupa",
"chupada",
"chupadas",
"chupador",
"chupapolla",
"chupapollas",
"chupar la polla",
"chupar",
"chutarse",
"chute de mezcla de heroína y cocaína",
"ciccioni",
"cigarette",
"cigarettes",
"cigarrillo",
"circoncidere",
"circoncis",
"circoncision",
"circoncisione",
"circonciso",
"circumcise",
"circumcised",
"circumcises",
"circumcision",
"circuncida",
"circuncidar",
"circuncisión",
"circunciso",
"civetta",
"clímax",
"clítoris",
"climax",
"climaxes",
"clistere",
"clisteri",
"clit",
"clitoride",
"clitoridi",
"clitoris",
"clits",
"clitty",
"coït",
"coño caliente",
"coño",
"coños",
"coca",
"cocaína",
"cocaïne",
"cocaïnomane",
"cocaina",
"cocaine",
"cocchiume",
"cock ring",
"cock sucked",
"cock sucker",
"cock sucking",
"cock sucks",
"cock",
"cocked",
"cocking",
"cockring",
"cocks",
"cocksucked",
"cocksucker",
"cocksucking",
"cocksucks",
"cocos",
"codiciaron",
"coglione",
"coition",
"coito",
"coitus",
"cojones",
"coke",
"colocarse con setas",
"colonist",
"colono",
"colored",
"colour bar",
"coloured",
"come mi carne",
"come-me",
"comechocho",
"comecoño",
"comemierda",
"comer el coño",
"comer la polla",
"comestain",
"comunista",
"con cojones",
"con",
"conato di vomito",
"concubina",
"concubinas",
"concubine",
"concubines",
"concupiscent",
"concupiscente",
"condón",
"condenatória",
"condenatoria",
"condom",
"condoms",
"condones",
"conjugal bed",
"conjugal rite",
"connard",
"connards",
"connasse",
"connasses",
"conne",
"consolador",
"consoladores",
"contaballe",
"continência",
"continence",
"continencia",
"continenza",
"coolie",
"coon",
"coons",
"cooter",
"copula",
"copulando",
"copular",
"copularon",
"copulate",
"copulated",
"copulates",
"copulating",
"copulation",
"copulazione",
"copule",
"copuler",
"coquetear",
"coquette",
"corn hole",
"corn holes",
"cornhole",
"cornholes",
"cornudo",
"cornudos",
"cornuti",
"cornuto",
"corrompido",
"cotius intermammas",
"couilles",
"crémation",
"crématoire",
"crétin",
"crétine",
"crack whore",
"crack",
"crackwhore",
"crap",
"crapping",
"craps",
"creep joint",
"creeper",
"cretino",
"cripple",
"croix gammée",
"crotch",
"crotches",
"cu trazer",
"cu",
"cuckold",
"cuckolds",
"cuello uterino",
"cuite",
"cuition",
"cul",
"culí",
"culi",
"culo sucio",
"culo",
"culos",
"cum stain",
"cum",
"cumming",
"cums",
"cumstain",
"cunnilingio",
"cunnilingus",
"cunt",
"cunts",
"cus",
"cutre",
"débauchage",
"débauche",
"débil",
"débiles",
"défécation",
"déféquer",
"défleurage",
"défleurer",
"déflorée",
"déflorer",
"défoncé",
"défonce",
"dépucelage",
"dépuceler",
"da finocchio",
"da sballo",
"dago",
"dagos",
"dalkon shield",
"dammit",
"damn",
"damné",
"damnation",
"damned",
"damning",
"damnit",
"damns",
"dans ton cul",
"darkey",
"darkie",
"darkies",
"darky",
"de color",
"de cor",
"de mierda",
"debauch",
"debauched",
"debauchery",
"defeca",
"defecação",
"defecación",
"defecado",
"defecar",
"defecare",
"defecate",
"defecated",
"defecates",
"defecating",
"defecation",
"defecato",
"defecazione",
"defloração",
"deflorada",
"deflorar",
"deflorare",
"deflorata",
"defloration",
"deflorazione",
"deflower",
"deflowered",
"deflowering",
"deflowers",
"degenerar",
"del pene",
"demimonde",
"demimondes",
"depravato",
"depucelate",
"depucelation",
"derriere",
"derrieres",
"desfloración",
"desflorada",
"desflorar",
"desnudarse",
"desnudez",
"desnudo",
"desnudos",
"destrozar el agujero",
"desvergonzada",
"desvirga",
"desvirgación",
"desvirgar",
"di colore",
"diamine",
"diarrea",
"diarreas",
"diarree",
"diarreia",
"diarreias",
"diarrhea",
"diarrhoea",
"diarrhoeas",
"diavolo!",
"dick head",
"dick ring",
"dick sucker",
"dick suckers",
"dick sucking",
"dick sucks",
"dick weed",
"dicke Titten",
"dickhead",
"dickring",
"dicks",
"dicksucker",
"dicksuckers",
"dicksucking",
"dicksucks",
"dickweed",
"dike",
"dikes",
"dilatador anal",
"dildo",
"dildoe",
"dildoes",
"dildos",
"dink",
"dirty ass",
"dirty bitch",
"dirty fucker",
"dirty girl",
"dirty sex",
"dirtyass",
"dirtybitch",
"dirtyfucker",
"dirtygirl",
"dirtysex",
"dissoluto",
"do me",
"dog shit",
"doggy style",
"doggystyle",
"dogshit",
"dominação",
"dominación",
"dominateur",
"domination",
"dominatrice",
"dominatrix",
"dominazione",
"dong",
"donnacce",
"donnaccia",
"donnicciola",
"dope",
"dopes",
"dopey",
"dork",
"dorks",
"double pénétration",
"douche bag",
"douche bags",
"douche job",
"douche jobs",
"douche",
"douchebag",
"douchebags",
"douchejob",
"douchejobs",
"douches",
"downers",
"droga",
"drogadicto",
"drogado",
"drogar-se",
"drogarse",
"drogas",
"drogué",
"drogue",
"drogues",
"drop acid",
"dung",
"duro",
"dwarf",
"dwarfing",
"dwarfish",
"dwarfism",
"dwarfisms",
"dwarfness",
"dwarfs",
"dyke",
"dykes",
"dysparcunia",
"eat me",
"eat my meat",
"eatcunt",
"eatpussy",
"eatshit",
"echar un polvo",
"ecstasy",
"ehebreherisch",
"eiacula",
"eiaculare",
"eiaculato",
"eiaculazione",
"eight ball",
"eightball",
"ejacula",
"ejaculação",
"ejaculado",
"ejacular",
"ejaculate",
"ejaculated",
"ejaculates",
"ejaculation",
"ejakulieren",
"ejakuliert",
"ejakulierte",
"el exceso de lujuria",
"el más jorobado",
"el sexo Rey",
"el sexo de lupino",
"el sexo reina",
"emorroide",
"empujar por el culo",
"enanismo",
"enano",
"enanos",
"encuentro sexual",
"enculé",
"enculée",
"enculées",
"enculés",
"endogamia",
"enema",
"enemas",
"enfer",
"enima",
"enimas",
"entrepierna",
"entrepiernas",
"erótica",
"erótico",
"erba",
"ereção",
"ereções",
"erección",
"erecciones",
"erection",
"erections",
"eretto",
"erezione",
"erezioni",
"ermafrodita",
"ermafroditi",
"ermafroditismo",
"ermafrodito",
"eroina",
"erotic",
"erotica",
"eroticism",
"erotico",
"erotisch",
"erotism",
"erotismo",
"erotomanía",
"erotomania",
"eructar",
"escatológico",
"esclavage",
"esclavagisme",
"esclavo",
"esclavos",
"escoria",
"escorias",
"escravidão sexual",
"escroto",
"escrotos",
"esfínter",
"esibizionismo",
"espástico",
"esperma",
"espermatozoides",
"espermicida",
"essere eccitato",
"estúpido",
"estúpidos",
"estasi",
"esterol",
"estiércol",
"estilo perrito",
"estimulação do clitóris",
"estimulación del clítoris",
"eterosessualità",
"exclavitud sexual",
"exhibicionismo",
"exhibitionism",
"exhibitionnisme",
"exhibitionniste",
"exibicionismo",
"exploiter",
"explorador",
"explotador",
"extasis",
"extraconiugale",
"extramarital",
"extramatrimonial",
"eyacula",
"eyaculación",
"eyaculado",
"eyacular",
"fálico",
"fétiche",
"fétichisme",
"facce da cazzo",
"faccia da cazzo",
"faccia di merda",
"fag",
"faggot",
"faggots",
"faggy",
"fagot",
"fagoted",
"fagots",
"fags",
"fallico",
"fallo",
"falo",
"fanner",
"fannies",
"fanny",
"fare il cascamorto",
"fare pompini",
"fart",
"farted",
"farter",
"farting",
"farts",
"fascino",
"fascist",
"fascista",
"fasciste",
"fatties",
"fattiest",
"fatto",
"fck",
"fcker",
"fckers",
"fcking",
"fcks",
"feccia",
"feel-up",
"felação",
"felación",
"felaciones",
"felador",
"felar",
"felatio",
"felch",
"felcher",
"felches",
"felching",
"fellate",
"fellatio ",
"fellatio",
"fellation",
"fellations",
"feltch",
"feltcher",
"feltches",
"feltching",
"fesses",
"fesso",
"fetiche",
"fetiches",
"fetish",
"fetishes",
"fica",
"fiche",
"fickend",
"figli di puttana",
"figlio di puttana",
"filho de puta",
"filhos de puta",
"filia",
"film X",
"film de cul",
"film porno",
"film pornographique",
"film snuff",
"fils de pute",
"fimosi",
"fimosis",
"finger bang",
"finger banger",
"fingerbang",
"fingerbanger",
"finocchi",
"finocchio",
"fisten",
"fisting",
"flagelações",
"flagelación",
"flagelaciones",
"flirtear",
"flog",
"flogging",
"flogs",
"flujo vaginal",
"foder",
"folar",
"folla",
"follada",
"follador",
"follar por el culo",
"follar",
"fore skin",
"foreskin",
"foreskins",
"fornica",
"fornicação",
"fornicación",
"fornicado",
"fornicador",
"fornicando",
"fornicar",
"fornicare",
"fornicate",
"fornicated",
"fornicates",
"fornicateur",
"fornicating",
"fornication",
"fornicato",
"fornicator",
"fornicatore",
"fornicazione",
"forniquer",
"foto di pin-up",
"fottuta",
"fottutissimo",
"fottuto",
"fouille merde",
"french cap",
"frenchie",
"frenchy",
"frig",
"frigide",
"frigidez",
"frigidità",
"frigidité",
"frigidity",
"friqui",
"froci",
"frocio",
"frotación",
"frottage",
"fuck face",
"fuck faces",
"fuck",
"fucka",
"fuckas",
"fucked",
"fucker",
"fuckers",
"fuckface",
"fuckfaces",
"fucking",
"fucks",
"fudge packer",
"fudge packing",
"fudgepacker",
"fudgepacking",
"fumador",
"fumatore di erba",
"fumatore di marijuana",
"fumatore",
"fuq",
"fuqed",
"fuqing",
"fuqs",
"furzend",
"fustigare",
"fustigazione",
"génital",
"génitale",
"gónada",
"gónadas",
"gallina",
"gang bang",
"gang banger",
"gang bangers",
"gang banging",
"gang bangs",
"gangbang",
"gangbanger",
"gangbangers",
"gangbanging",
"gangbangs",
"gatillazo",
"gatita sexual",
"gay",
"gays",
"gefurzt",
"geil",
"geisha",
"geishas",
"geishe",
"genitálias",
"genital",
"genitale",
"genitales femeninos",
"genitales",
"genitali",
"genitalia",
"genitals",
"gerbiling",
"get high",
"get laid",
"get some ass",
"get some dick",
"get some pussy",
"get some",
"getsomeass",
"getsomedick",
"getsomepussy",
"gilipollas",
"gimp",
"girl 2 girl",
"girl 4 girl",
"girl for girl",
"girl on girl",
"girl to girl",
"girl2girl",
"girl4girl",
"girlforgirl",
"girlongirl",
"girls 2 girls",
"girls 4 girls",
"girls for girls",
"girls on girls",
"girls to girls",
"girls2girls",
"girls4girls",
"girlsforgirls",
"girlsongirls",
"girlstogirls",
"girltogirl",
"give me head",
"givemehead",
"go downonme",
"god dammit",
"god damn",
"god damned",
"goddammit",
"goddamn",
"goddamned",
"gode",
"godemichet",
"godownonme",
"gonad",
"gonade",
"gonadi",
"gonads",
"gonorréico",
"gonorrea",
"gonorreia",
"gonorreico",
"gonorrhea",
"gonorrhoea",
"gonorrhoeal",
"gonorrico",
"gonzo",
"gook",
"gooks",
"gordos",
"grapschen",
"grassoccio",
"gravida",
"gravide",
"greaseball",
"greaseballs",
"greaser",
"greasers",
"groin",
"groins",
"guanto",
"guardone",
"guardoni",
"guarra",
"gueule",
"guy 2 guy",
"guy 4 guy",
"guy for guy",
"guy on guy",
"guy to guy",
"guy2guy",
"guy4guy",
"guyforguy",
"guyonguy",
"guys 2 guys",
"guys 4 guys",
"guys for guys",
"guys on guys",
"guys to guys",
"guys2guys",
"guys4guys",
"guysforguys",
"guysonguys",
"guystoguys",
"guytoguy",
"hédonisme",
"hédoniste",
"hétéro",
"hétérosexualité",
"hétérosexuel",
"hímenes",
"hacer un sesenta y nueve",
"hacerlo",
"hacerse una paja",
"hachís",
"hair circle",
"hair pie",
"hair pies",
"hairpie",
"hairpies",
"hand job",
"handicapé",
"hard on",
"hard ons",
"hardon",
"hardons",
"hascisc",
"hash",
"hashish",
"hebe",
"hebes",
"heebie",
"heißer Sex",
"hell",
"hemorrhoid",
"hemorroidas",
"hemorroides",
"hermafrodita",
"hermafroditas",
"hermafroditismo",
"hermaphrodite",
"hermaphrodites",
"hermaphroditisch",
"hermaphroditism",
"heroína",
"heroin",
"herpes",
"heterosexualidad",
"heterosexuality",
"heterossexualidade",
"hijo de puta",
"hijos de puta",
"himen",
"histerectomía",
"histerectomías",
"hoar",
"hombre com hombre",
"hombre con hombre",
"hombres con hombres",
"homem com homem",
"homens com homens",
"homo sexual",
"homo sexuals",
"homo",
"homos",
"homosexual",
"homosexuales",
"homosexualidad",
"homosexuality",
"homosexuals",
"homosexuel",
"homosexuell",
"homossexual",
"homossexualidade",
"honkey",
"honkie",
"honkies",
"honky",
"hooker",
"hookers",
"hooter",
"hooters",
"hornie",
"horniness",
"horny",
"horse shit",
"horseshit",
"hot asspussy",
"hot sex",
"huff",
"huffiest",
"huffing",
"hummer",
"hump",
"humped",
"humpiest",
"humping",
"humps",
"hussies",
"hussy",
"hymen",
"hymens",
"hysterectomies",
"hysterectomy",
"idea lasciva",
"idea lewd",
"ideia lasciva",
"idiot",
"idiota",
"idiotas",
"idiote",
"idiotez",
"idiotia",
"ilícito",
"illecito",
"illicit",
"illicite",
"imbécil",
"imbécile",
"imbastardire",
"imbecil",
"imbecille",
"imbecilli",
"imbranato",
"imene",
"imeni",
"impotência",
"impotence",
"impotencia",
"impotent",
"impotente",
"impotenza",
"impregnação",
"impregnación",
"impregnado",
"impregnar",
"impregnate",
"impregnated",
"impregnation",
"impregnator",
"inútil",
"inadeguatezza sessuale",
"inbred",
"inbreed",
"inbreeding",
"inbreeds",
"incapace",
"incasinato",
"incazzato",
"incest",
"incesto",
"incestuoso",
"incestuous",
"incher",
"indecent",
"indecente",
"inferno",
"infierno",
"inforcatura",
"inforcature",
"ingravidamento",
"inguine",
"inguini",
"innato",
"insuficiencia sexual",
"intercourse",
"intercurso",
"inzestuös",
"irrumare",
"isterectomia",
"isterectomie",
"itiotas",
"jack ass",
"jack off",
"jackass",
"jackasses",
"jackoff",
"jag off",
"jap",
"japs",
"jerk off",
"jerk",
"jerkoff",
"jerks",
"jew boy",
"jewboy",
"jewess",
"jig",
"jism",
"jizm",
"jizz",
"joder",
"joderse y morir",
"jodido",
"joint",
"joroba",
"jorobas",
"judía",
"judío",
"judíos",
"judio",
"jugo de esperma",
"jugs",
"junked",
"junkie",
"junkies",
"junky",
"kastrieren",
"kastriert",
"keusch",
"kike",
"kikes",
"killer",
"kinky",
"kiss ass",
"kiss my ass",
"kissass",
"kissherass",
"kisshisass",
"kissmyass",
"kkk",
"knee-chest position",
"knickers",
"knob",
"knobs",
"knocker",
"knockers",
"koolie licker",
"koolie",
"koolielicker",
"koolies",
"kopulieren",
"kopulierend",
"kopulierten",
"ku klux klan",
"lábio",
"látigo",
"látigos",
"lüstern",
"la flagelación",
"la maldición del dios",
"labbra",
"labia",
"labial",
"labiale",
"labio",
"labios vaginales",
"lamecoños",
"lamer el coño",
"lamer el esfinter",
"lamer mi coño",
"lamer mi pene",
"lamer mi polla",
"lamerme el coño",
"lascivia",
"lascivious",
"lascivo",
"lasziv",
"lavaggi",
"lavaggio",
"lebbroso",
"leccaculi",
"leccaculo",
"leccami la fica",
"leccapiedi",
"lecher",
"lecho conyugal",
"leito conjugal",
"lencería",
"leper",
"leproso",
"lesbian",
"lesbiana",
"lesbianas",
"lesbianism",
"lesbianismo",
"lesbians",
"lesbica",
"lesbiche",
"lesbienne",
"lesbisch",
"lesbo",
"lesbos",
"letch",
"letteratura erotica",
"letto coniugale",
"lez",
"libertinagem",
"libertinaje",
"libertino",
"libidinoso",
"libido",
"libidos",
"lick my cunt",
"lick my dick",
"lick my penis",
"lick my pussy",
"lick my twat",
"limpiaculos",
"lingerie",
"lisiado",
"lista de mierdas",
"lit conjugal",
"loches",
"los testículos",
"love hole",
"lovehole",
"lover",
"lsd",
"lubricador",
"lubricar",
"lubricate",
"lubricator",
"lucíferes",
"lucifer",
"luciferes",
"luciferi",
"lucifero",
"lucifers",
"lujuria",
"lussuria",
"lussurioso",
"lust",
"lusted",
"luster",
"lustful excess",
"lustful",
"lustierl",
"lustiest",
"lustily",
"lusting",
"lustre",
"lustrier",
"lusts",
"lusty",
"luxúria",
"máquina sexual (femenino)",
"máquina sexual",
"más gordos",
"magnaccia",
"maior idiota",
"maldita sea",
"maldita seja",
"maldito deus",
"maldito dios",
"maldito",
"maledetti",
"maledetto",
"mamada",
"mamadas",
"mammaries",
"mammella",
"mammelle",
"mammy",
"man 2 man",
"man 4 man",
"man for man",
"man on man",
"man to man",
"man2man",
"man4man",
"mancha de semen",
"manforman",
"mangiamerda",
"mangiami",
"mania",
"maniaque",
"manie",
"mano morta",
"manonman",
"mantenuta",
"mantoman",
"maricón",
"marica",
"maricas",
"maricones",
"marihuana",
"marijuana",
"marijuanas",
"mariquita",
"maryjane",
"masochism",
"masochismo",
"masochist",
"masochista",
"masochistic",
"masochistico",
"masoquismo",
"masoquista",
"masterbate",
"masterbates",
"masterbating",
"masterbation",
"masturbándose",
"masturba",
"masturbação",
"masturbaba",
"masturbación",
"masturbado",
"masturbador",
"masturbando-se",
"masturbar",
"masturbar-se",
"masturbarse",
"masturbarsi",
"masturbate",
"masturbated",
"masturbates",
"masturbating",
"masturbation",
"masturbato",
"masturbatoire",
"masturbator",
"masturbatore",
"masturbava",
"masturbazione",
"masturbieren",
"masturbierend",
"masturbiert",
"masturbierte",
"maturbaciones",
"mayor idiota",
"meón",
"mea",
"meando",
"mear",
"men 2 men",
"men 4 men",
"men on men",
"men to men",
"men2men",
"men4men",
"menformen",
"menonmen",
"menstrúa",
"menstrua",
"menstruação",
"menstruación",
"menstrual",
"menstruar",
"menstruate",
"menstruates",
"menstruation",
"menstruieren",
"mensturiert",
"mentomen",
"merda",
"merde",
"merdone",
"merdoso",
"meschino",
"mestruale",
"mestruare",
"mestruazione",
"metamfetamina",
"metanfetamina",
"metedor del dedo",
"meter el dedo",
"meter el puño",
"meter o dedo",
"meth",
"meurtre",
"mezzasega",
"micción",
"micks",
"micromastia",
"midge",
"midges",
"midget",
"midgets",
"mierda de perro",
"mierda",
"mierdas",
"mierdoso",
"militarism",
"militarismo",
"minge",
"mistress",
"mit Gleitmittel einschmieren",
"mocos",
"molest",
"molestar",
"molestare",
"molesto",
"mondi equivoci",
"mondo equivoco",
"mongole",
"mosca cojonera",
"mother fuck",
"mother fucka",
"mother fuckas",
"mother fucked",
"mother fucker",
"mother fuckers",
"mother fucking",
"motherfuck",
"motherfucka",
"motherfuckas",
"motherfucked",
"motherfucker",
"motherfuckers",
"motherfucking",
"mst",
"muff diving",
"muff",
"muffdiver",
"muffdivers",
"muffdiving",
"mujer con curvas",
"mujer con mujer",
"mujer fácil",
"mujeres con mujeres",
"mujeres fáciles",
"munchbutt",
"mutandine",
"mutilé",
"muy caliente",
"nègre",
"nínfula",
"nackt",
"naked",
"nalga",
"nalgas",
"nani",
"nanismi",
"nanismo",
"nano",
"natica",
"nazi",
"nazies",
"nazis",
"nazisme",
"necrófilo",
"necrófilos",
"necrofili",
"necrofilia",
"necrofilo",
"necromancer",
"necromancy",
"necromania",
"necrophile",
"necrophiles",
"necrophilia",
"necrophiliac",
"negra",
"negrata",
"negratas",
"negress",
"negretti",
"negretto",
"negri",
"negro",
"negromante",
"negromanzia",
"negros",
"nekrophil",
"nen Harten",
"neo-Nazi",
"neonazi",
"nigga",
"niggas",
"nigger",
"niggers",
"nigromancia",
"nigromante",
"ninfómana loco",
"ninfómana manía",
"ninfómana maníacos",
"ninfómana",
"ninfómanas",
"ninfa",
"ninfas",
"ninfe",
"ninfetta",
"ninfomanía",
"ninfomane",
"ninfomani",
"ninfomania",
"ninfos",
"ningómana",
"nipple",
"nipples",
"nique ta mère",
"nique",
"niquer",
"nookie",
"nude",
"nudes",
"nudi",
"nudism",
"nudismo",
"nudità",
"nudity",
"nudo",
"nymph",
"nymphet",
"nymphette",
"nympho mania",
"nympho maniac",
"nympho maniacs",
"nympho",
"nympholept",
"nymphomane",
"nymphomania",
"nymphomaniac",
"nymphomaniacs",
"nymphos",
"nymphs",
"o excesso de luxúria",
"obsceno",
"oferecer sexo oral",
"ofrecer sexo oral",
"ojos achinados",
"ojos rasgados",
"olisbos",
"omo",
"omosessuale",
"omosessuali",
"omosessualità",
"onanism",
"onanismo",
"oral sex",
"oral",
"orale",
"ordure",
"orgásmico",
"orgía",
"orgías",
"orgasm",
"orgasme",
"orgasmi",
"orgasmic",
"orgasmico",
"orgasmique",
"orgasmo",
"orgasmos",
"orgasms",
"orge",
"orgi",
"orgiástico",
"orgia",
"orgias",
"orgiastic",
"orgiastico",
"orgies",
"orgy",
"orificio trasero",
"orina",
"orinado",
"orinar",
"oscenità",
"osceno",
"ovaia",
"ovaie",
"ovaries",
"ovario",
"ovarios",
"ovary",
"pédé",
"pédéraste",
"pédérastie",
"pédophile",
"pédophilie",
"pénétration",
"péter",
"péteur",
"púbico",
"paedophile",
"pajear",
"paki",
"pakis",
"pakistaní",
"pakistaníes",
"pala",
"palle",
"pandillero",
"pandilleros",
"pansy",
"pantalones de sordomudos",
"pantalones para sordomudos",
"panties",
"panty",
"pappone",
"passera",
"passere",
"pecho",
"pechos",
"pechugona",
"pecker",
"peckers",
"pedófilo",
"pedófilos",
"pede",
"pedo",
"pedofili",
"pedofilia",
"pedofilo",
"pedophile",
"pedophiles",
"pedophilia",
"pedorro",
"pedos",
"pee",
"peep show",
"peep shows",
"peepshow",
"peepshows",
"peido",
"peitos",
"pelanduscas",
"pelo de coño",
"pelos de coño",
"pelusa",
"pelvic area",
"pen15",
"pene",
"penes",
"peni",
"penii",
"penile",
"penis",
"penises",
"peotillomania",
"perra sucia",
"perra",
"perras sexy",
"perras",
"perro de mierda",
"perv",
"perversión sexual",
"perversión",
"perversion",
"perversione sessuale",
"perversione",
"pervert",
"perverted",
"pervertido",
"pervertidos",
"pervertir",
"pervertiti",
"pervertito",
"perverts",
"pessary",
"pettoruta",
"pezón",
"pezones",
"phallic",
"phallus",
"philander",
"phile",
"philes",
"philia",
"phimosis",
"phuck",
"phucker",
"phuckers",
"phucking",
"phucks",
"phuk",
"phuker",
"phukers",
"phuking",
"phuks",
"phuq",
"phuqer",
"phuqers",
"phuqing",
"phuqs",
"picaninnies",
"picaninny",
"picha",
"pichas",
"pickaninnies",
"pickaninny",
"piel roja",
"pieles rojas",
"pimp",
"pimped",
"pimping",
"pimps",
"pinko",
"pipe",
"pipi",
"pirla",
"pisciata",
"pisciate",
"piscio",
"pisellino",
"piss",
"pisse",
"pissed",
"pisser",
"pisses",
"pissing",
"pissoff",
"pito",
"playboy",
"plumpie",
"poder blanco",
"poitrine",
"poitrines",
"pollón",
"polla chupada",
"polla pequeña",
"polla",
"pollas",
"pollones",
"polvo anal",
"pompino",
"ponce",
"poof",
"poon anny",
"poon tang",
"poonanny",
"poontang",
"poop chute",
"poop",
"poopchute",
"pooped",
"pooper",
"pooping",
"popotin",
"porcheria",
"porking",
"porks",
"porn",
"pornógrafo",
"pornógrafos",
"porno",
"pornográfico",
"pornografía",
"pornografi",
"pornografia",
"pornografico",
"pornografo",
"pornographer",
"pornographers",
"pornographic",
"pornographie",
"pornographique",
"pornography",
"porns",
"porro",
"porros",
"posición con las rodillas en el pecho",
"pot smoker",
"pot",
"pothead",
"potsmoker",
"pouf",
"pouffe",
"pouffiasse",
"prédateur",
"préservatif",
"préservatifs",
"prepúcio",
"prepúcios",
"prepucio",
"prepucios",
"prepuzi",
"prepuzio",
"preservativi",
"preservativo",
"preso per il culo",
"prick",
"pricked",
"pricks",
"primacía blanca",
"procurer",
"profanation",
"profaner",
"profiláctico",
"profilattico",
"promiscua",
"promiscuidad",
"promiscuità",
"promiscuity",
"pronography",
"prophylactic",
"prosperosa",
"prostíbulo",
"prostate",
"prostitués",
"prostitución",
"prostituidas",
"prostituito",
"prostituta",
"prostitutas",
"prostitute",
"prostituted",
"prostitutes",
"prostituting",
"prostitution",
"prostituyendo",
"prostituzione",
"provocante",
"proxeneta",
"proxenetas",
"proxenetismo",
"prurience",
"pubbie",
"pube",
"pubere",
"pubertà",
"pubertad",
"puberty",
"pubes",
"pubescent",
"pubescente",
"pubic",
"pubico",
"pubis",
"puceau",
"pucelle",
"pud",
"pudd",
"puds",
"puke",
"puked",
"pukes",
"pun anni",
"pun anny",
"pun tang",
"punanni",
"punanny",
"puntang",
"puny",
"pusses",
"pussi",
"pussie",
"pussies",
"pussy",
"puta por crack",
"puta sexy",
"puta",
"putain",
"putas",
"pute",
"putear",
"putes",
"puticlub",
"puttana",
"puttane",
"que se foda",
"que te jodan",
"que tiene filia",
"que tienen filias",
"queer",
"queers",
"queimar a rosca",
"quem pratica sexo anal",
"quente",
"quien practica sexo anal",
"quim",
"rápido",
"rülpsen",
"rabia",
"rabies",
"racchia",
"race",
"racial",
"racism",
"racisme",
"racismo blanco",
"racismo",
"racist",
"racista",
"racistas",
"raciste",
"racists",
"rape",
"raped",
"rapes",
"raping",
"rapist",
"rapporto",
"rapto",
"rapture",
"razziale",
"razzismo",
"razzista",
"razzisti",
"recto",
"rectum",
"red raf",
"red rag",
"red-bait",
"redman",
"reds",
"redskin",
"redskins",
"reina del sexo",
"relaciones sexuales fuertes",
"retard",
"retardado",
"retarsados",
"retrasado",
"retto",
"rey del sexo",
"rhum",
"rim job",
"rim jobs",
"rimjob",
"rimjobs",
"ritardato",
"rito coniugale",
"rito conjugal",
"rito conyugal",
"rompicoglioni",
"rubber",
"rubbering",
"rubbers",
"ruffiani",
"ruffiano",
"rum pranger",
"rum prider",
"rump",
"rumpranger",
"rumprider",
"rumps",
"ruso",
"rusos",
"russki",
"russkis",
"rutto",
"s&m",
"sádico",
"sádicos",
"sáfico",
"sátiro",
"sêmen",
"sífilis",
"sórdido",
"súcubo",
"sac à merde",
"sadici",
"sadico",
"sadisctic",
"sadism",
"sadisme",
"sadismo",
"sadist",
"sadistic",
"sadists",
"sado masochism",
"sadomasochism",
"sadomasochismo",
"sadomasoquismo",
"sadomasoquista",
"saffico",
"saffismo",
"saffo",
"safismo",
"salaud",
"salauds",
"saligaud",
"salope",
"saloperie",
"saloperies",
"salopes",
"sang",
"sanglant",
"sapphic",
"sapphism",
"sappho",
"sapphos",
"satánica",
"satan",
"satana",
"satanic",
"satanico",
"satiro",
"satyr",
"sballare",
"sborra",
"sborre",
"sbracato",
"sbronzo",
"scambista",
"scambisti",
"scatological",
"scatologico",
"scemi",
"scemo",
"scheiss",
"scheisse",
"schiavi",
"schiavo",
"schifo",
"schlong",
"schlonging",
"schlongs",
"schmima",
"schmuck",
"schmutziger Sex",
"schtup",
"schtupping",
"schtups",
"schwängern",
"schwanzgelutscht",
"schwanzlutschen",
"schwanzlutschend",
"schwul",
"sciacquetta",
"sciocco",
"sconcezze",
"sconcio",
"scopare",
"scopata",
"scopate",
"scopato",
"scoregge",
"scoreggia",
"screw",
"screwed",
"screwing",
"screws",
"scroti",
"scroto",
"scrotum",
"scrotums",
"sculacciata",
"sculacciate",
"scum",
"se masturba",
"sedere",
"sederi",
"sedotto",
"seducción",
"seduce",
"seduced",
"seducente",
"seducer",
"seducir",
"seduction",
"seductive",
"seductor",
"sedurre",
"seduttore",
"seduzione",
"sega",
"segaiolo",
"sein",
"seins",
"seme",
"semen",
"semental",
"sementales",
"seni",
"seno",
"sesenta y nueve",
"sessantanove",
"sesso anale",
"sesso orale",
"sesso",
"sessuale",
"sessualità",
"sessuato",
"sex appeal",
"sex king",
"sex kitten",
"sex lupine",
"sex machine",
"sex queen",
"sex",
"sex-appeal",
"sexe anal",
"sexe",
"sexeanal",
"sexed",
"sexiness",
"sexisme",
"sexiste",
"sexking",
"sexkitten",
"sexmachine",
"sexo anal",
"sexo caliente",
"sexo con la ropa puesta",
"sexo oral",
"sexo sucio",
"sexo sujo",
"sexo",
"sexologie",
"sexologue",
"sexqueen",
"sexuado",
"sexual inadquacy",
"sexual perversion",
"sexual",
"sexualidad",
"sexualidade",
"sexualité",
"sexuality",
"sexy bitch",
"sexy bitches",
"sexy",
"sexybitch",
"sexybitches",
"sfintere",
"sfruttatore",
"sgualdrina",
"sgualdrine",
"shag",
"shagged",
"shagging",
"shags",
"shiksa",
"shit face",
"shit head",
"shit list",
"shit",
"shit-faced",
"shited",
"shitface",
"shithead",
"shitlist",
"shits",
"shitt",
"shitted",
"shitter",
"shitting",
"shitts",
"shitty",
"shoot up",
"shrooming",
"shrooms",
"sifilítico",
"sifilide",
"sifilitico",
"sigaretta",
"sin culo",
"sin papeles",
"sissy",
"sixty nine",
"sixty nining",
"sixtynine",
"sixtynining",
"skank",
"skrew",
"skrewing",
"skrews",
"slag",
"slags",
"slant eyes",
"slanteyes",
"slattern",
"slave",
"slaves",
"sleaze",
"sleazy",
"sleezy",
"slope head",
"slope heads",
"slopehead",
"slopeheads",
"slut",
"sluts",
"slutty",
"smack",
"smidollati",
"smidollato",
"smoker",
"smut",
"smuts",
"smutted",
"smutty",
"snatch",
"snatches",
"snuff",
"snuffs",
"sod",
"soddom",
"sodom",
"sodomía",
"sodomías",
"sodomítica",
"sodoma",
"sodomia",
"sodomie",
"sodomies",
"sodomist",
"sodomists",
"sodomita",
"sodomitas",
"sodomitic",
"sodomizado",
"sodomizar",
"sodomize",
"sodomized",
"sodomizing",
"sodomizzare",
"sodomizzato",
"sodomy",
"sods",
"son of a bitch",
"sonn of a bitch",
"sonn ov a bitch",
"sonn uv a bitch",
"sonnofabitch",
"sonnovabitch",
"sonnuvabitch",
"sonofabitch",
"sordido",
"sottomessi",
"sottomesso",
"spade",
"spank",
"spanked",
"spanking",
"spanks",
"spastico",
"spaz",
"spear chucker",
"spear chuckers",
"spearchucker",
"spearchuckers",
"speed ball",
"sperm juice",
"sperm",
"sperma",
"spermatozoo",
"sperme",
"spermicida",
"spermicidal",
"spermjuice",
"sperms",
"sphincter",
"spic",
"spick",
"spicks",
"spics",
"spik",
"spiks",
"spinello",
"spliff",
"spooge",
"spook",
"spunk",
"stallone",
"stalloni",
"sterco",
"stiffie",
"stiffy",
"stronzata",
"stronzate",
"stronzi",
"stronzo",
"stud",
"studs",
"stupid",
"stupidi",
"stupido",
"stuprare in gruppo",
"stuprato",
"stupratore di gruppo",
"stupratori di gruppo",
"stupri",
"stupro",
"submissive",
"submissives",
"suc me off",
"suc me",
"suc",
"succhiacazzi",
"succhiata",
"succhiate",
"succiona",
"succube",
"succubus",
"suce",
"suceur",
"suceurs",
"suceuse",
"sucio hijo de puta",
"suck",
"sucked",
"sucker",
"suckled",
"suckles",
"sucks",
"sucme",
"sucmeoff",
"sudaca",
"sudacas",
"suicide",
"suicidio",
"sumiso",
"sumisos",
"supremacía blanca",
"supremazia bianca",
"swallow",
"swinger",
"swingers",
"swish",
"swishy",
"syphilis",
"syphilitic",
"téquila",
"tampón",
"tampon",
"tampone",
"tampones",
"tamponi",
"tampons",
"tap that ass",
"tap that",
"tapa de cuello uterino",
"tar baby",
"tarbaby",
"tart",
"tarts",
"teat",
"teats",
"teen 2 teen",
"teen 4 teen",
"teen for teen",
"teen on teen",
"teen to teen",
"teen2teen",
"teen4teen",
"teenforteen",
"teenonteen",
"teens 2 teens",
"teens 4 teens",
"teens for teens",
"teens on teens",
"teens to teens",
"teens2teens",
"teens4teens",
"teensforteens",
"teensonteens",
"teenstoteens",
"teentoteen",
"tener sexo",
"ter sexo",
"testículo",
"testículos",
"testa di cazzo",
"testes",
"testical",
"testicals",
"testicle",
"testicles",
"testicoli",
"testicolo",
"testicule",
"testicules",
"testis",
"teta",
"tetas",
"tetona",
"tetta",
"tette sode",
"tette",
"tit",
"tits",
"titt",
"titties",
"titts",
"titty",
"toca el culo",
"tocapelotas",
"topa",
"tope",
"toquetear",
"tortazo",
"tortionaire",
"torture",
"toss off",
"tossed",
"tosser",
"tossers",
"tosses",
"tossici",
"tossico",
"tragar",
"tramp",
"tramps",
"tran sexual",
"tran sexuals",
"tranquilizantes",
"tranquillanti",
"trans vestite",
"trans vestites",
"transessuale",
"transessuali",
"transexual",
"transexuales",
"transexuals",
"transsexual",
"transsexuals",
"transverstism",
"transvestism",
"transvestite",
"transvestites",
"trasero",
"traseros",
"travelo",
"travestido",
"travestidos",
"travestie",
"travestis",
"travestismo",
"travestiti",
"travestitismo",
"travestito",
"triolisme",
"trip",
"trisomique",
"trisomisme",
"troia",
"troie",
"trombata",
"trombate",
"trou du cul",
"trysting",
"tuer",
"tueur",
"tueuse",
"turd",
"turtlutte",
"tush",
"tushies",
"tushy",
"twat",
"twats",
"uccelli",
"uccello",
"un rapidito",
"una palmada",
"undress",
"unten ohne",
"uriné",
"urinare",
"urinate",
"urinated",
"urinates",
"urinating",
"urination",
"urinazione",
"urine",
"uriner",
"urinoir",
"vírgenes",
"vómito",
"vómitos",
"vagin",
"vagina",
"vaginal",
"vaginale",
"vaginas",
"vagine",
"vasectomía",
"vasectomías",
"vasectomia",
"vasectomie",
"vasectomies",
"vasectomy",
"venéreo",
"venereal",
"venereo",
"verginale",
"vergini",
"verginità",
"very horny",
"veryhorny",
"vibrador",
"vibradores",
"vibrar",
"vibrare",
"vibrate",
"vibrator",
"vibratore",
"vibratori",
"vibrators",
"vin",
"viol",
"violé",
"violación",
"violaciones",
"violada",
"violador",
"violar",
"violare",
"violate",
"violentatore",
"violeur",
"virginal",
"virginale",
"virginales",
"virginals",
"virginidad",
"virginity",
"virgins",
"viscere",
"vodka",
"vollbusig",
"vomir",
"vomissure",
"vomit",
"vomitó",
"vomitar",
"voyeur",
"voyeurism",
"voyeurisme",
"voyeurismo",
"voyeurs",
"vulva",
"vulve",
"wank",
"wanker",
"wanking",
"weed",
"weenie",
"wet backs",
"wetback",
"wetbacks",
"whip",
"whipped",
"whipping",
"whips",
"whisky",
"white power",
"white primary",
"white racism",
"white supremacism",
"white supremacist",
"white supremacy",
"white trash",
"whitey",
"whitie",
"whities",
"whity",
"whore house",
"whore",
"whored",
"whorehouse",
"whores",
"whoring",
"wog",
"wogs",
"woman 2 woman",
"woman 4 woman",
"woman for woman",
"woman on woman",
"woman to woman",
"woman2woman",
"woman4woman",
"womanforwoman",
"womanonwoman",
"womantowoman",
"women 2 women",
"women 4 women",
"women for women",
"women on women",
"women to women",
"women2women",
"women4women",
"womenforwomen",
"womenonwomen",
"womentowomen",
"woody",
"wop",
"wops",
"wuss",
"wussies",
"wussy",
"xx",
"xxx",
"yid",
"yids",
"zézette",
"zölibatär",
"zipper dick",
"zipper dinner",
"zipper erection",
"zipper head",
"zipper heads",
"zipper muffin",
"zipper pickle",
"zipper sex",
"zipperdick",
"zipperdinner",
"zippererection",
"zipperhead",
"zipperheads",
"zippermuffin",
"zipperpickle",
"zippersex",
"zizi",
"zoccola",
"zona pelvica",
"zoophile",
"zoophilie",
"zoppo",
"croix gammée",
"trou du cul",
"bisexuel",
"fouille merde",
"fils de pute",
"lit conjugal",
"double pénétration",
"film X",
"film porno",
"film pornographique",
"film de cul",
"sac à merde",
"nique ta mère",
"dans ton cul",
};
}
| zoozooll/MyExercise | meep/MeepLib/src/com/oregonscientific/meep/global/DefaultBadwords.java |