Examples of StringProperty


Examples of org.metagrid.gatekeeper.node.property.StringProperty

                );
            //
            // The Exception message.
            this.init(
                ReadOnlyProperty.wrap(
                    new StringProperty(
                        this,
                        LoggedException.MESSAGE_PROPERTY_URI
                        ){
                        @Override
                        protected String getString()
                            {
                            return LoggedExceptionImpl.this.message();
                            }
                        @Override
                        protected void setString(final String value)
                            {
                            throw new IllegalArgumentException(
                                "Attempt to set a readonly property [" + this + "] to [" + value + "]"
                                );
                            }
                        }
                    )
                );
            //
            // The Exception classname.
            this.init(
                ReadOnlyProperty.wrap(
                    new StringProperty(
                        this,
                        LoggedException.CLASSNAME_PROPERTY_URI
                        ){
                        @Override
                        protected String getString()
View Full Code Here

Examples of org.structr.core.property.StringProperty

      // setup
      try (final Tx tx = app.tx()) {

        node = app.create(SchemaNode.class, new NodeAttribute(SchemaNode.name, "TestType"));
        node.setProperty(new StringProperty("_test"), "Integer");

        tx.success();
      }

      // fetch dynamic type info
      final Class dynamicType   = StructrApp.getConfiguration().getNodeEntityClass("TestType");
      final PropertyKey testKey = StructrApp.getConfiguration().getPropertyKeyForJSONName(dynamicType, "test");

      // modify schema node but keep reference to "old" type
      try (final Tx tx = app.tx()) {

        node.setProperty(new StringProperty("_test2"), "String");

        tx.success();
      }

      // create test nodes
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.