-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from ical4j/develop
Prepare release
- Loading branch information
Showing
14 changed files
with
421 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/net/fortuna/ical4j/extensions/concept/AssetType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package net.fortuna.ical4j.extensions.concept; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* A concept typically applied to VRESOURCE objects when embedded metadata for assets is required. | ||
*/ | ||
public class AssetType extends ImmutableConcept { | ||
|
||
|
||
public enum Id { | ||
Asset("ical4j:concept:asset"), | ||
|
||
Vehicle("ical4j:concept:asset:vehicle"), | ||
|
||
Property("ical4j:concept:asset:property"), | ||
|
||
ConfigurationItem("ical4j:concept:asset:configuration_item"); | ||
|
||
private final URI uri; | ||
|
||
Id(String uri) { | ||
this.uri = URI.create(uri); | ||
} | ||
|
||
public URI getUri() { | ||
return uri; | ||
} | ||
} | ||
|
||
public static final AssetType VEHICLE = new AssetType(Id.Vehicle); | ||
|
||
public static final AssetType PROPERTY = new AssetType(Id.Property); | ||
|
||
public static final AssetType CONFIGURATION_ITEM = new AssetType(Id.ConfigurationItem); | ||
|
||
public AssetType(Id id) { | ||
super(id.getUri()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/net/fortuna/ical4j/extensions/concept/ContributorType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package net.fortuna.ical4j.extensions.concept; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* A concept typically applied to PARTICIPANT objects when embedded metadata for contributors is required. | ||
*/ | ||
public class ContributorType extends ImmutableConcept { | ||
|
||
public enum Id { | ||
Reporter("ical4j:concept:contributor:reporter"), | ||
|
||
Assignee("ical4j:concept:contributor:assignee"); | ||
|
||
private final URI uri; | ||
|
||
Id(String uri) { | ||
this.uri = URI.create(uri); | ||
} | ||
|
||
public URI getUri() { | ||
return uri; | ||
} | ||
} | ||
|
||
public static final ContributorType REPORTER = new ContributorType(Id.Reporter); | ||
|
||
public static final ContributorType ASSIGNEE = new ContributorType(Id.Assignee); | ||
|
||
public ContributorType(Id id) { | ||
super(id.getUri()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.