本文整理汇总了Java中com.sun.tools.internal.ws.processor.model.java.JavaStructureType类的典型用法代码示例。如果您正苦于以下问题:Java JavaStructureType类的具体用法?Java JavaStructureType怎么用?Java JavaStructureType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JavaStructureType类属于com.sun.tools.internal.ws.processor.model.java包,在下文中一共展示了JavaStructureType类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createUnwrappedParameters
import com.sun.tools.internal.ws.processor.model.java.JavaStructureType; //导入依赖的package包/类
/**
* This method uses JAXBStructured type (wrapper style operations) and
* unwraps it to create list of parameters.
*
*
* @param jaxbType instance of JAXBType, could be JAXBStructured type.
* @param block The Block (body/Header/Attachment) to which the created Parameter belong.
* @return list of Parameters
*/
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
Block block) {
List<Parameter> paramList = new ArrayList<Parameter>();
JAXBStructuredType type = null;
if (!(jaxbType instanceof JAXBStructuredType))
type = createJAXBStructureType(jaxbType);
else
type = (JAXBStructuredType) jaxbType;
JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
.getRealName(), true, type);
type.setJavaType(jst);
block.setType(type);
List memberList = jaxbType.getWrapperChildren();
Iterator props = memberList.iterator();
while (props.hasNext()) {
JAXBProperty prop = (JAXBProperty) props.next();
paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
jst));
}
return paramList;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:33,代码来源:ModelerUtils.java
示例2: createUnwrappedParameter
import com.sun.tools.internal.ws.processor.model.java.JavaStructureType; //导入依赖的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
示例3: isEquivalentLiteralStructures
import com.sun.tools.internal.ws.processor.model.java.JavaStructureType; //导入依赖的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
示例4: createUnwrappedParameter
import com.sun.tools.internal.ws.processor.model.java.JavaStructureType; //导入依赖的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
示例5: JAXBStructuredType
import com.sun.tools.internal.ws.processor.model.java.JavaStructureType; //导入依赖的package包/类
public JAXBStructuredType(QName name, JavaStructureType javaType) {
super(name, javaType);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:JAXBStructuredType.java
注:本文中的com.sun.tools.internal.ws.processor.model.java.JavaStructureType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论