public class PropertyValueArtifact extends org.apache.jackrabbit.vault.fs.impl.AbstractArtifact implements ExportArtifact
| Constructor and Description |
|---|
PropertyValueArtifact(Artifact parent,
java.lang.String relPath,
java.lang.String ext,
ArtifactType type,
Property prop,
int index,
long lastModified) |
PropertyValueArtifact(Artifact parent,
java.lang.String relPath,
java.lang.String ext,
ArtifactType type,
Property prop,
long lastModified) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<PropertyValueArtifact> |
create(Artifact parent,
java.lang.String relPath,
java.lang.String ext,
ArtifactType type,
Property prop,
long lastModified)
Creates a collection of
PropertyValueArtifact from the given
property. |
void |
detach()
Detaches the value from the underlying property value.
|
long |
getContentLength()
Returns the length of the serialized data if it's known without doing the
actual serialization.
|
java.lang.String |
getContentType()
Returns the content type of the serialized data or
null if
the type is not known or cannot be determined. |
VaultInputSource |
getInputSource()
Returns an input source to the contents of this artifact.
|
java.io.InputStream |
getInputStream()
Returns the input stream to the contents of this artifact.
|
long |
getLastModified()
Returns the last modified date or
0 if not known. |
AccessType |
getPreferredAccess()
Returns the preferred access value for this artifact.
|
Property |
getProperty()
Returns the underlying property
|
SerializationType |
getSerializationType()
Returns the serialization type of this artifact.
|
dump, equals, getExtension, getPlatformPath, getRelativePath, getType, hashCode, spool, toStringgetExtension, getPlatformPath, getRelativePath, getType, spoolpublic PropertyValueArtifact(Artifact parent, java.lang.String relPath, java.lang.String ext, ArtifactType type, Property prop, long lastModified) throws RepositoryException
RepositoryExceptionpublic PropertyValueArtifact(Artifact parent, java.lang.String relPath, java.lang.String ext, ArtifactType type, Property prop, int index, long lastModified) throws RepositoryException
RepositoryExceptionpublic static java.util.Collection<PropertyValueArtifact> create(Artifact parent, java.lang.String relPath, java.lang.String ext, ArtifactType type, Property prop, long lastModified) throws RepositoryException
PropertyValueArtifact from the given
property. If the property is multivalued there will be an artifact
created for each value with the value index appended to it's name.parent - parent artifactrelPath - the base name for the artifact(s).ext - the extensiontype - the type for the artifact(s).prop - the property for the artifact(s).lastModified - the last modified date.RepositoryException - if an error occurspublic SerializationType getSerializationType()
getSerializationType in interface Artifactpublic AccessType getPreferredAccess()
getPreferredAccess in interface ArtifactAccessType.STREAMpublic java.io.InputStream getInputStream()
throws java.io.IOException,
RepositoryException
getInputStream in interface Artifactjava.io.IOException - if an I/O error occursRepositoryException - if a repository error occurspublic void detach()
throws java.io.IOException,
RepositoryException
java.io.IOException - if an I/O error occursRepositoryException - if a repository error occurs.public VaultInputSource getInputSource() throws java.io.IOException, RepositoryException
AccessType.STREAM.getInputSource in interface Artifactjava.io.IOException - if an I/O error occurs.RepositoryException - of a repository error occurs.public long getContentLength()
getContentLength in interface Artifact-1 if the length cannot be determined.public Property getProperty()
public long getLastModified()
0 if not known.getLastModified in interface Artifact0public java.lang.String getContentType()
null if
the type is not known or cannot be determined.getContentType in interface ArtifactgetContentType in class org.apache.jackrabbit.vault.fs.impl.AbstractArtifactnull.Copyright © 2010 - 2023 Adobe. All Rights Reserved