com.android.ide.common.res2
Class DataBindingResourceItem

java.lang.Object
  extended by com.android.ide.common.res2.DataBindingResourceItem

public abstract class DataBindingResourceItem
extends java.lang.Object


Constructor Summary
DataBindingResourceItem(java.lang.String name, DataBindingResourceType type)
          Constructs the object with a name, type and optional value.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.io.File getFile()
           
 java.lang.String getKey()
          Returns a key for this item.
 java.lang.String getName()
          Returns the name of the item.
 F getSource()
          Returns the DataFile the item is coming from.
protected  int getStatus()
           
 DataBindingResourceType getType()
           
 int hashCode()
           
 void setSource(F sourceFile)
          Sets the DataFile
protected  void wasTouched()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBindingResourceItem

public DataBindingResourceItem(@NonNull
                               java.lang.String name,
                               @NonNull
                               DataBindingResourceType type)
Constructs the object with a name, type and optional value.

Note that the object is not fully usable as-is. It must be added to a DataFile first.

Parameters:
name - the name of the item
Method Detail

getType

@NonNull
public DataBindingResourceType getType()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getName

@NonNull
public java.lang.String getName()
Returns the name of the item.

Returns:
the name.

getSource

@Nullable
public F getSource()
Returns the DataFile the item is coming from. Can be null.

Returns:
the data file.

setSource

public void setSource(F sourceFile)
Sets the DataFile

Parameters:
sourceFile - the DataFile

getFile

public java.io.File getFile()

getStatus

protected int getStatus()

getKey

public java.lang.String getKey()
Returns a key for this item. They key uniquely identifies this item. This is the name.

Returns:
the key for this item.

wasTouched

protected void wasTouched()