com.perforce.p4java.impl.generic.admin
Class Property

java.lang.Object
  extended by com.perforce.p4java.impl.generic.admin.Property
All Implemented Interfaces:
IProperty

public class Property
extends Object
implements IProperty

Default implementation of the IProperty interface.


Field Summary
static String DATE_PATTERN
           
 
Constructor Summary
Property(Map<String,Object> map)
          Constructs a Property from the passed-in map; this map must have come from a Perforce IServer method call or it may fail.
Property(String name, int sequence, String value, long time, Date modified, String modifiedBy)
          Instantiates a new property.
 
Method Summary
 Date getModified()
          Gets the modified date.
 String getModifiedBy()
          Gets the modified by user.
 String getName()
          Gets the name of the property.
 int getSequence()
          Gets the sequence number of the property.
 long getTime()
          Gets the time in milliseconds.
 String getValue()
          Gets the value of the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_PATTERN

public static final String DATE_PATTERN
See Also:
Constant Field Values
Constructor Detail

Property

public Property(String name,
                int sequence,
                String value,
                long time,
                Date modified,
                String modifiedBy)
Instantiates a new property.

Parameters:
name - the property name
sequence - the sequence number
value - the property value
time - the time in milliseconds
modified - the modified date
modifiedBy - the modified by user

Property

public Property(Map<String,Object> map)
Constructs a Property from the passed-in map; this map must have come from a Perforce IServer method call or it may fail. If map is null, equivalent to calling the default constructor.

Parameters:
map - the map
Method Detail

getName

public String getName()
Gets the name of the property.

Specified by:
getName in interface IProperty
Returns:
the name
See Also:
IProperty.getName()

getSequence

public int getSequence()
Gets the sequence number of the property.

Specified by:
getSequence in interface IProperty
Returns:
the sequence number
See Also:
IProperty.getSequence()

getValue

public String getValue()
Gets the value of the property.

Specified by:
getValue in interface IProperty
Returns:
the value
See Also:
IProperty.getValue()

getTime

public long getTime()
Gets the time in milliseconds.

Specified by:
getTime in interface IProperty
Returns:
the time in milliseconds
See Also:
IProperty.getTime()

getModified

public Date getModified()
Gets the modified date.

Specified by:
getModified in interface IProperty
Returns:
the modified date
See Also:
IProperty.getModified()

getModifiedBy

public String getModifiedBy()
Gets the modified by user.

Specified by:
getModifiedBy in interface IProperty
Returns:
the modified by user
See Also:
IProperty.getModifiedBy()


Copyright © 2015 Perforce Software. All Rights Reserved.