Skip to content

Support user-defined types for type constraint. #35

Description

@linlin-s
    /**
     * Get the value of constraint 'type' in IonType format.
     * @return the value of 'type' in IonType format.
     */
    public IonType getIonType() {
        return IonType.valueOf(getIsl().get(KEYWORD_TYPE).toString().toUpperCase());
    }

This method only work when the provided constraint type is one of core types. If the provided type is user-defined, this method won't work. And we need to look up the type definition by using method Schema#getType(String name) .

Referred comments:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions