Questions tagged [nested-properties]
45 questions
                    
                    461
                    
            votes
                
                36 answers
            
        How to use a dot "." to access members of dictionary?
How do I make Python dictionary members accessible via a dot "."?
For example, instead of writing mydict['val'], I'd like to write mydict.val.
Also I'd like to access nested dicts this way. For example
mydict.mydict2.val 
would refer to 
mydict = {…
         
    
    
        bodacydo
        
- 75,521
- 93
- 229
- 319
                    153
                    
            votes
                
                16 answers
            
        How to use dot notation for dict in python?
I'm very new to python and I wish I could do . notation to access values of a dict. 
Lets say I have test like this:
>>> test = dict()
>>> test['name'] = 'value'
>>> print(test['name'])
value
But I wish I could do test.name to get value. Infact I…
         
    
    
        batman
        
- 4,728
- 8
- 39
- 45
                    28
                    
            votes
                
                6 answers
            
        How to get nested dictionary key value with .get()
With a simple dictionary like:
myDict = {'key1':1, 'key2':2}
I can safely use:
print myDict.get('key3')
and even while 'key3' is not existent no errors will be thrown since .get() still returns None.
Now how would I achieve the same simplicity…
         
    
    
        alphanumeric
        
- 17,967
- 64
- 244
- 392
                    25
                    
            votes
                
                2 answers
            
        Elastic Search nested multimatch query
So my problem is basically the same as described here, however it still remains unanswered on the group.
My mapping:
{
    "abstract": {
        "properties": {
            "summary": {
                "type": "string"
            }
        }
   …
         
    
    
        stpk
        
- 2,015
- 1
- 16
- 23
                    11
                    
            votes
                
                2 answers
            
        Can python objects have nested properties?
I have an object defined as follows
class a():
    @property
    def prop(self):
        print("hello from object.prop")
        @property
        def prop1(self):
            print("Hello from object.prop.prop")
When I call
>>> obj = a()
>>>…
         
    
    
        user1876508
        
- 12,864
- 21
- 68
- 105
                    7
                    
            votes
                
                1 answer
            
        creating nested maps with nested properties from List, stream, Java 8
I made this question 
stream creating List of List (nested List) using forEach, Java 8
class EntityCompositeId {
    private Long firstId;
    private Long secondId;
    // getter & setter...
}
class EntityComposite {
    private EntityCompositeId…
         
    
    
        joseluisbz
        
- 1,491
- 1
- 36
- 58
                    6
                    
            votes
                
                1 answer
            
        Nested property in Maven profile for plugin configuration
I have a Java EE 7 project which is deployed to WildFly 8.1.0-Final. I use a standalone Wildfly server managed by Maven (i.e., clean configuration on every mvn clean) for testing, and the "normal" server remotely.
In order to deploy to both servers…
         
    
    
        Martin Lehmann
        
- 774
- 8
- 15
                    5
                    
            votes
                
                2 answers
            
        WPF ListView - Sorting by Nested Properties
I have recently stumbled across an issue where the WPF ListView control seems to be restricting the ability to sort its items. Specifically, I am having a great deal of trouble trying to get a SortDescription to recognise nested properties…
         
    
    
        Noldorin
        
- 144,213
- 56
- 264
- 302
                    4
                    
            votes
                
                3 answers
            
        How to prevent NPE when accessing a nested/indexed property of a bean
Is there any way to prevent NPE when accessing a nested bean using commons-beanutils?
Here is my code:
new BeanUtilsBean().getProperty(human, "parent.name");
In this case I want getProperty() to either return empty string ("") when…
         
    
    
        Mohsen
        
- 3,512
- 3
- 38
- 66
                    3
                    
            votes
                
                2 answers
            
        Deserialize nested properties using Json.Net without using data annotations
I have an application that gets data from multiple API's.
To minimize the amount of classes, I would need to map to every property.
I have implemented a simple json.net ContractResolver.
However, when I try to map a property to a child property I…
         
    
    
        Pavlos
        
- 993
- 7
- 23
                    3
                    
            votes
                
                3 answers
            
        How to set nested property value using FastMember
I get an exception when I try to set a nested member Property using FastMember. For example when having these classes
public class A
{
    public B First { get; set; }
}
public class B
{
    public string Second { get; set; }
}
and I want to set…
         
    
    
        Beachwalker
        
- 7,685
- 6
- 52
- 94
                    3
                    
            votes
                
                0 answers
            
        maven nested properties ${${}}
how can maven using nested properties definition ?
org.sonatype.mavenbook.simple 
  simple 
  1.0-SNAPSHOT 
  pom 
  simple 
 …
         
    
    
        Haoran Wang
        
- 149
- 1
- 9
                    2
                    
            votes
                
                2 answers
            
        Custom Model Binder AspNet Core 2.2 for complex nested property
I have an Angular client and create a POST request with this body:
{"Name":"example","Currency":"EUR"}
I Use Odata protocol and my Controller is:
    [HttpPost, ODataRoute("Templates")]
    public IActionResult Insert([FromBody] Template value)
  …
         
    
    
        Mr Wolf
        
- 31
- 7
                    2
                    
            votes
                
                1 answer
            
        Can you set a view as a property of another view in an XML layout file?
We have a custom GridView which has headerView and footerView properties.  I'm wondering if in Android, it's possible to set those properties from within a layout file.
XAML in Windows lets you do this easily since you can specify properties either…
         
    
    
        Mark A. Donohoe
        
- 28,442
- 25
- 137
- 286
                    1
                    
            vote
                
                1 answer
            
        CFWheels Nested Properties and hasManyCheckBox
I am trying to figure out how can I update the petevents table with several events. I get no error, but it is also not updating/inserting. Here are the relevant code snippets and the schema for the relevant tables follows.
View
        
            
            
                
                    
    
    
         
    
    
                
            
        
     
 
    
    
        dbinott
        
- 911
- 1
- 11
- 36