606607608609610611612613614615616
final String nameTarget = Util.isValidText(target) ? target : "*"; final String nameDefault = nameType + "/" + nameTarget; reference.name = nameDefault; } final ReferenceCardinality cardinality = UtilAsm.asEnum(annoNode, "cardinality"); if (cardinality != null) { reference.cardinality = cardinality; }
612613614615616617618619620621622
reference.name = nameDefault; } final ClassLoader loader = type.getClassLoader(); final ReferenceCardinality cardinality = UtilAsm.asEnum(loader, annoNode, "cardinality"); if (cardinality != null) { reference.cardinality = cardinality; }
25262728293031323334
} @Override public String toString(final Object instance) { final ReferenceCardinality cardinality = (ReferenceCardinality) instance; return cardinality.value; }
3435363738394041424344
} @Override public Object fromString(final String value) { final ReferenceCardinality cardinality = ReferenceCardinality .from(value); return cardinality; }
17181920212223242526
2627282930313233343536
615616617618619620621622623624625
3132333435363738394041
} @Override public String toString(final Object instance) { final ReferenceCardinality entry = (ReferenceCardinality) instance; /** Workaround for OSGI final specification change. */ final String value = UtilJdk.readField(entry, "value"); return value;