public class Origin extends Object implements Serializable
Describes the origin of an xml document
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_FILE_PATH |
Constructor and Description |
---|
Origin(SourceType type,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
The name of the document origin.
|
SourceType |
getType()
Retrieve the type of origin.
|
int |
hashCode() |
String |
toString() |
public static final String UNKNOWN_FILE_PATH
public Origin(SourceType type, String name)
public SourceType getType()
Retrieve the type of origin.
public String getName()
The name of the document origin. Interpretation is relative to the type, but might be the resource name or file URL.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.