Class BeanTypeInfo

    • Constructor Detail

      • BeanTypeInfo

        public BeanTypeInfo​(Class<?> typeClass,
                            String defaultNamespace)
      • BeanTypeInfo

        public BeanTypeInfo​(Class<?> typeClass,
                            String defaultNamespace,
                            boolean initialize)
        Create a BeanTypeInfo class.
        Parameters:
        typeClass -
        defaultNamespace -
        initialize - If true attempt default property/xml mappings.
    • Method Detail

      • getDefaultNamespace

        public String getDefaultNamespace()
      • initialize

        public void initialize()
      • getType

        public AegisType getType​(QName name)
        Get the type class for the field with the specified QName.
      • setTypeMapping

        public void setTypeMapping​(TypeMapping typeMapping)
      • createMappedName

        protected QName createMappedName​(PropertyDescriptor desc,
                                         boolean qualified)
        Specifies the name of the property as it shows up in the xml schema. This method just returns propertyDescriptor.getName();
        Parameters:
        desc -
        Returns:
      • mapAttribute

        public void mapAttribute​(String property,
                                 QName mappedName)
      • mapElement

        public void mapElement​(String property,
                               QName mappedName)
      • mapTypeName

        public void mapTypeName​(QName mappedName,
                                QName type)
        Specifies the SchemaType for a particular class.
        Parameters:
        mappedName -
        type -
      • getPropertyDescriptorFromMappedName

        public PropertyDescriptor getPropertyDescriptorFromMappedName​(QName name)
      • getTypeClass

        protected Class<?> getTypeClass()
      • isNillable

        public boolean isNillable​(QName name)
        Nillable is only allowed if the actual property is Nullable
        Parameters:
        name -
        Returns:
      • getMinOccurs

        public int getMinOccurs​(QName name)
        Return the minOccurs value. When there is no XML file or annotation (the situation if we are running from the base class here), there is no source for the minOccurs parameter except the default, which is supplied from the overall Aegis options.
        Parameters:
        name - Element QName
        Returns:
      • getMaxOccurs

        public int getMaxOccurs​(QName name)
        Return the maxOccurs value. When there is no XML file or annotation (the situation if we are in the base class here), there is no per-element source for this item, and the value is always 1.
        Parameters:
        name - Element QName
        Returns:
        1
      • getMinOccurs

        public long getMinOccurs()
      • setDefaultMinOccurs

        public void setDefaultMinOccurs​(int m)
      • setDefaultNillable

        public void setDefaultNillable​(boolean n)
      • getAttributes

        public List<QName> getAttributes()
      • getElements

        public List<QName> getElements()
      • isExtensibleElements

        public boolean isExtensibleElements()
      • setExtensibleElements

        public void setExtensibleElements​(boolean futureProof)
      • isExtensibleAttributes

        public boolean isExtensibleAttributes()
      • setExtensibleAttributes

        public void setExtensibleAttributes​(boolean extensibleAttributes)
      • setExtension

        public void setExtension​(boolean extension)
      • isExtension

        public boolean isExtension()
      • isQualifyAttributes

        public boolean isQualifyAttributes()
        Returns:
        Returns the qualifyAttributes.
      • setQualifyAttributes

        public void setQualifyAttributes​(boolean qualifyAttributes)
        Parameters:
        qualifyAttributes - The qualifyAttributes to set.
      • isQualifyElements

        public boolean isQualifyElements()
        Returns:
        Returns the qualifyElements.
      • setQualifyElements

        public void setQualifyElements​(boolean qualifyElements)
        Parameters:
        qualifyElements - The qualifyElements to set.