Top Description Inners Fields Constructors Methods
com.sun.tools.xjc.reader.relaxng

public final Class RawTypeSetBuilder

extends DPatternWalker
Class Inheritance
Imports
java.util.HashSet, .Set, com.sun.tools.xjc.model.CClassInfo, .CElementPropertyInfo, .CReferencePropertyInfo, .CTypeInfo, .CTypeRef, .Multiplicity, com.sun.tools.xjc.reader.RawTypeSet, org.glassfish.jaxb.core.v2.model.core.ID, com.sun.tools.rngom.digested.DAttributePattern, .DElementPattern, .DOneOrMorePattern, .DPattern, .DPatternWalker, .DZeroOrMorePattern

Builds RawTypeSet for RELAX NG.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
RawTypeSetBuilder.CClassInfoRef

For CClassInfos that map to elements.

Field Summary

Modifier and TypeField and Description
private final RELAXNGCompiler
private Multiplicity
mul

Multiplicity of the property.

private final Set<RawTypeSet.Ref>
refs

Accumulates discovered RawTypeSet.Refs.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RawTypeSet
build(RELAXNGCompiler compiler, DPattern contentModel, Multiplicity mul)

private RawTypeSet
public Void
public Void
public Void
public Void
Inherited from com.sun.tools.rngom.digested.DPatternWalker:
onChoiceonContaineronDataonEmptyonGrammaronGrouponInterleaveonListonMixedonNotAllowedonOptionalonRefonTextonUnaryonValueonXmlToken

Field Detail

compilerback to summary
private final RELAXNGCompiler compiler
mulback to summary
private Multiplicity mul

Multiplicity of the property.

refsback to summary
private final Set<RawTypeSet.Ref> refs

Accumulates discovered RawTypeSet.Refs.

Constructor Detail

RawTypeSetBuilderback to summary
public RawTypeSetBuilder(RELAXNGCompiler compiler, Multiplicity mul)

Method Detail

buildback to summary
public static RawTypeSet build(RELAXNGCompiler compiler, DPattern contentModel, Multiplicity mul)
createback to summary
private RawTypeSet create()
onAttributeback to summary
public Void onAttribute(DAttributePattern p)

Overrides com.sun.tools.rngom.digested.DPatternWalker.onAttribute.

Implements com.sun.tools.rngom.digested.DPatternVisitor.onAttribute.

Annotations
@Override
onElementback to summary
public Void onElement(DElementPattern p)

Overrides com.sun.tools.rngom.digested.DPatternWalker.onElement.

Implements com.sun.tools.rngom.digested.DPatternVisitor.onElement.

Annotations
@Override
onOneOrMoreback to summary
public Void onOneOrMore(DOneOrMorePattern p)

Overrides com.sun.tools.rngom.digested.DPatternWalker.onOneOrMore.

Implements com.sun.tools.rngom.digested.DPatternVisitor.onOneOrMore.

Annotations
@Override
onZeroOrMoreback to summary
public Void onZeroOrMore(DZeroOrMorePattern p)

Overrides com.sun.tools.rngom.digested.DPatternWalker.onZeroOrMore.

Implements com.sun.tools.rngom.digested.DPatternVisitor.onZeroOrMore.

Annotations
@Override
com.sun.tools.xjc.reader.relaxng back to summary

private final Class RawTypeSetBuilder.CClassInfoRef

extends Ref
Class Inheritance

For CClassInfos that map to elements.

Field Summary

Modifier and TypeField and Description
private final CClassInfo

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected RawTypeSet.Mode
canBeType(RawTypeSet parent)

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.canBeType.

Can this be a type ref?

protected ID
id()

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.id.

When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.

protected boolean
protected void
protected CTypeRef
Inherited from com.sun.tools.xjc.reader.RawTypeSet.Ref:
getExpectedMimeType

Field Detail

ciback to summary
private final CClassInfo ci

Constructor Detail

CClassInfoRefback to summary
pack-priv CClassInfoRef(CClassInfo ci)

Method Detail

canBeTypeback to summary
protected RawTypeSet.Mode canBeType(RawTypeSet parent)

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.canBeType.

Doc from com.sun.tools.xjc.reader.RawTypeSet.Ref.canBeType.

Can this be a type ref?

Annotations
@Override
idback to summary
protected ID id()

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.id.

Doc from com.sun.tools.xjc.reader.RawTypeSet.Ref.id.

When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.

Annotations
@Override
isListOfValuesback to summary
protected boolean isListOfValues()

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.isListOfValues.

Annotations
@Override
toElementRefback to summary
protected void toElementRef(CReferencePropertyInfo prop)

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.toElementRef.

Annotations
@Override
toTypeRefback to summary
protected CTypeRef toTypeRef(CElementPropertyInfo ep)

Implements abstract com.sun.tools.xjc.reader.RawTypeSet.Ref.toTypeRef.

Annotations
@Override