本文整理汇总了Java中com.sun.tools.internal.ws.processor.model.java.JavaStructureMember类的典型用法代码示例。如果您正苦于以下问题:Java JavaStructureMember类的具体用法?Java JavaStructureMember怎么用?Java JavaStructureMember使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JavaStructureMember类属于com.sun.tools.internal.ws.processor.model.java包,在下文中一共展示了JavaStructureMember类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createUnwrappedParameter
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
/**
* @param prop
* @param jaxbType
* @param block
* @return unwrapped parameter
*/
private static Parameter createUnwrappedParameter(JAXBProperty prop,
JAXBType jaxbType, Block block, JAXBStructuredType type,
JavaStructureType jst) {
QName elementName = prop.getElementName();
JavaType javaType = new JavaSimpleType(prop.getType());
JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
JavaStructureMember jsm = new JavaStructureMember(elementName
.getLocalPart(), javaType, eType);
eType.setJavaStructureMember(jsm);
jst.add(jsm);
eType.setProperty(prop);
type.add(eType);
JAXBType t = new JAXBType(elementName, javaType, jaxbType
.getJaxbMapping(), jaxbType.getJaxbModel());
t.setUnwrapped(true);
Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
parameter.setEmbedded(true);
return parameter;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:ModelerUtils.java
示例2: isEquivalentLiteralStructures
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
/**
* Compares two JAXBStructures.
*
* @param struct1
* @param struct2
* @return true if struct1 and struct2 are equivalent.
*/
public static boolean isEquivalentLiteralStructures(
JAXBStructuredType struct1,
JAXBStructuredType struct2) {
if (struct1.getElementMembersCount() != struct2.getElementMembersCount())
return false;
Iterator members = struct1.getElementMembers();
JAXBElementMember member1;
JavaStructureMember javaMember1, javaMember2;
for (int i = 0; members.hasNext(); i++) {
member1 = (JAXBElementMember)members.next();
javaMember1 = member1.getJavaStructureMember();
javaMember2 =
((JavaStructureType)struct2.getJavaType()).getMemberByName(
member1.getJavaStructureMember().getName());
if (javaMember2.getConstructorPos() != i
|| !javaMember1.getType().equals(javaMember2.getType())) {
return false;
}
}
return false;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:29,代码来源:ModelerUtils.java
示例3: createUnwrappedParameter
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
/**
* @param prop
* @param jaxbType
* @param block
* @return
*/
private static Parameter createUnwrappedParameter(JAXBProperty prop,
JAXBType jaxbType, Block block, JAXBStructuredType type,
JavaStructureType jst) {
QName elementName = prop.getElementName();
JavaType javaType = new JavaSimpleType(prop.getType());
JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
JavaStructureMember jsm = new JavaStructureMember(elementName
.getLocalPart(), javaType, eType);
eType.setJavaStructureMember(jsm);
jst.add(jsm);
eType.setProperty(prop);
type.add(eType);
JAXBType t = new JAXBType(elementName, javaType, jaxbType
.getJaxbMapping(), jaxbType.getJaxbModel());
t.setUnwrapped(true);
Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
parameter.setEmbedded(true);
return parameter;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:26,代码来源:ModelerUtils.java
示例4: getJavaMemberReadMethod
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
public static String getJavaMemberReadMethod(JavaStructureMember member) {
String return_value;
if (member.getType().getRealName().equals(ModelerConstants.BOOLEAN_CLASSNAME.getValue())) {
return_value = GeneratorConstants.IS.getValue() + StringUtils.capitalize(member.getName());
} else {
return_value = GeneratorConstants.GET.getValue() + StringUtils.capitalize(member.getName());
}
return (return_value);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Names.java
示例5: getJavaMemberReadMethod
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
public static String getJavaMemberReadMethod(JavaStructureMember member) {
String return_value;
if (member.getType().getRealName().equals("boolean")) {
return_value = IS + StringUtils.capitalize(member.getName());
} else {
return_value = GET + StringUtils.capitalize(member.getName());
}
return (return_value);
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:10,代码来源:Names.java
示例6: JAXBElementMember
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
public JAXBElementMember(QName name, JAXBType type,
JavaStructureMember javaStructureMember) {
_name = name;
_type = type;
_javaStructureMember = javaStructureMember;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:JAXBElementMember.java
示例7: getJavaStructureMember
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
public JavaStructureMember getJavaStructureMember() {
return _javaStructureMember;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:JAXBElementMember.java
示例8: setJavaStructureMember
import com.sun.tools.internal.ws.processor.model.java.JavaStructureMember; //导入依赖的package包/类
public void setJavaStructureMember(JavaStructureMember javaStructureMember) {
_javaStructureMember = javaStructureMember;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:JAXBElementMember.java
注:本文中的com.sun.tools.internal.ws.processor.model.java.JavaStructureMember类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论