Class SoapRefType


  • public class SoapRefType
    extends AegisType
    SoapRefType reads and writes SoapRef objects.

    When reading, this class checks for a SOAP ref attribute, and if present creates SoapRef and registers it with the SoapRefRegistry. If the SOAP ref attribute is not present, this class delegates to the baseType specified in the constructor. Regardless of the element containing SOAP ref or not, a SoapRef object is returned. In the case of an inline object the SoapRef will contain a null value.

    When writing, the class always writes an element containing a SOAP ref attribute. The actual object instance is registered with the MarshalRegistry, and is written at the end of the message body by the TrailingBlocks class.

    • Constructor Detail

      • SoapRefType

        public SoapRefType​(AegisType baseType)
    • Method Detail

      • writeSchema

        public void writeSchema​(org.apache.ws.commons.schema.XmlSchema schema)
        Description copied from class: AegisType
        If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.
        Overrides:
        writeSchema in class AegisType
        Parameters:
        schema - root of the XSD document.
      • setTypeMapping

        public void setTypeMapping​(TypeMapping typeMapping)
        Overrides:
        setTypeMapping in class AegisType
        Parameters:
        typeMapping - The typeMapping to set.
      • getTypeClass

        public Class<?> getTypeClass()
        Overrides:
        getTypeClass in class AegisType
        Returns:
        Returns the java type as a Class. For a generic, return the raw type. For something truly exotic, return null.
      • setTypeClass

        public void setTypeClass​(Class<?> typeClass)
      • isComplex

        public boolean isComplex()
        Overrides:
        isComplex in class AegisType
        Returns:
        True if a complex type schema must be written.
      • setNillable

        public void setNillable​(boolean nillable)
        Overrides:
        setNillable in class AegisType
      • getDependencies

        public Set<AegisType> getDependencies()
        Description copied from class: AegisType
        Return a set of AegisType dependencies. Returns null if this type has no dependencies.
        Overrides:
        getDependencies in class AegisType
        Returns:
        Set of AegisType dependencies
      • setSchemaType

        public void setSchemaType​(QName name)
        Overrides:
        setSchemaType in class AegisType
        Parameters:
        name - The qName to set.
      • isWriteOuter

        public boolean isWriteOuter()
        Description copied from class: AegisType
        Defaults to true. False for types that disappear entirely when null, even when nillable.
        Overrides:
        isWriteOuter in class AegisType
        Returns:
        whether to write xsi:nil for null values.
      • setWriteOuter

        public void setWriteOuter​(boolean writeOuter)
        Overrides:
        setWriteOuter in class AegisType