Examples of enString()


Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

                    if(object == null) {
                        return null;
                    }
                    final ObjectAdapter adapter = getAdapterManager().adapterFor(object);
                    Oid oid = adapter.getOid();
                    return oid != null? oid.enString(getOidMarshaller()): encodedValueOf(adapter);
                }
                private String encodedValueOf(ObjectAdapter adapter) {
                    EncodableFacet facet = adapter.getSpecification().getFacet(EncodableFacet.class);
                    return facet != null? facet.toEncodedString(adapter): adapter.toString();
                }
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

                    if(object == null) {
                        return null;
                    }
                    final ObjectAdapter adapter = getAdapterManager().adapterFor(object);
                    Oid oid = adapter.getOid();
                    return oid != null? oid.enString(getOidMarshaller()): encodedValueOf(adapter);
                }
                private String encodedValueOf(ObjectAdapter adapter) {
                    EncodableFacet facet = adapter.getSpecification().getFacet(EncodableFacet.class);
                    return facet != null? facet.toEncodedString(adapter): adapter.toString();
                }
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

    private void writeAssociationField(final Writer writer, final String field, final Object entry) throws IOException {
        final Oid rootOidDefault = (Oid)entry;
        Assert.assertFalse(rootOidDefault.isTransient());
        writer.append("  <association");
        Utils.appendAttribute(writer, "field", field);
        Utils.appendAttribute(writer, "oid", rootOidDefault.enString(getOidMarshaller()));
        writer.append("/>\n");
    }

    private void writeMultipleAssociationField(final Writer writer, final String field, final Object entry) throws IOException {
        final ListOfRootOid references = (ListOfRootOid) entry;
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

   
    private final String oidStr;

    public RootAdapterMappingAbstract(final ObjectAdapter adapter) {
        final Oid oid = adapter.getOid();
        oidStr = oid.enString(getOidMarshaller());
    }

    @Override
    public String getOidStr() {
        return oidStr;
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

                    if(object == null) {
                        return null;
                    }
                    final ObjectAdapter adapter = getAdapterManager().adapterFor(object);
                    Oid oid = adapter.getOid();
                    return oid != null? oid.enString(getOidMarshaller()): encodedValueOf(adapter);
                }
                private String encodedValueOf(ObjectAdapter adapter) {
                    EncodableFacet facet = adapter.getSpecification().getFacet(EncodableFacet.class);
                    return facet != null? facet.toEncodedString(adapter): adapter.toString();
                }
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

    private JSONObject createJsonForAdapter(final ObjectAdapter adapter) throws JSONException {
        final JSONObject data = new JSONObject();

        final Oid oid = adapter.getOid();
        data.put("_oid", oid.enString(getOidMarshaller()));

        if(oid instanceof RootOid) {
            return data;
        }
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

        final Oid oid = adapter.getOid();
//        if (oidType == null) {
//            oidType = oid.getClass();
//        }

        String encodedOid = oid.enString(getOidMarshaller());

        //final boolean isTransient = adapter.isTransient();
        //final String transferableId = (isTransient ? "T" : "P") + adapter.getSpecification().getFullIdentifier() + "@" + encodedOid;
        final String transferableId = encodedOid;
        // LOG.debug("encoded " + oid + " as " + transferableId + " ~ " + encodedOid);
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

        if (oid == null) {
            // values don't have an Oid...
            // REVIEW: is this right?
            return memento.toString();
        }
        return oid.enString(getOidMarshaller());
    }
   


    // //////////////////////////////////////////////////////////
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

        if (oid == null) {
            // values don't have an Oid
            return null;
        }
       
        return oid.enString(getOidMarshaller());
    }
   


    // //////////////////////////////////////////////////////////
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.enString()

                    if(object == null) {
                        return null;
                    }
                    final ObjectAdapter adapter = getAdapterManager().adapterFor(object);
                    Oid oid = adapter.getOid();
                    return oid != null? oid.enString(getOidMarshaller()): encodedValueOf(adapter);
                }
                private String encodedValueOf(ObjectAdapter adapter) {
                    EncodableFacet facet = adapter.getSpecification().getFacet(EncodableFacet.class);
                    return facet != null? facet.toEncodedString(adapter): adapter.toString();
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.