本文整理汇总了Java中com.sun.tools.internal.xjc.model.nav.NavigatorImpl类的典型用法代码示例。如果您正苦于以下问题:Java NavigatorImpl类的具体用法?Java NavigatorImpl怎么用?Java NavigatorImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NavigatorImpl类属于com.sun.tools.internal.xjc.model.nav包,在下文中一共展示了NavigatorImpl类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getRef
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
if(copy) {
// TODO: this is a hack. the code generation should be defered until
// the backend. (right now constant generation happens in the front-end)
return new EagerNClass(adapter) {
@Override
public JClass toType(Outline o, Aspect aspect) {
return o.addRuntime(adapter);
}
public String fullName() {
// TODO: implement this method later
throw new UnsupportedOperationException();
}
};
} else {
return NavigatorImpl.theInstance.ref(adapter);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:CAdapter.java
示例2: getDOMHandler
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
public NClass getDOMHandler() {
// TODO: support other DOM handlers
if(getWildcard()!=null)
return NavigatorImpl.create(W3CDomHandler.class);
else
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CReferencePropertyInfo.java
示例3: getContentInMemoryType
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
public NType getContentInMemoryType() {
if(getProperty().getAdapter()==null) {
NType itemType = getContentType().getType();
if(!property.isCollection())
return itemType;
return NavigatorImpl.createParameterizedType(List.class,itemType);
} else {
return getProperty().getAdapter().customType;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CElementInfo.java
示例4: Builtin
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
protected Builtin(Class c, String typeName, ID id) {
super(NavigatorImpl.theInstance.ref(c), id, new QName(WellKnownNamespace.XML_SCHEMA,typeName));
LEAVES.put(getType(),this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:CBuiltinLeafInfo.java
示例5: getNavigator
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
public Navigator<NType,NClass,Void,Void> getNavigator() {
return NavigatorImpl.theInstance;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:Model.java
示例6: getType
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
public NType getType() {
return NavigatorImpl.create(Element.class);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:CWildcardTypeInfo.java
示例7: CAdapter
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl; //导入依赖的package包/类
public CAdapter(JClass adapter) {
super( NavigatorImpl.theInstance.ref(adapter), NavigatorImpl.theInstance);
this.adapterClass1 = adapter;
this.adapterClass2 = null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:CAdapter.java
注:本文中的com.sun.tools.internal.xjc.model.nav.NavigatorImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论