Constructor and Description |
---|
DataEntryNode(File source,
String name,
Path parent,
Long groupId,
String groupName,
Long userId,
String userName,
Integer mode,
boolean process,
String encoding)
Creates a node for a regular file.
|
DataEntryNode(String name,
Path parent,
Long groupId,
String groupName,
Long userId,
String userName,
Integer mode)
Creates a node for a directory.
|
DataEntryNode(String name,
Path parent,
String symLink,
Long groupId,
String groupName,
Long userId,
String userName,
Integer mode)
Creates a node for a symbolic link.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Returns the encoding for the processing.
|
Long |
getGroupId()
Returns the group ID.
|
String |
getGroupName()
returns the group name.
|
Integer |
getMode()
Returns the mode.
|
String |
getName()
Returns the name of the file in the target.
|
Path |
getParent()
Returns the path of the parent in the target.
|
File |
getSource()
Returns the source file.
|
String |
getSymLink()
Returns the The target file or directory of the symbolic link the target.
|
Long |
getUserId()
Returns the user ID.
|
String |
getUserName()
returns the user name.
|
boolean |
isProcess()
Returns the flag if the file should be processed.
|
public DataEntryNode(String name, Path parent, Long groupId, String groupName, Long userId, String userName, Integer mode)
Creates a node for a directory.
name
- The name of the directory in the target.parent
- The path of the parent in the target.groupId
- The group ID (optional).groupName
- The group name (optional).userId
- The user ID (optional).userName
- The user name (optional).mode
- The mode (optional).IllegalArgumentException
- If any of the non-optional parameters are null
.public DataEntryNode(File source, String name, Path parent, Long groupId, String groupName, Long userId, String userName, Integer mode, boolean process, String encoding)
Creates a node for a regular file.
source
- The source file.name
- The name of the directory in the target.parent
- The path of the parent in the target.groupId
- The group ID (optional).groupName
- The group name (optional).userId
- The user ID (optional).userName
- The user name (optional).mode
- The mode (optional).process
- The flag if the file should be processed.encoding
- The encoding for the processing (optional).IllegalArgumentException
- If any of the non-optional parameters are null
.public DataEntryNode(String name, Path parent, String symLink, Long groupId, String groupName, Long userId, String userName, Integer mode)
Creates a node for a symbolic link.
name
- The name of the symbolic link in the target.parent
- The path of the parent in the target.symLink
- The target file or directory of the symbolic link the target.groupId
- The group ID (optional).groupName
- The group name (optional).userId
- The user ID (optional).userName
- The user name (optional).mode
- The mode (optional).IllegalArgumentException
- If any of the non-optional parameters are null
.public File getSource()
Returns the source file.
null
, if this node doesn't
represent a regular file.public String getName()
Returns the name of the file in the target.
public Path getParent()
Returns the path of the parent in the target.
public String getSymLink()
Returns the The target file or directory of the symbolic link the target.
null
, if this node doesn't represent a
symbolic link.public Long getGroupId()
Returns the group ID.
null
, if the group ID is not set.public String getGroupName()
returns the group name.
null
, if the group name is not
set.public Long getUserId()
Returns the user ID.
null
, if the user ID is not set.public String getUserName()
returns the user name.
null
, if the user name is not set.public Integer getMode()
Returns the mode.
null
, if the mode is not set.public boolean isProcess()
Returns the flag if the file should be processed.
This flag has only an effect if this node represents a regular file.
true
, if the file should be processed,
false
otherwise.getSource()
,
getEncoding()
public String getEncoding()
Returns the encoding for the processing.
This flag has only an effect if this node should be processed.
null
, if the default encoding should
be used.isProcess()
Copyright © 2015–2019. All rights reserved.