Class Property
- java.lang.Object
-
- com.perforce.p4java.impl.generic.admin.Property
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATE_PATTERN
-
Constructor Summary
Constructors Constructor Description Property(java.lang.String name, java.lang.String sequence, java.lang.String value, long time, java.util.Date modified, java.lang.String modifiedBy)
Instantiates a new property.Property(java.util.Map<java.lang.String,java.lang.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getModified()
Gets the modified date.java.lang.String
getModifiedBy()
Gets the modified by user.java.lang.String
getName()
Gets the name of the property.java.lang.String
getSequence()
Gets the sequence number of the property.long
getTime()
Gets the time in milliseconds.java.lang.String
getValue()
Gets the value of the property.
-
-
-
Field Detail
-
DATE_PATTERN
public static final java.lang.String DATE_PATTERN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Property
public Property(java.lang.String name, java.lang.String sequence, java.lang.String value, long time, java.util.Date modified, java.lang.String modifiedBy)
Instantiates a new property.- Parameters:
name
- the property namesequence
- the sequence numbervalue
- the property valuetime
- the time in millisecondsmodified
- the modified datemodifiedBy
- the modified by user
-
Property
public Property(java.util.Map<java.lang.String,java.lang.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 java.lang.String getName()
Gets the name of the property.- Specified by:
getName
in interfaceIProperty
- Returns:
- the name
- See Also:
IProperty.getName()
-
getSequence
public java.lang.String getSequence()
Gets the sequence number of the property.- Specified by:
getSequence
in interfaceIProperty
- Returns:
- the sequence number
- See Also:
IProperty.getSequence()
-
getValue
public java.lang.String getValue()
Gets the value of the property.- Specified by:
getValue
in interfaceIProperty
- Returns:
- the value
- See Also:
IProperty.getValue()
-
getTime
public long getTime()
Gets the time in milliseconds.- Specified by:
getTime
in interfaceIProperty
- Returns:
- the time in milliseconds
- See Also:
IProperty.getTime()
-
getModified
public java.util.Date getModified()
Gets the modified date.- Specified by:
getModified
in interfaceIProperty
- Returns:
- the modified date
- See Also:
IProperty.getModified()
-
getModifiedBy
public java.lang.String getModifiedBy()
Gets the modified by user.- Specified by:
getModifiedBy
in interfaceIProperty
- Returns:
- the modified by user
- See Also:
IProperty.getModifiedBy()
-
-