Home
last modified time | relevance | path

Searched refs:getEnum (Results 1 – 25 of 699) sorted by relevance

12345678910>>...28

/dports/java/apache-commons-lang/commons-lang-2.6-src/src/test/java/org/apache/commons/lang/enum/
H A DEnumUtilsTest.java122 assertSame(ColorEnum.RED, EnumUtils.getEnum(ColorEnum.class, "Red")); in testGet()
123 assertSame(ColorEnum.GREEN, EnumUtils.getEnum(ColorEnum.class, "Green")); in testGet()
124 assertSame(ColorEnum.BLUE, EnumUtils.getEnum(ColorEnum.class, "Blue")); in testGet()
125 assertSame(null, EnumUtils.getEnum(ColorEnum.class, "Pink")); in testGet()
126 assertSame(null, EnumUtils.getEnum(DummyEnum.class, "Pink")); in testGet()
131 EnumUtils.getEnum(null, ""); in testGetEx()
135 EnumUtils.getEnum(Object.class, "Red"); in testGetEx()
145 assertSame(null, EnumUtils.getEnum(ValuedColorEnum.class, 4)); in testGetValue()
146 assertSame(null, EnumUtils.getEnum(DummyEnum.class, 5)); in testGetValue()
151 EnumUtils.getEnum(null, 0); in testGetValueEx()
[all …]
H A DValuedEnumTest.java63 assertSame(ValuedColorEnum.getEnum("Red"), ValuedColorEnum.RED); in testEquals()
110 assertSame(ValuedColorEnum.RED, ValuedColorEnum.getEnum("Red")); in testGet()
111 assertSame(ValuedColorEnum.GREEN, ValuedColorEnum.getEnum("Green")); in testGet()
112 assertSame(ValuedColorEnum.BLUE, ValuedColorEnum.getEnum("Blue")); in testGet()
113 assertSame(null, ValuedColorEnum.getEnum("Pink")); in testGet()
117 assertSame(ValuedColorEnum.RED, ValuedColorEnum.getEnum(1)); in testGetValue()
118 assertSame(ValuedColorEnum.GREEN, ValuedColorEnum.getEnum(2)); in testGetValue()
119 assertSame(ValuedColorEnum.BLUE, ValuedColorEnum.getEnum(3)); in testGetValue()
120 assertSame(null, ValuedColorEnum.getEnum(4)); in testGetValue()
H A DEnumTest.java78 assertSame(ColorEnum.getEnum("Red"), ColorEnum.RED);
129 assertSame(ColorEnum.RED, ColorEnum.getEnum("Red"));
130 assertSame(ColorEnum.GREEN, ColorEnum.getEnum("Green"));
131 assertSame(ColorEnum.BLUE, ColorEnum.getEnum("Blue"));
132 assertSame(null, ColorEnum.getEnum("Pink"));
216 assertSame(OperationEnum.PLUS, OperationEnum.getEnum("Plus"));
218 assertSame(null, OperationEnum.getEnum("Pink"));
260 assertSame(Extended1Enum.BETA, Extended1Enum.getEnum("Beta"));
261 assertSame(null, Extended1Enum.getEnum("Gamma"));
262 assertSame(null, Extended1Enum.getEnum("Delta"));
[all …]
H A DValuedColorEnum.java39 public static ValuedColorEnum getEnum(String color) { in getEnum() method in ValuedColorEnum
40 return (ValuedColorEnum) getEnum(ValuedColorEnum.class, color); in getEnum()
43 public static ValuedColorEnum getEnum(int value) { in getEnum() method in ValuedColorEnum
44 return (ValuedColorEnum) getEnum(ValuedColorEnum.class, value); in getEnum()
/dports/java/apache-commons-lang/commons-lang-2.6-src/src/test/java/org/apache/commons/lang/enums/
H A DEnumUtilsTest.java122 assertSame(ColorEnum.RED, EnumUtils.getEnum(ColorEnum.class, "Red")); in testGet()
123 assertSame(ColorEnum.GREEN, EnumUtils.getEnum(ColorEnum.class, "Green")); in testGet()
124 assertSame(ColorEnum.BLUE, EnumUtils.getEnum(ColorEnum.class, "Blue")); in testGet()
125 assertSame(null, EnumUtils.getEnum(ColorEnum.class, "Pink")); in testGet()
126 assertSame(null, EnumUtils.getEnum(DummyEnum.class, "Pink")); in testGet()
131 EnumUtils.getEnum(null, ""); in testGetEx()
135 EnumUtils.getEnum(Object.class, "Red"); in testGetEx()
145 assertSame(null, EnumUtils.getEnum(ValuedColorEnum.class, 4)); in testGetValue()
146 assertSame(null, EnumUtils.getEnum(DummyEnum.class, 5)); in testGetValue()
151 EnumUtils.getEnum(null, 0); in testGetValueEx()
[all …]
H A DEnumTest.java75 assertSame(ColorEnum.getEnum("Red"), ColorEnum.RED);
128 assertSame(ColorEnum.RED, ColorEnum.getEnum("Red"));
129 assertSame(ColorEnum.GREEN, ColorEnum.getEnum("Green"));
130 assertSame(ColorEnum.BLUE, ColorEnum.getEnum("Blue"));
131 assertSame(null, ColorEnum.getEnum("Pink"));
215 assertSame(OperationEnum.PLUS, OperationEnum.getEnum("Plus"));
217 assertSame(null, OperationEnum.getEnum("Pink"));
259 assertSame(Extended1Enum.BETA, Extended1Enum.getEnum("Beta"));
260 assertSame(null, Extended1Enum.getEnum("Gamma"));
261 assertSame(null, Extended1Enum.getEnum("Delta"));
[all …]
H A DValuedLanguageEnum.java38 public static ValuedLanguageEnum getEnum(String color) { in getEnum() method in ValuedLanguageEnum
39 return (ValuedLanguageEnum) getEnum(ValuedLanguageEnum.class, color); in getEnum()
42 public static ValuedLanguageEnum getEnum(int value) { in getEnum() method in ValuedLanguageEnum
43 return (ValuedLanguageEnum) getEnum(ValuedLanguageEnum.class, value); in getEnum()
H A DValuedColorEnum.java39 public static ValuedColorEnum getEnum(String color) { in getEnum() method in ValuedColorEnum
40 return (ValuedColorEnum) getEnum(ValuedColorEnum.class, color); in getEnum()
43 public static ValuedColorEnum getEnum(int value) { in getEnum() method in ValuedColorEnum
44 return (ValuedColorEnum) getEnum(ValuedColorEnum.class, value); in getEnum()
H A DValuedEnumTest.java128 assertSame(ValuedColorEnum.getEnum("Red"), ValuedColorEnum.RED); in testEquals()
203 assertSame(ValuedColorEnum.RED, ValuedColorEnum.getEnum("Red")); in testGet()
204 assertSame(ValuedColorEnum.GREEN, ValuedColorEnum.getEnum("Green")); in testGet()
205 assertSame(ValuedColorEnum.BLUE, ValuedColorEnum.getEnum("Blue")); in testGet()
206 assertSame(null, ValuedColorEnum.getEnum("Pink")); in testGet()
210 assertSame(ValuedColorEnum.RED, ValuedColorEnum.getEnum(1)); in testGetValue()
211 assertSame(ValuedColorEnum.GREEN, ValuedColorEnum.getEnum(2)); in testGetValue()
212 assertSame(ValuedColorEnum.BLUE, ValuedColorEnum.getEnum(3)); in testGetValue()
213 assertSame(null, ValuedColorEnum.getEnum(4)); in testGetValue()
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/fo/flow/
H A DBlock.java116 breakAfter = pList.get(PR_BREAK_AFTER).getEnum(); in bind()
117 breakBefore = pList.get(PR_BREAK_BEFORE).getEnum(); in bind()
119 hyphenationKeep = pList.get(PR_HYPHENATION_KEEP).getEnum(); in bind()
121 intrusionDisplace = pList.get(PR_INTRUSION_DISPLACE).getEnum(); in bind()
126 linefeedTreatment = pList.get(PR_LINEFEED_TREATMENT).getEnum(); in bind()
132 span = pList.get(PR_SPAN).getEnum(); in bind()
133 textAlign = pList.get(PR_TEXT_ALIGN).getEnum(); in bind()
134 textAlignLast = pList.get(PR_TEXT_ALIGN_LAST).getEnum(); in bind()
136 whiteSpaceCollapse = pList.get(PR_WHITE_SPACE_COLLAPSE).getEnum(); in bind()
138 wrapOption = pList.get(PR_WRAP_OPTION).getEnum(); in bind()
[all …]
H A DBlockContainer.java89 breakAfter = pList.get(PR_BREAK_AFTER).getEnum(); in bind()
90 breakBefore = pList.get(PR_BREAK_BEFORE).getEnum(); in bind()
92 displayAlign = pList.get(PR_DISPLAY_ALIGN).getEnum(); in bind()
97 overflow = pList.get(PR_OVERFLOW).getEnum(); in bind()
99 span = pList.get(PR_SPAN).getEnum(); in bind()
101 WritingMode.valueOf(pList.get(PR_WRITING_MODE).getEnum()), in bind()
103 disableColumnBalancing = pList.get(PR_X_DISABLE_COLUMN_BALANCING).getEnum(); in bind()
H A DAbstractGraphics.java98 alignmentBaseline = pList.get(PR_ALIGNMENT_BASELINE).getEnum(); in bind()
104 displayAlign = pList.get(PR_DISPLAY_ALIGN).getEnum(); in bind()
105 dominantBaseline = pList.get(PR_DOMINANT_BASELINE).getEnum(); in bind()
111 overflow = pList.get(PR_OVERFLOW).getEnum(); in bind()
112 scaling = pList.get(PR_SCALING).getEnum(); in bind()
113 textAlign = pList.get(PR_TEXT_ALIGN).getEnum(); in bind()
190 if (alignmentAdjust.getEnum() == EN_AUTO) { in getAlignmentAdjust()
/dports/biology/protomol/protomol/framework/base/
H A DAbstractEnumType.h28 AbstractEnumType(const std::string& s):myType(getEnum(s)){} in AbstractEnumType()
29 AbstractEnumType(const char s[]):myType(getEnum(std::string(s))){} in AbstractEnumType()
37 Enum getEnum() const {return myType;} in getEnum() function
57 static Enum getEnum(const std::string& s);
58 static Enum getEnum(int n);
59 static const std::string& getString(int n){return T::str[static_cast<int>(getEnum(n))];} in getString()
74 …typename AbstractEnumType<T, noCase>::Enum AbstractEnumType<T, noCase>::getEnum(const std::string&… in getEnum() function
87 typename AbstractEnumType<T, noCase>::Enum AbstractEnumType<T, noCase>::getEnum(int n){ in getEnum() function
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/
H A DImageLayout.java77 if (len.getEnum() != EN_AUTO) { in doLayout()
81 if (bpd == -1 && len.getEnum() != EN_AUTO) { in doLayout()
86 if (len.getEnum() != EN_AUTO) { in doLayout()
90 if (ipd == -1 && len.getEnum() != EN_AUTO) { in doLayout()
101 if (len.getEnum() != EN_AUTO) { in doLayout()
102 switch (len.getEnum()) { in doLayout()
126 if (len.getEnum() != EN_AUTO) { in doLayout()
127 switch (len.getEnum()) { in doLayout()
194 boolean mayScaleUp = (contextExtent.getEnum() != EN_SCALE_DOWN_TO_FIT); in constrainExtent()
198 if (len.getEnum() != EN_AUTO) { in constrainExtent()
[all …]
/dports/java/apache-commons-lang/commons-lang-2.6-src/src/main/java/org/apache/commons/lang/enums/
H A DEnumUtils.java51 public static Enum getEnum(Class enumClass, String name) { in getEnum() method in EnumUtils
52 return Enum.getEnum(enumClass, name); in getEnum()
63 public static ValuedEnum getEnum(Class enumClass, int value) { in getEnum() method in EnumUtils
64 return (ValuedEnum) ValuedEnum.getEnum(enumClass, value); in getEnum()
/dports/java/apache-commons-lang/commons-lang-2.6-src/src/main/java/org/apache/commons/lang/enum/
H A DEnumUtils.java55 public static Enum getEnum(Class enumClass, String name) { in getEnum() method in EnumUtils
56 return Enum.getEnum(enumClass, name); in getEnum()
67 public static ValuedEnum getEnum(Class enumClass, int value) { in getEnum() method in EnumUtils
68 return (ValuedEnum) ValuedEnum.getEnum(enumClass, value); in getEnum()
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/clucene/src/CLucene/index/
H A DTermInfosReader.cpp151 SegmentTermEnum* enumerator = getEnum(); in get()
170 SegmentTermEnum* TermInfosReader::getEnum() in getEnum() function in TermInfosReader
193 SegmentTermEnum* enumerator = getEnum(); in get()
242 SegmentTermEnum* enumerator = getEnum(); in getPosition()
265 enumerator = getEnum(); in terms()
390 SegmentTermEnum* enumerator = getEnum(); in seekEnum()
406 SegmentTermEnum* enumerator = getEnum(); in scanEnum()
427 SegmentTermEnum* enumerator = getEnum(); in scanEnum()
/dports/cad/meshlab/meshlab-Meshlab-2020.05/src/plugins_unsupported/fgt/filter_shape/
H A Dfilter_shape.cpp113 Log("Creating platonic number %d. STAR=%d", par.getEnum("Figure"), par.getBool("Star")); in applyFilter()
114 switch(par.getEnum("Figure")) { in applyFilter()
134 … Log("Creating archimedean number %d. STAR=%d", par.getEnum("Figure"), par.getBool("Star")); in applyFilter()
135 switch(par.getEnum("Figure")) { in applyFilter()
166 Log("Creating misc number %d. STAR=%d", par.getEnum("Figure"), par.getBool("Star")); in applyFilter()
167 switch(par.getEnum("Figure")) { in applyFilter()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/objectivec/Tests/
H A DGPBDictionaryTests+Int32.m2629 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2651 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2654 XCTAssertTrue([dict getEnum:NULL forKey:12]);
2657 XCTAssertTrue([dict getEnum:NULL forKey:13]);
2810 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2813 XCTAssertTrue([dict getEnum:NULL forKey:12]);
2816 XCTAssertTrue([dict getEnum:NULL forKey:13]);
2819 XCTAssertTrue([dict getEnum:NULL forKey:14]);
2839 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2843 XCTAssertTrue([dict getEnum:NULL forKey:13]);
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/objectivec/Tests/
H A DGPBDictionaryTests+Int32.m2629 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2651 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2654 XCTAssertTrue([dict getEnum:NULL forKey:12]);
2657 XCTAssertTrue([dict getEnum:NULL forKey:13]);
2810 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2813 XCTAssertTrue([dict getEnum:NULL forKey:12]);
2816 XCTAssertTrue([dict getEnum:NULL forKey:13]);
2819 XCTAssertTrue([dict getEnum:NULL forKey:14]);
2839 XCTAssertTrue([dict getEnum:NULL forKey:11]);
2843 XCTAssertTrue([dict getEnum:NULL forKey:13]);
[all …]
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.core/src/test/java/org/springframework/core/annotation/
H A DAnnotationAttributesTests.java58 assertThat(a.<Color>getEnum("color"), equalTo(Color.RED)); in testTypeSafeAttributeAccess()
71 a.getEnum(""); in getEnum_emptyAttributeName()
77 a.getEnum(null); in getEnum_emptyAttributeName()
89 a.getEnum("colour"); in getEnum_notFound()
101 a.getEnum("color"); in getEnum_typeMismatch()
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/fo/properties/
H A DFontStretchPropertyMaker.java54 if (p.getEnum() == EN_NARROWER) { in convertProperty()
56 } else if (p.getEnum() == EN_WIDER) { in convertProperty()
84 int baseValue = baseProperty.getEnum(); in computeNextAbsoluteFontStretch()
86 if (baseValue == orderedFontStretchValues[i].getEnum()) { in computeNextAbsoluteFontStretch()
H A DCommonFont.java152 return fontSelectionStrategy.getEnum(); in getFontSelectionStrategy()
157 return fontStretch.getEnum(); in getFontStretch()
162 return fontStyle.getEnum(); in getFontStyle()
167 return fontVariant.getEnum(); in getFontVariant()
172 return fontWeight.getEnum(); in getFontWeight()
193 switch (fontWeight.getEnum()) { in getFontState()
207 switch (fontStyle.getEnum()) { in getFontState()
/dports/textproc/clucene/clucene-core-2.3.3.4/src/core/CLucene/index/
H A DTermInfosReader.cpp173 SegmentTermEnum* enumerator = getEnum(); in get()
192 SegmentTermEnum* TermInfosReader::getEnum(){ in getEnum() function in TermInfosReader
213 SegmentTermEnum* enumerator = getEnum(); in get()
266 SegmentTermEnum* enumerator = getEnum(); in getPosition()
288 enumerator = getEnum(); in terms()
403 SegmentTermEnum* enumerator = getEnum(); in seekEnum()
421 SegmentTermEnum* enumerator = getEnum(); in scanEnum()
441 SegmentTermEnum* enumerator = getEnum(); in scanEnum()
/dports/biology/gatk/gatk-4.2.0.0/src/main/java/org/broadinstitute/hellbender/utils/codecs/gtf/
H A DGencodeGtfFeature.java158 baseData.geneType = GeneTranscriptType.getEnum(fieldValue); in GencodeGtfFeature()
162 baseData.geneType = GeneTranscriptType.getEnum(fieldValue); in GencodeGtfFeature()
194 baseData.locusLevel = LocusLevel.getEnum(fieldValue); in GencodeGtfFeature()
831 public static FeatureType getEnum(final String s) { in getEnum() method in GencodeGtfFeature.FeatureType
884 public static GenomicPhase getEnum(final String s) { in getEnum() method in GencodeGtfFeature.GenomicPhase
1051 public static GeneTranscriptType getEnum(final String s) { in getEnum() method in GencodeGtfFeature.GeneTranscriptType
1128 public static LocusLevel getEnum(final String s) { in getEnum() method in GencodeGtfFeature.LocusLevel
1383 public static FeatureTag getEnum(final String s) { in getEnum() method in GencodeGtfFeature.FeatureTag
1433 public static TranscriptSupportLevel getEnum(final String s) { in getEnum() method in GencodeGtfFeature.TranscriptSupportLevel
1514 public static RemapStatus getEnum(final String s) { in getEnum() method in GencodeGtfFeature.RemapStatus
[all …]

12345678910>>...28