Exemplo n.º 1
0
        public static DefaultRouteValue getDefaultValue( RouteOtherInfo info )
        {
            Dictionary<String, String> values = info.getItems();

            DefaultRouteValue result = new DefaultRouteValue();

            if (values.ContainsKey( "ownertype" )) result.setOwnerType( values["ownertype"] );
            if (values.ContainsKey( "owner" )) result.setOwner( values["owner"] );
            if (values.ContainsKey( "ns" )) result.setNs( values["ns"] );
            if (values.ContainsKey( "controller" )) result.setController( values["controller"] );
            if (values.ContainsKey( "action" )) result.setAction( values["action"] );
            if (values.ContainsKey( "query" )) result.setQuery( values["query"] );
            if (values.ContainsKey( "id" )) result.setId( cvt.ToInt( values["id"] ) );
            if (values.ContainsKey( "page" )) result.setPage( cvt.ToInt( values["page"] ) );

            return result;
        }
Exemplo n.º 2
0
        public static DefaultRouteValue getDefaultValue( RouteOtherInfo info ) {


            Dictionary<String, String> values = info.getItems();

            DefaultRouteValue result = new DefaultRouteValue();

            if (values.ContainsKey( "ownertype" )) result.setOwnerType( values["ownertype"] );
            if (values.ContainsKey( "owner" )) result.setOwner( values["owner"] );
            if (values.ContainsKey( "ns" )) result.setNs( values["ns"] );
            if (values.ContainsKey( "controller" )) result.setController( values["controller"] );
            if (values.ContainsKey( "action" )) result.setAction( values["action"] );
            if (values.ContainsKey( "query" )) result.setQuery( values["query"] );
            if (values.ContainsKey( "id" )) result.setId( cvt.ToInt( values["id"] ) );
            if (values.ContainsKey( "appId" )) result.setAppId( cvt.ToInt( values["appId"] ) );
            if (values.ContainsKey( "page" )) result.setPage( cvt.ToInt( values["page"] ) );

            return result;
        }
Exemplo n.º 3
0
 public void setDefaultValue(DefaultRouteValue dvalue)
 {
     _default = dvalue;
 }
Exemplo n.º 4
0
 public void setDefaultValue( DefaultRouteValue dvalue )
 {
     _default = dvalue;
 }