1 23 package com.sun.enterprise.tools.jsfext.event.handlers; 24 25 26 36 public class OutputMapping implements java.io.Serializable { 37 38 50 public OutputMapping(String outputName, String targetOutputType) { 51 this(outputName, null, targetOutputType); 52 } 53 54 55 68 public OutputMapping(String outputName, String targetKey, String targetOutputType) { 69 if ((outputName == null) || (outputName.length() == 0)) { 71 throw new NullPointerException ("'outputName' is required!"); 72 } 73 if (targetOutputType == null) { 74 throw new NullPointerException ("'targetOutputType' is required!"); 75 } 76 _outputName = outputName; 77 _targetKey = targetKey; 78 _targetOutputType = targetOutputType; 79 } 80 81 100 101 104 public String getOutputName() { 105 return _outputName; 106 } 107 108 111 public String getOutputKey() { 112 return _targetKey; 113 } 114 115 118 public OutputType getOutputType() { 119 return OutputTypeManager.getInstance().getOutputType(_targetOutputType); 120 } 121 122 123 private String _outputName = null; 124 private String _targetKey = null; 125 private String _targetOutputType = null; 126 } 127 | Popular Tags |