Class CompositeTypeImpl

    • Field Detail

      • schemas

        protected Map<String,​Schema> schemas
        The schemas for this composite type.
    • Constructor Detail

      • CompositeTypeImpl

        public CompositeTypeImpl​(CompositeType superType,
                                 String schema,
                                 String name,
                                 List<Schema> schemaList)
        Constructs a composite type. Schemas must include those from the super type.
    • Method Detail

      • hasSchemas

        public boolean hasSchemas()
        Description copied from interface: CompositeType
        Checks if this composite type has any schema defined.
        Specified by:
        hasSchemas in interface CompositeType
        Returns:
        true if this composite type has some schemas defined, false otherwise
      • getSchema

        public Schema getSchema​(String name)
        Description copied from interface: CompositeType
        Gets the composite type schema given its name.
        Specified by:
        getSchema in interface CompositeType
        Parameters:
        name - the schema name
        Returns:
        the schema if any or null if none was found
      • hasSchema

        public boolean hasSchema​(String name)
        Description copied from interface: CompositeType
        Checks if this composite type has the given schema.
        Specified by:
        hasSchema in interface CompositeType
        Parameters:
        name - the schema name
        Returns:
        true if the composite type has this schema, false otherwise
      • getSchemas

        public Collection<Schema> getSchemas()
        Description copied from interface: CompositeType
        Gets all the schemas (including inherited schemas) of this composite type.
        Specified by:
        getSchemas in interface CompositeType
        Returns:
        the composite type schemas
      • getField

        public Field getField​(QName name)
        Description copied from interface: ComplexType
        Gets the field having the given name.
        Specified by:
        getField in interface ComplexType
        Overrides:
        getField in class ComplexTypeImpl
        Parameters:
        name - the name
        Returns:
        the field or null if no field with that name was found
      • isComplexType

        public boolean isComplexType()
        Description copied from interface: Type
        Tests whether this type is a complex type.
        Specified by:
        isComplexType in interface Type
        Overrides:
        isComplexType in class ComplexTypeImpl
        Returns:
        true if this type is a complex type, false otherwise
      • isCompositeType

        public boolean isCompositeType()
        Description copied from interface: Type
        Tests whether this is a composite type.
        Specified by:
        isCompositeType in interface Type
        Overrides:
        isCompositeType in class AbstractType
        Returns:
        true if this is a composite type, false otherwise