Package com.fasterxml.jackson.databind

Examples of com.fasterxml.jackson.databind.PropertyName


   
    @Deprecated
    @Override
    public String findDeserializationName(AnnotatedParameter a)
    {
        PropertyName pname = _findXmlName(a);
        if (pname != null) {
            // empty name not acceptable...
            String local = pname.getSimpleName();
            if (local != null && local.length() > 0) {
                return local;
            }
        }
        // xml text still has special handling...
View Full Code Here


    @Override
    public PropertyName findNameForDeserialization(Annotated a) {

        String rawName = findPropertyName(a);
        if (rawName != null) {
            return new PropertyName(rawName);
        }
        return null;
    }
View Full Code Here

    @Override
    public PropertyName findNameForSerialization(Annotated a) {

        String rawName = findPropertyName(a);
        if (rawName != null) {
            return new PropertyName(rawName);
        }
        return null;

    }
View Full Code Here

        return String.valueOf(_key);
    }

    @Override
    public PropertyName getFullName() {
        return new PropertyName(getName());
    }
View Full Code Here

   
    @Deprecated // since 2.3
    public POJOPropertyBuilder(String simpleInternalName,
            AnnotationIntrospector annotationIntrospector, boolean forSerialization)
    {
        this(new PropertyName(simpleInternalName), annotationIntrospector, forSerialization);
    }
View Full Code Here

    }

    @Override
    public POJOPropertyBuilder withSimpleName(String newSimpleName)
    {
        PropertyName newName = _name.withSimpleName(newSimpleName);
        return (newName == _name) ? this : new POJOPropertyBuilder(this, newName);
    }
View Full Code Here

        if (l.size() > 1) {
            throw new IllegalStateException("Conflicting/ambiguous property name definitions (implicit name '"
                    +_name+"'): found more than one explicit name: "
                    +l);
        }
        PropertyName first = l.iterator().next();
        if (first.equals(_name)) {
            return null;
        }
        return first.getSimpleName();
    }
View Full Code Here

            Map<PropertyName,POJOPropertyBuilder> props,
            Linked<?> accessors)
    {
        final Linked<?> firstAcc = accessors; // clumsy, part 1
        for (Linked<?> node = accessors; node != null; node = node.next) {
            PropertyName name = node.name;
            if (!node.isNameExplicit || name == null) { // no explicit name -- problem!
                throw new IllegalStateException("Conflicting/ambiguous property name definitions (implicit name '"
                        +_name+"'): found multiple explicit names: "
                        +newNames+", but also implicit accessor: "+node);
            }
View Full Code Here

            String ns = root.namespace();
           
            if (local.length() == 0 && ns.length() == 0) {
                return PropertyName.USE_DEFAULT;
            }
            return new PropertyName(local, ns);
        }
        return super.findRootName(ac);
    }
View Full Code Here

     */

    @Override
    public PropertyName findNameForSerialization(Annotated a)
    {
        PropertyName name = _findXmlName(a);
        return (name == null) ? super.findNameForSerialization(a) : name;
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.databind.PropertyName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.