use of org.apache.cxf.binding.corba.wsdl.CorbaType in project cxf by apache.
the class TypesUtils method getConstValueByName.
public static String getConstValueByName(AST node, TypeMappingType typeMap) {
List<CorbaType> types = typeMap.getStructOrExceptionOrUnion();
for (Iterator<CorbaType> it = types.iterator(); it.hasNext(); ) {
CorbaType corbaType = it.next();
if (corbaType instanceof Const) {
Const corbaConst = (Const) corbaType;
String name = corbaConst.getQName().getLocalPart();
if (name.endsWith(node.getText())) {
return corbaConst.getValue();
}
}
}
return null;
}
use of org.apache.cxf.binding.corba.wsdl.CorbaType in project cxf by apache.
the class CorbaPrimitiveMap method get.
public Object get(QName key) {
CorbaType corbaTypeImpl = null;
QName type = corbaPrimitiveMap.get(key.getLocalPart());
if (type != null) {
corbaTypeImpl = new CorbaType();
corbaTypeImpl.setQName(type);
corbaTypeImpl.setType(key);
corbaTypeImpl.setName(key.getLocalPart());
}
return corbaTypeImpl;
}
Aggregations