Class Property
- java.lang.Object
-
- com.perforce.p4java.impl.generic.admin.Property
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_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.DategetModified()Gets the modified date.java.lang.StringgetModifiedBy()Gets the modified by user.java.lang.StringgetName()Gets the name of the property.java.lang.StringgetSequence()Gets the sequence number of the property.longgetTime()Gets the time in milliseconds.java.lang.StringgetValue()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:
getNamein interfaceIProperty- Returns:
- the name
- See Also:
IProperty.getName()
-
getSequence
public java.lang.String getSequence()
Gets the sequence number of the property.- Specified by:
getSequencein interfaceIProperty- Returns:
- the sequence number
- See Also:
IProperty.getSequence()
-
getValue
public java.lang.String getValue()
Gets the value of the property.- Specified by:
getValuein interfaceIProperty- Returns:
- the value
- See Also:
IProperty.getValue()
-
getTime
public long getTime()
Gets the time in milliseconds.- Specified by:
getTimein interfaceIProperty- Returns:
- the time in milliseconds
- See Also:
IProperty.getTime()
-
getModified
public java.util.Date getModified()
Gets the modified date.- Specified by:
getModifiedin interfaceIProperty- Returns:
- the modified date
- See Also:
IProperty.getModified()
-
getModifiedBy
public java.lang.String getModifiedBy()
Gets the modified by user.- Specified by:
getModifiedByin interfaceIProperty- Returns:
- the modified by user
- See Also:
IProperty.getModifiedBy()
-
-