All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.fedora.common.policy.DatastreamNamespace Maven / Gradle / Ivy

/*
 * -----------------------------------------------------------------------------
 *
 * 

License and Copyright: The contents of this file are subject to the * Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of * the License at * http://www.fedora-commons.org/licenses.

* *

Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific language governing rights and limitations under the License.

* *

The entire file consists of original code.

*

Copyright © 2008 Fedora Commons, Inc.
*

Copyright © 2002-2007 The Rector and Visitors of the University of * Virginia and Cornell University
* All rights reserved.

* * ----------------------------------------------------------------------------- */ package fedora.common.policy; import com.sun.xacml.attr.AnyURIAttribute; import com.sun.xacml.attr.DateTimeAttribute; import com.sun.xacml.attr.IntegerAttribute; import com.sun.xacml.attr.StringAttribute; import com.sun.xacml.attr.BooleanAttribute; public class DatastreamNamespace extends XacmlNamespace { // Properties public final XacmlName ID; public final XacmlName STATE; public final XacmlName LOCATION_TYPE; public final XacmlName CONTROL_GROUP; public final XacmlName FORMAT_URI; public final XacmlName LOCATION; public final XacmlName CREATED_DATETIME; public final XacmlName INFO_TYPE; public final XacmlName MIME_TYPE; public final XacmlName CONTENT_LENGTH; public final XacmlName AS_OF_DATETIME; public final XacmlName NEW_STATE; public final XacmlName NEW_LOCATION; public final XacmlName NEW_CONTROL_GROUP; public final XacmlName NEW_FORMAT_URI; public final XacmlName NEW_MIME_TYPE; public final XacmlName NEW_VERSIONABLE; public final XacmlName CHECKSUM; public final XacmlName NEW_CHECKSUM; public final XacmlName CHECKSUM_TYPE; public final XacmlName NEW_CHECKSUM_TYPE; public final XacmlName ALT_IDS; public final XacmlName NEW_ALT_IDS; // Values private DatastreamNamespace(XacmlNamespace parent, String localName) { super(parent, localName); AS_OF_DATETIME = addName(new XacmlName(this, "asOfDateTime", DateTimeAttribute.identifier)); CONTENT_LENGTH = addName(new XacmlName(this, "contentLength", IntegerAttribute.identifier)); CONTROL_GROUP = addName(new XacmlName(this, "controlGroup", StringAttribute.identifier)); NEW_CONTROL_GROUP = addName(new XacmlName(this, "newControlGroup", StringAttribute.identifier)); CREATED_DATETIME = addName(new XacmlName(this, "createdDate", DateTimeAttribute.identifier)); FORMAT_URI = addName(new XacmlName(this, "formatUri", AnyURIAttribute.identifier)); NEW_FORMAT_URI = addName(new XacmlName(this, "newFormatUri", AnyURIAttribute.identifier)); ID = addName(new XacmlName(this, "id", StringAttribute.identifier)); INFO_TYPE = addName(new XacmlName(this, "infoType", StringAttribute.identifier)); LOCATION = addName(new XacmlName(this, "location", AnyURIAttribute.identifier)); NEW_LOCATION = addName(new XacmlName(this, "newLocation", AnyURIAttribute.identifier)); LOCATION_TYPE = addName(new XacmlName(this, "locationType", StringAttribute.identifier)); MIME_TYPE = addName(new XacmlName(this, "mimeType", StringAttribute.identifier)); NEW_MIME_TYPE = addName(new XacmlName(this, "newMimeType", StringAttribute.identifier)); STATE = addName(new XacmlName(this, "state", StringAttribute.identifier)); NEW_STATE = addName(new XacmlName(this, "newState", StringAttribute.identifier)); NEW_VERSIONABLE = addName(new XacmlName(this, "newVersionable", BooleanAttribute.identifier)); CHECKSUM = addName(new XacmlName(this, "checksum", StringAttribute.identifier)); NEW_CHECKSUM = addName(new XacmlName(this, "newChecksum", StringAttribute.identifier)); CHECKSUM_TYPE = addName(new XacmlName(this, "checksumType", StringAttribute.identifier)); NEW_CHECKSUM_TYPE = addName(new XacmlName(this, "newChecksumType", StringAttribute.identifier)); ALT_IDS = addName(new XacmlName(this, "altIds", StringAttribute.identifier)); NEW_ALT_IDS = addName(new XacmlName(this, "newAltIds", StringAttribute.identifier)); } public static DatastreamNamespace onlyInstance = new DatastreamNamespace(ResourceNamespace.getInstance(), "datastream"); public static final DatastreamNamespace getInstance() { return onlyInstance; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy