本文整理汇总了Java中com.sun.xml.internal.xsom.impl.scd.Iterators类的典型用法代码示例。如果您正苦于以下问题:Java Iterators类的具体用法?Java Iterators怎么用?Java Iterators使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Iterators类属于com.sun.xml.internal.xsom.impl.scd包,在下文中一共展示了Iterators类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: iterateAttributeUses
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSAttributeUse> iterateAttributeUses() {
XSComplexType baseType = getBaseType().asComplexType();
if( baseType==null ) return super.iterateAttributeUses();
return new Iterators.Union<XSAttributeUse>(
new Iterators.Filter<XSAttributeUse>(baseType.iterateAttributeUses()) {
protected boolean matches(XSAttributeUse value) {
XSAttributeDecl u = value.getDecl();
UName n = new UName(u.getTargetNamespace(),u.getName());
return !prohibitedAtts.contains(n);
}
},
super.iterateAttributeUses() );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:ComplexTypeImpl.java
示例2: getDefaultRequests
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
protected Iterator<Records.Request> getDefaultRequests() {
ObjectReader reader = getObjectMapper().reader();
File file = Tracing.getTraceInputFileConfiguration(getRuntimeModule().getConfiguration());
Iterator<TraceEvent> events;
if (getRuntimeModule().getConfiguration().getArguments().helpOptionSet()) {
events = Iterators.empty();
} else {
logger.info("Trace input: {}", file);
try {
events = TraceEventIterator.forFile(file, reader);
} catch (IOException e) {
throw Throwables.propagate(e);
}
}
return TraceRequestIterator.requestsOf(TraceRequestIterator.from(events));
}
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:17,代码来源:TraceIteratingClientBuilder.java
示例3: iterateElementDecls
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSElementDecl> iterateElementDecls() {
return new Iterators.Map<XSElementDecl,XSSchema>(iterateSchema()) {
protected Iterator<XSElementDecl> apply(XSSchema u) {
return u.iterateElementDecls();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例4: iterateTypes
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSType> iterateTypes() {
return new Iterators.Map<XSType,XSSchema>(iterateSchema()) {
protected Iterator<XSType> apply(XSSchema u) {
return u.iterateTypes();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例5: iterateAttributeDecls
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSAttributeDecl> iterateAttributeDecls() {
return new Iterators.Map<XSAttributeDecl,XSSchema>(iterateSchema()) {
protected Iterator<XSAttributeDecl> apply(XSSchema u) {
return u.iterateAttributeDecls();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例6: iterateAttGroupDecls
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSAttGroupDecl> iterateAttGroupDecls() {
return new Iterators.Map<XSAttGroupDecl,XSSchema>(iterateSchema()) {
protected Iterator<XSAttGroupDecl> apply(XSSchema u) {
return u.iterateAttGroupDecls();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例7: iterateModelGroupDecls
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSModelGroupDecl> iterateModelGroupDecls() {
return new Iterators.Map<XSModelGroupDecl,XSSchema>(iterateSchema()) {
protected Iterator<XSModelGroupDecl> apply(XSSchema u) {
return u.iterateModelGroupDecls();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例8: iterateSimpleTypes
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSSimpleType> iterateSimpleTypes() {
return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) {
protected Iterator<XSSimpleType> apply(XSSchema u) {
return u.iterateSimpleTypes();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例9: iterateComplexTypes
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSComplexType> iterateComplexTypes() {
return new Iterators.Map<XSComplexType,XSSchema>(iterateSchema()) {
protected Iterator<XSComplexType> apply(XSSchema u) {
return u.iterateComplexTypes();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例10: iterateNotations
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSNotation> iterateNotations() {
return new Iterators.Map<XSNotation,XSSchema>(iterateSchema()) {
protected Iterator<XSNotation> apply(XSSchema u) {
return u.iterateNotations();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例11: iterateIdentityConstraints
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSIdentityConstraint> iterateIdentityConstraints() {
return new Iterators.Map<XSIdentityConstraint,XSSchema>(iterateSchema()) {
protected Iterator<XSIdentityConstraint> apply(XSSchema u) {
return u.getIdentityConstraints().values().iterator();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java
示例12: iterateAttGroups
import com.sun.xml.internal.xsom.impl.scd.Iterators; //导入依赖的package包/类
public Iterator<XSAttGroupDecl> iterateAttGroups() {
return new Iterators.Adapter<XSAttGroupDecl,Ref.AttGroup>(attGroups.iterator()) {
protected XSAttGroupDecl filter(AttGroup u) {
return u.get();
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:AttributesHolder.java
注:本文中的com.sun.xml.internal.xsom.impl.scd.Iterators类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论