Package com.sun.tools.xjc.model
package com.sun.tools.xjc.model
Implementation of the
org.glassfish.jaxb.core.v2.model.core package for XJC.
This model is the recipes for the code generation. It captures the essence of the JAXB-bound beans, so that the actual Java code can be generated from this object model mechanically without knowing anything about how the model was built.
Most of the classes/interfaces in this package has one-to-one relationship
with the parameterized core model in the org.glassfish.jaxb.core.v2.model.core package.
Refer to the core model for better documentation.
The model for XJC also exposes a few additional information on top of the core model. Those are defined in this package. This includes such information as:
- Source location information
Locatorobject that can be used to tell where the model components are created from in terms of the source file. Useful for error reporting.- Source schema component
XSComponentobject from which the model components are created from. SeeCCustomizable.getSchemaComponent()for example.- Plugin customizations
- See
CCustomizable.
-
ClassDescription
ClassNameAllocatorfilter that performs automatic name conflict resolution.ExtendedAdapterfor use within XJC.Because XJC doesn't generate the array binding, this class will never show up in the model constructed by XJC.AttributePropertyInfofor the compiler.Encapsulates the default handling for leaf classes (which are bound to text in XML.) In particular this class knows how to convert the lexical value into the Java class according to this default rule.EitherCClassInfoorCClassRef.MutableClassInforepresentation.Parent of aCClassInfo/CElementInfo.JPackageas aCClassInfoParent.Visitor ofCClassInfoParentReference to an existing class.Implemented by model components that can have customizations contributed byPlugins.Represents the list ofCPluginCustomizations attached to a JAXB model component.Object that computes the default value expression lazily.ElementInfoimplementation for the compile-time model.ElementPropertyInfofor the compiler.Enumeration constant.Transducer that converts a string into an "enumeration class." The structure of the generated class needs to precisely follow the JAXB spec.NonElementat compile-time.Constructor declaration.Vendor extension customization contributed fromPlugins.Model of a property to be generated.Visitor forCPropertyInfo.CPropertyVisitor2<R,P> Visitor forCPropertyInfo.ReferencePropertyInfofor the compiler.TypeInfoat the compile-time.TypeReffor XJC.ValuePropertyInfoimplementation for XJC.CTypeInfofor the DOM node.Root of the object model that represents the code that needs to be generated.represents a possible number of occurence.Mark model components which does additional code generation.Symbol space for ID/IDREF.Information about how another type is referenced.Factory methods to create a newTypeUsefrom an existing one.