Module org.glassfish.jaxb.xjc
Class RawTypeSetBuilder.XmlTypeRef
- java.lang.Object
-
- com.sun.tools.xjc.reader.RawTypeSet.Ref
-
- com.sun.tools.xjc.reader.xmlschema.RawTypeSetBuilder.XmlTypeRef
-
- Enclosing class:
- RawTypeSetBuilder
public static final class RawTypeSetBuilder.XmlTypeRef extends RawTypeSet.Ref
References to a type. Could be global or local.
-
-
Constructor Summary
Constructors Constructor Description XmlTypeRef(XSElementDecl decl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RawTypeSet.Mode
canBeType(RawTypeSet parent)
Can this be a type ref?protected jakarta.activation.MimeType
getExpectedMimeType()
When thisRawTypeSet
binds to aCElementPropertyInfo
, this method is used to determine if the property has an associated expected MIME type or not.protected ID
id()
When thisRawTypeSet
binds to aCElementPropertyInfo
, this method is used to determine if the property is ID or not.protected boolean
isListOfValues()
protected void
toElementRef(CReferencePropertyInfo prop)
The whole type set can be later bound to a reference property, in which case we need to generate additional code to wrap this type reference into an element class.protected CTypeRef
toTypeRef(CElementPropertyInfo ep)
-
-
-
Constructor Detail
-
XmlTypeRef
public XmlTypeRef(XSElementDecl decl)
-
-
Method Detail
-
toTypeRef
protected CTypeRef toTypeRef(CElementPropertyInfo ep)
- Specified by:
toTypeRef
in classRawTypeSet.Ref
- Parameters:
ep
- the property to which the returnedCTypeRef
will be added to.
-
toElementRef
protected void toElementRef(CReferencePropertyInfo prop)
The whole type set can be later bound to a reference property, in which case we need to generate additional code to wrap this type reference into an element class. This method generates such an element class and returns it.- Specified by:
toElementRef
in classRawTypeSet.Ref
-
canBeType
protected RawTypeSet.Mode canBeType(RawTypeSet parent)
Description copied from class:RawTypeSet.Ref
Can this be a type ref?- Specified by:
canBeType
in classRawTypeSet.Ref
- Returns:
- false to veto.
-
isListOfValues
protected boolean isListOfValues()
- Specified by:
isListOfValues
in classRawTypeSet.Ref
-
id
protected ID id()
Description copied from class:RawTypeSet.Ref
When thisRawTypeSet
binds to aCElementPropertyInfo
, this method is used to determine if the property is ID or not.- Specified by:
id
in classRawTypeSet.Ref
-
getExpectedMimeType
protected jakarta.activation.MimeType getExpectedMimeType()
Description copied from class:RawTypeSet.Ref
When thisRawTypeSet
binds to aCElementPropertyInfo
, this method is used to determine if the property has an associated expected MIME type or not.- Overrides:
getExpectedMimeType
in classRawTypeSet.Ref
-
-