Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.model
Class PropertyDiff

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.PropertyDiff
All Implemented Interfaces:
Iterable<PropertyDiff>

public class PropertyDiff
extends Object
implements Iterable<PropertyDiff>

Author:
Bogdan Stefanescu TODO is this really needed?

Field Summary
static int ADDED
           
 Set<PropertyDiff> children
           
static int MODIFIED
           
 String name
           
static int REMOVED
           
 int type
           
 Serializable value
           
 
Constructor Summary
PropertyDiff(int type, String name)
           
PropertyDiff(int type, String name, Serializable value)
           
 
Method Summary
 void add(String name, Serializable value)
           
 boolean equals(Object obj)
           
 boolean hasChildren()
           
 int hashCode()
           
 Iterator<PropertyDiff> iterator()
           
 void modify(String name, Serializable value)
           
 void remove(String name)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODIFIED

public static final int MODIFIED
See Also:
Constant Field Values

ADDED

public static final int ADDED
See Also:
Constant Field Values

REMOVED

public static final int REMOVED
See Also:
Constant Field Values

type

public int type

value

public Serializable value

name

public String name

children

public final Set<PropertyDiff> children
Constructor Detail

PropertyDiff

public PropertyDiff(int type,
                    String name)

PropertyDiff

public PropertyDiff(int type,
                    String name,
                    Serializable value)
Method Detail

hasChildren

public boolean hasChildren()

modify

public void modify(String name,
                   Serializable value)

remove

public void remove(String name)

add

public void add(String name,
                Serializable value)

iterator

public Iterator<PropertyDiff> iterator()
Specified by:
iterator in interface Iterable<PropertyDiff>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.