org.xenei.jena.entities.annotations

Annotation Type Predicate

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      boolean emptyIsNull
      If true empty strings are assumed to be null and are not inserted.
      boolean impl
      Indicates that a method is an implementation of an abstract method to allow the class to be concrete while not providing a concrete implementation of the Predicate annotated methods.
      String literalType
      The name of the literal type or an empty string if not is use.
      String name
      The name of the predicate.
      String namespace
      The namespace for the predicate.
      String postExec
      Method on object to call after the method is executed.
      Class<?> type
      The java object class that will be returned when the object is read from the RDF model.
      boolean upcase
      determines if the local name should have the first character upper cased.
    • Element Detail

      • emptyIsNull

        public abstract boolean emptyIsNull
        If true empty strings are assumed to be null and are not inserted. Default value = false
        Default:
        false
      • impl

        public abstract boolean impl
        Indicates that a method is an implementation of an abstract method to allow the class to be concrete while not providing a concrete implementation of the Predicate annotated methods.
        Returns:
        Default:
        false
      • literalType

        public abstract String literalType
        The name of the literal type or an empty string if not is use. If specified it is used in a call to typeMapper.getSafeTypeByName() to get the RDFDatatype used to parse and unparse literal values.
        Returns:
        The name of the literal type or an empty string.
        Default:
        ""
      • name

        public abstract String name
        The name of the predicate. This is the local name in RDF parlance. If not specified it defaults to the name of the function with the action prefix removed. @see{ @link org.xenei.jena.entities.impl.ActionType}. The namespace may be specified as part of the name. In this case the namespace value need not be set.
        Returns:
        the local name of the RDF predicate.
        Default:
        ""
      • namespace

        public abstract String namespace
        The namespace for the predicate. If not specified defaults to the namespace for the subject that this predicate is part of. The namespace may be specified with this field or as part of the name field.
        Returns:
        The namespace portion of the RDF predicate.
        Default:
        ""
      • type

        public abstract Class<?> type
        The java object class that will be returned when the object is read from the RDF model.
        Returns:
        The object class.
        Default:
        com.hp.hpl.jena.rdf.model.RDFNode.class
      • upcase

        public abstract boolean upcase
        determines if the local name should have the first character upper cased. If false (the default) the first character will be lower cased. If true, the first character will be upper cased.
        Default:
        false
      • postExec

        public abstract String postExec
        Method on object to call after the method is executed.
        Returns:
        the name of the method to call.
        Default:
        ""

Copyright © 2012-2013 XENEI.com. All Rights Reserved.