All the getter methods (such as getBaseType or
getBindStyle) honors the delegation chain of
property customization specified in the spec. Namely,
if two property customizations are attached to an attribute
use and an attribute decl, then anything unspecified in the
attribute use defaults to attribute decl.
Property customizations are acknowledged (1) when they are actually used, and (2) when they are given at the component, which is mapped to a class. (so-called "point of declaration" customization)
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private BIProperty. | |
| private CollectionTypeAttribute | |
| private static final XSFunction | |
| private Boolean | |
| private boolean | |
| private final XSFinder | hasFixedValue
Function object that returns true if a component has a fixed value constraint. |
| private Boolean | |
| private String | |
| private String | |
| public static final QName | NAME
Name of this declaration. |
| private OptionalPropertyMode |
| Access | Constructor and Description |
|---|---|
| public | BIProperty(Locator loc, String _propName, String _javadoc, BIProperty.
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private void | |
| public CAttributePropertyInfo | |
| public CReferencePropertyInfo | createContentExtendedMixedReferenceProperty(String defaultName, XSComponent source, RawTypeSet types)
|
| public CReferencePropertyInfo | |
| public CPropertyInfo | createElementOrReferenceProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)
|
| public CElementPropertyInfo | createElementProperty(String
If the name is not customized, this name will be used
as the default. Note that the name conversion MUST
be applied before this method is called if necessary. defaultName, boolean forConstant, XSParticle Source schema component from which a field is built. source, RawTypeSet types)
|
| public CReferencePropertyInfo | createReferenceProperty(String defaultName, boolean forConstant, XSComponent source, RawTypeSet types, boolean isMixed, boolean dummy, boolean content, boolean isMixedExtended)
|
| public CValuePropertyInfo | createValueProperty(String defaultName, boolean forConstant, XSComponent source, TypeUse tu, QName typeName)
|
| private Boolean | |
| public JType | |
| public Collection | getChildren()
Overrides com. Implements com. Gets child s if any. |
| pack-priv CollectionTypeAttribute | |
| public BIConversion | |
| public static BIProperty | Returns: Always return non-null valid object.A customization effective on this component will be returned.
Can be null just to get the global customization. c)Finds a property customization that describes how the given component should be mapped to a property (if it's mapped to a property at all.) Consider an attribute use that does NOT carry a property customization. |
| private CCustomizations | |
| private CCustomizations | |
| private CCustomizations | |
| private CCustomizations | |
| protected BIProperty | Returns: always return non-null for normal BIProperties. If this object is contained in the BIGlobalBinding, then this method returns null to indicate that there's no more default.Finds a BIProperty which this object should delegate to. |
| private static BIProperty | |
| public String | |
| public QName | getName()
Implements com. Gets the name of this binding declaration, which is the same as the tag name of the binding element. |
| public OptionalPropertyMode | |
| public String | Returns: This method can return null if the customization doesn't specify the name.If the property name is intended for a constant property name,
set to true. This will change the result forConstant)Returns the customized property name. |
| public boolean | |
| public void | markAsAcknowledged()
Overrides com. Implements com. Marks this declaration to be acknowledged -- either actually used or the existence is admitted (for example when a property customization is given at the point of definition.) Declarations that are not acknowledged will be considered as an error. |
| pack-priv void | |
| public void | setParent(BindInfo parent)
Overrides com. Implements com. Sets the parent BindInfo object of this declaration. |
| private <T extends CPropertyInfo> T | wrapUp(T prop, XSComponent source)
Common finalization of |
| baseType | back to summary |
|---|---|
| private BIProperty. | |
| collectionType | back to summary |
|---|---|
| private CollectionTypeAttribute collectionType
| |
| defaultCustomizationFinder | back to summary |
|---|---|
| private static final XSFunction<XSComponent> defaultCustomizationFinder | |
| generateElementProperty | back to summary |
|---|---|
| private Boolean generateElementProperty
| |
| generateFailFastSetterMethod | back to summary |
|---|---|
| private boolean generateFailFastSetterMethod
| |
| hasFixedValue | back to summary |
|---|---|
| private final XSFinder hasFixedValue Function object that returns true if a component has a fixed value constraint. | |
| isConstantProperty | back to summary |
|---|---|
private Boolean isConstantProperty
| |
| javadoc | back to summary |
|---|---|
| private String javadoc
| |
| name | back to summary |
|---|---|
| private String name
| |
| NAME | back to summary |
|---|---|
| public static final QName NAME Name of this declaration. | |
| optionalProperty | back to summary |
|---|---|
| private OptionalPropertyMode optionalProperty
| |
| BIProperty | back to summary |
|---|---|
| public BIProperty(Locator loc, String _propName, String _javadoc, BIProperty. | |
| BIProperty | back to summary |
|---|---|
| protected BIProperty() | |
| concat | back to summary |
|---|---|
| private static String concat(String s1, String s2) | |
| constantPropertyErrorCheck | back to summary |
|---|---|
| private void constantPropertyErrorCheck() | |
| createAttributeProperty | back to summary |
|---|---|
| public CAttributePropertyInfo createAttributeProperty(XSAttributeUse use, TypeUse tu) | |
| createContentExtendedMixedReferenceProperty | back to summary |
|---|---|
| public CReferencePropertyInfo createContentExtendedMixedReferenceProperty(String defaultName, XSComponent source, RawTypeSet types) | |
| createDummyExtendedMixedReferenceProperty | back to summary |
|---|---|
| public CReferencePropertyInfo createDummyExtendedMixedReferenceProperty(String defaultName, XSComponent source, RawTypeSet types) | |
| createElementOrReferenceProperty | back to summary |
|---|---|
| public CPropertyInfo createElementOrReferenceProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types) | |
| createElementProperty | back to summary |
|---|---|
public CElementPropertyInfo createElementProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)
| |
| createReferenceProperty | back to summary |
|---|---|
| public CReferencePropertyInfo createReferenceProperty(String defaultName, boolean forConstant, XSComponent source, RawTypeSet types, boolean isMixed, boolean dummy, boolean content, boolean isMixedExtended) | |
| createValueProperty | back to summary |
|---|---|
| public CValuePropertyInfo createValueProperty(String defaultName, boolean forConstant, XSComponent source, TypeUse tu, QName typeName) | |
| generateElementProperty | back to summary |
|---|---|
| private Boolean generateElementProperty() If true, the property will automatically be a reference property. (Talk about confusing names!) | |
| getBaseType | back to summary |
|---|---|
| public JType getBaseType() | |
| getChildren | back to summary |
|---|---|
| public Collection Overrides com. Implements com. Doc from com. Gets child s if any.
| |
| getCollectionType | back to summary |
|---|---|
| pack-priv CollectionTypeAttribute getCollectionType() Gets the realization of this field.
| |
| getConv | back to summary |
|---|---|
| public BIConversion getConv() | |
| getCustomization | back to summary |
|---|---|
| public static BIProperty getCustomization(XSComponent c) Finds a property customization that describes how the given component should be mapped to a property (if it's mapped to a property at all.) Consider an attribute use that does NOT carry a property customization. This schema component is nonetheless considered to carry a (sort of) implicit property customization, whose values are defaulted. This method can be think of the method that returns this implied property customization. Note that this doesn't mean the given component needs to be mapped to a property. But if it does map to a property, it needs to follow this customization. I think this semantics is next to non-sense but I couldn't think of any other way to follow the spec.
| |
| getCustomizations | back to summary |
|---|---|
| private CCustomizations getCustomizations(XSComponent src) | |
| getCustomizations | back to summary |
|---|---|
| private CCustomizations getCustomizations(XSComponent... src) | |
| getCustomizations | back to summary |
|---|---|
| private CCustomizations getCustomizations(XSAttributeUse src) | |
| getCustomizations | back to summary |
|---|---|
| private CCustomizations getCustomizations(XSParticle src) | |
| getDefault | back to summary |
|---|---|
| protected BIProperty getDefault() Finds a BIProperty which this object should delegate to.
| |
| getDefault | back to summary |
|---|---|
| private static BIProperty getDefault(BGMBuilder builder, XSComponent c) | |
| getJavadoc | back to summary |
|---|---|
| public String getJavadoc() Gets the associated javadoc.
| |
| getName | back to summary |
|---|---|
| public QName getName() Implements com. Doc from com. Gets the name of this binding declaration, which is the same as the tag name of the binding element.
| |
| getOptionalPropertyMode | back to summary |
|---|---|
| public OptionalPropertyMode getOptionalPropertyMode() | |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName(boolean forConstant) Returns the customized property name. This method honors the "enableJavaNamingConvention" customization and formats the property name accordingly if necessary. Thus the caller should NOT apply the XML-to-Java name conversion algorithm to the value returned from this method.
| |
| isConstantProperty | back to summary |
|---|---|
| public boolean isConstantProperty() Gets the inherited value of the "fixedAttrToConstantProperty" customization. Note that returning true from this method doesn't necessarily mean that a property needs to be mapped to a constant property. It just means that it's mapped to a constant property if an attribute use carries a fixed value. I don't like this semantics but that's what the spec implies. | |
| markAsAcknowledged | back to summary |
|---|---|
| public void markAsAcknowledged() Overrides com. Implements com. Doc from com. Marks this declaration to be acknowledged -- either actually used or the existence is admitted (for example when a property customization is given at the point of definition.) Declarations that are not acknowledged will be considered as an error.
| |
| setGenerateIsSetMethod | back to summary |
|---|---|
pack-priv void setGenerateIsSetMethod(boolean b)
| |
| setParent | back to summary |
|---|---|
| public void setParent(BindInfo parent) Overrides com. Implements com. Doc from com. Sets the parent BindInfo object of this declaration. A declaration object can use this pointer to access context information, such as other customizations.
This method can be only called from
| |
| wrapUp | back to summary |
|---|---|
| private <T extends CPropertyInfo> T wrapUp(T prop, XSComponent source) Common finalization of | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv BIConversion | conv
If there's a nested javaType customization, this field will keep that customization. |
| pack-priv String | name
Java type name. |
| Access | Constructor and Description |
|---|---|
| public |
| conv | back to summary |
|---|---|
| pack-priv BIConversion conv If there's a nested javaType customization, this field will keep that customization. Otherwise null. This customization, if present, is used to customize the simple type mapping at the point of reference. | |
| name | back to summary |
|---|---|
| pack-priv String name Java type name. | |
| BaseTypeBean | back to summary |
|---|---|
| public BaseTypeBean() | |